pagination.phtml 825 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $c = Request::controllerName ();
  3. $a = Request::actionName ();
  4. $params = Request::params ();
  5. ?>
  6. <ul class="pagination">
  7. <li class="item pager-previous">
  8. <?php if ($this->currentPage > 1) { ?>
  9. <?php $params[$getteur] = $this->currentPage - 1; ?>
  10. <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">‹ plus récents</a>
  11. <?php } else { ?>
  12. &nbsp;
  13. <?php } ?>
  14. </li>
  15. <li class="item pager-current">page <?php echo $this->currentPage; ?> / <?php echo $this->nbPage; ?></li>
  16. <li class="item pager-next">
  17. <?php if ($this->currentPage < $this->nbPage) { ?>
  18. <?php $params[$getteur] = $this->currentPage + 1; ?>
  19. <a href="<?php echo Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>">plus anciens ›</a>
  20. <?php } else { ?>
  21. &nbsp;
  22. <?php } ?>
  23. </li>
  24. </ul>