-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmessu-archive.tpl
84 lines (82 loc) · 5.24 KB
/
messu-archive.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
{title help="Inter-User Messages" admpage="messages"}{tr}Message Archive{/tr}{/title}
{include file='tiki-mytiki_bar.tpl'}
{include file='messu-nav.tpl'}
{if $prefs.messu_archive_size gt '0'}
<br>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table border='0' height='20' cellpadding='0' cellspacing='0'
width='200' style='background-color:#666666;'>
<tr>
<td style='background-color:red;' width='{$cellsize}'> </td>
<td> </td>
</tr>
</table>
</td>
<td><small>{$percentage}%</small></td>
</tr>
</table>
[{$messu_archive_number} / {$prefs.messu_archive_size}] {tr}messages{/tr}. {if $messu_archive_number eq $prefs.messu_archive_size}{tr}Archive is full!{/tr}{/if}
{/if}
<br><br>
<form action="messu-archive.php" method="get">
<label for="mess-mailmessages">{tr}Messages:{/tr}</label>
<select name="flags" id="mess-mailmessages">
<option value="isRead_y" {if $flag eq 'isRead' and $flagval eq 'y'}selected="selected"{/if}>{tr}Read{/tr}</option>
<option value="isRead_n" {if $flag eq 'isRead' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unread{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isFlagged' and $flagval eq 'y'}selected="selected"{/if}>{tr}Flagged{/tr}</option>
<option value="isFlagged_y" {if $flag eq 'isflagged' and $flagval eq 'n'}selected="selected"{/if}>{tr}Unflagged{/tr}</option>
<option value="" {if $flag eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
</select>
<label for="mess-mailprio">{tr}Priority:{/tr}</label>
<select name="priority" id="mess-mailprio">
<option value="" {if $priority eq ''}selected="selected"{/if}>{tr}All{/tr}</option>
<option value="1" {if $priority eq 1}selected="selected"{/if}>1</option>
<option value="2" {if $priority eq 2}selected="selected"{/if}>2</option>
<option value="3" {if $priority eq 3}selected="selected"{/if}>3</option>
<option value="4" {if $priority eq 4}selected="selected"{/if}>4</option>
<option value="5" {if $priority eq 5}selected="selected"{/if}>5</option>
</select>
<label for="mess-mailcont">{tr}Containing:{/tr}</label>
<input type="text" name="find" id="mess-mailcont" value="{$find|escape}">
<input type="submit" name="filter" value="{tr}Filter{/tr}">
</form>
<br>
<form action="messu-archive.php" method="post" name="form_messu_archive">
<input type="hidden" name="offset" value="{$offset|escape}">
<input type="hidden" name="find" value="{$find|escape}">
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}">
<input type="hidden" name="flag" value="{$flag|escape}">
<input type="hidden" name="flagval" value="{$flagval|escape}">
<input type="hidden" name="priority" value="{$priority|escape}">
<input type="submit" name="delete" value="{tr}Delete{/tr}">
<input type="submit" name="download" value="{tr}Download{/tr}">
{jq notonready=true}
var CHECKBOX_LIST = [{{section name=user loop=$items}'msg[{$items[user].msgId}]'{if not $smarty.section.user.last},{/if}{/section}}];
{/jq}
<table class="normal">
<tr>
<th><input type="checkbox" name="checkall" onclick="checkbox_list_check_all('form_messu_archive',CHECKBOX_LIST,this.checked);"></th>
<th style="width:18px"> </th>
<th><a href="messu-archive.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find}&offset={$offset}&sort_mode={if $sort_mode eq 'user_from_desc'}user_from_asc{else}user_from_desc{/if}">{tr}Sender{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find}&offset={$offset}&sort_mode={if $sort_mode eq 'subject_desc'}subject_asc{else}subject_desc{/if}">{tr}Subject{/tr}</a></th>
<th><a href="messu-archive.php?flag={$flag}&priority={$priority}&flagval={$flagval}&find={$find}&offset={$offset}&sort_mode={if $sort_mode eq 'date_desc'}date_asc{else}date_desc{/if}">{tr}Date{/tr}</a></th>
<th style="text-align:right">{tr}Size{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$items}
<tr>
<td class="prio{$items[user].priority}"><input type="checkbox" name="msg[{$items[user].msgId}]"></td>
<td class="prio{$items[user].priority}">{if $items[user].isFlagged eq 'y'}{icon _id='flag_blue' alt="{tr}Flagged{/tr}"}{/if}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].user_from|userlink}</td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}"><a class="readlink" href="messu-read_archive.php?offset={$offset}&flag={$flag}&priority={$items[user].priority}&flagval={$flagval}&sort_mode={$sort_mode}&find={$find}&msgId={$items[user].msgId}">{$items[user].subject|escape}</a></td>
<td {if $items[user].isRead eq 'n'}style="font-weight:bold"{/if} class="prio{$items[user].priority}">{$items[user].date|tiki_short_datetime}</td><!--date_format:"%d %b %Y [%H:%I]"-->
<td style="text-align:right;{if $items[user].isRead eq 'n'}font-weight:bold;{/if}" class="prio{$items[user].priority}">{$items[user].len|kbsize}</td>
</tr>
{sectionelse}
<tr><td colspan="6">{tr}No messages to display{/tr}<td></tr>
{/section}
</table>
</form>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}