[UPDATE] paginatin in user transactions
This commit is contained in:
parent
bb0b9dc8be
commit
481a7b4e41
@ -41,23 +41,14 @@
|
||||
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
|
||||
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
|
||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{if $smarty.request.start|default:"0" > 0}
|
||||
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="fa fa-chevron-left fa-fw"></i></a>
|
||||
{else}
|
||||
<i class="fa fa-chevron-left fa-fw"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="fa fa-chevron-right fa-fw"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul class="pager">
|
||||
<li class="previous {if $smarty.get.start <= 0}disabled{/if}">
|
||||
<a href="{if $smarty.get.start <= 0}#{else}{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}{/if}">← Prev</a>
|
||||
</li>
|
||||
<li class="next">
|
||||
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}">Next →</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="form-group">
|
||||
<label>Type</label>
|
||||
{html_options class="form-control" name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user