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">
5 <td align
=right
><p
>htmleditor
:</td
>
9 $options[0] = get_string("allownot");
10 $options[1] = get_string("allow");
11 choose_from_menu ($options, "htmleditor", $CFG->htmleditor
, "", "", "");
15 <?php print_string("confightmleditor") ?>
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>
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>
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>
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>
39 <td valign=
"top"><?php print_string("edhelpcleanword");?></td>
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;
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>
52 <td valign=
"top"><?php print_string("edhelpenablespelling");?></td>
54 <tr><td colspan=
"3"><br /><?php print_string("edhelpfontlist");?></td></tr>
56 if(is_array($fontlist)) {
57 foreach($fontlist as $fontkey => $fontvalue) {
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
>
70 <td colspan=
"2"><input type=
"text" name=
"fontname[]" size=
"15" value=
"">
71 <input type=
"text" name=
"fontnamevalue[]" size=
"30" value=
""></td>
74 <td colspan=
"3" align=
"center"><input type=
"submit" value=
"<?php print_string("savechanges
");?>"></td
>
79 <form method
="post" action
="<?php print($GLOBALS['ME']);?>">
80 <input type
="hidden" name
="sesskey" value
="<?php echo $USER->sesskey ?>">
82 <input type
="submit" name
="resettodefaults" value
="<?php print_string('editorresettodefaults') ?>" />