From 66fd2105c05dbd2549be5970845cbd575a018d38 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Thu, 16 Dec 2004 02:46:36 +0000 Subject: [PATCH] Make the queue list show, after entering a maintainer. Also change the message to "The maintainer was successfully added into the database". --- admin/adminMaintainerQueue.php | 37 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/admin/adminMaintainerQueue.php b/admin/adminMaintainerQueue.php index f267b33..5441f35 100644 --- a/admin/adminMaintainerQueue.php +++ b/admin/adminMaintainerQueue.php @@ -20,9 +20,6 @@ if(!loggedin()) exit; } -apidb_header("Admin Maintainer Queue"); -echo '
',"\n"; - if ($_REQUEST['sub']) { if ($_REQUEST['queueId']) @@ -39,14 +36,15 @@ if ($_REQUEST['sub']) else { //error no Id! - echo html_frame_start("Error","300"); - echo '

QueueId Not Found!

',"\n"; - echo html_frame_end(" "); + errorpage("

QueueId Not Found!

"); } //process according to which request was submitted and optionally the sub flag if (!$_REQUEST['add'] && !$_REQUEST['reject'] && $_REQUEST['queueId']) { + apidb_header("Admin Maintainer Queue"); + echo '',"\n"; + $x = new TableVE("view"); //help @@ -167,6 +165,10 @@ if ($_REQUEST['sub']) echo html_frame_end(" "); echo html_back_link(1,'adminMaintainerQueue.php'); + echo "
"; + apidb_footer(); + exit; + } else if ($_REQUEST['add'] && $_REQUEST['queueId']) { @@ -184,7 +186,7 @@ if ($_REQUEST['sub']) if (mysql_query($query)) { - $statusMessage = "

The application was successfully added into the database

\n"; + $statusMessage = "

The maintainer was successfully added into the database

\n"; //delete the item from the queue mysql_query("DELETE from appMaintainerQueue where queueId = ".$_REQUEST['queueId'].";"); @@ -202,6 +204,7 @@ if ($_REQUEST['sub']) $ms = "Application Maintainer Request Report\n"; $ms .= "----------------------------------\n\n"; $ms .= "Your application to be the maintainer of ".appIdToName($ob->appId).versionIdToName($ob->versionId)." has been accepted. "; + $ms .= $_REQUEST['replyText']; $ms .= "We appreciate your help in making the Application Database better for all users.\n\n"; $ms .= "Thanks!\n"; $ms .= "-The AppDB admins\n"; @@ -210,10 +213,7 @@ if ($_REQUEST['sub']) } //done - echo html_frame_start("Submit Maintainer","600"); - echo "

$statusMessage

\n"; - echo html_frame_end(" "); - echo html_back_link(1,'adminMaintainerQueue.php'); + addmsg("

$statusMessage

", 'green'); } else if (($_REQUEST['reject'] || ($_REQUEST['sub'] == 'reject')) && $_REQUEST['queueId']) { @@ -249,14 +249,14 @@ if ($_REQUEST['sub']) else { //error no sub! - echo html_frame_start("Error","300"); - echo '

Internal Routine Not Found!

',"\n"; - echo html_frame_end(" "); - echo html_back_link(1,'adminMaintainerQueue.php'); + addmsg('

Internal Routine Not Found!

', 'red'); } } -else /* display the list of all outstanding maintainer requests */ +/* display the list of all outstanding maintainer requests */ { + apidb_header("Admin Maintainer Queue"); + echo '
',"\n"; + //get available maintainers $query = "SELECT queueId, appId, versionId,". "userId, maintainReason,". @@ -323,12 +323,13 @@ else /* display the list of all outstanding maintainer requests */ } echo "\n\n"; echo html_frame_end(" "); + echo "
"; + apidb_footer(); + } } -echo ""; -apidb_footer(); ?>