Show the number of applications that are in the submission queue next to the

"View app queue" link so admins don't have to view the queue to see if there
is anything that needs to be processed.
This commit is contained in:
Chris Morgan
2004-11-09 22:33:54 +00:00
committed by Jeremy Newman
parent 20f64eb584
commit 4ffd2190bf
2 changed files with 10 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ function global_admin_menu() {
$g->addmisc(" "); $g->addmisc(" ");
$g->add("List Users", $apidb_root."admin/"); $g->add("List Users", $apidb_root."admin/");
$g->add("View App Queue", $apidb_root."admin/adminAppQueue.php"); $g->add("View App Queue (".getQueuedAppCount().")", $apidb_root."admin/adminAppQueue.php");
$g->done(); $g->done();

View File

@@ -171,4 +171,13 @@ function get_xml_tag ($file, $mode = null)
} }
} }
/* get the number of applications in the appQueue table */
function getQueuedAppCount()
{
$qstring = "SELECT count(*) as queued_apps FROM appQueue";
$result = mysql_query($qstring);
$ob = mysql_fetch_object($result);
return $ob->queued_apps;
}
?> ?>