]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15180 "moved form to the top of the page"
authorjamiesensei <jamiesensei>
Sat, 7 Jun 2008 13:56:42 +0000 (13:56 +0000)
committerjamiesensei <jamiesensei>
Sat, 7 Jun 2008 13:56:42 +0000 (13:56 +0000)
mod/quiz/report/overview/report.php

index ad959498d2bbaaa4f9019793dec1f783b6d7361d..ee9bf3ed40260a1f8bad6a15f07e239cf7ddbb86 100644 (file)
@@ -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 '<div class="quizattemptcounts">' . $strattemptnum . '</div>';
             }
         }
+        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'));