From d14def92ff34122bffa4de1fac01598b1d913648 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Fri, 18 Jan 2008 01:11:12 +0900 Subject: Turn action bar into drop box Moves the action bar down to the bottom right of the search results and turns it into a drop-down selection box. Signed-off-by: Callan Barrett Signed-off-by: Simo Leone --- web/lib/pkgfuncs.inc | 67 ++++++++++++++++------------------------------------ 1 file changed, 21 insertions(+), 46 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 713eb6b..3608012 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -766,8 +766,10 @@ function pkg_search_page($SID="") { print "\n"; print "\n"; print "\n"; + print ""; print "
\n"; + print "
\n"; # query to pull out package info # # $q = "SELECT Packages.*, IF(ISNULL(PackageID), 0, COUNT(*)) AS Votes "; @@ -879,51 +881,8 @@ function pkg_search_page($SID="") { $qnext = $q."LIMIT ".($O+$PP).", ".$PP; //next page's worth $q.= "LIMIT ".$O.", ".$PP; - if ($SID) { - # The 'Actions' table - # - print "
\n"; - print "\n"; - print "\n"; - print " \n"; - print "\n"; - print "\n"; - print " \n"; - print "\n"; - print "
\n"; - print " ".__("Actions")."\n"; - print "
\n"; - print "\n"; - print "\n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print "
"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
\n"; - print "
\n"; - print "
\n"; - print "
\n"; - } - - // Why? - // print "\n"; + $result = db_query($q, $dbh); print "
\n"; @@ -1100,13 +1059,29 @@ function pkg_search_page($SID="") { if ($_REQUEST["do_Orphans"]) { print "\n"; } - + + if ($SID) { + # The 'Actions' box + # + print "
"; + print ""; + print ""; + print "
"; + } + print "\n"; print "\n"; print "
\n"; print " \n"; print " \n"; - + # figure out the results to use $first = $O + 1; -- cgit v1.2.3-54-g00ecf