Added documentation to the teachers page.
This commit is contained in:
+12
-5
@@ -47,7 +47,7 @@
|
||||
|
||||
/// Otherwise fill and print the form.
|
||||
|
||||
print_header($streditcoursesettings, "$course->fullname",
|
||||
print_header("$course->shortname: $course->teachers", "$course->fullname",
|
||||
"<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A>
|
||||
-> $course->teachers");
|
||||
|
||||
@@ -59,18 +59,25 @@
|
||||
|
||||
echo "<FORM ACTION=teachers.php METHOD=post>";
|
||||
foreach ($teachers as $teacher) {
|
||||
$table->head = array (get_string("name"), get_string("order"), get_string("role"));
|
||||
$table->align = array ("LEFT", "CENTER", "CENTER");
|
||||
$table->head = array ("", get_string("name"), get_string("order"), get_string("role"));
|
||||
$table->align = array ("RIGHT", "LEFT", "CENTER", "CENTER");
|
||||
$table->size = array ("35", "", "", "");
|
||||
|
||||
$picture = print_user_picture($teacher->id, $course->id, $teacher->picture, false, true);
|
||||
|
||||
$table->data[] = array ("$picture $teacher->firstname $teacher->lastname",
|
||||
if (!$teacher->role) {
|
||||
$teacher->role = $course->teacher;
|
||||
}
|
||||
|
||||
$table->data[] = array ($picture, "$teacher->firstname $teacher->lastname",
|
||||
"<INPUT TYPE=text NAME=\"a$teacher->id\" VALUE=\"$teacher->authority\" SIZE=2>",
|
||||
"<INPUT TYPE=text NAME=\"r$teacher->id\" VALUE=\"$teacher->role\" SIZE=30>");
|
||||
}
|
||||
print_table($table);
|
||||
echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\">";
|
||||
echo "<CENTER><BR><INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\"></CENTER>";
|
||||
echo "<CENTER><BR><INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\"> ";
|
||||
helpbutton("teachers", $course->teachers);
|
||||
echo "</CENTER>";
|
||||
echo "</FORM>";
|
||||
|
||||
print_footer($course);
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<P ALIGN=CENTER><B>Teachers</B></P>
|
||||
|
||||
<P>This page shows the list of people who are assigned to be
|
||||
"teachers" in this course (by the system administrator).
|
||||
|
||||
<P>You can use this form to assign a role (title) to each person
|
||||
such as "Professor", "Tutor", "Assistant" and so on. These
|
||||
will appear on the site's course listing and also on the
|
||||
list of participants for your course. If you leave the
|
||||
role empty then the default word for teacher will be used
|
||||
(the one you set in the Course Settings page).
|
||||
|
||||
<P>You can also order this list (to put the main teacher at the
|
||||
top, for example). Simply put a numbers in each box such
|
||||
as 1, 2, 3 etc. After pressing "Save changes" you will
|
||||
see the new order.
|
||||
|
||||
<P><B>NOTE:</B> A special case occurs if you use the number
|
||||
0 (zero) for a teacher. In this case, the teacher will
|
||||
NOT BE SHOWN on the course listings or the list of
|
||||
participants. They will be "invisible" to students
|
||||
(unless they post messages to the forums etc)
|
||||
Reference in New Issue
Block a user