Added more popup help for course settings page
[moodle.git] / course / edit.html
CommitLineData
f9903ed0 1<FORM METHOD="post" action="edit.php" NAME="form">
2<table cellpadding=9 cellspacing=0 >
3<tr valign=top>
af978a6d 4 <td><P><? print_string("fullname") ?>:</td>
f9903ed0 5 <td><input type="text" name="fullname" size=50 value="<? p($form->fullname) ?>">
cbfd6d19 6 <? helpbutton("coursefullname", get_string("fullname")) ?>
f9903ed0 7 <? formerr($err["fullname"]) ?>
8 </td>
9</tr>
10<tr valign=top>
af978a6d 11 <td><P><? print_string("shortname") ?>:</td>
f9903ed0 12 <td><input type="text" name="shortname" size=10 value="<? p($form->shortname) ?>">
cbfd6d19 13 <? helpbutton("courseshortname", get_string("shortname")) ?>
f9903ed0 14 <? formerr($err["shortname"]) ?>
15 </td>
16</tr>
17<tr valign=top>
af978a6d 18 <td><P><? print_string("summary") ?>:</td>
da5c172a 19 <td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
cbfd6d19 20 <? helpbutton("text", get_string("helptext")) ?>
da5c172a 21 <? formerr($err["summary"]) ?>
22 </td>
23</tr>
24<tr valign=top>
af978a6d 25 <td><P><? print_string("enrolmentkey") ?>:</td>
f9903ed0 26 <td><input type="text" name="password" size=25 value="<? p($form->password) ?>">
cbfd6d19 27 <? helpbutton("enrolmentkey", get_string("enrolmentkey")) ?>
f9903ed0 28 <? formerr($err["password"]) ?>
29 </td>
30</tr>
31<tr valign=top>
af978a6d 32 <td><P><? print_string("opentoguests") ?>:</td>
da5c172a 33 <td><?
af978a6d 34 $choices["0"] = get_string("guestsno");
35 $choices["1"] = get_string("guestsyes");
cbfd6d19 36 choose_from_menu ($choices, "guest", $form->guest, "");
37 helpbutton("guestaccess", get_string("opentoguests")); ?>
f9903ed0 38 </td>
39</tr>
40<tr valign=top>
af978a6d 41 <td><P><? print_string("category") ?>:</td>
f9903ed0 42 <td><?
97c270e9 43 choose_from_menu ($form->categories, "category", "$form->category", "");
cbfd6d19 44 helpbutton("coursecategory", get_string("category"));
f9903ed0 45 formerr($err["category"]);
46 ?>
47 </td>
48</tr>
49<tr valign=top>
af978a6d 50 <td><P><? print_string("format") ?>:</td>
f9903ed0 51 <td><?
97c270e9 52 choose_from_menu ($form->courseformats, "format", "$form->format", "");
53 helpbutton("courseformats", get_string("courseformats"));
f9903ed0 54 formerr($err["format"]);
55 ?>
56 </td>
57</tr>
b5fe4c93 58<tr valign=top>
af978a6d 59 <td><P><? print_string("newsitemsnumber") ?>:</td>
b5fe4c93 60 <td><?
af978a6d 61 $newsitem = get_string("newsitem");
62 $newsitems = get_string("newsitems");
63
64 $options = array("0" => "0 $newsitems",
65 "1" => "1 $newsitem",
66 "2" => "2 $newsitems",
67 "3" => "3 $newsitems",
68 "4" => "4 $newsitems",
69 "5" => "5 $newsitems",
70 "6" => "6 $newsitems",
71 "7" => "7 $newsitems",
72 "8" => "8 $newsitems",
73 "9" => "9 $newsitems",
74 "10" => "10 $newsitems");
97c270e9 75 choose_from_menu ($options, "newsitems", "$form->newsitems", "");
cbfd6d19 76 helpbutton("coursenewsitems", get_string("newsitemsnumber"));
b5fe4c93 77 formerr($err["newsitems"]);
78 ?>
79 </td>
80</tr>
f9903ed0 81<tr valign=top>
af978a6d 82 <td><P><? print_string("startdate") ?>:</td>
f9903ed0 83 <td><?
9690be38 84 print_date_selector("startday", "startmonth", "startyear", $form->startdate);
cbfd6d19 85 helpbutton("coursestartdate", get_string("startdate"));
f9903ed0 86 formerr($err["startdate"]);
87 ?></td>
88</tr>
89<tr valign=top>
af978a6d 90 <td><P><? print_string("numberweeks") ?>:</td>
f9903ed0 91 <td><?
b5fe4c93 92 for ($i=1; $i<=20; $i++) {
93 $sectionmenu[$i] = "$i";
94 }
95 choose_from_menu ($sectionmenu, "numsections", "$form->numsections");
cbfd6d19 96 helpbutton("coursenumsections", get_string("numberweeks"));
b5fe4c93 97 formerr($err["numsections"]);
f9903ed0 98 ?></td>
99</tr>
97c270e9 100<tr valign=top>
101 <td><P><? print_string("wordforteacher") ?>:</td>
102 <td><input type="text" name="teacher" size=25 value="<? p($form->teacher) ?>">
103 (<? print_string("wordforteachereg") ?>) <? formerr($err["teacher"]) ?>
104 </td>
105</tr>
106<tr valign=top>
107 <td><P><? print_string("wordforstudent") ?>:</td>
108 <td><input type="text" name="student" size=25 value="<? p($form->student) ?>">
109 (<? print_string("wordforstudenteg") ?>) <? formerr($err["student"]) ?>
110 </td>
111</tr>
f9903ed0 112<tr>
113 <td></td>
cbfd6d19 114 <td><input type="submit" value="<? print_string("savechanges") ?>"></td>
f9903ed0 115</TABLE>
116<INPUT type="hidden" name="id" value="<?=$course->id ?>">
117</FORM>