source: cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_paginate.php @ 2689

Last change on this file since 2689 was 2479, checked in by roux, 9 years ago

suggestion titles from mail

File size: 1.3 KB
Line 
1<?php if ($pager->haveToPaginate()) : ?>
2<div class="pagination">
3   <?php if ($pager->getPage() != 1) echo link_to('<img alt="first" title="première page" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/min2.png"/>&nbsp; ', $link.'page=1'); ?>
4    <?php if ($pager->getPage() != 1)  echo link_to('<img alt="left" title="page précédente" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/left.png"/>&nbsp; ', $link.'page='.$pager->getPreviousPage()); ?>
5    <?php foreach ($pager->getLinks() as $page): ?>
6      <?php if ($page == $pager->getPage()): ?>
7        <span><b><?php echo $page ?></b></span>
8      <?php else: ?>
9        <span><a title="page <?php echo $page; ?>" href="<?php echo $link.'page='.$page; ?>"><?php echo $page; ?></a></span>
10      <?php endif; ?>
11    <?php endforeach; ?>
12    <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img alt="right" title="page suivante" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/right.png"/>', $link.'page='.$pager->getNextPage()); ?>
13    <?php if ($pager->getPage() != $pager->getLastPage()) echo link_to('<img alt="last" title="dernière page" src="'.$sf_request->getRelativeUrlRoot().'/images/xneth/max2.png"/> ', $link.'page='.$pager->getLastPage()); ?>
14</div>
15<?php endif; ?>
Note: See TracBrowser for help on using the repository browser.