From 03edceff501224df4ac268781fef9e1aef8e21ea Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Fri, 23 Jan 2009 15:02:49 -0500 Subject: Add Previous and Next links for search results. Move things around at the bottom of the search results page. Signed-off-by: Loui Chang --- web/template/pkg_search_results.php | 109 ++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 53 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 7741f42..f4b293b 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -1,15 +1,8 @@
' method='post'> -
- - - - - - - - -
+
+
-
- +
@@ -17,6 +10,7 @@
+
@@ -83,43 +77,42 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { -
 
-
- - -
- - +
- - + +
+
- - -
- - - - - + + + - @@ -164,11 +171,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { } } ?> - -
- - - -
- -
+
+ + + +
+ +
+ + +
+ +
+ + +
0) { $pages = ceil($total / $_GET['PP']); @@ -128,8 +121,6 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { if ($pages > 1) { ?> -
0) { $currentpage = ceil(($_GET['O'] + 1) / $_GET['PP']); @@ -156,7 +147,23 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { + 0): + $O = $_GET['O'] - $_GET['PP']; + + if ($_GET['O'] < $_GET['PP']) { + $O = 0; + } + ?> + "> + + + 0): ?> + '> + +
-
- -
+ +
+ -- cgit v1.2.3-70-g09d2