-<form method="post" action="site.php" name="form">
+<form method="post" action="site.php" name="form" <?php echo $onsubmit ?>>
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align=right><P><?php print_string("fullsitename") ?>:</td>
<tr valign=top>
<td align=right><P><?php print_string("frontpagedescription") ?>:</P><br />
<font size=1>
- <?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
- <?php helpbutton("html", get_string("helphtml"), "moodle", true, true) ?><br />
+ <?PHP
+ helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
+ echo "<br />";
+ if ($usehtmleditor) {
+ helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
+ } else {
+ helpbutton("html", get_string("helphtml"), "moodle", true, true);
+ echo "<br />";
+ emoticonhelpbutton("theform", "text");
+ }
+ echo "<br />";
+ ?>
</font>
</td>
- <td><textarea name=summary cols=50 rows=10 wrap=virtual><?php p($form->summary) ?></textarea>
- <?php if (isset($err["summary"])) formerr($err["summary"]); ?>
- </td>
+ <td><? print_textarea($usehtmleditor, 10, 50, 600, 400, "summary", $form->summary); ?></td>
</tr>
<tr valign=top>
<td align=right><P><?php print_string("frontpageformat") ?>:</td>
<input type="hidden" name="category" value="<?php p($form->category) ?>">
<input type="hidden" name="format" value="<?php p($form->format) ?>">
</form>
+
+<?php
+ if ($usehtmleditor) {
+ print_richedit_javascript("form", "summary", "no");
+ }
+?>
print_heading($strsitesettings);
}
+ $defaultformat = FORMAT_HTML;
+ if ($usehtmleditor = can_use_richtext_editor()) {
+ $onsubmit = "onsubmit=\"copyrichtext(form.summary);\"";
+ } else {
+ $onsubmit = "";
+ }
+
print_simple_box_start("center", "", "$THEME->cellheading");
include("site.html");
print_simple_box_end();