From eb019fb6116343fe00404d968d5592f8280b9bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 18 Mar 2007 22:11:28 +0000 Subject: [PATCH] Remove queue listing from testResults.php, the queue is displayed in admin/adminTestData.php --- testResults.php | 48 ++---------------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/testResults.php b/testResults.php index 52e067f..985767e 100644 --- a/testResults.php +++ b/testResults.php @@ -163,51 +163,7 @@ if ($aClean['sSub']) } else // if ($aClean['sSub']) is not defined, display the Testing results queue page { - apidb_header("Testing Results"); - - // Get queued testing results. - $oTest = new TestData(); - $hResult = $oTest->getTestingQueue("true"); - - if(!$hResult) - { - // no Tests in queue - echo html_frame_start("Submitted Testing Results","90%"); - echo '

The Submitted Testing Results Queue is empty.

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

This is the list of test results waiting to be accepted or deleted.

\n"; - echo "

To view a submission, click on its name. From that page you can delete or edit and\n"; - echo "re-submit it into the AppDB.
\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 Test Results in queue - echo html_frame_start("Rejected Testing Results","90%"); - echo '

The Rejected Testing Results Queue is empty.

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

This is the list of Rejected Test Results waiting for re-submission or deletion.

\n"; - echo "

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

\n\n"; - - $oTest->ShowListofTests($hResult,"Rejected Test Results"); - } + util_show_error_page_and_exit("No test id defined!"); } -apidb_footer(); +apidb_footer(); ?>