fix pagination

This commit is contained in:
Marion Muszynski 2016-05-30 17:13:22 +02:00
parent e92682d851
commit 633643d0c7

View File

@ -3,7 +3,7 @@
<h1 class="loyalty_title">{l s='My loyalty points' mod='loyalty'}</h1>
{if $displayorders}
{if $nb_orders}
<div class="block-center" id="block-history">
{if $displayorders && count($displayorders)}
<table id="order-list" class="std">
@ -45,7 +45,7 @@
{/if}
</div>
<div id="pagination" class="pagination">
{if $nbpagination < $displayorders|@count}
{if $nbpagination < $nb_orders}
<ul class="pagination">
{if $page != 1}
{assign var='p_previous' value=$page-1}
@ -81,14 +81,14 @@
{/if}
</ul>
{/if}
{if $displayorders|@count > 10}
{if $nb_orders > 10}
<form action="{$pagination_link}" method="get" class="pagination">
<p>
<input type="submit" class="button_mini" value="{l s='OK'}" />
<label for="nb_item">{l s='items:' mod='loyalty'}</label>
<select name="n" id="nb_item">
{foreach from=$nArray item=nValue}
{if $nValue <= $displayorders|@count}
{if $nValue <= $nb_orders}
<option value="{$nValue|escape:'htmlall':'UTF-8'}" {if $nbpagination == $nValue}selected="selected"{/if}>{$nValue|escape:'htmlall':'UTF-8'}</option>
{/if}
{/foreach}