From e7f806e43c8ccf0d4c8eb49b0020a99deb88a987 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 25 Jun 2004 12:14:58 +0000 Subject: improved dummy data, sorting works on package listing, still need Less/More buttons and package operations (details, manage, out-of-date) --- web/lib/pkgs.inc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgs.inc b/web/lib/pkgs.inc index b9d061e..47dd06a 100644 --- a/web/lib/pkgs.inc +++ b/web/lib/pkgs.inc @@ -104,16 +104,16 @@ function pkg_search_page($L="",$C="",$K="",$SB="",$O=0,$PP=25) { print "
\n"; print " \n"; print "\n"; @@ -123,13 +123,13 @@ function pkg_search_page($L="",$C="",$K="",$SB="",$O=0,$PP=25) { print "
\n"; print " \n"; print "\n"; @@ -184,6 +184,9 @@ function pkg_search_page($L="",$C="",$K="",$SB="",$O=0,$PP=25) { case 'l': $q.= "ORDER BY LocationID ASC, Name ASC, CategoryID ASC "; break; + case 'v': + $q.= "ORDER BY Votes DESC, Name ASC, CategoryID ASC "; + break; default: $q.= "ORDER BY Name ASC, LocationID ASC, CategoryID ASC "; break; -- cgit v1.2.3-54-g00ecf