-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpm_read.tpl
64 lines (57 loc) · 2.32 KB
/
pm_read.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
<!-- BEGIN TEMPLATE pm_read.tpl -->
<div class="pm">
<h4>{MESSAGE->subject}</h4>
<div class="message-author icon-user">
{LANG->From}: <a href="{MESSAGE->URL->PROFILE}">{MESSAGE->author}</a>
</div>
<div class="message-author icon-user">
{LANG->To}:
{IF MESSAGE->show_recipient_list}
{LOOP MESSAGE->recipients}
<a href="{MESSAGE->recipients->URL->PROFILE}">{MESSAGE->recipients->display_name}</a>
{IF USER->user_id MESSAGE->user_id}
{IF NOT MESSAGE->recipients->read_flag}({LANG->PMUnread}){/IF}
{/IF}
{/LOOP MESSAGE->recipients}
{ELSE}
{MESSAGE->recipient_count} {LANG->TotalRecipients}
{/IF}
</div>
<div class="message-date">{MESSAGE->date}</div>
</div>
<div class="message-body">
{MESSAGE->message}
</div>
<form action="{URL->ACTION}" method="post">
{POST_VARS}
<input type="hidden" name="action" value="list" />
<input type="hidden" name="folder_id" value="{FOLDER_ID}" />
<input type="hidden" name="pm_id" value="{MESSAGE->pm_message_id}" />
{IF FOLDER_IS_INCOMING}
{IF PM_USERFOLDERS}
<span style="white-space: nowrap; float:right">
<select name="target_folder" style="vertical-align: middle;">
<option value=""> {LANG->PMSelectAFolder}</option>
{LOOP PM_FOLDERS}
{IF NOT PM_FOLDERS->id FOLDER_ID}
{IF NOT PM_FOLDERS->is_outgoing}
<option value="{PM_FOLDERS->id}"> {PM_FOLDERS->name}</option>
{/IF}
{/IF}
{/LOOP PM_FOLDERS}
</select>
<input type="submit" name="move_message" value="{LANG->PMMoveToFolder}" />
</span>
{/IF}
{/IF}
<input type="submit" name="close_message" value="{LANG->PMCloseMessage}" />
{IF NOT MESSAGE->user_id USERINFO->user_id}
<input type="submit" name="reply" value="{LANG->PMReply}" />
{IF NOT MESSAGE->recipient_count 1}
<input type="submit" name="reply_to_all" value="{LANG->PMReplyToAll}" />
{/IF}
{/IF}
<input type="submit" name="delete_message" value="{LANG->Delete}" onclick="return confirm('<?php echo addslashes($PHORUM['DATA']['LANG']['AreYouSure'])?>')" />
</div>
</form>
<!-- END TEMPLATE pm_read.tpl -->