forked from osiloke/template-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclientareainvoices.tpl
61 lines (56 loc) · 3.33 KB
/
clientareainvoices.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
<div class="page-header">
<h1>{$LANG.invoices} <small>{$LANG.invoicesintro}</small></h1>
</div>
{if !$nobalance}
<div class="well well-small pull-right text-center lead">
{$LANG.invoicesoutstandingbalance}: <span class="text-error">{$totalbalance}</span>
{if $masspay}<a href="clientarea.php?action=masspay&all=true" class="btn btn-large btn-success"><i class="icon-ok-circle icon-white"></i> {$LANG.masspayall}</a>{/if}
</div>
{/if}
<p>{$numitems} {$LANG.recordsfound}, {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</p>
<table class="table table-bordered-outside table-striped table-sorted">
<thead>
<tr>
<th{if $orderby eq "id"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=id" title="{$LANG.invoicestitle}">{$LANG.invoicestitle}</a></th>
<th{if $orderby eq "date"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=date" title="{$LANG.invoicesdatecreated}">{$LANG.invoicesdatecreated}</a></th>
<th{if $orderby eq "duedate"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=duedate" title="{$LANG.invoicesdatedue}">{$LANG.invoicesdatedue}</a></th>
<th{if $orderby eq "total"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=total" title="{$LANG.invoicestotal}">{$LANG.invoicestotal}</a></th>
<th{if $orderby eq "status"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=invoices&orderby=status" title="{$LANG.invoicesstatus}">{$LANG.invoicesstatus}</a></th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach from=$invoices item=invoice}
<tr>
<td><a href="viewinvoice.php?id={$invoice.id}" target="_blank" title="{$LANG.invoicestitle} {$invoice.invoicenum}">{$invoice.invoicenum}</a></td>
<td>{$invoice.datecreated}</td>
<td>{$invoice.datedue}</td>
<td>{$invoice.total}</td>
<td><span class="label label-{$invoice.rawstatus}">{$invoice.statustext}</span></td>
<td class="text-center"><a href="viewinvoice.php?id={$invoice.id}" target="_blank" class="btn btn-info" title="{$LANG.invoicesview} {$invoice.invoicenum}">{$LANG.invoicesview}</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="6" class="text-center">{$LANG.norecordsfound}</td>
</tr>
{/foreach}
</tbody>
</table>
<form method="post" action="{$smarty.server.PHP_SELF}?action={$clientareaaction}" class="pull-right">
<fieldset>
<select name="itemlimit" onchange="submit()">
<option>{$LANG.resultsperpage}</option>
<option value="10"{if $itemlimit==10} selected="selected"{/if}>10</option>
<option value="25"{if $itemlimit==25} selected="selected"{/if}>25</option>
<option value="50"{if $itemlimit==50} selected="selected"{/if}>50</option>
<option value="100"{if $itemlimit==100} selected="selected"{/if}>100</option>
<option value="all"{if $itemlimit==99999999} selected="selected"{/if}>{$LANG.clientareaunlimited}</option>
</select>
</fieldset>
</form>
<div class="pagination">
<ul>
<li{if !$prevpage} class="disabled"{/if}><a href="{if $prevpage}clientarea.php?action={$clientareaaction}{if $q}&q={$q}{/if}&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}{if $q}&q={$q}{/if}&page={$nextpage}{else}javascript:return false;{/if}">{$LANG.nextpage} →</a></li>
</ul>
</div>