diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-01-20 20:09:33 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-01-20 20:45:09 +0100 |
commit | 517ac744b27e324c3f3a6f827e66c0a1d03a033d (patch) | |
tree | 7a164a271a0986be5564e382c8308dda164b6b6f /web | |
parent | ec0dfc27deb246ee7d7f19fd5290e499805869d2 (diff) | |
download | aur-517ac744b27e324c3f3a6f827e66c0a1d03a033d.tar.gz aur-517ac744b27e324c3f3a6f827e66c0a1d03a033d.tar.xz |
Implemented "First" and "Last" link for search results (fixes FS#15690).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r-- | web/template/pkg_search_results.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index bf00da5a..b8f2e14b 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -131,6 +131,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { $O = 0; } ?> + <a class="page_num" href="packages.php?<?php print mkurl("O=0") ?>"><?php echo __('First') ?></a> <a class="page_num" href="packages.php?<?php print mkurl("O=$O") ?>"><?php echo __('Previous') ?></a> <?php endif; ?> @@ -171,6 +172,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { <?php if ($total - $_GET['PP'] - $_GET['O'] > 0): ?> <a class="page_num" href='packages.php?<?php print mkurl('O=' . ($_GET['O'] + $_GET['PP'])) ?>'><?php echo __('Next') ?></a> + <a class="page_num" href='packages.php?<?php print mkurl('O=' . ($total - $_GET['PP'])) ?>'><?php echo __('Last') ?></a> <?php endif; ?> </div> |