831 |
florian |
1 |
<div class="PhorumStdBlockHeader PhorumNarrowBlock">
|
|
|
2 |
<table class="PhorumFormTable" cellspacing="0" border="0">
|
|
|
3 |
{! A submit button that will be used to catch users pressing enter }
|
|
|
4 |
<script type="text/javascript">
|
|
|
5 |
document.write('<input type="submit" name="ignore" style="display:none">');
|
|
|
6 |
</script>
|
|
|
7 |
{! Author =================================================================== }
|
|
|
8 |
<tr>
|
|
|
9 |
<td style="white-space: nowrap">{LANG->YourName}: </td>
|
|
|
10 |
<td width="100%">
|
|
|
11 |
{IF POST->message_id}
|
|
|
12 |
{! Editing a message }
|
|
|
13 |
{IF POST->user_id}
|
|
|
14 |
{POST->author}
|
|
|
15 |
{ELSE}
|
|
|
16 |
{IF MODERATOR}
|
|
|
17 |
<input type="text" name="author" size="30" value="{POST->author}" />
|
|
|
18 |
{ELSE}
|
|
|
19 |
<?php echo $PHORUM['user']['username'] ?>
|
|
|
20 |
{/IF}
|
|
|
21 |
{/IF}
|
|
|
22 |
{ELSE}
|
|
|
23 |
{! Writing a new message }
|
|
|
24 |
{IF LOGGEDIN}
|
|
|
25 |
<?php echo $PHORUM['user']['username'] ?>
|
|
|
26 |
{ELSE}
|
|
|
27 |
<input type="text" name="author" size="30" value="{POST->author}" />
|
|
|
28 |
{/IF}
|
|
|
29 |
{/IF}
|
|
|
30 |
</td>
|
|
|
31 |
</tr>
|
|
|
32 |
{! Email ==================================================================== }
|
|
|
33 |
<tr>
|
|
|
34 |
<td style="white-space: nowrap">{LANG->YourEmail}: </td>
|
|
|
35 |
<td width="100%">
|
|
|
36 |
{IF POST->message_id}
|
|
|
37 |
{! Editing a message }
|
|
|
38 |
{IF POST->user_id}
|
|
|
39 |
{POST->email}
|
|
|
40 |
{ELSE}
|
|
|
41 |
{IF MODERATOR}
|
|
|
42 |
<input type="text" name="email" size="30" value="{POST->email}" />
|
|
|
43 |
{ELSE}
|
|
|
44 |
<?php echo $PHORUM['user']['email'] ?>
|
|
|
45 |
{/IF}
|
|
|
46 |
{/IF}
|
|
|
47 |
{ELSE}
|
|
|
48 |
{! Writing a new message }
|
|
|
49 |
{IF LOGGEDIN true}
|
|
|
50 |
<?php echo $PHORUM['user']['email'] ?>
|
|
|
51 |
{ELSE}
|
|
|
52 |
<input type="text" name="email" size="30" value="{POST->email}" />
|
|
|
53 |
{/IF}
|
|
|
54 |
{/IF}
|
|
|
55 |
</td>
|
|
|
56 |
</tr>
|
|
|
57 |
{! Subject ================================================================== }
|
|
|
58 |
<tr>
|
|
|
59 |
<td style="white-space: nowrap">{LANG->Subject}: </td>
|
|
|
60 |
<td><input type="text" name="subject" id="phorum_subject" size="50" value="{POST->subject}" /></td>
|
|
|
61 |
</tr>
|
|
|
62 |
{HOOK tpl_editor_after_subject}
|
|
|
63 |
{! Moderator only fields ==================================================== }
|
|
|
64 |
{IF SHOW_THREADOPTIONS}
|
|
|
65 |
<tr>
|
|
|
66 |
<td>{LANG->Special}: </td>
|
|
|
67 |
<td>
|
|
|
68 |
{IF SHOW_SPECIALOPTIONS}
|
|
|
69 |
<select name="special">
|
|
|
70 |
<option value=""></option>
|
|
|
71 |
{IF OPTION_ALLOWED->sticky}
|
|
|
72 |
<option value="sticky"{IF POST->special "sticky"} selected{/IF}>{LANG->MakeSticky}</option>
|
|
|
73 |
{/IF}
|
|
|
74 |
{IF OPTION_ALLOWED->announcement}
|
|
|
75 |
<option value="announcement" {IF POST->special "announcement"} selected{/IF}>{LANG->MakeAnnouncement}</option>
|
|
|
76 |
{/IF}
|
|
|
77 |
</select>
|
|
|
78 |
{/IF}
|
|
|
79 |
{IF OPTION_ALLOWED->allow_reply}
|
|
|
80 |
<input type="checkbox" name="allow_reply" value="1" {IF POST->allow_reply} checked="checked"{/IF}> {LANG->AllowReplies}
|
|
|
81 |
{/IF}
|
|
|
82 |
</td>
|
|
|
83 |
</tr>
|
|
|
84 |
{/IF}
|
|
|
85 |
{! Email notify ============================================================= }
|
|
|
86 |
{IF POST->user_id}
|
|
|
87 |
{IF EMAILNOTIFY}
|
|
|
88 |
<tr>
|
|
|
89 |
<td colspan="2">
|
|
|
90 |
<input type="checkbox" name="email_notify" value="1" {IF POST->email_notify} checked="checked"{/IF} /> {LANG->EmailReplies}
|
|
|
91 |
</td>
|
|
|
92 |
</tr>
|
|
|
93 |
{/IF}
|
|
|
94 |
{/IF}
|
|
|
95 |
{! Show signature =========================================================== }
|
|
|
96 |
{IF POST->user_id}
|
|
|
97 |
<tr>
|
|
|
98 |
<td colspan="2">
|
|
|
99 |
<input type="checkbox" name="show_signature" value="1" {IF POST->show_signature} checked="checked"{/IF} /> {LANG->AddSig}
|
|
|
100 |
</td>
|
|
|
101 |
</tr>
|
|
|
102 |
{/IF}
|
|
|
103 |
</table>
|
|
|
104 |
</div>
|
|
|
105 |
{! Attachments ============================================================== }
|
|
|
106 |
{IF ATTACHMENTS}
|
|
|
107 |
{INCLUDE posting_attachments}
|
|
|
108 |
{/IF}
|
|
|
109 |
{! Body ===================================================================== }
|
|
|
110 |
{HOOK tpl_editor_before_textarea}
|
|
|
111 |
<div class="PhorumStdBlock PhorumNarrowBlock">
|
|
|
112 |
<textarea name="body" id="phorum_textarea" rows="15" cols="50" style="width: 99%">{POST->body}</textarea>
|
|
|
113 |
{IF MODERATED}
|
|
|
114 |
{LANG->ModeratedForum}<br />
|
|
|
115 |
{/IF}
|
|
|
116 |
</div>
|