moodle/mod/forum/post.html
martin 7f6689e4e0 Attachments can now be added to postings.
They are stored in the course moddata area.
They appear as links within the message, including mailed-out messages.
They are deleted when the post is deleted.
2002-09-01 14:34:38 +00:00

45 lines
1.8 KiB
HTML

<form name="form" method="post" action="post.php" enctype="multipart/form-data">
<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>
&nbsp;
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("message", "forum"); ?>:</B><BR><BR><? helpbutton("text", get_string("helptext")) ?></P></TD>
<td>
<textarea name=message rows=15 cols=50 wrap="virtual"><? p($post->message) ?></textarea>
</td>
<td rowspan=2>
<FONT SIZE=1>
<? print_string("postingtip", "forum"); ?>
<DIV ALIGN=RIGHT><? helpbutton("questions", get_string("helpquestions"), "moodle", false) ?></DIV>
</FONT>
</td>
</tr>
<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>
</table>
</FORM>