read($exercise_id); } if (empty($objExercise)) { api_not_allowed($show_headers); } // Only users can see their own results if (!$is_allowedToEdit) { if ($student_id != $current_user_id) { api_not_allowed($show_headers); } } $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; if (!empty($objExercise->getResultAccess())) { /*$htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css'); $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.dateformat.min.js'); $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.epiclock.min.js'); $htmlHeadXtra[] = api_get_js('epiclock/renderers/minute/epiclock.minute.js');*/ } $htmlHeadXtra[] = api_get_build_js('exercise.js'); if ($show_headers) { $interbreadcrumb[] = [ 'url' => 'exercise.php?'.api_get_cidreq(), 'name' => get_lang('Tests'), ]; $interbreadcrumb[] = ['url' => '#', 'name' => get_lang('Result')]; $this_section = SECTION_COURSES; Display::display_header(); } else { $htmlHeadXtra[] = ''; Display::display_reduced_header(); } $message = Session::read('attempt_remaining'); Session::erase('attempt_remaining'); ExerciseLib::displayQuestionListByAttempt( $objExercise, $id, false, $message ); if ($show_headers) { Display::display_footer(); } else { Display::display_reduced_footer(); }