Updated the pagination system
This commit is contained in:
@@ -120,7 +120,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{loop name="customer_list" type="customer" current="false" visible="*" order=$customer_order backend_context="1" page=$page limit=$display_customer}
|
{loop name="customer_list" type="customer" current="false" visible="*" order=$customer_order backend_context="1" page=$page limit=#max_displayed_customers#}
|
||||||
{assign "lastOrderDate" ''}
|
{assign "lastOrderDate" ''}
|
||||||
{assign "lastOrderAmount" ''}
|
{assign "lastOrderAmount" ''}
|
||||||
{assign "lastOrderCurrency" ''}
|
{assign "lastOrderCurrency" ''}
|
||||||
@@ -179,34 +179,13 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="6">
|
<td colspan="6">
|
||||||
|
{include
|
||||||
|
file = "includes/pagination.html"
|
||||||
|
|
||||||
<div class="text-center">
|
loop_ref = "customer_list"
|
||||||
<ul class="pagination pagination-centered">
|
max_page_count = 10
|
||||||
|
page_url = "{url path="/admin/customers" customer_order=$customer_order}"
|
||||||
{if $page != 1}
|
}
|
||||||
<li><a href="{url path="/admin/customers" page="1"}">«</a></li>
|
|
||||||
{/if}
|
|
||||||
{pageloop rel="customer_list" numPage="20"}
|
|
||||||
{if $PAGE == $CURRENT && $PAGE > 2}
|
|
||||||
<li><a href="{url path="/admin/customers" page=$PREV}">‹</a></li>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if $PAGE != $CURRENT}
|
|
||||||
<li><a href="{url path="/admin/customers" page="{$PAGE}"}">{$PAGE}</a></li>
|
|
||||||
|
|
||||||
{else}
|
|
||||||
<li class="active"><a href="#">{$PAGE}</a></li>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if $PAGE == $END && $PAGE < $LAST}
|
|
||||||
<li><a href="{url path="/admin/customers" page=$NEXT}">›</a></li>
|
|
||||||
{/if}
|
|
||||||
{/pageloop}
|
|
||||||
{if $LAST > $CURRENT}
|
|
||||||
<li><a href="{url path="/admin/customers" page="$LAST"}">»</a></li>
|
|
||||||
{/if}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user