-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpm_post.tpl
99 lines (75 loc) · 3.4 KB
/
pm_post.tpl
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!-- BEGIN TEMPLATE pm_post.tpl -->
{IF PREVIEW}
<div class="information">
{LANG->PreviewExplain}
</div>
<div class="pm">
<h4>{PREVIEW->subject}</h4>
<div class="message-author icon-user">
{LANG->From}: {PREVIEW->author}
</div>
<div class="message-author icon-user">
{LANG->To}:
{LOOP PREVIEW->recipients}
{PREVIEW->recipients->display_name}
{/LOOP PREVIEW->recipients}
</div>
</div>
<div class="message-body">
{PREVIEW->message}
</div>
{/IF}
<form action="{URL->ACTION}" method="post">
{POST_VARS}
<input type="hidden" name="action" value="post" />
<input type="hidden" name="hide_userselect" value="{HIDE_USERSELECT}" />
<div class="generic">
<small>
{LANG->To}:<br />
{! Show user selection}
{IF SHOW_USERSELECTION}
<div class="phorum-pmuserselection">
{IF USERS}
<select id="userselection" name="to_id" size="1" align="middle">
<option value=""> {LANG->PMSelectARecipient}</option>
{LOOP USERS}
<option value="{USERS->user_id}" <?php if (isset($_POST['to_id']) && $_POST['to_id'] == $PHORUM['TMP']['USERS']['user_id']) echo 'selected="selected"'?>>{USERS->display_name}</option>
{/LOOP USERS}
</select>
{ELSE}
<input type="text" id="userselection" name="to_name" value="<?php if (isset($_POST['to_name'])) echo htmlspecialchars($_POST['to_name'])?>" />
{/IF}
<input type="submit" name="rcpt_add" value="{LANG->PMAddRecipient}" />
{! Always show recipient list on a separate line}
{IF RECIPIENT_COUNT}<br style="clear:both" />{/IF}
</div>
{/IF}
{! Display the current list of recipients}
{LOOP MESSAGE->recipients}
<div class="phorum-recipientblock">
{MESSAGE->recipients->display_name}
<input type="hidden" name="recipients[{MESSAGE->recipients->user_id}]" value="1" />
<input type="image" src="{URL->TEMPLATE}/images/delete.png" name="del_rcpt::{MESSAGE->recipients->user_id}" class="rcpt-delete-img" title="" />
</div>
{/LOOP MESSAGE->recipients}
<br />
{LANG->Subject}:<br />
<input type="text" name="subject" id="subject" size="50" value="{MESSAGE->subject}" /><br />
<br />
{LANG->Options}:<br />
<input type="checkbox" id="keep" name="keep" value="1"{IF MESSAGE->keep} checked="checked" {/IF} /><label for="keep"> {LANG->KeepCopy}</label><br />
<br />
{HOOK "tpl_pm_editor_before_textarea"}
{LANG->Message}:
<div id="post-body">
<textarea name="message" id="body" class="body" rows="15" cols="50">{MESSAGE->message}</textarea>
</div>
</small>
</div>
<div id="post-buttons">
{HOOK "tpl_editor_buttons"}
<input name="preview" type="submit" value=" {LANG->Preview} " />
<input name="post" type="submit" value=" {LANG->PostPM} " />
</div>
</form>
<!-- END TEMPLATE pm_post.tpl -->