added safe packages count in the statistics frame

This commit is contained in:
swiergot 2005-09-02 16:25:59 +00:00
parent d55ee42f85
commit cb63efbfc5
3 changed files with 16 additions and 0 deletions

View file

@ -209,6 +209,11 @@ $result = db_query($q, $dbh);
$row = mysql_fetch_row($result); $row = mysql_fetch_row($result);
$update_count = $row[0]; $update_count = $row[0];
$q = "SELECT count(*) FROM Packages,PackageLocations WHERE Packages.LocationID = PackageLocations.ID AND PackageLocations.Location = 'unsupported' AND Packages.Safe = 1";
$result = db_query($q, $dbh);
$row = mysql_fetch_row($result);
$safe_count = $row[0];
print "<table class='boxSoft'>"; print "<table class='boxSoft'>";
print "<tr>"; print "<tr>";
@ -224,6 +229,13 @@ print "</td>";
print "<td class='boxSoft'><span class='f4'>$unsupported_count</span></td>"; print "<td class='boxSoft'><span class='f4'>$unsupported_count</span></td>";
print "</tr>"; print "</tr>";
print "<tr>";
print "<td class='boxSoft'>";
print "<span class='f4'>".__("Packages in unsupported and flagged as safe")."</span>";
print "</td>";
print "<td class='boxSoft'><span class='f4'>$safe_count</span></td>";
print "</tr>";
print "<tr>"; print "<tr>";
print "<td class='boxSoft'>"; print "<td class='boxSoft'>";
print "<span class='f4'>".__("Packages in [community]")."</span>"; print "<span class='f4'>".__("Packages in [community]")."</span>";

View file

@ -73,6 +73,8 @@ $_t["en"]["Trusted Users"] = "Trusted Users";
$_t["en"]["Packages in unsupported"] = "Packages in unsupported"; $_t["en"]["Packages in unsupported"] = "Packages in unsupported";
$_t["en"]["Packages in unsupported and flagged as safe"] = "Packages in unsupported and flagged as safe";
$_t["en"]["Packages in [community]"] = "Packages in [community]"; $_t["en"]["Packages in [community]"] = "Packages in [community]";
$_t["en"]["Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community]."] = "Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community]."; $_t["en"]["Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community]."] = "Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community].";

View file

@ -40,6 +40,8 @@ $_t["pl"]["Remember to vote for your favourite packages!"] = "Nie zapomnij głos
$_t["pl"]["Packages in unsupported"] = "Pakietów w unsupported"; $_t["pl"]["Packages in unsupported"] = "Pakietów w unsupported";
$_t["pl"]["Packages in unsupported and flagged as safe"] = "Pakietów w unsupported oznaczonych jako bezpieczne";
$_t["pl"]["The most popular packages will be provided as binary packages in [community]."] = "Najbardziej popularne pakiety zostaną umieszczone w formie binarnej w [community]."; $_t["pl"]["The most popular packages will be provided as binary packages in [community]."] = "Najbardziej popularne pakiety zostaną umieszczone w formie binarnej w [community].";
$_t["pl"]["Trusted Users"] = "Zaufanych Użytkowników"; $_t["pl"]["Trusted Users"] = "Zaufanych Użytkowników";