Automatic installer.php lang files by installer_builder (20081224)
[moodle.git] / admin / editor.html
blob7da0a03328a338c7755cb67cd0cfd52ba7d04443
1 <form method="post" action="editor.php">
2 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
3 <input type="hidden" name="tab" value="<?php p($currentpage) ?>" />
4 <table border="0" cellpadding="4" cellspacing="2">
5 <tr>
6 <td align="right" valign="top">htmleditor:</td>
7 <td valign="top">
8 <?php
9 unset($options);
10 $options[0] = get_string("allownot");
11 $options[1] = get_string("allow");
12 choose_from_menu ($options, "htmleditor", $CFG->htmleditor, "", "", "");
14 </td>
15 <td>
16 <?php print_string('confightmleditor', 'admin') ?>
17 </td>
18 </tr>
19 <?php if ( $currenttab == 'htmlarea' ) { ?>
20 <tr>
21 <td align="right" valign="top">editorbackgroundcolor:</td>
22 <td valign="top"><input type="text" name="backgroundcolor" size="10" value="<?php print($CFG->editorbackgroundcolor);?>" /></td>
23 <td valign="top"><?php print_string("edhelpbgcolor");?></td>
24 </tr>
25 <tr>
26 <td align="right" valign="top">editorfontfamily:</td>
27 <td valign="top"><input type="text" name="fontfamily" size="30" value="<?php print($CFG->editorfontfamily);?>" /></td>
28 <td valign="top"><?php print_string("edhelpfontfamily");?></td>
29 </tr>
30 <tr>
31 <td align="right" valign="top">editorfontsize:</td>
32 <td valign="top"><input type="text" name="fontsize" size="10" value="<?php print($CFG->editorfontsize);?>" /></td>
33 <td valign="top"><?php print_string("edhelpfontsize");?></td>
34 </tr>
35 <tr>
36 <td align="right" valign="top">editorkillword:</td>
37 <td valign="top"><select name="killword">
38 <option value="1"<?php print(!$CFG->editorkillword)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
39 <option value="0"<?php print(!$CFG->editorkillword)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
40 </select></td>
41 <td valign="top"><?php print_string("edhelpcleanword");?></td>
42 </tr>
43 <tr>
44 <td align="right" valign="top">aspellpath:</td>
45 <td valign="top"><input onchange="change_state()" id="aspellpath" type="text" name="aspellpath" size="25" value="<?php print($CFG->aspellpath);?>" /></td>
46 <td valign="top"><?php print_string("edhelpaspellpath");?></td>
47 </tr>
48 <tr>
49 <td align="right" valign="top">editorspelling:</td>
50 <td valign="top"><select onchange="change_state()" id="spelling" name="spelling"<?php
51 if (empty($CFG->aspellpath)) {
52 echo " disabled=\"disabled\"";
53 $CFG->editorspelling = false;
55 ?>>
56 <option value="1"<?php print(!$CFG->editorspelling)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
57 <option value="0"<?php print(!$CFG->editorspelling)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
58 </select>
59 <select id="dictionary" name="dictionary"<?php
60 if (empty($CFG->aspellpath)) {
61 echo " disabled=\"disabled\"";
62 $CFG->editordictionary = false;
64 ?>>
65 <?php
66 if (is_array($dicts)) {
67 foreach ($dicts as $dict) {
68 echo "<option value=\"$dict\"";
69 if (!empty($CFG->editordictionary)) {
70 print ($CFG->editordictionary != $dict) ? "" : " selected=\"selected\"";
72 echo ">$dict</option>\n";
74 } else if (is_string($dicts)) {
75 echo '<option value="">'. $dicts .'</option>' . "\n";
78 </select>
79 </td>
80 <td valign="top"><?php print_string("edhelpenablespelling");?></td>
81 </tr>
82 <tr><td colspan="3"><br /><?php print_string("edhelpfontlist");?></td></tr>
83 <?php
84 if(is_array($fontlist)) {
85 foreach($fontlist as $fontkey => $fontvalue) {
87 <tr>
88 <td>&nbsp;</td>
89 <td colspan="2"><input type="text" name="fontname[]" size="15" value="<?php print($fontkey);?>">
90 <input type="text" name="fontnamevalue[]" size="30" value="<?php print($fontvalue);?>" /></td>
91 </tr>
92 <?php
96 <tr>
97 <td>&nbsp;</td>
98 <td colspan="2"><input type="text" name="fontname[]" size="15" value="" />
99 <input type="text" name="fontnamevalue[]" size="30" value="" /></td>
100 </tr>
101 <tr>
102 <td valign="top" align="right">editorhidebuttons:</td>
103 <td colspan="2">
104 <?php
105 $buttons = array();
106 if (!empty($CFG->editorhidebuttons)) {
107 $buttons = explode(chr(32), $CFG->editorhidebuttons);
110 <table border="0" cellpadding="2" cellspacing="1">
111 <tr>
112 <td colspan="12"><input type="checkbox" name="buttons[fontname]"<?php print(in_array("fontname", $buttons)) ? " checked=\"checked\"": "";?> /> <?php print_string("fontname","editor");?>
113 <input type="checkbox" name="buttons[fontsize]"<?php print(in_array("fontsize", $buttons)) ? " checked=\"checked\"": "";?> /> <?php print_string("fontsize","editor");?>
114 <input type="checkbox" name="buttons[formatblock]"<?php print(in_array("formatblock", $buttons)) ? " checked=\"checked\"": "";?> /> <?php print_string("formatblock","editor");?></td>
115 </tr>
116 <tr>
117 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_bold.gif" width="18" height="18" alt="<?php print_string("bold","editor");?>" title="<?php print_string("bold","editor");?>" /></td>
118 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_italic.gif" width="18" height="18" alt="<?php print_string("italic","editor");?>" title="<?php print_string("italic","editor");?>" /></td>
119 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_underline.gif" width="18" height="18" alt="<?php print_string("underline","editor");?>" title="<?php print_string("underline","editor");?>" /></td>
120 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_strike.gif" width="18" height="18" alt="<?php print_string("strikethrough","editor");?>" title="<?php print_string("strikethrough","editor");?>" /></td>
121 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_sub.gif" width="18" height="18" alt="<?php print_string("subscript","editor");?>" title="<?php print_string("subscript","editor");?>" /></td>
122 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_format_sup.gif" width="18" height="18" alt="<?php print_string("superscript","editor");?>" title="<?php print_string("superscript","editor");?>" /></td>
123 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_copy.gif" width="18" height="18" alt="<?php print_string("copy","editor");?>" title="<?php print_string("copy","editor");?>" /></td>
124 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_cut.gif" width="18" height="18" alt="<?php print_string("cut","editor");?>" title="<?php print_string("cut","editor");?>" /></td>
125 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_paste.gif" width="18" height="18" alt="<?php print_string("paste","editor");?>" title="<?php print_string("paste","editor");?>" /></td>
126 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_wordclean.gif" width="18" height="18" alt="<?php print_string("wordclean","editor");?>" title="<?php print_string("wordclean","editor");?>" /></td>
127 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_undo.gif" width="18" height="18" alt="<?php print_string("undo","editor");?>" title="<?php print_string("undo","editor");?>" /></td>
128 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_redo.gif" width="18" height="18" alt="<?php print_string("redo","editor");?>" title="<?php print_string("redo","editor");?>" /></td>
129 </tr>
130 <tr>
131 <td><input type="checkbox" name="buttons[bold]"<?php print(in_array("bold", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
132 <td><input type="checkbox" name="buttons[italic]"<?php print(in_array("italic", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
133 <td><input type="checkbox" name="buttons[underline]"<?php print(in_array("underline", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
134 <td><input type="checkbox" name="buttons[strikethrough]"<?php print(in_array("strikethrough", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
135 <td><input type="checkbox" name="buttons[subscript]"<?php print(in_array("subscript", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
136 <td><input type="checkbox" name="buttons[superscript]"<?php print(in_array("superscript", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
137 <td><input type="checkbox" name="buttons[copy]"<?php print(in_array("copy", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
138 <td><input type="checkbox" name="buttons[cut]"<?php print(in_array("cut", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
139 <td><input type="checkbox" name="buttons[paste]"<?php print(in_array("paste", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
140 <td><input type="checkbox" name="buttons[clean]"<?php print(in_array("clean", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
141 <td><input type="checkbox" name="buttons[undo]"<?php print(in_array("undo", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
142 <td><input type="checkbox" name="buttons[redo]"<?php print(in_array("redo", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
143 </tr>
144 <tr>
145 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_left.gif" width="18" height="18" alt="<?php print_string("justifyleft","editor");?>" title="<?php print_string("justifyleft","editor");?>" /></td>
146 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_center.gif" width="18" height="18" alt="<?php print_string("justifycenter","editor");?>" title="<?php print_string("justifycenter","editor");?>" /></td>
147 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_right.gif" width="18" height="18" alt="<?php print_string("justifyright","editor");?>" title="<?php print_string("justifyright","editor");?>" /></td>
148 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_align_justify.gif" width="18" height="18" alt="<?php print_string("justifyfull","editor");?>" title="<?php print_string("justifyfull","editor");?>" /></td>
149 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_left_to_right.gif" width="18" height="18" alt="<?php print_string("lefttoright","editor");?>" title="<?php print_string("lefttoright","editor");?>" /></td>
150 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_right_to_left.gif" width="18" height="18" alt="<?php print_string("righttoleft","editor");?>" title="<?php print_string("righttoleft","editor");?>" /></td>
151 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_list_num.gif" width="18" height="18" alt="<?php print_string("orderedlist","editor");?>" title="<?php print_string("orderedlist","editor");?>" /></td>
152 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_list_bullet.gif" width="18" height="18" alt="<?php print_string("unorderedlist","editor");?>" title="<?php print_string("unorderedlist","editor");?>" /></td>
153 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_indent_less.gif" width="18" height="18" alt="<?php print_string("outdent","editor");?>" title="<?php print_string("outdent","editor");?>" /></td>
154 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_indent_more.gif" width="18" height="18" alt="<?php print_string("indent","editor");?>" title="<?php print_string("indent","editor");?>" /></td>
155 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_color_fg.gif" width="18" height="18" alt="<?php print_string("forecolor","editor");?>" title="<?php print_string("forecolor","editor");?>" /></td>
156 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_color_bg.gif" width="18" height="18" alt="<?php print_string("hilitecolor","editor");?>" title="<?php print_string("hilitecolor","editor");?>" /></td>
157 </tr>
158 <tr>
159 <td><input type="checkbox" name="buttons[justifyleft]"<?php print(in_array("justifyleft", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
160 <td><input type="checkbox" name="buttons[justifycenter]"<?php print(in_array("justifycenter", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
161 <td><input type="checkbox" name="buttons[justifyright]"<?php print(in_array("justifyright", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
162 <td><input type="checkbox" name="buttons[justifyfull]"<?php print(in_array("justifyfull", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
163 <td><input type="checkbox" name="buttons[lefttoright]"<?php print(in_array("lefttoright", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
164 <td><input type="checkbox" name="buttons[righttoleft]"<?php print(in_array("righttoleft", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
165 <td><input type="checkbox" name="buttons[insertorderedlist]"<?php print(in_array("insertorderedlist", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
166 <td><input type="checkbox" name="buttons[insertunorderedlist]"<?php print(in_array("insertunorderedlist", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
167 <td><input type="checkbox" name="buttons[outdent]"<?php print(in_array("outdent", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
168 <td><input type="checkbox" name="buttons[indent]"<?php print(in_array("indent", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
169 <td><input type="checkbox" name="buttons[forecolor]"<?php print(in_array("forecolor", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
170 <td><input type="checkbox" name="buttons[hilitecolor]"<?php print(in_array("hilitecolor", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
171 </tr>
172 <tr>
173 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_hr.gif" width="18" height="18" alt="<?php print_string("horizontalrule","editor");?>" title="<?php print_string("horizontalrule","editor");?>" /></td>
174 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_anchor.gif" width="18" height="18" alt="<?php print_string("createanchor","editor");?>" title="<?php print_string("createanchor","editor");?>" /></td>
175 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_link.gif" width="18" height="18" alt="<?php print_string("insertlink","editor");?>" title="<?php print_string("insertlink","editor");?>" /></td>
176 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_unlink.gif" width="18" height="18" alt="<?php print_string("removelink","editor");?>" title="<?php print_string("removelink","editor");?>" /></td>
177 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_image.gif" width="18" height="18" alt="<?php print_string("insertimage","editor");?>" title="<?php print_string("insertimage","editor");?>" /></td>
178 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/insert_table.gif" width="18" height="18" alt="<?php print_string("inserttable","editor");?>" title="<?php print_string("inserttable","editor");?>" /></td>
179 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/em.icon.smile.gif" width="18" height="18" alt="<?php print_string("insertsmile","editor");?>" title="<?php print_string("insertsmile","editor");?>" /></td>
180 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/icon_ins_char.gif" width="18" height="18" alt="<?php print_string("insertchar","editor");?>" title="<?php print_string("insertchar","editor");?>" /></td>
181 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/spell-check.gif" width="18" height="18" alt="<?php print_string("spellcheck","editor");?>" title="<?php print_string("spellcheck","editor");?>" /></td>
182 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_html.gif" width="18" height="18" alt="<?php print_string("htmlmode","editor");?>" title="<?php print_string("htmlmode","editor");?>" /></td>
183 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/fullscreen_maximize.gif" width="18" height="18" alt="<?php print_string("popupeditor","editor");?>" title="<?php print_string("popupeditor","editor");?>" /></td>
184 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_replace.gif" width="18" height="18" alt="<?php print_string("popupeditor","editor");?>" title="<?php print_string("searchandreplace","editor");?>" /></td>
185 </tr>
186 <tr>
187 <td><input type="checkbox" name="buttons[inserthorizontalrule]"<?php print(in_array("inserthorizontalrule", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
188 <td><input type="checkbox" name="buttons[createanchor]"<?php print(in_array("createanchor", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
189 <td><input type="checkbox" name="buttons[createlink]"<?php print(in_array("createlink", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
190 <td><input type="checkbox" name="buttons[unlink]"<?php print(in_array("unlink", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
191 <td><input type="checkbox" name="buttons[insertimage]"<?php print(in_array("insertimage", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
192 <td><input type="checkbox" name="buttons[inserttable]"<?php print(in_array("inserttable", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
193 <td><input type="checkbox" name="buttons[insertsmile]"<?php print(in_array("insertsmile", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
194 <td><input type="checkbox" name="buttons[insertchar]"<?php print(in_array("insertchar", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
195 <td><input type="checkbox" name="buttons[spellcheck]"<?php print(in_array("spellcheck", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
196 <td><input type="checkbox" name="buttons[htmlmode]"<?php print(in_array("htmlmode", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
197 <td><input type="checkbox" name="buttons[popupeditor]"<?php print(in_array("popupeditor", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
198 <td><input type="checkbox" name="buttons[search_replace]"<?php print(in_array("search_replace", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
199 </tr>
200 <tr>
201 <td><img src="<?php echo $CFG->wwwroot ?>/lib/editor/htmlarea/images/ed_nolink.gif" width="18" height="18" alt="<?php print_string("horizontalrule","editor");?>" title="<?php print_string("nolink","editor");?>" /></td>
202 <td>&nbsp;</td>
203 <td>&nbsp;</td>
204 <td>&nbsp;</td>
205 <td>&nbsp;</td>
206 <td>&nbsp;</td>
207 <td>&nbsp;</td>
208 <td>&nbsp;</td>
209 <td>&nbsp;</td>
210 <td>&nbsp;</td>
211 <td>&nbsp;</td>
212 <td>&nbsp;</td>
213 </tr>
214 <tr>
215 <td><input type="checkbox" name="buttons[nolink]"<?php print(in_array("nolink", $buttons)) ? " checked=\"checked\"" : "" ;?> /></td>
216 <td>&nbsp;</td>
217 <td>&nbsp;</td>
218 <td>&nbsp;</td>
219 <td>&nbsp;</td>
220 <td>&nbsp;</td>
221 <td>&nbsp;</td>
222 <td>&nbsp;</td>
223 <td>&nbsp;</td>
224 <td>&nbsp;</td>
225 <td>&nbsp;</td>
226 <td>&nbsp;</td>
227 </tr>
228 </table>
229 </td>
230 </tr>
231 <?php
233 else if ( $currenttab == 'tinymce' ) {
235 <tr>
236 <td>tinymcetheme:</td>
237 <td><?php
238 $options = array('advanced' => 'Advanced','simple' => 'Simple');
239 choose_from_menu ($options, "tinymcetheme", $CFG->tinymcetheme, "", "", "");
240 ?></td>
241 <td>&nbsp;</td>
242 </tr>
243 <tr>
244 <td valign="top">tinymceplugins:</td>
245 <td nowrap="nowrap"><?php
246 $pluginsdir = $CFG->libdir .'/editor/tinymce/jscripts/tiny_mce/plugins';
247 $plugins = editor_get_tiny_plugins();
248 $pluginsinuse = explode(",", $CFG->tinymceplugins);
250 sort($plugins);
251 $cnt = 0;
252 echo '<table border="0" cellpadding="2">';
253 foreach ( $plugins as $plugin ) {
254 $num = ($cnt % 2);
255 if ( $num < 1 ) {
256 echo '<tr>';
258 echo '<td><input type="checkbox" name="tinymceplugins[]" value="'. s($plugin) .'"';
259 if ( in_array($plugin, $pluginsinuse) ) {
260 echo ' checked="checked"';
262 echo ' /> '. $plugin .'</td>'."\n";
264 if ( $num > 0 ) {
265 echo '</tr>';
267 $cnt++;
269 echo '</table>';
270 ?></td>
271 <td>&nbsp;</td>
272 </tr>
273 <tr>
274 <td>tinymcecontentcss:</td>
275 <td><input type="text" name="tinymcecontentcss" value="<?php
276 !empty($CFG->tinymcecontentcss) ? p($CFG->tinymcecontentcss) : ''; ?>" size="40" /></td>
277 <td>&nbsp;</td>
278 </tr>
279 <tr>
280 <td>tinymcepopupcss:</td>
281 <td><input type="text" name="tinymcepopupcss" value="<?php
282 !empty($CFG->tinymcepopupcss) ? p($CFG->tinymcepopupcss) : ''; ?>" size="40" /></td>
283 <td>&nbsp;</td>
284 </tr>
285 <tr>
286 <td>tinymceeditorcss:</td>
287 <td><input type="text" name="tinymceeditorcss" value="<?php
288 !empty($CFG->tinymceeditorcss) ? p($CFG->tinymceeditorcss) : ''; ?>" size="40" /></td>
289 <td>&nbsp;</td>
290 </tr>
291 <?php
294 <tr>
295 <td colspan="3" align="center"><input type="submit" value="<?php print_string("savechanges");?>" /></td>
296 </tr>
297 </table>
298 </form>
300 <form method="post" action="<?php print($GLOBALS['ME']);?>">
301 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
302 <input type="hidden" name="tab" value="<?php p($currentpage) ?>" />
303 <center>
304 <input type="submit" name="resettodefaults" value="<?php print_string('editorresettodefaults') ?>" />
305 </center>
306 </form>
307 <script language="javascript" type="text/javascript">
308 <!--
310 function change_state () {
312 var choice = document.forms[0].spelling;
313 var speller = choice.options[choice.selectedIndex].value;
314 var spellpath = document.forms[0].aspellpath.value;
316 if (spellpath == '') {
317 document.forms[0].spelling.disabled = true;
318 } else {
319 document.forms[0].spelling.disabled = false;
322 if (speller != 1) {
323 document.forms[0].dictionary.disabled = true;
324 } else {
325 document.forms[0].dictionary.disabled = false;
329 document.onload = change_state();
331 </script>