moodle/course/edit.html
martin b5fe4c935d Major changes throughout to change "week" notation to "section" notation.
Sections covers "weeks", "topics" and anything else that may come along.
Note, again, some databases have changed esp course_weeks -> course_sections
and several fields called "week" are now "section.  Also course no longer
has an enddate, but instead has a numsections field.
2002-06-25 11:49:06 +00:00

108 lines
3.2 KiB
HTML

<FORM METHOD="post" action="edit.php" NAME="form">
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td><P>Full name:</td>
<td><input type="text" name="fullname" size=50 value="<? p($form->fullname) ?>">
<? formerr($err["fullname"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Short name:</td>
<td><input type="text" name="shortname" size=10 value="<? p($form->shortname) ?>">
<? formerr($err["shortname"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Summary:</td>
<td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
<? formerr($err["summary"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Enrolment Key:</td>
<td><input type="text" name="password" size=25 value="<? p($form->password) ?>">
<? formerr($err["password"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Open to guests?:</td>
<td><?
$choices["0"] = "No, only students are allowed";
$choices["1"] = "Yes, allow \"guest\" student in";
choose_from_menu ($choices, "guest", $form->guest, "") ?>
</td>
</tr>
<tr valign=top>
<td><P>Category:</td>
<td><?
choose_from_menu ($form->categories, "category", "$form->category");
formerr($err["category"]);
?>
</td>
</tr>
<tr valign=top>
<td><P>Format:</td>
<td><?
choose_from_menu ($FORMATS, "format", "$form->format");
formerr($err["format"]);
?>
</td>
</tr>
<tr valign=top>
<td><P>News items to show:</td>
<td><?
$options = array("0" => "0 news items",
"1" => "1 news item",
"2" => "2 news items",
"3" => "3 news items",
"4" => "4 news items",
"5" => "5 news items",
"6" => "6 news items",
"7" => "7 news items",
"8" => "8 news items",
"9" => "9 news items",
"10" => "10 news items");
choose_from_menu ($options, "newsitems", "$form->newsitems");
formerr($err["newsitems"]);
?>
</td>
</tr>
<tr valign=top>
<td><P>Word for teacher:</td>
<td><input type="text" name="teacher" size=25 value="<? p($form->teacher) ?>">
(eg Teacher, Tutor, Facilitator etc) <? formerr($err["teacher"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Word for student:</td>
<td><input type="text" name="student" size=25 value="<? p($form->student) ?>">
(eg Student, Participant etc) <? formerr($err["student"]) ?>
</td>
</tr>
<tr valign=top>
<td><P>Start date:</td>
<td><?
choose_from_menu ($form->days, "startday", "$form->startday");
choose_from_menu ($form->months, "startmonth", "$form->startmonth");
choose_from_menu ($form->years, "startyear", "$form->startyear");
formerr($err["startdate"]);
?></td>
</tr>
<tr valign=top>
<td><P>Number of weeks/topics:</td>
<td><?
for ($i=1; $i<=20; $i++) {
$sectionmenu[$i] = "$i";
}
choose_from_menu ($sectionmenu, "numsections", "$form->numsections");
formerr($err["numsections"]);
?></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Update this course"></td>
</TABLE>
<INPUT type="hidden" name="id" value="<?=$course->id ?>">
</FORM>