blob: de0ce257715be58d5209229b48865df5efe4d164 (
plain)
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
{strip}
<div class="display usermessages">
<div class="header">
<h1>{tr}Read message{/tr}</h1>
</div>
{include file="bitpackage:users/my_bitweaver_bar.tpl"}
{if $next}
{assign var=read_id value=$next}
{elseif $prev}
{assign var=read_id value=$prev}
{else}
{assign var=read_id value=$msg_id}
{/if}
<div class="body">
<div class="navbar">
<ul>
{if $msg.is_flagged eq 'y'}
<li>{biticon ipackage="icons" iname="mail-mark-important" iexplain=Flagged} {smartlink ititle="Unflag Message" offset=$offset act=is_flagged actval=n msg_id=$msg_id sort_mode=$sort_mode find=$find flag=$flag priority=$priority flagval=$flagval}</li>
{else}
<li>{smartlink ititle="Flag Message" offset=$offset act=is_flagged actval=y msg_id=$msg_id sort_mode=$sort_mode find=$find flag=$flag priority=$priority flagval=$flagval}</li>
{/if}
<li>{smartlink ititle="Delete" msg_id=$read_id offset=$offset msgdel=$msg_id sort_mode=$sort_mode find=$find flag=$flag priority=$priority flagval=$flagval}</li>
{if $prev}<li>{smartlink ianchor=top ititle="Previous message" ibiticon="icons/go-previous" sort_mode=$sort_mode msg_id=$prev find=$find flag=$flag priority=$priority flagval=$flagval}</li>{/if}
{if $next}<li>{smartlink ianchor=top ititle="Next message" ibiticon="icons/go-next" sort_mode=$sort_mode msg_id=$next find=$find flag=$flag priority=$priority flagval=$flagval}</li>{/if}
</ul>
</div>
{if $legend}
{$legend}
{else}
{form legend="Message" ipackage=messages ifile='compose.php'}
<div class="row">
{formlabel label="Date"}
{forminput}
{$msg.msg_date|bit_long_datetime}
{/forminput}
</div>
<div class="row">
{formlabel label="From"}
{forminput}
{displayname user_id=$msg.from_user_id}
{/forminput}
</div>
<div class="row">
{formlabel label="To"}
{forminput}
{$msg.msg_to}
{/forminput}
</div>
{if $msg.msg_cc}
<div class="row">
{formlabel label="Carbon Copy"}
{forminput}
{$msg.msg_cc}
{/forminput}
</div>
{/if}
<div class="row">
{formlabel label="Subject"}
{forminput}
{$msg.subject}
{/forminput}
</div>
<div class="row">
{forminput}
{$msg.parsed}
{/forminput}
</div>
<input type="hidden" name="offset" value="{$offset}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
<input type="hidden" name="flag" value="{$flag}" />
<input type="hidden" name="flagval" value="{$flagval}" />
<input type="hidden" name="priority" value="{$priority}" />
<input type="hidden" name="msgdel" value="{$msg_id}" />
<input type="hidden" name="replyto" value="{$msg.from_user_id}" />
<input type="hidden" name="replyallto" value="{$msg.msg_to},{$msg.msg_cc}" />
<input type="hidden" name="subject" value="{tr}Re:{/tr} {$msg.subject}" />
<input type="hidden" name="body" value="{$msg.body|quoted|escape}" />
{if $next}
<input type="hidden" name="msg_id" value="{$next}" />
{elseif $prev}
<input type="hidden" name="msg_id" value="{$prev}" />
{else}
<input type="hidden" name="msg_id" value="{$msg_id}" />
{/if}
<div class="row submit">
<input type="submit" name="action[reply]" value="{tr}Reply{/tr}" />
<input type="submit" name="action[replyall]" value="{tr}Reply All{/tr}" />
</div>
{/form}
{/if}
</div><!-- end .body -->
</div><!-- end .usermessages -->
{/strip}
{*
<table class="panel">
<tr class="panelsubmitrow"><td>
<form method="post" action="{$smarty.const.MESSAGES_PKG_URL}read.php">
<input type="hidden" name="offset" value="{$offset}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
<input type="hidden" name="flag" value="{$flag}" />
<input type="hidden" name="flagval" value="{$flagval}" />
<input type="hidden" name="priority" value="{$priority}" />
<input type="hidden" name="msgdel" value="{$msg_id}" />
{if $next}
<input type="hidden" name="msg_id" value="{$next}" />
{elseif $prev}
<input type="hidden" name="msg_id" value="{$prev}" />
{else}
<input type="hidden" name="msg_id" value="" />
{/if}
<input type="submit" name="delete" value="{tr}Delete{/tr}" />
</form>
</td>
<td>
<form method="post" action="{$smarty.const.MESSAGES_PKG_URL}compose.php">
<input type="hidden" name="offset" value="{$offset}" />
<input type="hidden" name="msg_id" value="{$msg_id}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
<input type="hidden" name="flag" value="{$flag}" />
<input type="hidden" name="priority" value="{$priority}" />
<input type="hidden" name="flagval" value="{$flagval}" />
<input type="hidden" name="to" value="{$msg.user_from|escape}" />
<input type="hidden" name="subject" value="{tr}Re:{/tr} {$msg.subject}" />
<input type="hidden" name="body" value="{$msg.body|quoted|escape}" />
<input type="submit" name="reply" value="{tr}reply{/tr}" />
</form>
</td>
<td>
<form method="post" action="{$smarty.const.MESSAGES_PKG_URL}compose.php">
<input type="hidden" name="offset" value="{$offset}" />
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="msg_id" value="{$msg_id}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
<input type="hidden" name="flag" value="{$flag}" />
<input type="hidden" name="priority" value="{$priority}" />
<input type="hidden" name="flagval" value="{$flagval}" />
<input type="hidden" name="to" value="{$msg.user_from},{$msg.user_cc},{$msg.user_to}" />
<input type="hidden" name="subject" value="{tr}Re:{/tr} {$msg.subject}" />
<input type="hidden" name="body" value="{$msg.body|quoted|escape}" />
<input type="submit" name="replyall" value="{tr}Reply All{/tr}" />
</td></tr>
</table>
*}
|