Mise en route du suivi.
[aidenligne_francais_universite.git] / dist / modeles / pagination_page_precedent_suivant.html
CommitLineData
c495c100
P
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
7[<a href='[(#ENV{url}|parametre_url{#ENV{debut},''})]##ENV{ancre}' class='lien_pagination'>(#GET{premiere}|>{1}|?{'...',''})</a> #GET*{separateur}]
8#SET{i,#ENV{page_courante}|moins{#ENV{pas}}
9[(#GET{i}|>{0}|?{' ',''})[
10 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
11 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte='&lt;'}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
12]
13
14#SET{i,#GET{premiere}}
15[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
16 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
17 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
18]
19#SET{i,#GET{i}|plus{1}}
20[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
21 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
22 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
23]
24#SET{i,#GET{i}|plus{1}}
25[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
26 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
27 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
28]
29#SET{i,#GET{i}|plus{1}}
30[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
31 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
32 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
33]
34#SET{i,#GET{i}|plus{1}}
35[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
36 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
37 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
38]
39#SET{i,#GET{i}|plus{1}}
40[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
41 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
42 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
43]
44#SET{i,#GET{i}|plus{1}}
45[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
46 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
47 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
48]
49#SET{i,#GET{i}|plus{1}}
50[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
51 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
52 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
53]
54#SET{i,#GET{i}|plus{1}}
55[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
56 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
57 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
58]
59#SET{i,#GET{i}|plus{1}}
60[(#GET{i}|<={#GET{derniere}}|?{' ',''})[
61 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
62 ][(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{i}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]
63]
64
65#SET{i,#ENV{page_courante}|plus{#ENV{pas}}
66[(#GET{i}|<{#ENV{nombre_pages}}|?{' ',''})[
67 (#SET{item, #GET{i}|moins{1}|mult{#ENV{pas}} })
68 ][#GET*{separateur} (#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte='&gt;'}{separateur=''}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#ENV{derniere}})]
69]
70[#GET*{separateur} <a href='[(#ENV{url}|parametre_url{#ENV{debut},#ENV{nombre_pages}|moins{1}|mult{#ENV{pas}}})]##ENV{ancre}' class='lien_pagination'>(#GET{derniere}|<{#ENV{nombre_pages}}|?{'...',''})</a>]