summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-01-20 20:09:33 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-01-20 20:45:09 +0100
commit517ac744b27e324c3f3a6f827e66c0a1d03a033d (patch)
tree7a164a271a0986be5564e382c8308dda164b6b6f /web/template
parentec0dfc27deb246ee7d7f19fd5290e499805869d2 (diff)
downloadaur-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/template')
-rw-r--r--web/template/pkg_search_results.php2
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>