diff options
author | pjmattal <pjmattal> | 2005-03-12 17:45:06 +0100 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-03-12 17:45:06 +0100 |
commit | 9d69979bb9e8498ac1ac6b4d08fb6b3ba9042cdc (patch) | |
tree | 81c93d0ec9d57194a5054c120575555a52684648 /web | |
parent | e3587ddf94ba742beabdaa8a68023f8ee0234b58 (diff) | |
download | aur-9d69979bb9e8498ac1ac6b4d08fb6b3ba9042cdc.tar.gz aur-9d69979bb9e8498ac1ac6b4d08fb6b3ba9042cdc.tar.xz |
added Simo's orphan package patch (bug #2281)
Diffstat (limited to 'web')
-rw-r--r-- | web/lang/pkgfuncs_po.inc | 5 | ||||
-rw-r--r-- | web/lib/pkgfuncs.inc | 21 |
2 files changed, 25 insertions, 1 deletions
diff --git a/web/lang/pkgfuncs_po.inc b/web/lang/pkgfuncs_po.inc index 3d315235..2d0b0693 100644 --- a/web/lang/pkgfuncs_po.inc +++ b/web/lang/pkgfuncs_po.inc @@ -202,4 +202,9 @@ $_t["en"]["Yes"] = "Yes"; # $_t["fr"]["Yes"] = "--> Traduction fran�aise ici. <--"; # $_t["de"]["Yes"] = "--> Deutsche �bersetzung hier. <--"; +$_t["en"]["Orphans"] = "Orphans"; +# $_t["es"]["Orphans"] = "--> Traducci�n espa�ola aqu�. <--"; +# $_t["fr"]["Orphans"] = "--> Traduction fran�aise ici. <--"; +# $_t["de"]["Orphans"] = "--> Deutsche �bersetzung hier. <--"; + ?> diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index f832111f..00831de8 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -531,6 +531,11 @@ function pkg_search_page($SID="") { print "</td>\n"; } + print "<td align='right' valign='bottom'> \n"; + print " <input type='submit' class='button' name='do_Orphans'"; + print " value='".__("Orphans")."'>\n"; + print "</td>\n"; + print "</tr>\n"; print "</table>\n"; @@ -590,7 +595,18 @@ function pkg_search_page($SID="") { } } } - + if ($_REQUEST["do_Orphans"]) { + # List packages that have neither a Maintainer nor AURMaintainer + # + if (!$has_where) { + $q.= "WHERE (AURMaintainerUID = 0 AND "; + $q.= "MaintainerUID = 0) "; + $has_where = 1; + } else { + $q.= "AND (AURMaintainerUID = 0 AND "; + $q.= "MaintainerUID = 0) "; + } + } switch ($_REQUEST["SB"]) { case 'c': $q.= "ORDER BY CategoryID DESC, Name ASC, LocationID ASC "; @@ -708,6 +724,9 @@ function pkg_search_page($SID="") { if ($row["OutOfDate"]) { print "<span style='background-color: red'>"; } + if ($row["MaintainerUID"]==0 && $row["AURMaintainerUID"]==0) { + print "<span style='background-color: cyan'>"; + } print "<input type='checkbox' name='IDs[".$row["ID"]."]' value='1'>"; # if ($i == 0) { # $all_ids = $row["ID"]; |