// this will contain all available the based On select options, but we'll disable some on them on a per user basis
-echo $OUPTUT->heading($straddnote);
+echo $OUTPUT->heading($straddnote);
echo '<form method="post" action="groupaddnote.php" >';
echo '<div style="width:100%;text-align:center;">';
echo '<input type="hidden" name="id" value="'.$course->id.'" />';
echo '</p>';
echo '<input type="submit" value="' . get_string('savechanges'). '" /></div></form>';
-print_footer($course);
+echo $OUTPUT->footer();
} else {
$heading = get_string('addedrecips','moodle',$count);
}
- echo $OUPTUT->heading($heading);
+ echo $OUTPUT->heading($heading);
}
if (!empty($messagebody) && !$edit && !$deluser && ($preview || $send)) {
$good = $good && message_post_message($USER,$user,$messagebody,$format,'direct');
}
if (!empty($good)) {
- echo $OUPTUT->heading(get_string('messagedselectedusers'));
+ echo $OUTPUT->heading(get_string('messagedselectedusers'));
unset($SESSION->emailto[$id]);
unset($SESSION->emailselect[$id]);
} else {
- echo $OUPTUT->heading(get_string('messagedselectedusersfailed'));
+ echo $OUTPUT->heading(get_string('messagedselectedusersfailed'));
}
echo '<p align="center"><a href="index.php?id='.$id.'">'.get_string('backtoparticipants').'</a></p>';
}
- print_footer();
+ echo $OUTPUT->footer();
exit;
} else {
notify(get_string('nousersyet'));
require("message.html");
}
- print_footer();
+ echo $OUTPUT->footer();
?>
);
unset($e); // this could potentially be quite big, so free it.
}
- echo $OUPTUT->heading(get_string('queuesummary', 'portfolio'));
+ echo $OUTPUT->heading(get_string('queuesummary', 'portfolio'));
print_table($table);
}
$logcount = $DB->count_records('portfolio_log', array('userid' => $USER->id));
userdate($log->time),
);
}
- echo $OUPTUT->heading(get_string('logsummary', 'portfolio'));
+ echo $OUTPUT->heading(get_string('logsummary', 'portfolio'));
print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?');
print_table($table);
print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?');
}
-print_footer();
+echo $OUTPUT->footer();
?>
/// Print the page
admin_externalpage_print_header();
- echo $OUPTUT->heading($strheading);
+ echo $OUTPUT->heading($strheading);
$categoryform->display();
- admin_externalpage_print_footer();
+ echo $OUTPUT->footer();
die;
}
/// Print the page
admin_externalpage_print_header();
- echo $OUPTUT->heading($strheading);
+ echo $OUTPUT->heading($strheading);
$fieldform->display();
- admin_externalpage_print_footer();
+ echo $OUTPUT->footer();
die;
}
}
$fieldcount = $DB->count_records('user_info_field', array('categoryid'=>$id));
$optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletecategory', 'sesskey'=>sesskey());
admin_externalpage_print_header();
- echo $OUPTUT->heading('profiledeletecategory', 'admin');
+ echo $OUTPUT->heading('profiledeletecategory', 'admin');
notice_yesno(get_string('profileconfirmcategorydeletion', 'admin', $fieldcount), $redirect, $redirect, $optionsyes, null, 'post', 'get');
- admin_externalpage_print_footer();
+ echo $OUTPUT->footer();
die;
break;
case 'deletefield':
$datacount = $DB->count_records('user_info_data', array('fieldid'=>$id));
$optionsyes = array ('id'=>$id, 'confirm'=>1, 'action'=>'deletefield', 'sesskey'=>sesskey());
admin_externalpage_print_header();
- echo $OUPTUT->heading('profiledeletefield', 'admin');
+ echo $OUTPUT->heading('profiledeletefield', 'admin');
notice_yesno(get_string('profileconfirmfielddeletion', 'admin', $datacount), $redirect, $redirect, $optionsyes, null, 'post', 'get');
- admin_externalpage_print_footer();
+ echo $OUTPUT->footer();
die;
break;
case 'editfield':
/// Print the header
admin_externalpage_print_header();
-echo $OUPTUT->heading(get_string('profilefields', 'admin'));
+echo $OUTPUT->heading(get_string('profilefields', 'admin'));
/// Check that we have at least one category defined
if ($DB->count_records('user_info_category') == 0) {
}
}
- echo $OUPTUT->heading(format_string($category->name) .' '.profile_category_icons($category));
+ echo $OUTPUT->heading(format_string($category->name) .' '.profile_category_icons($category));
if (count($table->data)) {
print_table($table);
} else {
echo '</div>';
-admin_externalpage_print_footer();
+echo $OUTPUT->footer();
die;
print_header("$strpersonalprofile: ", "$strpersonalprofile: ", $navigation, "", "", true, " ", navmenu($course));
echo $OUTPUT->heading(get_string('usernotavailable', 'error'));
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
} else { // Normal course
$navlinks[] = array('name' => $struser, 'link' => null, 'type' => 'misc');
$navigation = build_navigation($navlinks);
print_header("$strpersonalprofile: ", "$strpersonalprofile: ", $navigation, "", "", true, " ", navmenu($course));
- echo $OUPTUT->heading(get_string('notenrolledprofile'));
+ echo $OUTPUT->heading(get_string('notenrolledprofile'));
}
print_continue($_SERVER['HTTP_REFERER']);
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
}
if (($course->id != SITEID) and ! isguest() ) { // Need to have access to a course to see that info
if (!has_capability('moodle/course:view', $coursecontext, $user->id)) {
- echo $OUPTUT->heading(get_string('notenrolled', '', $fullname));
- print_footer($course);
+ echo $OUTPUT->heading(get_string('notenrolled', '', $fullname));
+ echo $OUTPUT->footer();
die;
}
}
if ($user->deleted) {
- echo $OUPTUT->heading(get_string('userdeleted'));
+ echo $OUTPUT->heading(get_string('userdeleted'));
if (!has_capability('moodle/user:update', $coursecontext)) {
- print_footer($course);
+ echo $OUTPUT->footer();
die;
}
}
if ($CFG->debugdisplay && debugging('', DEBUG_DEVELOPER) && $USER->id == $user->id) { // Show user object
echo '<hr />';
- echo $OUPTUT->heading('DEBUG MODE: User session variables');
+ echo $OUTPUT->heading('DEBUG MODE: User session variables');
print_object($USER);
}
- print_footer($course);
+ echo $OUTPUT->footer();
/// Functions ///////