Code Duplication    Length = 14-14 lines in 2 locations

main/inc/lib/exercise.lib.php 2 locations

@@ 2082-2095 (lines=14) @@
2079
                                        'info'
2080
                                    );
2081
                                    break;
2082
                                case 1:
2083
                                    $actions .= "<a href='exercise_show.php?".api_get_cidreq()."&action=edit&id=$id'>".
2084
                                        Display:: return_icon(
2085
                                            'edit.png',
2086
                                            get_lang('Edit'),
2087
                                            array(),
2088
                                            ICON_SIZE_SMALL
2089
                                        );
2090
                                    $actions .= '</a>';
2091
                                    $revisedLabel = Display::label(
2092
                                        get_lang('Validated'),
2093
                                        'success'
2094
                                    );
2095
                                    break;
2096
                                case 2: //finished but not marked as such
2097
                                    $actions .= '<a href="exercise_report.php?'
2098
                                        . api_get_cidreq()
@@ 2116-2129 (lines=14) @@
2113
                                        'warning'
2114
                                    );
2115
                                    break;
2116
                                case 3: //still ongoing
2117
                                    $actions .= "".
2118
                                        Display:: return_icon(
2119
                                            'clock.png',
2120
                                            get_lang('AttemptStillOngoingPleaseWait'),
2121
                                            array(),
2122
                                            ICON_SIZE_SMALL
2123
                                        );
2124
                                    $actions .= '';
2125
                                    $revisedLabel = Display::label(
2126
                                        get_lang('Ongoing'),
2127
                                        'danger'
2128
                                    );
2129
                                    break;
2130
                            }
2131
2132
                            if ($filter == 2) {