diff options
author | eric <eric> | 2004-06-25 12:14:58 +0000 |
---|---|---|
committer | eric <eric> | 2004-06-25 12:14:58 +0000 |
commit | e7f806e43c8ccf0d4c8eb49b0020a99deb88a987 (patch) | |
tree | c8e2f28abe9ed8ba03c4f355704bba08dd7fd6b2 /web/lib | |
parent | 16a97cf1a38313dbe8cab0f29f1054e61a3964f6 (diff) | |
download | aurweb-e7f806e43c8ccf0d4c8eb49b0020a99deb88a987.tar.xz |
improved dummy data, sorting works on package listing, still need Less/More buttons and package operations (details, manage, out-of-date)
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgs.inc | 21 |
1 files changed, 12 insertions, 9 deletions
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 "</span></span><br />\n"; print " <select name='SB'>\n"; print " <option value=n"; - $SB == "n" ? print "selected> " : print "> "; + $SB == "n" ? print " selected> " : print "> "; print __("Name")."\n"; print " <option value=c"; - $SB == "c" ? print "selected> " : print "> "; + $SB == "c" ? print " selected> " : print "> "; print __("Category")."\n"; print " <option value=l"; - $SB == "l" ? print "selected> " : print "> "; + $SB == "l" ? print " selected> " : print "> "; print __("Location")."\n"; - print " <option value=p"; - $SB == "p" ? print "selected> " : print "> "; + print " <option value=v"; + $SB == "v" ? print " selected> " : print "> "; print __("Votes")."\n"; print " </select>\n"; print "</td>\n"; @@ -123,13 +123,13 @@ function pkg_search_page($L="",$C="",$K="",$SB="",$O=0,$PP=25) { print "</span></span><br />\n"; print " <select name='PP'>\n"; print " <option value=25"; - $PP == 25 ? print "selected> 25\n" : print "> 25\n"; + $PP == 25 ? print " selected> 25\n" : print "> 25\n"; print " <option value=50"; - $PP == 50 ? print "selected> 50\n" : print "> 50\n"; + $PP == 50 ? print " selected> 50\n" : print "> 50\n"; print " <option value=75"; - $PP == 75 ? print "selected> 75\n" : print "> 75\n"; + $PP == 75 ? print " selected> 75\n" : print "> 75\n"; print " <option value=100"; - $PP == 100 ? print "selected> 100\n" : print "> 100\n"; + $PP == 100 ? print " selected> 100\n" : print "> 100\n"; print " </select>\n"; print "</td>\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; |