mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
Template default : fixed bad way to browse a range in smarty language
This commit is contained in:
parent
a50c080de2
commit
1477f1378b
2 changed files with 2 additions and 4 deletions
|
@ -43,7 +43,6 @@
|
||||||
{if $page.nbPages > 1}
|
{if $page.nbPages > 1}
|
||||||
<p class='LSobject-list-page'>
|
<p class='LSobject-list-page'>
|
||||||
{if $page.nbPages > 10}
|
{if $page.nbPages > 10}
|
||||||
{php}$this->assign('range', range(0,10));{/php}
|
|
||||||
{if $page.nb > 5}
|
{if $page.nb > 5}
|
||||||
{if $page.nb > $page.nbPages-6}
|
{if $page.nb > $page.nbPages-6}
|
||||||
{assign var=start value=$page.nbPages-12}
|
{assign var=start value=$page.nbPages-12}
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
{assign var=start value=0}
|
{assign var=start value=0}
|
||||||
{/if}
|
{/if}
|
||||||
<a href='select.php?LSobject={$LSsearch->LSobject}&page=0&multiple={$searchForm.multiple}' class='LSobject-list-page'><</a>
|
<a href='select.php?LSobject={$LSsearch->LSobject}&page=0&multiple={$searchForm.multiple}' class='LSobject-list-page'><</a>
|
||||||
{foreach from=$range item=i}
|
{foreach from=0|range:10 item=i}
|
||||||
{if $page.nb==$start+$i}
|
{if $page.nb==$start+$i}
|
||||||
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
||||||
{else}
|
{else}
|
||||||
|
|
|
@ -93,7 +93,6 @@
|
||||||
<p class='LSobject-list-page'>
|
<p class='LSobject-list-page'>
|
||||||
|
|
||||||
{if $page.nbPages > 10}
|
{if $page.nbPages > 10}
|
||||||
{php}$this->assign('range', range(0,10));{/php}
|
|
||||||
{if $page.nb > 5}
|
{if $page.nb > 5}
|
||||||
{if $page.nb > $page.nbPages-6}
|
{if $page.nb > $page.nbPages-6}
|
||||||
{assign var=start value=$page.nbPages-12}
|
{assign var=start value=$page.nbPages-12}
|
||||||
|
@ -104,7 +103,7 @@
|
||||||
{assign var=start value=0}
|
{assign var=start value=0}
|
||||||
{/if}
|
{/if}
|
||||||
<a href='view.php?LSobject={$LSsearch->LSobject}&page=0' class='LSobject-list-page'><</a>
|
<a href='view.php?LSobject={$LSsearch->LSobject}&page=0' class='LSobject-list-page'><</a>
|
||||||
{foreach from=$range item=i}
|
{foreach from=0|range:10 item=i}
|
||||||
{if $page.nb==$start+$i}
|
{if $page.nb==$start+$i}
|
||||||
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
<strong class='LSobject-list-page'>{$page.nb+1}</strong>
|
||||||
{else}
|
{else}
|
||||||
|
|
Loading…
Reference in a new issue