From 6405eeafa4294d6e3e34c362df2302233ac72e62 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Mon, 10 Jul 2006 03:46:48 +0000 Subject: [PATCH] Show tested rating and use its color when displaying the list of test results --- include/testResults.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/testResults.php b/include/testResults.php index 0d5ebea..1eb9809 100644 --- a/include/testResults.php +++ b/include/testResults.php @@ -636,10 +636,10 @@ class testData{ Application Version Release + Rating Action "; - - $c = 1; + while($oRow = mysql_fetch_object($hResult)) { $oTest = new testData($oRow->testingId); @@ -649,8 +649,8 @@ class testData{ { $oApp = new application($oVersion->iAppId); $oSubmitter = new User($oTest->iSubmitterId); - if ($c % 2 == 1) { $bgcolor = 'color0'; } else { $bgcolor = 'color1'; } - echo "\n"; + $bgcolor = $oTest->sTestedRating; + echo '',"\n"; echo " ".print_date(mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime))."\n"; echo " \n"; echo $oSubmitter->sEmail ? "sEmail."\">":""; @@ -660,9 +660,9 @@ class testData{ echo " ".$oApp->sName."\n"; echo " ".$oVersion->sName."\n"; echo " ".$oTest->sTestedRelease."\n"; + echo " ".$oTest->sTestedRating."\n"; echo " [iTestingId.">process]\n"; echo "\n\n"; - $c++; } } echo "","\n";