From 2416ffea6691798fb5da0e2dc2e83b7bf6603624 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 13:37:56 -0400 Subject: pkg_search_results.php: Overhaul to match archweb * Change search results table to use CSS from archweb with better alternating line contrast * Change table results header to match archweb * General clean-up of XHTML Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 8 +- web/template/pkg_search_results.php | 239 +++++++++++++++++------------------- 2 files changed, 117 insertions(+), 130 deletions(-) diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index d34b415..0d4fe8c 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -582,8 +582,8 @@ function pkg_search_page($SID="", $dbh=NULL) { $templ_pages = array(); if ($current > 1) { - $templ_pages[__('First')] = 0; - $templ_pages[__('Previous')] = ($current - 2) * $per_page; + $templ_pages['« ' . __('First')] = 0; + $templ_pages['‹ ' . __('Previous')] = ($current - 2) * $per_page; } if ($current - 5 > 1) @@ -597,8 +597,8 @@ function pkg_search_page($SID="", $dbh=NULL) { $templ_pages["... "] = false; if ($current < $pages) { - $templ_pages[__('Next')] = $current * $per_page; - $templ_pages[__('Last')] = ($pages - 1) * $per_page; + $templ_pages[__('Next') . ' ›'] = $current * $per_page; + $templ_pages[__('Last') . ' »'] = ($pages - 1) * $per_page; } include('pkg_search_form.php'); diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 209a80d..95590f7 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -1,137 +1,124 @@ - -
- -
- -
' method='post'> -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - '> - - '> - - '> - - '> - - '> - - '> -
- - - - - - - &SeB=m'> - - - -
-
+if (!$result): ?> +

+ +

+ +
+
+

+

+ $pagestart): ?> + + + + + + + + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
]" value="1" />"> + + + + + + + + + + + + + +
+ +
+

+ +

+ $pagestart): ?> + + + + + + + + +

+
- - - + + + + + + + + + " /> +

+ + +
+ -- cgit v1.2.3-70-g09d2