tweaks to legend and bottom button tables

also tweaked checked implementation to list all community packages as safe
This commit is contained in:
pjmattal 2005-07-29 14:29:51 +00:00
parent 70b6b2250b
commit ea4532411b

View file

@ -914,7 +914,7 @@ function pkg_search_page($SID="") {
} }
reset($pkgsearch_vars); reset($pkgsearch_vars);
$url.= "'>"; $url.= "'>";
if ($row["Safe"] == 1) { if ($row["Safe"] == 1 || $locs[$row["LocationID"]] == "community") {
$url.="<span class='green'>"; $url.="<span class='green'>";
} }
else { else {
@ -983,19 +983,31 @@ function pkg_search_page($SID="") {
print " <td>\n"; print " <td>\n";
print " <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n"; print " <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
print " <tr>\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>'))."&nbsp;&nbsp;&nbsp;&nbsp;\n";
print " <font style='background-color: red'>".__("O%hut-of-Date", array('</font>'))."&nbsp;&nbsp;&nbsp;&nbsp;";
}
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'>"; print " <td align='left'>";
if (($O-$PP) >= 0) { if (($O-$PP) >= 0) {
print " <input type='submit' class='button' name='do_Less'"; print " <input type='submit' class='button' name='do_Less'";
print " value='&lt;-- ".__("Less")."'>\n"; print " value='&lt;-- ".__("Less")."'>\n";
} }
print " </td>\n"; else {
if ($SID) { print "&nbsp;";
print " <td align='center'><span class='f5'>\n";
print " <font style='background-color: cyan'>".__("O%hrphan", array('</font>'))."&nbsp;&nbsp;&nbsp;&nbsp;\n";
print " <font style='background-color: red'>".__("O%hut-of-Date", array('</font>'))."&nbsp;&nbsp;&nbsp;&nbsp;";
print ' <span class="green">'.__("Safe")."</span>\n";
print " </span></td>\n";
} }
print " </td>";
# RIGHT
print " <td align='right'>"; print " <td align='right'>";
if (mysql_num_rows(db_query($qnext, $dbh))) { if (mysql_num_rows(db_query($qnext, $dbh))) {
print " <input type='submit' class='button' name='do_More'"; print " <input type='submit' class='button' name='do_More'";
@ -1003,6 +1015,7 @@ function pkg_search_page($SID="") {
} }
print " </td>\n"; print " </td>\n";
print " </tr>\n"; print " </tr>\n";
print " </table>\n"; print " </table>\n";
print " </td>\n"; print " </td>\n";
print "</tr>\n"; print "</tr>\n";