Subversion Repositories Applications.annuaire

Rev

Rev 8 | Rev 47 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php if($pagination['page_precedente']) { ?> 
<a class="premiere_page" href="<?=$url_pagination = clone($base_url_pagination);  
                                $url_pagination->setVariableRequete('numero_page',($pagination['page_precedente'])); 
                                $url_pagination->setVariableRequete('taille_page',($pagination['taille_page'])); 
                                echo $url_pagination; ?>" title="Page précédente"> Page précédente </a>
<?php } ?>

<?php if($pagination['page_suivante']) { ?> 
<a class="derniere_page" href="<?=$url_pagination = clone($base_url_pagination); 
                                $url_pagination->setVariableRequete('numero_page',($pagination['page_suivante'])); 
                                $url_pagination->setVariableRequete('taille_page',($pagination['taille_page'])); 
                                echo $url_pagination; ?>" title="Page suivante"> Page suivante </a>                             
<?php } ?>      

<div id="pages">
<?php for($i = 1; $i <= $pagination['nombre_pages'] + 1 ; $i++) : ?>
                <?php if($i == $pagination['numero_page']) { ?>
                        <span id="page_courante">
                <?php } else { ?>
                        <span>
                <?php } ?>
                                <a class="premiere_page" href="<?=$url_pagination = clone($base_url_pagination); 
                                $url_pagination->setVariableRequete('numero_page',($i)); 
                                $url_pagination->setVariableRequete('taille_page',($pagination['taille_page'])); 
                                echo $url_pagination; ?>" title="Page numéro <?=$i ?>"> <?=$i ?> </a>
                        </span>
<?php endfor; ?>
</div>

<hr style="clear:both;visibility:hidden;" />