forked from osiloke/template-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclientareaemails.tpl
45 lines (40 loc) · 1.73 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
44
45
<div class="page-header">
<h1>{$LANG.clientareaemails} <small>{$LANG.emailstagline}</small></h1>
</div>
<p>{$numitems} {$LANG.recordsfound}, {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</p>
<table class="table table-striped table-bordered table-sorted">
<thead>
<tr>
<th{if $orderby eq "date"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=emails&orderby=date">{$LANG.clientareaemailsdate}</a></th>
<th{if $orderby eq "subject"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=emails&orderby=subject">{$LANG.clientareaemailssubject}</a></th>
</tr>
</thead>
<tbody>
{foreach from=$emails item=email}
<tr>
<td>{$email.date}</td>
<td><a href="viewemail.php?id={$email.id}" onclick="viewEmail({$email.id});return false;" title="{$LANG.emailviewmessage}">{$email.subject}</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="2" class="text-center">{$LANG.norecordsfound}</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="pagination">
<ul>
<li{if !$prevpage} class="disabled"{/if}><a href="{if $prevpage}clientarea.php?action={$clientareaaction}&page={$prevpage}{else}javascript:return false;{/if}">← {$LANG.previouspage}</a></li>
<li{if !$nextpage} class="disabled"{/if}><a href="{if $nextpage}clientarea.php?action={$clientareaaction}&page={$nextpage}{else}javascript:return false;{/if}">{$LANG.nextpage} →</a></li>
</ul>
</div>
<div class="modal hide fade in" id="modalviewemail"></div>
<script type="text/javascript">
{literal}
function viewEmail(id) {
$('#modalviewemail').html('<p class="text-center"><img src="images/loadingsml.gif" alt="{$LANG.pleasewait}"></p>');
$('#modalviewemail').load('viewemail.php?id='+id);
$('#modalviewemail').modal();
}
{/literal}
</script>