Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 959-968 (lines=10) @@
956
                                        <td colspan="2">'.$time_attemp . '</td>';
957
                                        if ($action == 'classic') {
958
                                            if ($origin != 'tracking') {
959
                                                if (!$is_allowed_to_edit && $result_disabled_ext_all) {
960
                                                    $output .= '<td>
961
                                                            <img src="' . Display::returnIconPath('quiz_na.gif').'" alt="' . get_lang('ShowAttempt') . '" title="' . get_lang('ShowAttempt') . '">
962
                                                            </td>';
963
                                                } else {
964
                                                    $output .= '<td>
965
                                                            <a href="../exercice/exercise_show.php?origin=' . $origin . '&id=' . $my_exe_id . '&cidReq=' . $courseCode . '" target="_parent">
966
                                                            <img src="' . Display::returnIconPath('quiz.gif').'" alt="' . get_lang('ShowAttempt') . '" title="' . get_lang('ShowAttempt') . '">
967
                                                            </a></td>';
968
                                                }
969
                                            } else {
970
                                                if (!$is_allowed_to_edit && $result_disabled_ext_all) {
971
                                                    $output .= '<td>
@@ 969-978 (lines=10) @@
966
                                                            <img src="' . Display::returnIconPath('quiz.gif').'" alt="' . get_lang('ShowAttempt') . '" title="' . get_lang('ShowAttempt') . '">
967
                                                            </a></td>';
968
                                                }
969
                                            } else {
970
                                                if (!$is_allowed_to_edit && $result_disabled_ext_all) {
971
                                                    $output .= '<td>
972
                                                                <img src="' . Display::returnIconPath('quiz_na.gif').'" alt="' . get_lang('ShowAndQualifyAttempt') . '" title="' . get_lang('ShowAndQualifyAttempt') . '"></td>';
973
                                                } else {
974
                                                    $output .= '<td>
975
                                                                    <a href="../exercice/exercise_show.php?cidReq=' . $courseCode . '&origin=correct_exercise_in_lp&id=' . $my_exe_id . '" target="_parent">
976
                                                                    <img src="' . Display::returnIconPath('quiz.gif').'" alt="' . get_lang('ShowAndQualifyAttempt') . '" title="' . get_lang('ShowAndQualifyAttempt') . '"></a></td>';
977
                                                }
978
                                            }
979
                                        }
980
                                        $output .= '</tr>';
981
                                        $n++;