2003-03-28 21:54:07 +00:00
|
|
|
<?php
|
|
|
|
require_once("db.inc");
|
2003-08-22 05:36:25 +00:00
|
|
|
require_once("util.inc");
|
2003-03-28 21:54:07 +00:00
|
|
|
|
|
|
|
init_session();
|
|
|
|
db_init();
|
|
|
|
page_head("Project totals");
|
|
|
|
|
|
|
|
start_table();
|
|
|
|
row1("Project totals");
|
|
|
|
|
2003-12-02 22:04:26 +00:00
|
|
|
// need to break out the following by app
|
|
|
|
|
|
|
|
if (0) {
|
|
|
|
$result = mysql_query("select count(*) as total from result where server_state=5");
|
|
|
|
$comp = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
row2("Results completed", $comp->total);
|
|
|
|
|
|
|
|
$result = mysql_query("select count(*) as total from result where server_state=4");
|
|
|
|
$comp = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
row2("Results in progress", $comp->total);
|
|
|
|
|
|
|
|
$result = mysql_query("select count(*) as total from result where server_state=2");
|
|
|
|
$comp = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
row2("Results waiting to send", $comp->total);
|
|
|
|
}
|
2003-03-28 21:54:07 +00:00
|
|
|
|
|
|
|
$result = mysql_query("select count(*) as total from user");
|
|
|
|
$comp = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
row2("Participants", $comp->total);
|
|
|
|
|
|
|
|
$result = mysql_query("select count(*) as total from host");
|
|
|
|
$comp = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
row2("Computers", $comp->total);
|
|
|
|
|
|
|
|
end_table();
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
|
|
|
|
?>
|