Changes to allow choice of format on home page of site
[moodle.git] / admin / site.html
1 <FORM METHOD="post" action="site.php" NAME="form">
2 <TABLE cellpadding=9 cellspacing=0 >
3 <tr valign=top>
4         <td><P>Full site name:</td>
5         <td><input type="text" name="fullname" size=50 value="<? p($form->fullname) ?>">
6         <? formerr($err["fullname"]) ?>
7         </td>
8 </tr>
9 <tr valign=top>
10         <td><P>Short name for site (eg single word):</td>
11         <td><input type="text" name="shortname" size=50 value="<? p($form->shortname) ?>">
12         <? formerr($err["shortname"]) ?>
13         </td>
14 </tr>
15 <tr valign=top>
16     <td><P>Front page description:</td>
17     <td><TEXTAREA NAME=summary COLS=50 ROWS=10 WRAP=virtual><? p($form->summary) ?></TEXTAREA>
18     <? formerr($err["summary"]) ?>
19     </td>
20 </tr>
21 <tr valign=top>
22         <td><P>Front page format:</td>
23         <td><? 
24            $options = array("0" => "Show list of courses",
25                             "1" => "1 news item",
26                             "2" => "2 news items",
27                             "3" => "3 news items",
28                             "4" => "4 news items",
29                             "5" => "5 news items",
30                             "6" => "6 news items",
31                             "7" => "7 news items",
32                             "8" => "8 news items",
33                             "9" => "9 news items",
34                             "10" => "10 news items");
35            choose_from_menu ($options, "format", "$form->format");
36            formerr($err["format"]);
37         ?>
38         </td>
39 </tr>
40 <tr>
41     <td></td>
42         <td><input type="submit" value="Update the site"></td>
43 </tr>
44 </TABLE>
45 <INPUT type="hidden" name="id" value="<?=$form->id ?>">
46 <INPUT type="hidden" name="category" value="<?=$form->category ?>">
47 </FORM>