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

26 lines
911 B
PHTML
Raw Normal View History

2009-03-06 03:20:46 +00:00
<?php if ($this->pageCount): ?>
<ul class="pagination">
2009-03-06 03:20:46 +00:00
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<li><a href="<?= $this->url(array('page' => $this->previous)); ?>">&laquo;</a></li>
2009-03-06 03:20:46 +00:00
<?php else: ?>
<li class="disabled"><a href="javascript:;">&laquo;</a></li>
2009-03-06 03:20:46 +00:00
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<li><a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a></li>
2009-03-06 03:20:46 +00:00
<?php else: ?>
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
2009-03-06 03:20:46 +00:00
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<li><a href="<?= $this->url(array('page' => $this->next)); ?>">&raquo;</a></li>
2009-03-06 03:20:46 +00:00
<?php else: ?>
<li class="disabled"><a href="javascript:;">&raquo;</a></li>
2009-03-06 03:20:46 +00:00
<?php endif; ?>
</ul>
2009-03-06 03:20:46 +00:00
<?php endif; ?>