MDL-19794 Converted all print_footer() calls

This commit is contained in:
nicolasconnault 2009-08-06 14:10:33 +00:00
parent 653468d4d6
commit d60c112435
28 changed files with 40 additions and 40 deletions

View File

@ -446,5 +446,5 @@
print_course_search();
print_footer();
echo $OUTPUT->footer();

View File

@ -46,7 +46,7 @@
"delete.php?id=$course->id&delete=".md5($course->timemodified)."&sesskey=".sesskey(),
"category.php?id=$course->category");
print_footer();
echo $OUTPUT->footer();
exit;
}
@ -81,6 +81,6 @@
print_continue("category.php?id=$course->category");
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -146,6 +146,6 @@
$editform->display();
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -112,5 +112,5 @@ echo $OUTPUT->heading($strtitle);
$mform->display();
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -54,6 +54,6 @@
print_heading_with_help($strsummaryof, 'summaries');
$mform->display();
print_footer($course);
echo $OUTPUT->footer();

View File

@ -45,5 +45,5 @@
echo '</div>';
}
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -68,5 +68,5 @@
print_header("$course->shortname: $strimportactivities", $course->fullname, $navigation);
require_once('mod.php');
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -197,7 +197,7 @@
/// Print the form
require('mod.php');
print_footer($course);
echo $OUTPUT->footer();
function my_file_get_contents($filename, $use_include_path = 0) {
/// Returns the file as one big long string

View File

@ -126,6 +126,6 @@
print_simple_box_end();
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -87,6 +87,6 @@
echo $OUTPUT->close_window_button();
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -270,12 +270,12 @@ function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limit
function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $perpage=100,
$url="", $modname="", $modid=0, $modaction="", $groupid=0) {
global $CFG, $DB;
global $CFG, $DB, $OUTPUT;
if (!$logs = build_logs_array($course, $user, $date, $order, $page*$perpage, $perpage,
$modname, $modid, $modaction, $groupid)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
exit;
}
@ -391,12 +391,12 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
function print_mnet_log($hostid, $course, $user=0, $date=0, $order="l.time ASC", $page=0, $perpage=100,
$url="", $modname="", $modid=0, $modaction="", $groupid=0) {
global $CFG, $DB;
global $CFG, $DB, $OUTPUT;
if (!$logs = build_mnet_logs_array($hostid, $course, $user, $date, $order, $page*$perpage, $perpage,
$modname, $modid, $modaction, $groupid)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
exit;
}

View File

@ -70,7 +70,7 @@
print_simple_box_start('center', '60%', '#FFAAAA', 20, 'noticebox');
notice_yesno($strdeletecheckfull, 'mod.php', $return, $optionsyes, $optionsno, 'post', 'get');
print_simple_box_end();
print_footer($course);
echo $OUTPUT->footer();
exit;
}

View File

@ -584,5 +584,5 @@
print_heading_with_help($pageheading, 'mods', $module->name, $icon);
$mform->display();
print_footer($course);
echo $OUTPUT->footer();
}

View File

@ -261,7 +261,7 @@
}
print_footer($course);
echo $OUTPUT->footer();
function compare_activities_by_time_desc($a, $b) {
// make sure the activities actually have a timestamp property

View File

@ -39,5 +39,5 @@
}
}
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -103,21 +103,21 @@
if (!print_log_csv($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
case 'downloadasods':
if (!print_log_ods($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
case 'downloadasexcel':
if (!print_log_xls($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
}
@ -139,7 +139,7 @@
print_log_selector_form($course, $user, $date, $modname, $modid, $modaction, $group, $showcourses, $showusers, $logformat);
}
print_footer($course);
echo $OUTPUT->footer();
exit;
?>

View File

@ -38,6 +38,6 @@
link_to_popup_window('/course/report/log/live.php?id='. $course->id,'livelog', get_string('livelogs'), 500, 800);
echo '<div>';
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -111,7 +111,7 @@
}
echo '</table>';
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -289,6 +289,6 @@
}
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -133,7 +133,7 @@ if(!$csv) {
if(count($progress->users)==0) {
print '<p class="nousers">'.get_string('err_nousers','completion').'</p>';
print '<p><a href="'.$reportsurl.'">'.get_string('continue').'</a></p>';
print_footer($course);
echo $OUTPUT->footer();
exit;
}
print $pagingbar;
@ -274,5 +274,5 @@ print '<ul class="progress-actions"><li><a href="index.php?course='.$course->id.
<li><a href="index.php?course='.$course->id.'&amp;format=excelcsv">'.
get_string('excelcsvdownload','completion').'</a></li></ul>';
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -70,6 +70,6 @@
}
}
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -94,6 +94,6 @@
print_header($strtitle, $strtitle, build_navigation($strtitle), $requestform->focus());
echo $OUTPUT->heading($strtitle);
$requestform->display();
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -68,7 +68,7 @@ if ($mform->is_cancelled()) {
print_table($table);
print_continue('view.php?id='.$course->id); // Back to course page
print_footer($course);
echo $OUTPUT->footer();
exit;
}
}
@ -79,6 +79,6 @@ echo $OUTPUT->heading($strresetcourse);
print_simple_box(get_string('resetinfo'), 'center', '60%');
$mform->display();
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -42,7 +42,7 @@
echo text_to_html($scale->description);
print_simple_box_end();
echo $OUTPUT->close_window_button();
print_footer('empty');
echo $OUTPUT->footer();
exit;
}
}
@ -95,6 +95,6 @@
}
echo $OUTPUT->close_window_button();
print_footer('empty');
echo $OUTPUT->footer();
?>

View File

@ -110,7 +110,7 @@
echo "</p>";
echo "</center>";
print_simple_box_end();
print_footer();
echo $OUTPUT->footer();
exit;
}
@ -360,7 +360,7 @@
print_course_search($search);
print_footer();
echo $OUTPUT->footer();
/**
* Print a list navigation bar

View File

@ -102,6 +102,6 @@
$_SERVER['HTTP_REFERER']);
}
print_footer($course);
echo $OUTPUT->footer();
?>

View File

@ -34,7 +34,7 @@
if ($user->deleted) {
print_header();
echo $OUTPUT->heading(get_string('userdeleted'));
print_footer();
echo $OUTPUT->footer();
die;
}
@ -330,7 +330,7 @@
}
print_footer($course);
echo $OUTPUT->footer();
function print_outline_row($mod, $instance, $result) {

View File

@ -255,6 +255,6 @@
}
print_footer();
echo $OUTPUT->footer();
?>