Noted that xml format can now handle images.
[moodle-linuxchix.git] / admin / site.html
blob72b6218eeca704ad7484b8c4320147b366bcf9af
1 <form method="post" action="site.php" name="form">
2 <table cellpadding="9" cellspacing="0" >
3 <tr valign="top">
4 <td align="right"><?php print_string("fullsitename") ?>:</td>
5 <td><input type="text" name="fullname" size="50" maxlength="254" value="<?php p($form->fullname) ?>" alt="<?php print_string("fullsitename") ?>" />
6 <?php if (isset($err["fullname"])) formerr($err["fullname"]); ?>
7 </td>
8 </tr>
9 <tr valign="top">
10 <td align="right"><?php print_string("shortsitename") ?>:</td>
11 <td><input type="text" name="shortname" size="15" maxlength="15" value="<?php p($form->shortname) ?>" alt="<?php print_string("shortsitename") ?>" />
12 <?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
13 </td>
14 </tr>
15 <tr valign="top">
16 <td align="right"><?php print_string("frontpagedescription") ?>:<br /><br />
17 <?PHP
18 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
19 echo "<br />";
20 if ($usehtmleditor) {
21 helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
22 } else {
23 helpbutton("html", get_string("helphtml"), "moodle", true, true);
25 echo "<br />";
27 </td>
28 <td><?php print_textarea($usehtmleditor, 20, 50, 600, 400, "summary", $form->summary); ?></td>
29 </tr>
30 <tr valign="top">
31 <td align="right"><?php print_string("frontpageformat") ?>:</td>
32 <td>
33 <table width="100%" cellpadding="0" cellspacing="0" border="0">
34 <tr>
35 <?php
36 $options = array(FRONTPAGENEWS => get_string("frontpagenews"),
37 FRONTPAGECOURSELIST => get_string("frontpagecourselist"),
38 FRONTPAGECATEGORYNAMES => get_string("frontpagecategorynames"),
40 $values = array(get_string('hide'), get_string('order1', 'admin'), get_string('order2', 'admin'));
41 $seq = array_flip(explode(',',$form->frontpage));
42 foreach ($seq as $k => $s) {
43 $seq[$k]++;
45 if (count_records("course") > 200) {
46 unset($options[FRONTPAGECOURSELIST]);
47 if (isset($seq[FRONTPAGECOURSELIST])) {
48 $form->frontpage = 2;
50 } else {
51 $values[] = get_string('order3', 'admin');
53 foreach ($options as $key => $option) {
54 echo "<td>$option<br />";
55 choose_from_menu ($values, "frontpage[$key]", isset($seq[$key])?$seq[$key]:0, "");
56 echo '</td>';
59 </tr>
60 </table>
61 </td>
62 </tr>
63 <tr valign="top">
64 <td align="right"><?php print_string("sitesection") ?>:</td>
65 <td><?php
66 unset($choices);
67 $choices["0"] = get_string("no");
68 $choices["1"] = get_string("yes");
69 choose_from_menu ($choices, "numsections", $form->numsections, "");
71 </td>
72 </tr>
73 <tr valign="top">
74 <td align="right"><?php print_string("newsitemsnumber") ?>:</td>
75 <td><?php
76 $newsitem = get_string("newsitem");
77 $newsitems = get_string("newsitems");
78 $options = array("0" => "0 $newsitems",
79 "1" => "1 $newsitem",
80 "2" => "2 $newsitems",
81 "3" => "3 $newsitems",
82 "4" => "4 $newsitems",
83 "5" => "5 $newsitems",
84 "6" => "6 $newsitems",
85 "7" => "7 $newsitems",
86 "8" => "8 $newsitems",
87 "9" => "9 $newsitems",
88 "10" => "10 $newsitems");
89 choose_from_menu ($options, "newsitems", "$form->newsitems", "");
91 </td>
92 </tr>
93 <tr valign="top">
94 <td align="right"><?php print_string("wordforteacher") ?>:</td>
95 <td><input type="text" name="teacher" maxlength="100" size="25" value="<?php p($form->teacher) ?>" alt="<?php print_string("wordforteacher") ?>" />
96 (<?php print_string("wordforteachereg") ?>)
97 <?php if (isset($err["teacher"])) formerr($err["teacher"]); ?>
98 </td>
99 </tr>
100 <tr valign="top">
101 <td align="right"><?php print_string("wordforteachers") ?>:</td>
102 <td><input type="text" name="teachers" maxlength="100" size="25" value="<?php p($form->teachers) ?>" alt="<?php print_string("wordforteachers") ?>" />
103 (<?php print_string("wordforteacherseg") ?>)
104 <?php if (isset($err["teachers"])) formerr($err["teachers"]); ?>
105 </td>
106 </tr>
107 <tr valign="top">
108 <td align="right"><?php print_string("wordforstudent") ?>:</td>
109 <td><input type="text" name="student" maxlength="100" size="25" value="<?php p($form->student) ?>" alt="<?php print_string("wordforstudent") ?>" />
110 (<?php print_string("wordforstudenteg") ?>)
111 <?php if (isset($err["student"])) formerr($err["student"]); ?>
112 </td>
113 </tr>
114 <tr valign="top">
115 <td align="right"><?php print_string("wordforstudents") ?>:</td>
116 <td><input type="text" name="students" maxlength="100" size="25" value="<?php p($form->students) ?>" alt="<?php print_string("wordforstudents") ?>" />
117 (<?php print_string("wordforstudentseg") ?>)
118 <?php if (isset($err["students"])) formerr($err["students"]); ?>
119 </td>
120 </tr>
121 <tr>
122 <td></td>
123 <td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
124 </tr>
125 </table>
126 <input type="hidden" name="id" value="<?php p($form->id) ?>" />
127 <input type="hidden" name="category" value="<?php p($form->category) ?>" />
128 <input type="hidden" name="format" value="<?php p($form->format) ?>" />
129 <input type="hidden" name="sesskey" value="<?php p($sesskey) ?>" />
130 </form>