forked from TheMaxium69/SolidServ-WHMCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareaemails.tpl
43 lines (40 loc) · 1.69 KB
/
clientareaemails.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
{include file="$template/includes/tablelist.tpl" tableName="EmailsList" noSortColumns="-1"}
<script>
jQuery(document).ready(function () {
var table = jQuery('#tableEmailsList').show().DataTable();
{if $orderby == 'date'}
table.order(0, '{$sort}');
{elseif $orderby == 'subject'}
table.order(1, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').hide();
});
</script>
<div class="table-container clearfix">
<table id="tableEmailsList" class="table table-list w-hidden">
<thead>
<tr>
<th>{lang key='clientareaemailsdate'}</th>
<th>{lang key='clientareaemailssubject'}</th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach $emails as $email}
<tr onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '800', '600')">
<td class="text-center"><span class="w-hidden">{$email.normalisedDate}</span>{$email.date}</td>
<td>{$email.subject}{if $email.attachmentCount > 0} <i class="fal fa-paperclip"></i>{/if}</td>
<td class="text-center">
<button type="button" class="btn btn-info btn-sm text-nowrap" onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '800', '600', 'scrollbars=1,')">
{lang key='emailviewmessage'}
</button>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center" id="tableLoading">
<p><i class="fas fa-spinner fa-spin"></i> {lang key='loading'}</p>
</div>
</div>