mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
question MDL-19797 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents
This commit is contained in:
parent
ea3c6b7405
commit
7cc378fdc2
@ -96,9 +96,10 @@ $strgrades = get_string('grades');
|
||||
$strgraderreport = get_string('graderreport', 'grades');
|
||||
$strcalculationedit = get_string('editcalculation', 'grades');
|
||||
|
||||
$navigation = grade_build_nav(__FILE__, $strcalculationedit, array('courseid' => $courseid));
|
||||
|
||||
print_header_simple($strgrades . ': ' . $strgraderreport, ': ' . $strcalculationedit, $navigation, '', '', true, '', navmenu($course));
|
||||
grade_build_nav(__FILE__, $strcalculationedit, array('courseid' => $courseid));
|
||||
$PAGE->set_title($strgrades . ': ' . $strgraderreport);
|
||||
$PAGE->set_heading(': ' . $strcalculationedit);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
$mform->display();
|
||||
// Now show the gradetree with the idnumbers add/edit form
|
||||
|
@ -248,13 +248,13 @@ $strgraderreport = get_string('graderreport', 'grades');
|
||||
$strgradeedit = get_string('editgrade', 'grades');
|
||||
$struser = get_string('user');
|
||||
|
||||
$navigation = grade_build_nav(__FILE__, $strgradeedit, array('courseid' => $courseid));
|
||||
grade_build_nav(__FILE__, $strgradeedit, array('courseid' => $courseid));
|
||||
|
||||
/*********** BEGIN OUTPUT *************/
|
||||
$PAGE->set_title($strgrades . ': ' . $strgraderreport . ': ' . $strgradeedit);
|
||||
$PAGE->set_heading(': ' . $strgradeedit);
|
||||
|
||||
print_header_simple($strgrades . ': ' . $strgraderreport . ': ' . $strgradeedit,
|
||||
': ' . $strgradeedit , $navigation, '', '', true, '', navmenu($course));
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strgradeedit);
|
||||
|
||||
echo $OUTPUT->box_start();
|
||||
|
@ -131,7 +131,7 @@ $strgraderreport = get_string('graderreport', 'grades');
|
||||
$strcategoriesedit = get_string('categoriesedit', 'grades');
|
||||
$strcategoriesanditems = get_string('categoriesanditems', 'grades');
|
||||
|
||||
$navigation = grade_build_nav(__FILE__, $strcategoriesanditems, array('courseid' => $courseid));
|
||||
grade_build_nav(__FILE__, $strcategoriesanditems, array('courseid' => $courseid));
|
||||
$moving = false;
|
||||
$movingeid = false;
|
||||
|
||||
@ -159,7 +159,9 @@ switch ($action) {
|
||||
redirect($returnurl);
|
||||
|
||||
} else {
|
||||
print_header_simple($strgrades . ': ' . $strgraderreport, ': ' . $strcategoriesedit, $navigation, '', '', true, null, navmenu($course));
|
||||
$PAGE->set_title($strgrades . ': ' . $strgraderreport);
|
||||
$PAGE->set_heading(': ' . $strcategoriesedit);
|
||||
echo $OUTPUT->header();
|
||||
$strdeletecheckfull = get_string('deletecheck', '', $object->get_name());
|
||||
$optionsyes = array('eid'=>$eid, 'confirm'=>1, 'sesskey'=>sesskey(), 'id'=>$course->id, 'action'=>'delete');
|
||||
$optionsno = array('id'=>$course->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user