westdc-zf1/application/admin/views/scripts/pagination.phtml

26 lines
804 B
PHTML
Raw Normal View History

2009-03-06 03:20:46 +00:00
<?php if ($this->pageCount): ?>
<div class="paginationControl">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<a href="<?= $this->url(array('page' => $this->previous)); ?>">&lt; Previous</a>
2009-03-06 03:20:46 +00:00
<?php else: ?>
<span class="disabled">&lt; Previous</span>
2009-03-06 03:20:46 +00:00
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a>
2009-03-06 03:20:46 +00:00
<?php else: ?>
<?= $page; ?>
2009-03-06 03:20:46 +00:00
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<a href="<?= $this->url(array('page' => $this->next)); ?>">Next &gt;</a>
<?php else: ?>
<span class="disabled">Next &gt;</span>
<?php endif; ?>
</div>
<?php endif; ?>