appdb/. testResults.php

WineHQ wineowner at wine.codeweavers.com
Sun Mar 18 17:11:28 CDT 2007


ChangeSet ID:	30986
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/03/18 17:11:28

Modified files:
	.              : testResults.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Remove queue listing from testResults.php, the queue is displayed in admin/adminTestData.php

Patch: http://cvs.winehq.org/patch.py?id=30986

Old revision  New revision  Changes     Path
 1.26          1.27          +2 -46      appdb/testResults.php

Index: appdb/testResults.php
diff -u -p appdb/testResults.php:1.26 appdb/testResults.php:1.27
--- appdb/testResults.php:1.26	18 Mar 2007 22:11:28 -0000
+++ appdb/testResults.php	18 Mar 2007 22:11:28 -0000
@@ -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 '<p><b>The Submitted Testing Results Queue is empty.</b></p>',"\n";
-        echo html_frame_end("&nbsp;");         
-    }
-    else
-    {
-        // help
-        echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n";
-        echo "<p>This is the list of test results waiting to be accepted or deleted.</p>\n";
-        echo "<p>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.<br>\n";
-        echo "</td></tr></table></div>\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 '<p><b>The Rejected Testing Results Queue is empty.</b></p>',"\n";
-        echo html_frame_end("&nbsp;");         
-    }
-    else
-    {
-        //help
-        echo "<div align=center><table width='90%' border=0 cellpadding=3 cellspacing=0><tr><td>\n\n";
-        echo "<p>This is the list of Rejected Test Results waiting for re-submission or deletion.</p>\n";
-        echo "<p>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 .<br>\n";
-        echo "</td></tr></table></div>\n\n";
-
-        $oTest->ShowListofTests($hResult,"Rejected Test Results");
-    }
+    util_show_error_page_and_exit("No test id defined!");
 }
-apidb_footer();       
+apidb_footer();
 ?>



More information about the wine-cvs mailing list