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:
committed by
Jeremy Newman
parent
20f64eb584
commit
4ffd2190bf
@@ -17,7 +17,7 @@ function global_admin_menu() {
|
||||
|
||||
$g->addmisc(" ");
|
||||
$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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user