testData: remove un-needed functions now that admin/adminTestResults.php has been removed

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-03-25 03:58:25 +00:00
committed by WineHQ
parent 6aea19138a
commit 8b1271b185

View File

@@ -623,74 +623,6 @@ class testData{
$this->sComments = $aValues['sComments']; $this->sComments = $aValues['sComments'];
} }
function getTestingQueue($sQueued='true')
{
if($_SESSION['current']->hasPriv("admin"))
{
$hResult = query_parameters("SELECT *
FROM testResults
WHERE queued = '?'", $sQueued);
if(!$hResult || mysql_num_rows($hResult) == 0)
return;
} else
{
$hResult = query_parameters("SELECT *
FROM testResults
WHERE queued = '?'
AND submitterId = '?'",
$sQueued, $_SESSION['current']->iUserId);
if(!$hResult || mysql_num_rows($hResult) == 0)
return;
}
return $hResult;
}
function ShowListofTests($hResult, $heading="")
{
//show applist
echo html_frame_start($heading,"90%","",0);
echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
<tr class=color4>
<td>Submission Date</td>
<td>Submitter</td>
<td>Application</td>
<td>Version</td>
<td>Release</td>
<td>Rating</td>
<td align=\"center\">Action</td>
</tr>";
while($oRow = mysql_fetch_object($hResult))
{
$oTest = new testData($oRow->testingId);
$oVersion = new Version($oTest->iVersionId);
// don't show test results of versions that are still queued.
if ($oVersion->sQueued == 'false')
{
$oApp = new Application($oVersion->iAppId);
$oSubmitter = new User($oTest->iSubmitterId);
$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."\">":"";
echo $oSubmitter->sRealname;
echo $oSubmitter->sEmail ? "</a>":"";
echo " </td>\n";
echo ' <td><a href="'.BASE.'appview.php?iAppId='.$oApp->iAppId.'">'.$oApp->sName.'</a></td>';
echo ' <td><a href="'.BASE.'appview.php?iVersionId='.$oVersion->iVersionId.'&iTestingId='.$oTest->iTestingId.'">'.$oVersion->sName.'</a></td>';
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";
}
}
echo "</table>","\n";
echo html_frame_end();
}
function make_Installs_list($sVarname, $sSelectedValue) function make_Installs_list($sVarname, $sSelectedValue)
{ {
echo "<select name='$sVarname'>\n"; echo "<select name='$sVarname'>\n";