summaryrefslogtreecommitdiff
path: root/themes/admin_default/views/pager.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-15 01:50:52 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-15 01:50:52 +0000
commit1127257f638ce641f23751928c449c3121622a8d (patch)
tree1f84154eaf0e4305fb4019e616eeee80e725a8e6 /themes/admin_default/views/pager.html.php
parent20f6be62c827ab975c652f0d841cfa85d33405ed (diff)
Rename default_admin to admin_default.
Diffstat (limited to 'themes/admin_default/views/pager.html.php')
-rw-r--r--themes/admin_default/views/pager.html.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/themes/admin_default/views/pager.html.php b/themes/admin_default/views/pager.html.php
new file mode 100644
index 00000000..76cb35cd
--- /dev/null
+++ b/themes/admin_default/views/pager.html.php
@@ -0,0 +1,25 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<? // See http://docs.kohanaphp.com/libraries/pagination ?>
+<ul id="gPager">
+ <li><?= sprintf(_("Items %d - %d of %d"), $current_first_item, $current_last_item, $total_items) ?></li>
+ <? if ($first_page): ?>
+ <li class="first"><a href="<?= str_replace('{page}', 1, $url) ?>"><?= _("first") ?></a></li>
+ <? else: ?>
+ <li class="first_inactive"><?= _("first") ?></li>
+ <? endif ?>
+ <? if ($previous_page): ?>
+ <li class="previous"><a href="<?= str_replace('{page}', $previous_page, $url) ?>"><?= _("previous") ?></a></li>
+ <? else: ?>
+ <li class="previous_inactive"><?= _("previous") ?></li>
+ <? endif ?>
+ <? if ($next_page): ?>
+ <li class="next"><a href="<?= str_replace('{page}', $next_page, $url) ?>"><?= _("next") ?></a></li>
+ <? else: ?>
+ <li class="next_inactive"><?= _("next") ?></li>
+ <? endif ?>
+ <? if ($last_page): ?>
+ <li class="last"><a href="<?= str_replace('{page}', $last_page, $url) ?>"><?= _("last") ?></a></li>
+ <? else: ?>
+ <li class="last_inactive"><?= _("last") ?></li>
+ <? endif ?>
+</ul>