mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
tweaks to legend and bottom button tables
also tweaked checked implementation to list all community packages as safe
This commit is contained in:
parent
70b6b2250b
commit
ea4532411b
1 changed files with 21 additions and 8 deletions
|
@ -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>'))." \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'>";
|
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='<-- ".__("Less")."'>\n";
|
print " value='<-- ".__("Less")."'>\n";
|
||||||
}
|
}
|
||||||
print " </td>\n";
|
else {
|
||||||
if ($SID) {
|
print " ";
|
||||||
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";
|
|
||||||
}
|
}
|
||||||
|
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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue