mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
<FORM name="theform" method="post" <?=$onsubmit ?> action="edit.php">
|
|
<table><tr>
|
|
<td align=right>
|
|
<font SIZE="1">
|
|
<? helpbutton("reading", get_string("helpreading"), "moodle", true, true) ?><br \>
|
|
<? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
|
|
<? if ($usehtmleditor) { ?>
|
|
<? helpbutton("richtext", get_string("helprichtext"), "moodle", true, true) ?>
|
|
<? } else { ?>
|
|
<? helpbutton("text", get_string("helptext"), "moodle", true, true) ?>
|
|
<? } ?><br \>
|
|
</font>
|
|
</td>
|
|
</tr></table>
|
|
|
|
<? print_textarea($usehtmleditor, 20, 60, 595, 400, "text", $entry->text); ?>
|
|
|
|
<P align=center>
|
|
<? print_string("formattexttype");
|
|
echo ": ";
|
|
choose_from_menu(format_text_menu(), "format", $entry->format, "");
|
|
helpbutton("textformat", get_string("formattexttype")) ?>
|
|
</P>
|
|
|
|
<P align=center>
|
|
<INPUT type="hidden" name=id value="<?=$cm->id ?>">
|
|
<INPUT type="submit" value="<? print_string("savechanges") ?>">
|
|
<INPUT type="reset" value="<? print_string("revert") ?>">
|
|
</P>
|
|
</FORM>
|
|
|
|
<?
|
|
if ($usehtmleditor) {
|
|
print_richedit_javascript("theform", "text", "no");
|
|
}
|
|
?>
|
|
|