Posted By

ArneR on 09/25/09


Tagged

template paginator Framework zend


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

postNuKe


Zend Paginator Template


 / Published in: PHP
 

URL: http://www.limespace.de

Simple "german" Paginator Template

  1. <div class="span-16 push-5 prepend-top">
  2. <?php if (isset($this->previous)): ?>
  3. <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt; Zurück</a>
  4. <?php else: ?>
  5. <span class="disabled">&lt; Zurück</span>
  6. <?php endif; ?>
  7.  
  8. <?php foreach ($this->pagesInRange as $page): ?>
  9. <?php if ($page != $this->current): ?>
  10. <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo '[' . $page . ']'; ?></a>
  11. <?php else: ?>
  12. <?php echo '[' . $page . ']'; ?>
  13. <?php endif; ?>
  14. <?php endforeach; ?>
  15.  
  16. <?php if (isset($this->next)): ?>
  17. <a href="<?php echo $this->url(array('page' => $this->next)); ?>">Vorwärts &gt;</a>
  18. <?php else: ?>
  19. <span class="disabled">Vorwärts &gt;</span>
  20. <?php endif; ?>
  21. </div>

Report this snippet  

You need to login to post a comment.