New translation added.
[moodle.git] / admin / site.html
blobd47aa7e9253af1c3b3017fba443e1e833f62f74f
1 <form method="post" action="site.php" name="form" <?php echo $onsubmit ?>>
2 <table cellpadding=9 cellspacing=0 >
3 <tr valign=top>
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"]); ?>
7 </td>
8 </tr>
9 <tr valign=top>
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"]); ?>
13 </td>
14 </tr>
15 <tr valign=top>
16 <td align=right><P><?php print_string("frontpagedescription") ?>:</P><br />
17 <font size=1>
18 <?PHP
19 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
20 echo "<br />";
21 if ($usehtmleditor) {
22 helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
23 } else {
24 helpbutton("html", get_string("helphtml"), "moodle", true, true);
27 <br />
28 </font>
29 </td>
30 <td><?php print_textarea($usehtmleditor, 10, 50, 600, 400, "summary", $form->summary); ?></td>
31 </tr>
32 <tr valign=top>
33 <td align=right><P><?php print_string("frontpageformat") ?>:</td>
34 <td><?php
35 $options = array("0" => get_string("frontpagenews"),
36 "1" => get_string("frontpagecourselist"),
37 "2" => get_string("frontpagecategorynames"));
38 if (count_records("course") > 200) {
39 unset($options[1]);
40 if ($form->frontpage == 1) {
41 $form->frontpage = 2;
44 choose_from_menu ($options, "frontpage", "$form->frontpage", "");
46 </td>
47 </tr>
48 <tr valign=top>
49 <td align=right><p><?php print_string("newsitemsnumber") ?>:</td>
50 <td><?php
51 $newsitem = get_string("newsitem");
52 $newsitems = get_string("newsitems");
53 $options = array("0" => "0 $newsitems",
54 "1" => "1 $newsitem",
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", "");
66 </td>
67 </tr>
68 <tr valign=top>
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"]); ?>
73 </td>
74 </tr>
75 <tr valign=top>
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"]); ?>
80 </td>
81 </tr>
82 <tr valign=top>
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"]); ?>
87 </td>
88 </tr>
89 <tr valign=top>
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"]); ?>
94 </td>
95 </tr>
96 <tr>
97 <td></td>
98 <td><input type="submit" value="<?php print_string("savechanges") ?>"></td>
99 </tr>
100 </table>
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) ?>">
104 </form>
106 <?php
107 if ($usehtmleditor) {
108 print_richedit_javascript("form", "summary", "no");