From 2c7ed00b390ab9a95795b010ecc8031bae539772 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Wed, 9 Oct 2013 17:21:53 +0200 Subject: [PATCH] // pagination --- .../countries/helpers/list/list_footer.tpl | 152 ++++++++++++------ .../controllers/orders/helpers/view/view.tpl | 90 ++++++----- 2 files changed, 153 insertions(+), 89 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/countries/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/controllers/countries/helpers/list/list_footer.tpl index 8a5c64fbd..04515e020 100644 --- a/admin-dev/themes/default/template/controllers/countries/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/controllers/countries/helpers/list/list_footer.tpl @@ -22,69 +22,129 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - - {if !$simple_header && $list_total > 20} -
- - {if $page > 1} -   - - {/if} - {l s='Page'} {$page} / {$total_pages} - {if $page < $total_pages} -   - - {/if} - - -  |  - - - - / {$list_total} {l s='result(s)'} -
- {/if} - {if $bulk_actions} -
- {if $bulk_actions|count > 1} -
- -
- - {else} - {foreach $bulk_actions as $key => $params} - {if $key == 'affectzone'} -
+ {if !$simple_header && $list_total > 20} +
+
+ {if $bulk_actions} +
+ {if $bulk_actions|count > 1} +
+
+ +
+
+ +
+
+ {else} + {foreach $bulk_actions as $key => $params} +
+
+ {if $key == 'affectzone'} + {/if}
- {/if} - - {/foreach} +
+ +
+
+ {/foreach} + {/if} +
{/if}
+ + +
+ {* Choose number of results per page *} + + {l s='Display'}: + + + / {$list_total} {l s='result(s)'} + + + +
    +
  • + + + +
  • +
  • + + + +
  • + {assign p 0} + {while $p++ < $total_pages} + {if $p < $page-2} +
  • + +
  • + {assign p $page-3} + {else if $p > $page+2} +
  • + +
  • + {assign p $total_pages} + {else} +
  • + {$p} +
  • + {/if} + {/while} +
  • $total_pages}class="disabled"{/if}> + + + +
  • +
  • $total_pages}class="disabled"{/if}> + + + +
  • +
+ +
+
{/if} + -