More efficient querying of courses (from Martin Langhoff)
[moodle.git] / admin / editor.html
blobfd3a8bfeccc666f8b90ff86ee1f5e7828c668b6e
1 <form method="post" action="<?php print($GLOBALS['ME']);?>">
2 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
3 <table border="0" cellpadding="4" cellspacing="2">
4 <tr valign=top>
5 <td align=right><p>htmleditor:</td>
6 <td>
7 <?php
8 unset($options);
9 $options[0] = get_string("allownot");
10 $options[1] = get_string("allow");
11 choose_from_menu ($options, "htmleditor", $CFG->htmleditor, "", "", "");
13 </td>
14 <td>
15 <?php print_string("confightmleditor") ?>
16 </td>
17 </tr>
18 <tr>
19 <td align="right" valign="top">editorbackgroundcolor:</td>
20 <td valign="top"><input type="text" name="backgroundcolor" size="10" value="<?php print($CFG->editorbackgroundcolor);?>"></td>
21 <td valign="top"><?php print_string("edhelpbgcolor");?></td>
22 </tr>
23 <tr>
24 <td align="right" valign="top">editorfontfamily:</td>
25 <td valign="top"><input type="text" name="fontfamily" size="30" value="<?php print($CFG->editorfontfamily);?>"></td>
26 <td valign="top"><?php print_string("edhelpfontfamily");?></td>
27 </tr>
28 <tr>
29 <td align="right" valign="top">editorfontsize:</td>
30 <td valign="top"><input type="text" name="fontsize" size="10" value="<?php print($CFG->editorfontsize);?>"></td>
31 <td valign="top"><?php print_string("edhelpfontsize");?></td>
32 </tr>
33 <tr>
34 <td align="right" valign="top">editorkillword:</td>
35 <td valign="top"><select name="killword">
36 <option value="1"<?php print(!$CFG->editorkillword)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
37 <option value="0"<?php print(!$CFG->editorkillword)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
38 </select></td>
39 <td valign="top"><?php print_string("edhelpcleanword");?></td>
40 </tr>
41 <tr>
42 <td align="right" valign="top">editorspelling:</td>
43 <td valign="top"><select name="spelling"<?php
44 if (empty($CFG->aspellpath)) {
45 echo " disabled=\"disabled\"";
46 $CFG->editorspelling = false;
48 ?>>
49 <option value="1"<?php print(!$CFG->editorspelling)?"":" selected=\"selected\"";?>><?php print_string("yes");?></option>
50 <option value="0"<?php print(!$CFG->editorspelling)?" selected=\"selected\"":"";?>><?php print_string("no");?></option>
51 </select></td>
52 <td valign="top"><?php print_string("edhelpenablespelling");?></td>
53 </tr>
54 <tr><td colspan="3"><br /><?php print_string("edhelpfontlist");?></td></tr>
55 <?php
56 if(is_array($fontlist)) {
57 foreach($fontlist as $fontkey => $fontvalue) {
59 <tr>
60 <td>&nbsp;</td>
61 <td colspan="2"><input type="text" name="fontname[]" size="15" value="<?php print($fontkey);?>">
62 <input type="text" name="fontnamevalue[]" size="30" value="<?php print($fontvalue);?>"></td>
63 </tr>
64 <?php
68 <tr>
69 <td>&nbsp;</td>
70 <td colspan="2"><input type="text" name="fontname[]" size="15" value="">
71 <input type="text" name="fontnamevalue[]" size="30" value=""></td>
72 </tr>
73 <tr>
74 <td colspan="3" align="center"><input type="submit" value="<?php print_string("savechanges");?>"></td>
75 </tr>
76 </table>
77 </form>
79 <form method="post" action="<?php print($GLOBALS['ME']);?>">
80 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
81 <center>
82 <input type="submit" name="resettodefaults" value="<?php print_string('editorresettodefaults') ?>" />
83 </center>
84 </form>