2004-10-04 13:50:37 +00:00
|
|
|
<form method="post" action="site.php" name="form">
|
2004-09-12 00:21:21 +00:00
|
|
|
<table cellpadding="9" cellspacing="0" >
|
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("fullsitename") ?>:</td>
|
|
|
|
<td><input type="text" name="fullname" size="50" maxlength="254" value="<?php p($form->fullname) ?>" alt="<?php print_string("fullsitename") ?>" />
|
2003-05-10 09:21:02 +00:00
|
|
|
<?php if (isset($err["fullname"])) formerr($err["fullname"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("shortsitename") ?>:</td>
|
|
|
|
<td><input type="text" name="shortname" size="15" maxlength="15" value="<?php p($form->shortname) ?>" alt="<?php print_string("shortsitename") ?>" />
|
2003-05-10 09:21:02 +00:00
|
|
|
<?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
|
2002-12-30 05:13:43 +00:00
|
|
|
</td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2005-04-26 21:52:39 +00:00
|
|
|
<td align="right"><?php print_string("frontpagedescription") ?>:<br /><br />
|
2003-08-10 09:26:11 +00:00
|
|
|
<?PHP
|
|
|
|
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
|
|
|
echo "<br />";
|
|
|
|
if ($usehtmleditor) {
|
|
|
|
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
|
|
|
|
} else {
|
|
|
|
helpbutton("html", get_string("helphtml"), "moodle", true, true);
|
2005-04-01 22:32:43 +00:00
|
|
|
}
|
2005-04-26 21:52:39 +00:00
|
|
|
echo "<br />";
|
2003-08-10 09:26:11 +00:00
|
|
|
?>
|
2002-08-13 15:40:07 +00:00
|
|
|
</td>
|
2004-05-14 06:13:46 +00:00
|
|
|
<td><?php print_textarea($usehtmleditor, 20, 50, 600, 400, "summary", $form->summary); ?></td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("frontpageformat") ?>:</td>
|
2005-04-01 22:32:43 +00:00
|
|
|
<td><?php
|
2005-04-02 09:29:59 +00:00
|
|
|
$options = array(FRONTPAGENEWS => get_string("frontpagenews"),
|
|
|
|
FRONTPAGECOURSELIST => get_string("frontpagecourselist"),
|
|
|
|
FRONTPAGECATEGORYNAMES => get_string("frontpagecategorynames"),
|
|
|
|
FRONTPAGETOPICONLY => get_string("frontpagetopiconly"));
|
2003-08-12 16:52:55 +00:00
|
|
|
if (count_records("course") > 200) {
|
|
|
|
unset($options[1]);
|
2003-08-12 17:01:54 +00:00
|
|
|
if ($form->frontpage == 1) {
|
|
|
|
$form->frontpage = 2;
|
|
|
|
}
|
2003-08-12 16:52:55 +00:00
|
|
|
}
|
2003-07-30 13:05:51 +00:00
|
|
|
choose_from_menu ($options, "frontpage", "$form->frontpage", "");
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2005-04-02 09:29:59 +00:00
|
|
|
<tr valign="top">
|
|
|
|
<td align="right"><?php print_string("sitesection") ?>:</td>
|
|
|
|
<td><?php
|
|
|
|
unset($choices);
|
|
|
|
$choices["0"] = get_string("no");
|
|
|
|
$choices["1"] = get_string("yes");
|
|
|
|
choose_from_menu ($choices, "numsections", $form->numsections, "");
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("newsitemsnumber") ?>:</td>
|
2005-04-01 22:32:43 +00:00
|
|
|
<td><?php
|
2002-08-13 15:40:07 +00:00
|
|
|
$newsitem = get_string("newsitem");
|
|
|
|
$newsitems = get_string("newsitems");
|
2003-07-30 13:05:51 +00:00
|
|
|
$options = array("0" => "0 $newsitems",
|
2002-08-13 15:40:07 +00:00
|
|
|
"1" => "1 $newsitem",
|
|
|
|
"2" => "2 $newsitems",
|
|
|
|
"3" => "3 $newsitems",
|
|
|
|
"4" => "4 $newsitems",
|
|
|
|
"5" => "5 $newsitems",
|
|
|
|
"6" => "6 $newsitems",
|
|
|
|
"7" => "7 $newsitems",
|
|
|
|
"8" => "8 $newsitems",
|
|
|
|
"9" => "9 $newsitems",
|
|
|
|
"10" => "10 $newsitems");
|
|
|
|
choose_from_menu ($options, "newsitems", "$form->newsitems", "");
|
2002-06-10 05:19:03 +00:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("wordforteacher") ?>:</td>
|
|
|
|
<td><input type="text" name="teacher" maxlength="100" size="25" value="<?php p($form->teacher) ?>" alt="<?php print_string("wordforteacher") ?>" />
|
2005-04-01 22:32:43 +00:00
|
|
|
(<?php print_string("wordforteachereg") ?>)
|
2003-08-04 05:02:28 +00:00
|
|
|
<?php if (isset($err["teacher"])) formerr($err["teacher"]); ?>
|
2004-07-02 09:32:17 +00:00
|
|
|
</td>
|
2003-08-04 05:02:28 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("wordforteachers") ?>:</td>
|
|
|
|
<td><input type="text" name="teachers" maxlength="100" size="25" value="<?php p($form->teachers) ?>" alt="<?php print_string("wordforteachers") ?>" />
|
2004-07-02 09:32:17 +00:00
|
|
|
(<?php print_string("wordforteacherseg") ?>)
|
2003-08-04 05:02:28 +00:00
|
|
|
<?php if (isset($err["teachers"])) formerr($err["teachers"]); ?>
|
2004-07-02 09:32:17 +00:00
|
|
|
</td>
|
2003-08-04 05:02:28 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("wordforstudent") ?>:</td>
|
|
|
|
<td><input type="text" name="student" maxlength="100" size="25" value="<?php p($form->student) ?>" alt="<?php print_string("wordforstudent") ?>" />
|
2005-04-01 22:32:43 +00:00
|
|
|
(<?php print_string("wordforstudenteg") ?>)
|
2003-08-04 05:02:28 +00:00
|
|
|
<?php if (isset($err["student"])) formerr($err["student"]); ?>
|
2004-07-02 09:32:17 +00:00
|
|
|
</td>
|
2003-08-04 05:02:28 +00:00
|
|
|
</tr>
|
2004-09-12 00:21:21 +00:00
|
|
|
<tr valign="top">
|
2004-10-15 08:30:30 +00:00
|
|
|
<td align="right"><?php print_string("wordforstudents") ?>:</td>
|
|
|
|
<td><input type="text" name="students" maxlength="100" size="25" value="<?php p($form->students) ?>" alt="<?php print_string("wordforstudents") ?>" />
|
2005-04-01 22:32:43 +00:00
|
|
|
(<?php print_string("wordforstudentseg") ?>)
|
2003-08-04 05:02:28 +00:00
|
|
|
<?php if (isset($err["students"])) formerr($err["students"]); ?>
|
2004-07-02 09:32:17 +00:00
|
|
|
</td>
|
2003-08-04 05:02:28 +00:00
|
|
|
</tr>
|
2001-11-22 06:23:56 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
2005-04-01 22:33:42 +00:00
|
|
|
<td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
|
2001-11-22 06:23:56 +00:00
|
|
|
</tr>
|
2003-05-10 09:21:02 +00:00
|
|
|
</table>
|
2005-04-01 22:32:43 +00:00
|
|
|
<input type="hidden" name="id" value="<?php p($form->id) ?>" />
|
|
|
|
<input type="hidden" name="category" value="<?php p($form->category) ?>" />
|
|
|
|
<input type="hidden" name="format" value="<?php p($form->format) ?>" />
|
|
|
|
<input type="hidden" name="sesskey" value="<?php p($sesskey) ?>" />
|
2003-05-10 09:21:02 +00:00
|
|
|
</form>
|