2002-10-10 07:27:57 +00:00
|
|
|
<form name="theform" method="post" action="post.php" <?=$onsubmit ?> enctype="multipart/form-data">
|
2002-07-31 14:19:35 +00:00
|
|
|
<table 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>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr valign=top>
|
2002-10-10 09:27:49 +00:00
|
|
|
<td align=right><P><B><? print_string("message", "forum"); ?>:</B>
|
2002-10-12 05:43:00 +00:00
|
|
|
<? if ($usehtmleditor) { ?>
|
|
|
|
<BR><BR><? helpbutton("richtext", get_string("helprichtext")) ?></P>
|
|
|
|
<? } else { ?>
|
2002-10-10 09:27:49 +00:00
|
|
|
<BR><BR><? helpbutton("text", get_string("helptext")) ?></P>
|
|
|
|
<? } ?>
|
|
|
|
</TD>
|
2002-07-31 14:19:35 +00:00
|
|
|
<td>
|
2002-10-12 07:23:16 +00:00
|
|
|
<? print_textarea($usehtmleditor, 15, 50, 595, 400, "message", $post->message); ?>
|
2002-07-31 14:19:35 +00:00
|
|
|
</td>
|
2002-09-01 14:34:38 +00:00
|
|
|
<td rowspan=2>
|
2002-07-31 14:19:35 +00:00
|
|
|
<FONT SIZE=1>
|
|
|
|
<? print_string("postingtip", "forum"); ?>
|
|
|
|
<DIV ALIGN=RIGHT><? helpbutton("questions", get_string("helpquestions"), "moodle", false) ?></DIV>
|
|
|
|
</FONT>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-10-10 07:27:57 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td align=right><P><B><? print_string("formattexttype"); ?>:</B></P></TD>
|
|
|
|
<td>
|
2002-10-12 07:23:16 +00:00
|
|
|
<? choose_from_menu(format_text_menu(), "format", $post->format, ""); ?>
|
2002-10-18 09:38:58 +00:00
|
|
|
<? helpbutton("textformat", get_string("formattexttype")) ?>
|
2002-10-10 07:27:57 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
2002-09-01 14:34:38 +00:00
|
|
|
<tr valign=top>
|
|
|
|
<td><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()));
|
|
|
|
?>
|
|
|
|
<BR><BR>
|
|
|
|
<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>
|
|
|
|
<tr valign=top>
|
2002-07-31 14:19:35 +00:00
|
|
|
</table>
|
|
|
|
</FORM>
|
2002-10-10 07:27:57 +00:00
|
|
|
|
2002-10-12 15:01:17 +00:00
|
|
|
<?
|
|
|
|
if ($usehtmleditor) {
|
|
|
|
print_richedit_javascript("theform", "message", "no");
|
|
|
|
}
|
|
|
|
?>
|
2002-10-10 07:27:57 +00:00
|
|
|
|