1 <form method=
"post" action=
"site.php" name=
"form" <?php echo $onsubmit ?>>
2 <table cellpadding=
9 cellspacing=
0 >
4 <td align=right
><P><?php print_string("fullsitename") ?>:
</td>
5 <td><input type=
"text" name=
"fullname" size=
50 value=
"<?php p($form->fullname) ?>">
6 <?php
if (isset($err["fullname"])) formerr($err["fullname"]); ?>
10 <td align=right
><P><?php print_string("shortsitename") ?>:
</td>
11 <td><input type=
"text" name=
"shortname" size=
50 value=
"<?php p($form->shortname) ?>">
12 <?php
if (isset($err["shortname"])) formerr($err["shortname"]); ?>
16 <td align=right
><P><?php print_string("frontpagedescription") ?>:
</P><br />
19 helpbutton(
"writing", get_string(
"helpwriting"),
"moodle", true, true);
22 helpbutton(
"richtext", get_string(
"helprichtext"),
"moodle", true, true);
24 helpbutton(
"html", get_string(
"helphtml"),
"moodle", true, true);
30 <td><?php print_textarea($usehtmleditor, 10, 50, 600, 400, "summary", $form->summary
); ?></td>
33 <td align=right
><P><?php print_string("frontpageformat") ?>:
</td>
35 $options = array("0" => get_string("frontpagenews"),
36 "1" => get_string("frontpagecourselist"),
37 "2" => get_string("frontpagecategorynames"));
38 if (count_records("course") > 200) {
40 if ($form->frontpage
== 1) {
44 choose_from_menu ($options, "frontpage", "$form->frontpage", "");
49 <td align=right
><p><?php print_string("newsitemsnumber") ?>:
</td>
51 $newsitem = get_string("newsitem");
52 $newsitems = get_string("newsitems");
53 $options = array("0" => "0 $newsitems",
55 "2" => "2 $newsitems",
56 "3" => "3 $newsitems",
57 "4" => "4 $newsitems",
58 "5" => "5 $newsitems",
59 "6" => "6 $newsitems",
60 "7" => "7 $newsitems",
61 "8" => "8 $newsitems",
62 "9" => "9 $newsitems",
63 "10" => "10 $newsitems");
64 choose_from_menu ($options, "newsitems", "$form->newsitems", "");
69 <td align=right
><p><?php print_string("wordforteacher") ?>:
</td>
70 <td><input type=
"text" name=
"teacher" maxlength=
"100" size=
25 value=
"<?php p($form->teacher) ?>">
71 (<?php
print_string("wordforteachereg") ?>)
72 <?php if (isset($err["teacher"])) formerr($err["teacher"]); ?>
76 <td align=right
><p><?php print_string("wordforteachers") ?>:
</td>
77 <td><input type=
"text" name=
"teachers" maxlength=
"100" size=
25 value=
"<?php p($form->teachers) ?>">
78 (<?php
print_string("wordforteacherseg") ?>)
79 <?php if (isset($err["teachers"])) formerr($err["teachers"]); ?>
83 <td align=right
><p><?php print_string("wordforstudent") ?>:
</td>
84 <td><input type=
"text" name=
"student" maxlength=
"100" size=
25 value=
"<?php p($form->student) ?>">
85 (<?php
print_string("wordforstudenteg") ?>)
86 <?php if (isset($err["student"])) formerr($err["student"]); ?>
90 <td align=right
><p><?php print_string("wordforstudents") ?>:
</td>
91 <td><input type=
"text" name=
"students" maxlength=
"100" size=
25 value=
"<?php p($form->students) ?>">
92 (<?php
print_string("wordforstudentseg") ?>)
93 <?php if (isset($err["students"])) formerr($err["students"]); ?>
98 <td><input type=
"submit" value=
"<?php print_string("savechanges
") ?>"></td
>
101 <input type
="hidden" name
="id" value
="<?php p($form->id) ?>">
102 <input type
="hidden" name
="category" value
="<?php p($form->category) ?>">
103 <input type
="hidden" name
="format" value
="<?php p($form->format) ?>">
107 if ($usehtmleditor) {
108 print_richedit_javascript("form", "summary", "no");