- adds a panel for administrating vendors
- removed corresponding TODO entry
This commit is contained in:
@@ -17,6 +17,7 @@ function global_admin_menu() {
|
||||
$g->add("View App Data Queue (".getQueuedAppDataCount().")", BASE."admin/adminAppDataQueue.php");
|
||||
$g->add("View Maintainer Queue (".getQueuedMaintainerCount().")", BASE."admin/adminMaintainerQueue.php");
|
||||
$g->add("View Maintainers (".getMaintainerCount().")", BASE."admin/adminMaintainers.php");
|
||||
$g->add("View Vendors (".getVendorCount().")", BASE."admin/adminVendors.php");
|
||||
|
||||
$g->addmisc(" ");
|
||||
$g->add("Comment manager", BASE."admin/adminCommentView.php");
|
||||
|
||||
@@ -265,6 +265,15 @@ function getMaintainerCount()
|
||||
return $ob->maintainers;
|
||||
}
|
||||
|
||||
/* get the total number of vendors from the vendor table */
|
||||
function getVendorCount()
|
||||
{
|
||||
$qstring = "SELECT count(*) as vendors FROM vendor";
|
||||
$result = mysql_query($qstring);
|
||||
$ob = mysql_fetch_object($result);
|
||||
return $ob->vendors;
|
||||
}
|
||||
|
||||
/* Get the number of users in the database */
|
||||
function getNumberOfComments()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user