appdb/include testResults.php
WineHQ
wineowner at wine.codeweavers.com
Sun Jul 9 22:46:48 CDT 2006
ChangeSet ID: 26365
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2006/07/09 22:46:48
Modified files:
include : testResults.php
Log message:
Tony Lambregts <tony.lambregts at gmail.com>
Show tested rating and use its color when displaying the list of test results
Patch: http://cvs.winehq.org/patch.py?id=26365
Old revision New revision Changes Path
1.30 1.31 +5 -5 appdb/include/testResults.php
Index: appdb/include/testResults.php
diff -u -p appdb/include/testResults.php:1.30 appdb/include/testResults.php:1.31
--- appdb/include/testResults.php:1.30 10 Jul 2006 3:46:48 -0000
+++ appdb/include/testResults.php 10 Jul 2006 3:46:48 -0000
@@ -636,10 +636,10 @@ class testData{
<td>Application</td>
<td>Version</td>
<td>Release</td>
+ <td>Rating</td>
<td align=\"center\">Action</td>
</tr>";
-
- $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 "<tr class=\"$bgcolor\">\n";
+ $bgcolor = $oTest->sTestedRating;
+ echo '<tr class='.$bgcolor.'>',"\n";
echo " <td>".print_date(mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime))."</td>\n";
echo " <td>\n";
echo $oSubmitter->sEmail ? "<a href=\"mailto:".$oSubmitter->sEmail."\">":"";
@@ -660,9 +660,9 @@ class testData{
echo " <td>".$oApp->sName."</td>\n";
echo " <td>".$oVersion->sName."</td>\n";
echo " <td>".$oTest->sTestedRelease."</td>\n";
+ echo " <td>".$oTest->sTestedRating."</td>\n";
echo " <td align=\"center\">[<a href=".$_SERVER['PHP_SELF']."?sSub=view&iTestingId=".$oTest->iTestingId.">process</a>]</td>\n";
echo "</tr>\n\n";
- $c++;
}
}
echo "</table>","\n";
More information about the wine-cvs
mailing list