adding some strings
[moodle-linuxchix.git] / mod / forum / config.html
blobe272eba0d67d9fc8755174d25417b5ff3a422e90
1 <form method="post" action="module.php" id="form">
2 <div>
3 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
5 <table cellpadding="9" cellspacing="0" >
6 <tr valign="top">
7 <td align="right">forum_displaymode:</td>
8 <td>
9 <?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
10 </td>
11 <td>
12 <?php print_string("configdisplaymode", "forum") ?>
13 </td>
14 </tr>
15 <tr valign="top">
16 <td align="right">forum_replytouser:</td>
17 <td>
18 <?php
19 unset($options);
20 $options[0] = get_string("no");
21 $options[1] = get_string("yes");
22 choose_from_menu ($options, "forum_replytouser", $CFG->forum_replytouser, "", "", "");
24 </td>
25 <td>
26 <?php print_string("configreplytouser", "forum") ?>
27 </td>
28 </tr>
29 <tr valign="top">
30 <td align="right">forum_shortpost:</td>
31 <td>
32 <input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>" />
33 </td>
34 <td>
35 <?php print_string("configshortpost", "forum") ?>
36 </td>
37 </tr>
38 <tr valign="top">
39 <td align="right">forum_longpost:</td>
40 <td>
41 <input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>" />
42 </td>
43 <td>
44 <?php print_string("configlongpost", "forum") ?>
45 </td>
46 </tr>
47 <tr valign="top">
48 <td align="right">forum_manydiscussions:</td>
49 <td>
50 <input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>" />
51 </td>
52 <td>
53 <?php print_string("configmanydiscussions", "forum") ?>
54 </td>
55 </tr>
56 <tr valign="top">
57 <td align="right">forum_maxbytes:</td>
58 <td><?php
59 $choices = get_max_upload_sizes($CFG->maxbytes);
60 choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
62 </td>
63 <td>
64 <?php print_string("configmaxbytes", "forum") ?>
65 </td>
66 </tr>
68 <tr valign="top">
69 <td align="right">forum_trackreadposts:</td>
70 <td>
71 <?php
72 unset($options);
73 $options[0] = get_string("no");
74 $options[1] = get_string("yes");
75 choose_from_menu ($options, "forum_trackreadposts", $CFG->forum_trackreadposts, "", "", "");
77 </td>
78 <td>
79 <?php print_string("configtrackreadposts", "forum") ?>
80 </td>
81 </tr>
82 <tr valign="top">
83 <td align="right">forum_oldpostdays:</td>
84 <td>
85 <input name="forum_oldpostdays" type="text" size="5" value="<?php p($CFG->forum_oldpostdays) ?>" />
86 </td>
87 <td>
88 <?php print_string("configoldpostdays", "forum") ?>
89 </td>
90 </tr>
91 <tr valign="top">
92 <td align="right">forum_usermarksread:</td>
93 <td>
94 <?php
95 unset($options);
96 $options[0] = get_string("no");
97 $options[1] = get_string("yes");
98 choose_from_menu ($options, "forum_usermarksread", $CFG->forum_usermarksread, "", "", "");
100 </td>
101 <td>
102 <?php print_string("configusermarksread", "forum") ?>
103 </td>
104 </tr>
105 <tr valign="top">
106 <td align="right">forum_cleanreadtime:</td>
107 <td>
108 <?php
109 unset($options);
110 $options[0] = '0';
111 $options[1] = '1';
112 $options[2] = '2';
113 $options[3] = '3';
114 $options[4] = '4';
115 $options[5] = '5';
116 $options[6] = '6';
117 $options[7] = '7';
118 $options[8] = '8';
119 $options[9] = '9';
120 $options[10] = '10';
121 $options[11] = '11';
122 $options[12] = '12';
123 $options[13] = '13';
124 $options[14] = '14';
125 $options[15] = '15';
126 $options[16] = '16';
127 $options[17] = '17';
128 $options[18] = '18';
129 $options[19] = '19';
130 $options[20] = '20';
131 $options[21] = '21';
132 $options[22] = '22';
133 $options[23] = '23';
134 choose_from_menu ($options, "forum_cleanreadtime", $CFG->forum_cleanreadtime, "", "", "");
136 </td>
137 <td>
138 <?php print_string("configcleanreadtime", "forum") ?>
139 </td>
140 </tr>
142 <tr valign="top">
143 <td align="right">forum_enablerssfeeds:</td>
144 <td>
145 <?php
146 if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
147 print_string("no");
148 } else {
149 unset($options);
150 $options[0] = get_string("no");
151 $options[1] = get_string("yes");
153 $forum_enablerssfeeds = false;
154 if (isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds == 1) {
155 $forum_enablerssfeeds = true;
159 choose_from_menu ($options, "forum_enablerssfeeds", $forum_enablerssfeeds, "", "", "");
162 </td>
163 <td>
164 <?php
165 print_string("configenablerssfeeds","forum");
166 if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
167 print_string("configenablerssfeedsdisabled");
170 </td>
171 </tr>
173 <tr valign="top">
174 <td align="right">forum_enabletimedposts:</td>
175 <td>
176 <?php
177 unset($options);
178 $options[0] = get_string("no");
179 $options[1] = get_string("yes");
180 choose_from_menu ($options, "forum_enabletimedposts", $CFG->forum_enabletimedposts, "", "", "");
182 </td>
183 <td>
184 <?php
185 print_string("configenabletimedposts","forum");
187 </td>
188 </tr>
190 <tr>
191 <td colspan="3" align="center">
192 <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
193 </tr>
194 </table>
195 </div>
196 </form>