Jeremy Newman : cleanup

Jeremy Newman jnewman at winehq.org
Mon Nov 21 08:38:09 CST 2016


Module: appdb
Branch: master
Commit: 40dd50d292ee77f64c81d214769cc17f42ec7218
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=40dd50d292ee77f64c81d214769cc17f42ec7218

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Fri Nov 18 10:55:41 2016 -0600

cleanup

---

 appdbStats.php | 44 ++++++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/appdbStats.php b/appdbStats.php
index 0915839..51ac310 100644
--- a/appdbStats.php
+++ b/appdbStats.php
@@ -7,90 +7,94 @@ require("path.php");
 require(BASE."include/incl.php");
 require_once(BASE."include/user.php");
 
-apidb_header("Appdb Statistics");
+apidb_header("AppDB Statistics");
 
-echo "<div class='default_container'>\n";
+echo "<h1 class=\"whq-app-title\">AppDB Statistics</h1>\n";
 
-echo html_frame_start("","60%","");
-echo "<table width='100%' border=1 cellpadding=3 cellspacing=0>\n\n";
+echo "<table class=\"whq-table\">\n";
+echo "<thead>\n";
+echo "<tr>\n";
+echo "    <td>Item:</td>\n";
+echo "    <td>Stat:</td>\n";
+echo "</tr>\n\n";
+echo "</thead>\n";
+echo "<tbody>\n";
 
 /* Display the number of users */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Users:</td>\n";
 echo "    <td>".User::objectGetEntriesCount()."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the active users in the last 30 days */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Users active within the last 30 days:</td>\n";
 echo "    <td>".User::active_users_within_days(30)."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the active users in the last 60 days */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Users active within the last 60 days:</td>\n";
 echo "    <td>".User::active_users_within_days(60)."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the active users in the last 90 days */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Users active within the last 90 days:</td>\n";
 echo "    <td>".User::active_users_within_days(90)."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the inactive users */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Inactive users (not logged in since six months):</td>\n";
 echo "    <td>".(User::objectGetEntriesCount()-
         User::active_users_within_days(183))."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the users who were warned and pending deletion */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Inactive users pending deletion:</td>\n";
 echo "    <td>".User::get_inactive_users_pending_deletion()."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of comments */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Comments:</td>\n";
 echo "    <td>".getNumberOfComments()."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of application familes */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Application families:</td>\n";
 echo "    <td>".application::objectGetEntriesCount('accepted')."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of versions */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Versions:</td>\n";
 echo "    <td>".version::objectGetEntriesCount('accepted')."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of application maintainers */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Application maintainers:</td>\n";
 echo "    <td>".Maintainer::getNumberOfMaintainers()."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of test reports */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Test reports:</td>\n";
 echo "    <td>".testData::objectGetEntriescount('accepted')."</td>\n";
 echo "</tr>\n\n";
 
 /* Display the number of images */
-echo "<tr class=color4>\n";
+echo "<tr>\n";
 echo "    <td>Screenshots:</td>\n";
 echo "    <td>".screenshot::objectGetEntriesCount('accepted')."</td>\n";
 echo "</tr>\n\n";
-	
-echo "</table>\n\n";
 
-echo "</div>\n";
+echo "</tbody>\n";
+echo "</table>\n\n";
 
-echo html_frame_end(" ");
 apidb_footer();
 ?>




More information about the wine-cvs mailing list