Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4181fce9f9
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (65 sloc) 2.616 kb
<form name="theform" method="post" action="post.php" <?=$onsubmit ?> enctype="multipart/form-data">
<table border="0" cellpadding="5">
<tr valign="top">
<td align=right><p><b><? print_string("subject", "forum"); ?>:</b></p></td>
<td>
<input type="text" name="subject" size=60 value="<? p($post->subject) ?>">
</td>
</tr>
<tr valign="top">
<td align=right><p><b>
<? print_string("message", "forum"); ?>:
</b></p></td>
<td align=left rowspan=2>
<? print_textarea($usehtmleditor, 15, 50, 595, 400, "message", $post->message); ?>
</td>
</tr>
<tr valign="top">
<td align="right" valign="center" nowrap>
<font SIZE="1">
<? helpbutton("reading", get_string("helpreading"), "moodle", true, true) ?><br \>
<? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
<? helpbutton("questions", get_string("helpquestions"), "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>
<tr valign=top>
<td align=right><p><b><? print_string("formattexttype"); ?>:</b></p></td>
<td>
<? choose_from_menu(format_text_menu(), "format", $post->format, ""); ?>
<? helpbutton("textformat", get_string("formattexttype")) ?>
</td>
</tr>
<tr valign=top>
<td align=right><p><b><? print_string("attachment", "forum") ?>:<br \>(<? print_string("optional") ?>)</b></p></td>
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="<? echo get_max_upload_file_size() ?>">
<input type="file" name="attachment" size=40>
<? helpbutton("attachment", get_string("attachment", "forum"), "forum");
print_string("maxsize", "", display_size(get_max_upload_file_size()));
?>
</td>
</tr>
<tr>
<td align=center colspan=2>
<input type="hidden" name=course value="<? p($post->course) ?>">
<input type="hidden" name=forum value="<? p($post->forum) ?>">
<input type="hidden" name=discussion value="<? p($post->discussion) ?>">
<input type="hidden" name=parent value="<? p($post->parent) ?>">
<input type="hidden" name=user value="<? p($post->user) ?>">
<input type="hidden" name=edit value="<? p($post->edit) ?>">
<input type="submit" value="<? print_string("savechanges"); ?>">
</td>
</tr>
</table>
</form>
<?
if ($usehtmleditor) {
print_richedit_javascript("theform", "message", "no");
}
?>
Jump to Line
Something went wrong with that request. Please try again.