source: spip-zone/_modeles_/pagination_precedent_suivant.html @ 5250

Last change on this file since 5250 was 5250, checked in by fil@…, 15 years ago

recopie de tous les modeles de la dist, pour propositions d'ameliorations

File size: 986 bytes
Line 
1#ENV*{bloc_ancre}
2#SET{bornes,#ENV{page_courante}|calcul_bornes_pagination{#ENV{nombre_pages},10}}
3#SET{premiere, #GET{bornes}|reset}
4#SET{derniere, #GET{bornes}|end}
5#SET{separateur,'|'}
6#SET{i,#ENV{page_courante}|moins{1}}
7[(#GET{i}|>{0}|?{' ',''})[
8        (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
9        ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=<:public:page_precedente:>}{separateur=''}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
10        #SET{i,#GET{i}|plus{2}}
11        [(#GET{i}|<{#ENV{nombre_pages}}|?{'|',''})]
12]
13#SET{i,#ENV{page_courante}|plus{1}}
14[(#GET{i}|<={#ENV{nombre_pages}}|?{' ',''})[
15        (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
16        ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=<:public:page_suivante:>}{separateur=''}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
17]
Note: See TracBrowser for help on using the repository browser.