Index: temp_moodle_dev/moodle/mod/quiz/review.php =================================================================== diff -u -rb5e67f63747b4bb7072b78923d250396e77140f2 -r89659faa9ee2ac5d9c25fa5524f6925d923f00b3 --- temp_moodle_dev/moodle/mod/quiz/review.php (.../review.php) (revision b5e67f63747b4bb7072b78923d250396e77140f2) +++ temp_moodle_dev/moodle/mod/quiz/review.php (.../review.php) (revision 89659faa9ee2ac5d9c25fa5524f6925d923f00b3) @@ -121,7 +121,10 @@ : ""; get_string('reviewofattempt', 'quiz', $attempt->attempt); $navigation = build_navigation($strreviewtitle, $cm); - print_header_simple(format_string($quiz->name), "", $navigation, "", $headtags, true, $strupdatemodule); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_header_simple(format_string($quiz->name), "", $navigation, "", $headtags, true, $strupdatemodule,'',false,'',false,$quiz->is_lams); + //old print_header_simple(format_string($quiz->name), "", $navigation, "", $headtags, true, $strupdatemodule); + } echo ''; // for overlib @@ -150,9 +153,10 @@ print_heading($strreviewtitle); // print javascript button to close the window, if necessary - if (!$isteacher) { + //always include attempt_close_js.php so when we are doing a preview we can access to appearbutton() function in lams + //old if (!$isteacher) { include('attempt_close_js.php'); - } + //old } /// Work out some time-related things. $timelimit = (int)$quiz->timelimit * 60; @@ -291,12 +295,13 @@ print_paging_bar($numpages, $page, 1, 'review.php?attempt='.$attempt->id.'&'); } - // print javascript button to close the window, if necessary - if (!$isteacher) { + // print javascript button to close the window always, so we can access to the appearbutton function + //m if (!$isteacher) { include('attempt_close_js.php'); - } + //m} if (empty($popup)) { - print_footer($course); + //we pass a new parameter to the function so it won't we printed if is_lams=1 + print_footer($course,null, false,$quiz->is_lams); } ?>