From: jamiesensei Date: Sat, 7 Jun 2008 13:56:42 +0000 (+0000) Subject: MDL-15180 "moved form to the top of the page" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9575899294a9590630718532ac31616c15eb3fe5;p=moodle.git MDL-15180 "moved form to the top of the page" --- diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index ad959498d2..ee9bf3ed40 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -132,13 +132,17 @@ class quiz_report extends quiz_default_report { groups_print_activity_menu($cm, $reporturl->out(false, $displayoptions)); } } - // Print information on the number of existing attempts if (!$table->is_downloading()) { //do not print notices when downloading if ($strattemptnum = quiz_num_attempt_summary($quiz, $cm, true, $currentgroup)) { echo '
' . $strattemptnum . '
'; } } + if (!$table->is_downloading()) { + // Print display options + $mform->set_data($displayoptions +compact('detailedmarks', 'pagesize')); + $mform->display(); + } if (!$students){ notify(get_string('nostudentsyet')); return true; @@ -297,9 +301,6 @@ class quiz_report extends quiz_default_report { $table->out($pagesize, true); if (!$table->is_downloading()) { - // Print display options - $mform->set_data($displayoptions +compact('detailedmarks', 'pagesize')); - $mform->display(); if (count($table->totalrows)){ $imageurl = $CFG->wwwroot.'/mod/quiz/report/overview/overviewgraph.php?id='.$quiz->id; print_heading(get_string('overviewreportgraph', 'quiz_overview'));