From 0bdfe847e37d4d4faee03cc77253059d80a69e59 Mon Sep 17 00:00:00 2001 From: Gergely Imreh Date: Sun, 18 Jan 2009 17:04:27 +0800 Subject: Add: page numbering of AUR search results On the search results page the number of pages is displayed and functions as a link, for faster navigation (not just the usual "Less/More" buttons. Signed-off-by: Loui Chang --- web/template/pkg_search_results.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'web/template/pkg_search_results.php') diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index de77b91c..bf18e346 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -125,14 +125,26 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { - + = 0): ?> 0): ?> - + + 0) { $pages = ceil($total/$_GET['PP']); } ?> + 0) { $currentpage = ceil(($_GET['O']+1)/$_GET['PP']); } + else { $currentpage = 1; } ?> + $currentpage) : + $pagestart = ($i-1)*$_GET['PP']; ?> + + + + 0): ?> '> -- cgit v1.2.3-24-g4f1b