Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e1947876ec
Fetching contributors…

Cannot retrieve contributors at this time

file 66 lines (65 sloc) 2.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
<form name="theform" method="post" action="post.php" <?=$onsubmit ?> 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>
     <? if ($usehtmleditor) { ?>
        <BR><BR><? helpbutton("richtext", get_string("helprichtext")) ?></P>
     <? } else { ?>
        <BR><BR><? helpbutton("text", get_string("helptext")) ?></P>
     <? } ?>
    </TD>
    <td>
    <? print_textarea($usehtmleditor, 15, 50, 595, 400, "message", $post->message); ?>
    </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 align=right><P><B><? print_string("formattexttype"); ?>:</B></P></TD>
    <td>
    <? choose_from_menu(format_text_menu(), "format", $post->format, ""); ?>
    </td>
    <td>
    &nbsp;
    </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>

<? if ($usehtmleditor) { ?>
    <SCRIPT language="JavaScript" event="onload" for="window">
        document.richedit.options = "history=no;source=no";
        document.richedit.docHtml = theform.message.innerText;
    </SCRIPT>
<? } ?>
Something went wrong with that request. Please try again.