From ea4532411b0cc286e064e5f84dbf90701c93cd37 Mon Sep 17 00:00:00 2001 From: pjmattal Date: Fri, 29 Jul 2005 14:29:51 +0000 Subject: tweaks to legend and bottom button tables also tweaked checked implementation to list all community packages as safe --- web/lib/pkgfuncs.inc | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index ca251250..e355c47a 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -914,7 +914,7 @@ function pkg_search_page($SID="") { } reset($pkgsearch_vars); $url.= "'>"; - if ($row["Safe"] == 1) { + if ($row["Safe"] == 1 || $locs[$row["LocationID"]] == "community") { $url.=""; } else { @@ -983,19 +983,31 @@ function pkg_search_page($SID="") { print " \n"; print " \n"; print " \n"; + + # first print the legend + print " \n"; + print " "; + + # now print the forward and back buttons on the bottom + # LEFT + print " "; print " \n"; - if ($SID) { - print " \n"; + else { + print " "; } + print " "; + # RIGHT print " \n"; + print "
"; + print " \n"; + if ($SID) { + print " ".__("O%hrphan", array(''))."    \n"; + print " ".__("O%hut-of-Date", array(''))."    "; + } + print ' '.__("Safe")."\n"; + print "
"; if (($O-$PP) >= 0) { print " \n"; } - print " \n"; - print " ".__("O%hrphan", array(''))."    \n"; - print " ".__("O%hut-of-Date", array(''))."    "; - print ' '.__("Safe")."\n"; - print " "; if (mysql_num_rows(db_query($qnext, $dbh))) { print " \n"; print "
\n"; print " \n"; print "\n"; -- cgit v1.2.3-24-g4f1b