Make the queue list show, after entering a maintainer. Also change the

message to "The maintainer was successfully added into the database".
This commit is contained in:
Tony Lambregts
2004-12-16 02:46:36 +00:00
committed by WineHQ
parent 5dea9ec110
commit 66fd2105c0

View File

@@ -20,9 +20,6 @@ if(!loggedin())
exit; exit;
} }
apidb_header("Admin Maintainer Queue");
echo '<form name="qform" action="adminMaintainerQueue.php" method="post" enctype="multipart/form-data">',"\n";
if ($_REQUEST['sub']) if ($_REQUEST['sub'])
{ {
if ($_REQUEST['queueId']) if ($_REQUEST['queueId'])
@@ -39,14 +36,15 @@ if ($_REQUEST['sub'])
else else
{ {
//error no Id! //error no Id!
echo html_frame_start("Error","300"); errorpage("<p><b>QueueId Not Found!</b></p>");
echo '<p><b>QueueId Not Found!</b></p>',"\n";
echo html_frame_end("&nbsp;");
} }
//process according to which request was submitted and optionally the sub flag //process according to which request was submitted and optionally the sub flag
if (!$_REQUEST['add'] && !$_REQUEST['reject'] && $_REQUEST['queueId']) if (!$_REQUEST['add'] && !$_REQUEST['reject'] && $_REQUEST['queueId'])
{ {
apidb_header("Admin Maintainer Queue");
echo '<form name="qform" action="adminMaintainerQueue.php" method="post" enctype="multipart/form-data">',"\n";
$x = new TableVE("view"); $x = new TableVE("view");
//help //help
@@ -167,6 +165,10 @@ if ($_REQUEST['sub'])
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminMaintainerQueue.php'); echo html_back_link(1,'adminMaintainerQueue.php');
echo "</form>";
apidb_footer();
exit;
} }
else if ($_REQUEST['add'] && $_REQUEST['queueId']) else if ($_REQUEST['add'] && $_REQUEST['queueId'])
{ {
@@ -184,7 +186,7 @@ if ($_REQUEST['sub'])
if (mysql_query($query)) if (mysql_query($query))
{ {
$statusMessage = "<p>The application was successfully added into the database</p>\n"; $statusMessage = "<p>The maintainer was successfully added into the database</p>\n";
//delete the item from the queue //delete the item from the queue
mysql_query("DELETE from appMaintainerQueue where queueId = ".$_REQUEST['queueId'].";"); mysql_query("DELETE from appMaintainerQueue where queueId = ".$_REQUEST['queueId'].";");
@@ -202,6 +204,7 @@ if ($_REQUEST['sub'])
$ms = "Application Maintainer Request Report\n"; $ms = "Application Maintainer Request Report\n";
$ms .= "----------------------------------\n\n"; $ms .= "----------------------------------\n\n";
$ms .= "Your application to be the maintainer of ".appIdToName($ob->appId).versionIdToName($ob->versionId)." has been accepted. "; $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 .= "We appreciate your help in making the Application Database better for all users.\n\n";
$ms .= "Thanks!\n"; $ms .= "Thanks!\n";
$ms .= "-The AppDB admins\n"; $ms .= "-The AppDB admins\n";
@@ -210,10 +213,7 @@ if ($_REQUEST['sub'])
} }
//done //done
echo html_frame_start("Submit Maintainer","600"); addmsg("<p><b>$statusMessage</b></p>", 'green');
echo "<p><b>$statusMessage</b></p>\n";
echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminMaintainerQueue.php');
} }
else if (($_REQUEST['reject'] || ($_REQUEST['sub'] == 'reject')) && $_REQUEST['queueId']) else if (($_REQUEST['reject'] || ($_REQUEST['sub'] == 'reject')) && $_REQUEST['queueId'])
{ {
@@ -249,14 +249,14 @@ if ($_REQUEST['sub'])
else else
{ {
//error no sub! //error no sub!
echo html_frame_start("Error","300"); addmsg('<p><b>Internal Routine Not Found!</b></p>', 'red');
echo '<p><b>Internal Routine Not Found!</b></p>',"\n";
echo html_frame_end("&nbsp;");
echo html_back_link(1,'adminMaintainerQueue.php');
} }
} }
else /* display the list of all outstanding maintainer requests */ /* display the list of all outstanding maintainer requests */
{ {
apidb_header("Admin Maintainer Queue");
echo '<form name="qform" action="adminMaintainerQueue.php" method="post" enctype="multipart/form-data">',"\n";
//get available maintainers //get available maintainers
$query = "SELECT queueId, appId, versionId,". $query = "SELECT queueId, appId, versionId,".
"userId, maintainReason,". "userId, maintainReason,".
@@ -323,12 +323,13 @@ else /* display the list of all outstanding maintainer requests */
} }
echo "</table>\n\n"; echo "</table>\n\n";
echo html_frame_end("&nbsp;"); echo html_frame_end("&nbsp;");
}
}
echo "</form>"; echo "</form>";
apidb_footer(); apidb_footer();
}
}
?> ?>