diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 29 |
1 files changed, 21 insertions, 8 deletions
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.="<span class='green'>"; } else { @@ -983,19 +983,31 @@ function pkg_search_page($SID="") { print " <td>\n"; print " <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n"; print " <tr>\n"; + + # first print the legend + print " <td colspan='2' align='center'>"; + print " <span class='f5'>\n"; + if ($SID) { + print " <font style='background-color: cyan'>".__("O%hrphan", array('</font>'))." \n"; + print " <font style='background-color: red'>".__("O%hut-of-Date", array('</font>'))." "; + } + print ' <span class="green">'.__("Safe")."</span>\n"; + print " </span></td>\n"; + print " </tr>"; + + # now print the forward and back buttons on the bottom + # LEFT + print " <tr>"; print " <td align='left'>"; if (($O-$PP) >= 0) { print " <input type='submit' class='button' name='do_Less'"; print " value='<-- ".__("Less")."'>\n"; } - print " </td>\n"; - if ($SID) { - print " <td align='center'><span class='f5'>\n"; - print " <font style='background-color: cyan'>".__("O%hrphan", array('</font>'))." \n"; - print " <font style='background-color: red'>".__("O%hut-of-Date", array('</font>'))." "; - print ' <span class="green">'.__("Safe")."</span>\n"; - print " </span></td>\n"; + else { + print " "; } + print " </td>"; + # RIGHT print " <td align='right'>"; if (mysql_num_rows(db_query($qnext, $dbh))) { print " <input type='submit' class='button' name='do_More'"; @@ -1003,6 +1015,7 @@ function pkg_search_page($SID="") { } print " </td>\n"; print " </tr>\n"; + print " </table>\n"; print " </td>\n"; print "</tr>\n"; |