Code Duplication    Length = 10-10 lines in 2 locations

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

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