ChangeSet ID: 31002 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/03/24 22:58:25
Modified files: include : testData.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com testData: remove un-needed functions now that admin/adminTestResults.php has been removed
Patch: http://cvs.winehq.org/patch.py?id=31002
Old revision New revision Changes Path 1.29 1.30 +0 -68 appdb/include/testData.php
Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.29 appdb/include/testData.php:1.30 --- appdb/include/testData.php:1.29 25 Mar 2007 3:58:25 -0000 +++ appdb/include/testData.php 25 Mar 2007 3:58:25 -0000 @@ -623,74 +623,6 @@ class testData{ $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) { echo "<select name='$sVarname'>\n";