Clean up view distributions, add back link to the application version, use the correct time function

This commit is contained in:
Tony Lambregts
2005-10-18 02:04:16 +00:00
committed by WineHQ
parent ba6e92d184
commit b0d2969e0b
2 changed files with 16 additions and 12 deletions

View File

@@ -33,18 +33,20 @@ else
echo $oDistribution->sName; echo $oDistribution->sName;
if ($oDistribution->sUrl) if ($oDistribution->sUrl)
{
echo " (".$oDistribution->sUrl.")"; echo " (".$oDistribution->sUrl.")";
echo "</a> <br />\n"; echo "</a> <br />\n";
}
echo "<br />\n"; else
echo "<br />\n";
if($oDistribution->aTestingIds) if($oDistribution->aTestingIds)
{ {
echo "<br />Testing results for ".$oDistribution->sName."<br /><ol>\n"; echo '<p><span class="title">Testing Results for '.$oDistribution->sName.'</span><br />',"\n";
echo '<p><span class="title">Testing Results</span><br />',"\n";
echo '<table width="100%" border="1">',"\n"; echo '<table width="100%" border="1">',"\n";
echo '<thead class="historyHeader">',"\n"; echo '<thead class="historyHeader">',"\n";
echo '<tr>',"\n"; echo '<tr>',"\n";
echo '<td>Application Version</td>',"\n";
echo '<td>Submitter</td>',"\n"; echo '<td>Submitter</td>',"\n";
echo '<td>Date Submitted</td>',"\n"; echo '<td>Date Submitted</td>',"\n";
echo '<td>Wine version</td>',"\n"; echo '<td>Wine version</td>',"\n";
@@ -60,16 +62,18 @@ else
$oSubmitter = new User($oTest->iSubmitterId); $oSubmitter = new User($oTest->iSubmitterId);
$bgcolor = $oTest->sTestedRating; $bgcolor = $oTest->sTestedRating;
echo '<tr class='.$bgcolor.'>',"\n"; echo '<tr class='.$bgcolor.'>',"\n";
echo ' <td>',"\n"; echo '<td><a href="'.BASE.'appview.php?versionId='.$oTest->iVersionId.'&iTestingId='.$oTest->iTestingId.'">',"\n";
echo $oApp->sName.' '.$oVersion->sName.'</a></td>',"\n";
echo '<td>',"\n";
echo $oSubmitter->sEmail ? "<a href=\"mailto:".$oSubmitter->sEmail."\">":""; echo $oSubmitter->sEmail ? "<a href=\"mailto:".$oSubmitter->sEmail."\">":"";
echo $oSubmitter->sRealname; echo $oSubmitter->sRealname;
echo $oSubmitter->sEmail ? "</a>":""; echo $oSubmitter->sEmail ? "</a>":"";
echo ' </td>',"\n"; echo '</td>',"\n";
echo ' <td>'.date("M d Y", mysqldatetime_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n"; echo '<td>'.date("M d Y", mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n";
echo ' <td>'.$oTest->sTestedRelease.'&nbsp</td>',"\n"; echo '<td>'.$oTest->sTestedRelease.'&nbsp</td>',"\n";
echo ' <td>'.$oTest->sInstalls.'&nbsp</td>',"\n"; echo '<td>'.$oTest->sInstalls.'&nbsp</td>',"\n";
echo ' <td>'.$oTest->sRuns.'&nbsp</td>',"\n"; echo '<td>'.$oTest->sRuns.'&nbsp</td>',"\n";
echo ' <td>'.$oTest->sTestedRating.'&nbsp</td>',"\n"; echo '<td>'.$oTest->sTestedRating.'&nbsp</td>',"\n";
echo '</tr>',"\n"; echo '</tr>',"\n";
} }
echo '</table>',"\n"; echo '</table>',"\n";

View File

@@ -379,7 +379,7 @@ class testData{
echo '<a href="'.BASE.'distributionView.php?iDistributionId='.$oTest->iDistributionId.'">',"\n"; echo '<a href="'.BASE.'distributionView.php?iDistributionId='.$oTest->iDistributionId.'">',"\n";
echo $oDistribution->sName.'</a>',"\n"; echo $oDistribution->sName.'</a>',"\n";
echo ' </td>',"\n"; echo ' </td>',"\n";
echo ' <td>'.date("M d Y", mysqldatetime_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n"; echo ' <td>'.date("M d Y", mysqltimestamp_to_unixtimestamp($oTest->sSubmitTime)).'</td>',"\n";
echo ' <td>'.$oTest->sTestedRelease.'&nbsp</td>',"\n"; echo ' <td>'.$oTest->sTestedRelease.'&nbsp</td>',"\n";
echo ' <td>'.$oTest->sInstalls.'&nbsp</td>',"\n"; echo ' <td>'.$oTest->sInstalls.'&nbsp</td>',"\n";
echo ' <td>'.$oTest->sRuns.'&nbsp</td>',"\n"; echo ' <td>'.$oTest->sRuns.'&nbsp</td>',"\n";