diff --git a/include/sidebar_admin.php b/include/sidebar_admin.php index 6915859..b8034ad 100644 --- a/include/sidebar_admin.php +++ b/include/sidebar_admin.php @@ -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(); diff --git a/include/util.php b/include/util.php index 582f266..7fb03e5 100644 --- a/include/util.php +++ b/include/util.php @@ -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; +} + ?>