mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15180 "moved form to the top of the page"
This commit is contained in:
parent
134cf8ae00
commit
9575899294
1 changed files with 5 additions and 4 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue