8 |
aurelien |
1 |
<?php if($pagination['page_precedente']) { ?>
|
|
|
2 |
<a class="premiere_page" href="<?=$url_pagination = clone($base_url_pagination);
|
|
|
3 |
$url_pagination->setVariableRequete('numero_page',($pagination['page_precedente']));
|
|
|
4 |
$url_pagination->setVariableRequete('taille_page',($pagination['taille_page']));
|
|
|
5 |
echo $url_pagination; ?>" title="Page précédente"> Page précédente </a>
|
|
|
6 |
<?php } ?>
|
|
|
7 |
|
|
|
8 |
<?php if($pagination['page_suivante']) { ?>
|
|
|
9 |
<a class="derniere_page" href="<?=$url_pagination = clone($base_url_pagination);
|
|
|
10 |
$url_pagination->setVariableRequete('numero_page',($pagination['page_suivante']));
|
|
|
11 |
$url_pagination->setVariableRequete('taille_page',($pagination['taille_page']));
|
|
|
12 |
echo $url_pagination; ?>" title="Page suivante"> Page suivante </a>
|
|
|
13 |
<?php } ?>
|
|
|
14 |
|
|
|
15 |
<div id="pages">
|
|
|
16 |
<?php for($i = 1; $i <= $pagination['nombre_pages'] ; $i++) : ?>
|
|
|
17 |
<?php if($i == $pagination['numero_page']) { ?>
|
|
|
18 |
<span id="page_courante">
|
|
|
19 |
<?php } else { ?>
|
|
|
20 |
<span>
|
|
|
21 |
<?php } ?>
|
|
|
22 |
<a class="premiere_page" href="<?=$url_pagination = clone($base_url_pagination);
|
|
|
23 |
$url_pagination->setVariableRequete('numero_page',($i));
|
|
|
24 |
$url_pagination->setVariableRequete('taille_page',($pagination['taille_page']));
|
|
|
25 |
echo $url_pagination; ?>" title="Page numéro <?=$i+1 ?>"> <?=$i ?> </a>
|
|
|
26 |
</span>
|
|
|
27 |
<?php endfor; ?>
|
|
|
28 |
</div>
|
|
|
29 |
|
|
|
30 |
<hr style="clear:both;visibility:hidden;" />
|