1 <form method=
"post" action=
"site.php" name=
"form">
2 <table cellpadding=
"9" cellspacing=
"0" >
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"]); ?>
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"]); ?>
16 <td align=
"right"><?php print_string("frontpagedescription") ?>:
<br /><br />
18 helpbutton(
"writing", get_string(
"helpwriting"),
"moodle", true, true);
21 helpbutton(
"richtext", get_string(
"helprichtext"),
"moodle", true, true);
23 helpbutton(
"html", get_string(
"helphtml"),
"moodle", true, true);
28 <td><?php print_textarea($usehtmleditor, 20, 50, 600, 400, "summary", $form->summary
); ?></td>
31 <td align=
"right"><?php print_string("frontpageformat") ?>:
</td>
33 <table width=
"100%" cellpadding=
"0" cellspacing=
"0" border=
"0">
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) {
45 if (count_records("course") > 200) {
46 unset($options[FRONTPAGECOURSELIST
]);
47 if (isset($seq[FRONTPAGECOURSELIST
])) {
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, "");
64 <td align=
"right"><?php print_string("sitesection") ?>:
</td>
67 $choices["0"] = get_string("no");
68 $choices["1"] = get_string("yes");
69 choose_from_menu ($choices, "numsections", $form->numsections
, "");
74 <td align=
"right"><?php print_string("newsitemsnumber") ?>:
</td>
76 $newsitem = get_string("newsitem");
77 $newsitems = get_string("newsitems");
78 $options = array("0" => "0 $newsitems",
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", "");
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"]); ?>
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"]); ?>
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"]); ?>
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"]); ?>
123 <td><input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>
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) ?>" />