hasPriv("admin")) && !($_SESSION['current']->hasAppVersionModifyPermission($_REQUEST['iVersionId']))) { errorpage("Insufficient privileges."); exit; } if(($_REQUEST['sub'] == 'Submit') || ($_REQUEST['sub'] == 'Save') || ($_REQUEST['sub'] == 'Reject') || ($_REQUEST['sub'] == 'Delete')) { if(is_numeric($_REQUEST['iTestingId'])) { $oTest = new testData($_REQUEST['iTestingId']); $oTest->GetOutputEditorValues(); if($_REQUEST['sub'] == 'Submit') // submit the testing results { $oTest->update(true); $oTest->unQueue(); } else if($_REQUEST['sub'] == 'Save') // save the testing results { $oTest->update(); } else if($_REQUEST['sub'] == 'Reject') // reject testing results { $oTest->update(true); $oTest->Reject(); } else if($_REQUEST['sub'] == 'Delete') // delete testing results { $oTest->delete(); } redirect($_SERVER['PHP_SELF']); } } if(is_numeric($_REQUEST['iTestingId'])) { $oTest = new testData($_REQUEST['iTestingId']); } if ($_REQUEST['sub'] == 'view') { switch($oTest->sQueued) { case "new": apidb_header("Submit new testing results"); $_REQUEST['sTestedDate'] = date('Y-m-d H:i:s'); break; case "true": case "rejected": apidb_header("Edit new testing results"); break; case "False": apidb_header("Edit testing results"); break; } echo '
',"\n"; // View Testing Details echo "\n"; /* //help echo "
\n\n"; echo "

This is the full view of the rejected application. \n"; echo "You need to pick a category before submitting \n"; echo "it into the database.\n"; echo "

Click delete to remove the selected item from the queue. An email will automatically be sent to the\n"; echo "submitter to let them know the item was deleted.

\n\n"; echo "
\n\n"; */ $oTest->OutputEditor(); echo 'Back'; echo '' ,"\n"; // Submit Buttons switch($oTest->sQueued) { case "false": echo ' ',"\n"; echo '',"\n"; break; case "true": echo ' ',"\n"; echo ' ',"\n"; echo '',"\n"; break; case "rejected": echo ' ',"\n"; echo ' ',"\n"; echo '',"\n"; break; } echo '',"\n"; echo '
',"\n"; echo html_frame_end(" "); } else { // error no sub! addmsg("Internal Routine Not Found!!", "red"); redirect($_SERVER['PHP_SELF']); } } else // if ($_REQUEST['sub']) is not defined, display the Testing results queue page { $oTest = new TestData(); apidb_header("Testing Results"); // Get queued testing results. $hResult = $oTest->getTestingQueue("true"); if(!$hResult) { //no apps in queue echo html_frame_start("Submitted Testing Results","90%"); echo '

The Submitted Testng Results Queue is empty.

',"\n"; echo html_frame_end(" "); } else { //help echo "
\n\n"; echo "

This is the list of test results waiting for submition, rejection or deletion.

\n"; echo "

To view a submission, click on its name. From that page you can Submit it into \n"; echo "the AppDB reject it or delete it.
\n"; echo "

\n\n"; $oTest->ShowListofTests($hResult,"Submitted Testing Results"); } // Get rejected testing results. $hResult = $oTest->getTestingQueue("rejected"); if(!$hResult || !mysql_num_rows($hResult)) { //no rejected test results in queue echo html_frame_start("Rejected Testing Results","90%"); echo '

The Rejected Testng Results Queue is empty.

',"\n"; echo html_frame_end(" "); } else { //help echo "
\n\n"; echo "

This is the list of test results that have been rejected for some reason.

\n"; echo "

To view a submission, click on its name. From that page you can Submit it into \n"; echo "the AppDB, edit and save it or delete it.
\n"; echo "

\n\n"; $oTest->ShowListofTests($hResult,"Rejected Testing Results"); } } apidb_footer(); ?>