Making good use of Pagination class to reduce code (removed MY_Controller which duplicated some functionality available in Pagination as well)

This commit is contained in:
Joe7
2011-01-11 21:28:25 +01:00
parent 00b520fffd
commit df802de6ae
3 changed files with 13 additions and 65 deletions

View File

@@ -109,32 +109,8 @@
<? endforeach ?>
</table>
<div class="g-right">
<? if (isset($previous_page_url)): ?>
<a href="<?= $previous_page_url ?>"
class="g-button ui-icon-left ui-state-default ui-corner-all"
title="<?= t("Previous page")->for_html_attr() ?>">
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all"
title="<?= t("Previous page")->for_html_attr() ?>">
<? endif ?>
<span class="ui-icon ui-icon-circle-plus"></span>
<?= t("Previous") ?>
</a>
<?= t("Page %current of %total", array("current"=>$page, "total"=>$max_pages)) ?>
<? if (isset($next_page_url)): ?>
<a href="<?= $next_page_url ?>"
class="g-button ui-icon-left ui-state-default ui-corner-all"
title="<?= t("Next page")->for_html_attr() ?>">
<? else: ?>
<a class="g-button ui-icon-left ui-state-disabled ui-corner-all"
title="<?= t("Next page")->for_html_attr() ?>">
<? endif ?>
<span class="ui-icon ui-icon-circle-plus"></span>
<?= t("Next") ?>
</a>
<div class="g-paginator">
<?= $pager ?>
</div>
</div>