-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathclientareaquotes.tpl
54 lines (50 loc) · 2.85 KB
/
clientareaquotes.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
<div class="page-header">
<h1>{$LANG.quotestitle} <small>{$LANG.quotesintro}</small></h1>
</div>
<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=quotes&orderby=id" title="{$LANG.quotenumber}">{$LANG.quotenumber}</a></th>
<th{if $orderby eq "subject"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=quotes&orderby=subject" title="{$LANG.quotesubject}">{$LANG.quotesubject}</a></th>
<th{if $orderby eq "datecreated"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=quotes&orderby=datecreated" title="{$LANG.quotedatecreated}">{$LANG.quotedatecreated}</a></th>
<th{if $orderby eq "validuntil"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=quotes&orderby=validuntil" title="{$LANG.quotevaliduntil}">{$LANG.quotevaliduntil}</a></th>
<th{if $orderby eq "stage"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=quotes&orderby=stage" title="{$LANG.quotestage}">{$LANG.quotestage}</a></th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach from=$quotes item=quote}
<tr>
<td><a href="dl.php?type=q&id={$quote.id}" target="_blank" title="{$LANG.quotenumber} {$quote.id}">{$quote.id}</a></td>
<td>{$quote.subject}</td>
<td>{$quote.datecreated}</td>
<td>{$quote.validuntil}</td>
<td>{$quote.stage}</td>
<td class="textcenter"><a href="dl.php?type=q&id={$quote.id}" class="btn btn-info" title="{$LANG.quotedownload}">{$LANG.quotedownload}</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="6" class="textcenter">{$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>