From 3c7331da30bbc904bd3f7dffa3ad59b42e6b89ad Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 18 Aug 2002 16:31:23 +0000 Subject: [PATCH] Make the Help link in the course look like a seamless part of the course. --- course/lib.php | 2 +- doc/teacher.html | 1 + doc/view.php | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 doc/view.php diff --git a/course/lib.php b/course/lib.php index 8da6a722bb..ab57aa1fdb 100644 --- a/course/lib.php +++ b/course/lib.php @@ -545,7 +545,7 @@ function print_course_admin_links($courseid) { $admindata[]="wwwroot/files/index.php?id=$courseid\">".get_string("files")."..."; $adminicon[]="wwwroot/files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">"; - $admindata[]="wwwroot/doc/teacher.html\">".get_string("help")."..."; + $admindata[]="wwwroot/doc/view.php?id=$courseid&file=teacher.html\">".get_string("help")."..."; $adminicon[]="wwwroot/mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">"; if ($teacherforum = forum_get_course_forum($courseid, "teacher")) { diff --git a/doc/teacher.html b/doc/teacher.html index 6e19c70f94..cd5f726c6c 100755 --- a/doc/teacher.html +++ b/doc/teacher.html @@ -170,6 +170,7 @@ They can be given to students early in the course as a diagnostic tool and at the end of the course as an evaluation tool (I use one every week in my courses). +

After adding your activities you can move them up and down in your course layout by clicking on the little arrow icons ( ) next to each one. You diff --git a/doc/view.php b/doc/view.php new file mode 100644 index 0000000000..522c187ce9 --- /dev/null +++ b/doc/view.php @@ -0,0 +1,30 @@ +id)) { + error("Only teachers can look at this page"); + } + + $file = clean_filename($file); + + if (file_exists($file)) { + $strhelp = get_string("help"); + print_header("$course->shortname: $strhelp", "$course->fullname", + "id\">$course->shortname -> $strhelp"); + echo "

"; + include($file); + echo "
"; + } + + print_footer($course); + +?> + -- 2.39.5