From 170d68f61ff5653c1b8dae89d127298cd1965f04 Mon Sep 17 00:00:00 2001 From: simo Date: Mon, 17 Oct 2005 00:36:55 +0000 Subject: Move search sorting to column headers Sort by age still exists, need to reimplement in UI --- web/lib/pkgfuncs.inc | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index e277ef5..b633a1f 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -664,7 +664,7 @@ function pkg_search_page($SID="") { print " value=\"".stripslashes($K)."\" maxlength='35'>\n"; print "\n"; - print "\n"; +/* print "\n"; print " ".__("Sort by"); print "
\n"; print " \n"; print "\n"; - +*/ print "\n"; print " ".__("Per page"); print "
\n"; @@ -896,6 +896,14 @@ function pkg_search_page($SID="") { # print out package search results # + + # SO_next used to change sort order on header click + if ($_REQUEST["SO"] == "d"){ + $SO_next="a"; + } else { + $SO_next="d"; + } + print "
\n"; print "\n"; print "\n"; @@ -912,21 +920,32 @@ function pkg_search_page($SID="") { print " bottom'> \n"; } print " \n"; + print " bottom'>"; + print "".__("Location").""; + print "\n"; print " \n"; + print " bottom'>"; + print "".__("Category").""; + print "\n"; print " \n"; + print " bottom'>"; + print "".__("Name").""; + print "\n"; print " \n"; + print " bottom'>"; + print "".__("Votes").""; + print "\n"; if ($SID) { print " \n"; } print " \n"; + print " bottom'>".__("Description").""; + print "\n"; print " \n"; + print " bottom'>"; + print "".__("Maintainer").""; + print "\n"; # REMOVED LINK TO 'pkgmgmnt.php' # if ($SID) { # print "
".__("Location")."".__("Category")."".__("Name")."".__("Votes")."".__("Voted")."".__("Description")."".__("Maintainer")."