2009-09-23 06:43:11 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
|
|
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
|
2009-10-19 08:43:55 +00:00
|
|
|
<ul class="g-pager ui-helper-clearfix">
|
2009-09-23 06:43:11 +00:00
|
|
|
<? /* @todo This message isn't easily localizable */
|
|
|
|
$from_to_msg = t2("%current_page / %total_pages",
|
|
|
|
"%current_page / %total_pages",
|
|
|
|
$total_items,
|
|
|
|
array("total_pages" => $total_pages,
|
|
|
|
"current_page" => $current_page)) ?>
|
|
|
|
<li>
|
|
|
|
<? if ($first_page): ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', 1, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
|
|
|
|
<? else: ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-first"></span><?= t("first") ?></a>
|
|
|
|
<? endif ?>
|
|
|
|
<? if ($previous_page): ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $previous_page, $url) ?>" class="g-button ui-icon-left ui-state-default ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
|
|
|
|
<? else: ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-prev"></span><?= t("previous") ?></a>
|
|
|
|
<? endif ?>
|
|
|
|
</li>
|
2009-10-19 07:21:48 +00:00
|
|
|
<li class="g-info"><?= $from_to_msg ?></li>
|
2009-11-10 07:32:15 +00:00
|
|
|
<li class="g-text-right">
|
2009-09-23 06:43:11 +00:00
|
|
|
<? if ($next_page): ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
|
|
|
|
<? else: ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
|
|
|
|
<? endif ?>
|
|
|
|
<? if ($last_page): ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a href="<?= str_replace('{page}', $last_page, $url) ?>" class="g-button ui-icon-right ui-state-default ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
|
|
|
|
<? else: ?>
|
2009-10-19 07:21:48 +00:00
|
|
|
<a class="g-button ui-state-disabled ui-icon-right ui-corner-all">
|
2009-09-23 06:43:11 +00:00
|
|
|
<span class="ui-icon ui-icon-seek-end"></span><?= t("last") ?></a>
|
|
|
|
<? endif ?>
|
|
|
|
</li>
|
|
|
|
</ul>
|