$admindata[]="<A HREF=\"$CFG->wwwroot/files/index.php?id=$courseid\">".get_string("files")."...</A>";
$adminicon[]="<IMG SRC=\"$CFG->wwwroot/files/pix/files.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
- $admindata[]="<A TARGET=helpwindow HREF=\"$CFG->wwwroot/doc/teacher.html\">".get_string("help")."...</A>";
+ $admindata[]="<A HREF=\"$CFG->wwwroot/doc/view.php?id=$courseid&file=teacher.html\">".get_string("help")."...</A>";
$adminicon[]="<IMG SRC=\"$CFG->wwwroot/mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"\">";
if ($teacherforum = forum_get_course_forum($courseid, "teacher")) {
They can be given to students early in the course as a diagnostic tool and at the end of the \r
course as an evaluation tool (I use one every week in my courses).</dd>\r
</dl>\r
+ <BR>\r
<p>After adding your activities you can move them up and down in your course \r
layout by clicking on the little arrow icons (<img src="../pix/t/up.gif" width="9" height="10"> \r
<img src="../pix/t/down.gif" width="9" height="10">) next to each one. You \r
--- /dev/null
+<?PHP // $Id$
+
+ require("../config.php");
+
+ require_variable($id); // course context
+ require_variable($file); // file in this directory to view
+
+ if (! $course = get_record("course", "id", $id)) {
+ error("Course is misconfigured");
+ }
+
+ if (!isteacher($course->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",
+ "<A HREF=\"../course/view.php?id=$course->id\">$course->shortname</A> -> $strhelp");
+ echo "<BLOCKQUOTE>";
+ include($file);
+ echo "</BLOCKQUOTE>";
+ }
+
+ print_footer($course);
+
+?>
+