new function print_heading_with_help() to print a heading with a helpbutton

This commit is contained in:
moodler
2002-10-22 09:54:36 +00:00
parent f31edeeb88
commit 377f3c9ee4
+7
View File
@@ -119,6 +119,13 @@ function print_heading($text, $align="CENTER", $size=3) {
echo "<P ALIGN=\"$align\"><FONT SIZE=\"$size\"><B>".stripslashes($text)."</B></FONT></P>";
}
function print_heading_with_help($text, $helppage, $module="moodle") {
// Centered heading with attached help button (same title text)
echo "<P ALIGN=\"CENTER\"><FONT SIZE=\"3\"><B>".stripslashes($text);
helpbutton($helppage, $text, $module);
echo "</B></FONT></P>";
}
function print_continue($link) {
global $HTTP_REFERER;