2001-11-22 06:23:56 +00:00
|
|
|
<FORM METHOD="post" action="edit.php" NAME="form">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
2003-08-07 16:01:31 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("category") ?>:</td>
|
|
|
|
<td><?
|
|
|
|
$displaylist = array();
|
|
|
|
$parentlist = array();
|
|
|
|
make_categories_list($displaylist, $parentlist);
|
|
|
|
choose_from_menu($displaylist, "category", "$form->category", "");
|
|
|
|
helpbutton("coursecategory", get_string("category"));
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("fullname") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="fullname" maxlength="254" size=50 value="<? p($form->fullname) ?>">
|
2002-08-17 14:44:45 +00:00
|
|
|
<? helpbutton("coursefullname", get_string("fullname")) ?>
|
2002-12-30 06:07:03 +00:00
|
|
|
<? if (isset($err["fullname"])) formerr($err["fullname"]); ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("shortname") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="shortname" maxlength="15" size="10" value="<? p($form->shortname) ?>">
|
2002-08-17 14:44:45 +00:00
|
|
|
<? helpbutton("courseshortname", get_string("shortname")) ?>
|
2002-12-30 06:07:03 +00:00
|
|
|
<? if (isset($err["shortname"])) formerr($err["shortname"]); ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("summary") ?>:</td>
|
2002-06-09 14:14:07 +00:00
|
|
|
<td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
|
2002-08-17 14:44:45 +00:00
|
|
|
<? helpbutton("text", get_string("helptext")) ?>
|
2002-12-30 06:07:03 +00:00
|
|
|
<? if (isset($err["summary"])) formerr($err["summary"]); ?>
|
2002-06-09 14:14:07 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2003-07-21 07:31:01 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("availability") ?>:</td>
|
|
|
|
<td><?
|
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("courseavailablenot");
|
|
|
|
$choices["1"] = get_string("courseavailable");
|
|
|
|
choose_from_menu ($choices, "visible", $form->visible, "");
|
|
|
|
helpbutton("courseavailability", get_string("availability")); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-06-09 14:14:07 +00:00
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("enrolmentkey") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td><input type="text" name="password" size=25 value="<? p($form->password) ?>">
|
2002-08-17 14:44:45 +00:00
|
|
|
<? helpbutton("enrolmentkey", get_string("enrolmentkey")) ?>
|
2002-12-30 06:07:03 +00:00
|
|
|
<? if (isset($err["password"])) formerr($err["password"]); ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("opentoguests") ?>:</td>
|
2002-06-09 14:14:07 +00:00
|
|
|
<td><?
|
2003-07-21 07:31:01 +00:00
|
|
|
unset($choices);
|
2002-07-19 12:01:35 +00:00
|
|
|
$choices["0"] = get_string("guestsno");
|
|
|
|
$choices["1"] = get_string("guestsyes");
|
2002-08-21 12:54:27 +00:00
|
|
|
$choices["2"] = get_string("guestskey");
|
2002-08-17 14:44:45 +00:00
|
|
|
choose_from_menu ($choices, "guest", $form->guest, "");
|
|
|
|
helpbutton("guestaccess", get_string("opentoguests")); ?>
|
2001-11-22 06:23:56 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("format") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td><?
|
2002-08-11 15:41:54 +00:00
|
|
|
choose_from_menu ($form->courseformats, "format", "$form->format", "");
|
|
|
|
helpbutton("courseformats", get_string("courseformats"));
|
2001-11-22 06:23:56 +00:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-06-25 11:49:06 +00:00
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("newsitemsnumber") ?>:</td>
|
2002-06-25 11:49:06 +00:00
|
|
|
<td><?
|
2002-07-19 12:01:35 +00:00
|
|
|
$newsitem = get_string("newsitem");
|
|
|
|
$newsitems = get_string("newsitems");
|
|
|
|
|
|
|
|
$options = array("0" => "0 $newsitems",
|
|
|
|
"1" => "1 $newsitem",
|
|
|
|
"2" => "2 $newsitems",
|
|
|
|
"3" => "3 $newsitems",
|
|
|
|
"4" => "4 $newsitems",
|
|
|
|
"5" => "5 $newsitems",
|
|
|
|
"6" => "6 $newsitems",
|
|
|
|
"7" => "7 $newsitems",
|
|
|
|
"8" => "8 $newsitems",
|
|
|
|
"9" => "9 $newsitems",
|
|
|
|
"10" => "10 $newsitems");
|
2002-08-11 15:41:54 +00:00
|
|
|
choose_from_menu ($options, "newsitems", "$form->newsitems", "");
|
2002-08-17 14:44:45 +00:00
|
|
|
helpbutton("coursenewsitems", get_string("newsitemsnumber"));
|
2002-06-25 11:49:06 +00:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("startdate") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td><?
|
2002-07-29 15:10:21 +00:00
|
|
|
print_date_selector("startday", "startmonth", "startyear", $form->startdate);
|
2002-08-17 14:44:45 +00:00
|
|
|
helpbutton("coursestartdate", get_string("startdate"));
|
2001-11-22 06:23:56 +00:00
|
|
|
?></td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-07-19 12:01:35 +00:00
|
|
|
<td><P><? print_string("numberweeks") ?>:</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
<td><?
|
2002-09-09 11:31:48 +00:00
|
|
|
for ($i=1; $i<=52; $i++) {
|
2002-06-25 11:49:06 +00:00
|
|
|
$sectionmenu[$i] = "$i";
|
|
|
|
}
|
2002-12-30 06:07:03 +00:00
|
|
|
choose_from_menu ($sectionmenu, "numsections", "$form->numsections", "");
|
2002-08-17 14:44:45 +00:00
|
|
|
helpbutton("coursenumsections", get_string("numberweeks"));
|
2001-11-22 06:23:56 +00:00
|
|
|
?></td>
|
|
|
|
</tr>
|
2002-11-12 04:26:16 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("showrecent") ?>:</td>
|
|
|
|
<td><?
|
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("no");
|
|
|
|
$choices["1"] = get_string("yes");
|
|
|
|
choose_from_menu ($choices, "showrecent", $form->showrecent, "");
|
|
|
|
helpbutton("courserecent", get_string("showrecent")); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-08-11 15:41:54 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("wordforteacher") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="teacher" maxlength="100" size=25 value="<? p($form->teacher) ?>">
|
2002-12-30 06:07:03 +00:00
|
|
|
(<? print_string("wordforteachereg") ?>)
|
|
|
|
<? if (isset($err["teacher"])) formerr($err["teacher"]); ?>
|
2002-08-11 15:41:54 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-09-08 03:24:38 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("wordforteachers") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="teachers" maxlength="100" size=25 value="<? p($form->teachers) ?>">
|
2002-12-30 06:07:03 +00:00
|
|
|
(<? print_string("wordforteacherseg") ?>)
|
|
|
|
<? if (isset($err["teachers"])) formerr($err["teachers"]); ?>
|
2002-09-08 03:24:38 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-08-11 15:41:54 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("wordforstudent") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="student" maxlength="100" size=25 value="<? p($form->student) ?>">
|
2002-12-30 06:07:03 +00:00
|
|
|
(<? print_string("wordforstudenteg") ?>)
|
|
|
|
<? if (isset($err["student"])) formerr($err["student"]); ?>
|
2002-08-11 15:41:54 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2002-09-08 03:24:38 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><P><? print_string("wordforstudents") ?>:</td>
|
2003-04-11 12:05:21 +00:00
|
|
|
<td><input type="text" name="students" maxlength="100" size=25 value="<? p($form->students) ?>">
|
2002-12-30 06:07:03 +00:00
|
|
|
(<? print_string("wordforstudentseg") ?>)
|
|
|
|
<? if (isset($err["students"])) formerr($err["students"]); ?>
|
2002-09-08 03:24:38 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2002-08-17 14:44:45 +00:00
|
|
|
<td><input type="submit" value="<? print_string("savechanges") ?>"></td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</TABLE>
|
2003-04-17 13:20:26 +00:00
|
|
|
<INPUT type="hidden" name="id" value="<?=$form->id ?>">
|
2001-11-22 06:23:56 +00:00
|
|
|
</FORM>
|