print_table($table);
- print_footer($course);
+ echo $OUTPUT->footer();
?>
* This will be suitable for most assignment types
*/
function view_footer() {
- print_footer($this->course);
+ global $OUTPUT;
+ echo $OUTPUT->footer();
}
/**
* @param string $extra_javascript
*/
function display_submission($extra_javascript = '') {
- global $CFG, $DB, $PAGE;
+ global $CFG, $DB, $PAGE, $OUTPUT;
require_once($CFG->libdir.'/gradelib.php');
require_once($CFG->libdir.'/tablelib.php');
echo '</table>';
- print_footer('none');
+ echo $OUTPUT->footer();
}
/**
echo '</td></tr></table>';
echo '</div></form></div>';
///End of mini form
- print_footer($this->course);
+ echo $OUTPUT->footer();
}
/**
print_container_end();
}
- print_footer($course);
+ echo $OUTPUT->footer();
?>
print_simple_box(format_text($submission->data1, $submission->data2), 'center', '100%');
echo $OUTPUT->close_window_button();
- print_footer('none');
+ echo $OUTPUT->footer();
} else {
print_string('emptysubmission', 'assignment');
}
}
function upload_responsefile() {
- global $CFG, $USER;
+ global $CFG, $USER, $OUTPUT;
$userid = required_param('userid', PARAM_INT);
$mode = required_param('mode', PARAM_ALPHA);
print_header(get_string('upload'));
notify(get_string('uploaderror', 'assignment'));
print_continue($returnurl);
- print_footer('none');
+ echo $OUTPUT->footer();
die;
}
print_header(get_string('delete'));
echo $OUTPUT->heading(get_string('delete'));
notice_yesno(get_string('confirmdeletefile', 'assignment', $file), 'delete.php', $urlreturn, $optionsyes, $optionsreturn, 'post', 'get');
- print_footer('none');
+ echo $OUTPUT->footer();
die;
}
print_header(get_string('delete'));
notify(get_string('deletefilefailed', 'assignment'));
print_continue($returnurl);
- print_footer('none');
+ echo $OUTPUT->footer();
die;
}
if (empty($mode)) {
$this->view_footer();
} else {
- print_footer('none');
+ echo $OUTPUT->footer();
}
die;
}
if (empty($mode)) {
$this->view_footer();
} else {
- print_footer('none');
+ echo $OUTPUT->footer();
}
die;
}
} else {
print_continue($returnurl);
}
- print_footer('none');
+ echo $OUTPUT->footer();
} else {
print_header(fullname($user,true).': '.$assignment->name);
echo $OUTPUT->heading(get_string('notes', 'assignment').' - '.fullname($user,true));
} else {
print_continue($returnurl);
}
- print_footer('none');
+ echo $OUTPUT->footer();
}
?>