[FIX] Transaction Pagination and PHP Notice
This commit is contained in:
parent
c8258d8f29
commit
3139333a3d
@ -37,13 +37,12 @@
|
|||||||
<i class="fa fa-search fa-fw"></i> Transaction Filter
|
<i class="fa fa-search fa-fw"></i> Transaction Filter
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
|
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
|
||||||
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
|
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
|
||||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
|
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
|
||||||
<ul class="pager">
|
<ul class="pager">
|
||||||
<li class="previous {if $smarty.get.start <= 0}disabled{/if}">
|
<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>
|
<a href="{if $smarty.get.start|default:"0" <= 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>
|
||||||
<li class="next">
|
<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>
|
<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>
|
||||||
@ -122,4 +121,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -40,25 +40,17 @@
|
|||||||
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
|
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
|
||||||
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
|
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
|
||||||
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
|
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
|
||||||
<table cellspacing="0" class="tablesorter">
|
<ul class="pager">
|
||||||
<tbody>
|
<li class="previous {if $smarty.get.start <= 0}disabled{/if}">
|
||||||
<tr>
|
<a href="{if $smarty.get.start|default:"0" <= 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>
|
||||||
<td>
|
</li>
|
||||||
{if $smarty.request.start|default:"0" > 0}
|
<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}"><i class="icon-left-open"></i></a>
|
<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>
|
||||||
{else}
|
</li>
|
||||||
<i class="icon-left-open"></i>
|
</ul>
|
||||||
{/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="icon-right-open"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Type</label>
|
<label>Type</label>
|
||||||
{html_options class="form-control" name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""}
|
{html_options class="form-control select2-bootstrap-append" name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""}
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Status</label>
|
<label>Status</label>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user