forked from EhsanCh/whmcs-template-six-rtl
-
Notifications
You must be signed in to change notification settings - Fork 2
/
supportticketslist.tpl
43 lines (43 loc) · 2.08 KB
/
supportticketslist.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="TicketsList" filterColumn="2"}
<script type="text/javascript">
jQuery(document).ready( function ()
{
var table = jQuery('#tableTicketsList').removeClass('hidden').DataTable();
{if $orderby == 'did' || $orderby == 'dept'}
table.order(0, '{$sort}');
{elseif $orderby == 'subject' || $orderby == 'title'}
table.order(1, '{$sort}');
{elseif $orderby == 'status'}
table.order(2, '{$sort}');
{elseif $orderby == 'lastreply'}
table.order(3, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').addClass('hidden');
});
</script>
<div class="table-container clearfix">
<table id="tableTicketsList" class="table table-list hidden">
<thead>
<tr>
<th>{$LANG.supportticketsdepartment}</th>
<th>{$LANG.supportticketssubject}</th>
<th>{$LANG.supportticketsstatus}</th>
<th>{$LANG.supportticketsticketlastupdated}</th>
</tr>
</thead>
<tbody>
{foreach from=$tickets item=ticket}
<tr onclick="window.location='viewticket.php?tid={$ticket.tid}&c={$ticket.c}'">
<td class="text-center">{$ticket.department}</td>
<td><a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}">{if $ticket.unread}<strong>{/if}#{$ticket.tid} - {$ticket.subject}{if $ticket.unread}</strong>{/if}</a></td>
<td><span class="label status {if is_null($ticket.statusColor)}status-{$ticket.statusClass}"{else}status-custom" style="border-color: {$ticket.statusColor}; color: {$ticket.statusColor}"{/if}>{$ticket.status|strip_tags}</span></td>
<td class="text-center"><span class="hidden">{$ticket.normalisedLastReply}</span>{$ticket.lastreply}</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>