forked from Zhobday/whmcscustomtemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
clientareaemails.tpl
37 lines (37 loc) · 1.53 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
{include file="$template/includes/tablelist.tpl" tableName="EmailsList" noSortColumns="-1"}
<script type="text/javascript">
jQuery(document).ready( function ()
{
var table = jQuery('#tableEmailsList').removeClass('hidden').DataTable();
{if $orderby == 'date'}
table.order(0, '{$sort}');
{elseif $orderby == 'subject'}
table.order(1, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').addClass('hidden');
});
</script>
<div class="table-container clearfix">
<table id="tableEmailsList" class="table table-list hidden">
<thead>
<tr>
<th>{$LANG.clientareaemailsdate}</th>
<th>{$LANG.clientareaemailssubject}</th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach from=$emails item=email}
<tr onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '650', '450')">
<td class="text-center"><span class="hidden">{$email.normalisedDate}</span>{$email.date}</td>
<td>{$email.subject}</td>
<td class="text-center"><input type="button" class="btn btn-info btn-sm" value="{$LANG.emailviewmessage}" onclick="popupWindow('viewemail.php?id={$email.id}', 'emailWin', '650', '450', 'scrollbars=1,')" /></td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center" id="tableLoading">
<p><i class="fa fa-spinner fa-spin"></i> {$LANG.loading}</p>
</div>
</div>