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