} else {
glossary_comment_print_header($course, $cm, $glossary, $entry, 'add');
$mform->display();
- print_footer($course);
+ echo $OUTPUT->footer();
die;
}
}
* Deleting existing comments
*/
function glossary_comment_delete() {
- global $USER, $DB;
+ global $USER, $DB, $OUTPUT;
$id = optional_param('id', 0, PARAM_INT); // Comment ID
$confirm = optional_param('confirm', 0, PARAM_BOOL); // delete confirmation
glossary_comment_print_header($course, $cm, $glossary, $entry, 'delete');
glossary_print_comment($course, $cm, $glossary, $entry, $comment);
notice_yesno($strdeletewarning, $linkyes, $linkno, $optionsyes, $optionsno, 'post', 'get');
- print_footer($course);
+ echo $OUTPUT->footer();
die;
}
}
* Edit existing comments
*/
function glossary_comment_edit() {
- global $CFG, $USER, $DB;
+ global $CFG, $USER, $DB, $OUTPUT;
$id = optional_param('id', 0, PARAM_INT); // Comment ID
} else {
glossary_comment_print_header($course, $cm, $glossary, $entry, 'edit');
$mform->display();
- print_footer($course);
+ echo $OUTPUT->footer();
die;
}
}
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
?>
notice_yesno($areyousure, $linkyes, $linkno, $optionsyes, $optionsno, 'post', 'get');
- print_footer($course);
+ echo $OUTPUT->footer();
}
?>
$mform->display();
-print_footer($course);
+echo $OUTPUT->footer();
$name = $category->name;
$usedynalink = $category->usedynalink;
require "editcategories.html";
- print_footer();
+ echo $OUTPUT->footer();
die;
}
echo "<div style=\"text-align:center\">" . get_string("categorydeleted","glossary") ."</div>";
echo "</center>";
print_simple_box_end();
- print_footer($course);
+ echo $OUTPUT->footer();
add_to_log($course->id, "glossary", "delete category", "editcategories.php?id=$cm->id", $hook,$cm->id);
}
if ( $action ) {
- print_footer();
+ echo $OUTPUT->footer();
die;
}
</form>
-<?php print_footer() ?>
+<?php
+echo $OUTPUT->footer();
$button->render();
}
print_box_end();
- print_footer($course);
+ echo $OUTPUT->footer();
?>
nootify(get_string('errconceptalreadyexists', 'glossary'));
print_continue($returnurl);
print_simple_box_end();
- print_footer();
+ echo $OUTPUT->footer();
die;
}
}
notice_yesno($areyousure, $linkyes, $linkno, $optionsyes, $optionsno, 'post', 'get');
echo '</div>';
- print_footer();
+ echo $OUTPUT->footer();
die;
} else {
echo '</table></form>';
- print_footer();
+ echo $OUTPUT->footer();
?>
include("import.html");
print_box_end();
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
print_continue('import.php?id='.$id);
print_box_end();
- print_footer();
+ echo $OUTPUT->footer();
die();
}
notify("Error while trying to create the new glossary.");
echo '</center>';
glossary_print_tabbed_table_end();
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
} else {
//The instance has been created, so lets do course_modules
}
} else {
notify("Error while trying to create the new glossary.");
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
}
}
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
?>
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
?>
}
}
- print_footer('empty');
+ echo $OUTPUT->footer();
?>
}
echo $OUTPUT->close_window_button();
- print_footer('none');
+ echo $OUTPUT->footer();
?>
echo $OUTPUT->close_window_button();
/// Show one reduced footer
- print_footer('none');
+ echo $OUTPUT->footer();
?>
glossary_print_tabbed_table_end();
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
/// Mark as viewed
$completion=new completion_info($course);