Application view should list the number of test results for each version, this lets the appdb
user see which versions have the most feedback
This commit is contained in:
@@ -777,6 +777,21 @@ class testData{
|
|||||||
return $sReturn;
|
return $sReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return the number of test data entries for a particular version id
|
||||||
|
function get_testdata_count_for_versionid($iVersionId)
|
||||||
|
{
|
||||||
|
$sQuery = "SELECT count(*) as cnt
|
||||||
|
FROM testResults
|
||||||
|
WHERE versionId = '?'
|
||||||
|
AND
|
||||||
|
queued = '?';";
|
||||||
|
|
||||||
|
$hResult = query_parameters($sQuery, $iVersionId, 'false');
|
||||||
|
|
||||||
|
$oRow = mysql_fetch_object($hResult);
|
||||||
|
return $oRow->cnt;
|
||||||
|
}
|
||||||
|
|
||||||
function objectGetEntriesCount($bQueued, $bRejected)
|
function objectGetEntriesCount($bQueued, $bRejected)
|
||||||
{
|
{
|
||||||
$oTest = new testData();
|
$oTest = new testData();
|
||||||
|
|||||||
@@ -1010,6 +1010,7 @@ class version {
|
|||||||
echo " <td>Description</td>\n";
|
echo " <td>Description</td>\n";
|
||||||
echo " <td width=\"80\">Rating</td>\n";
|
echo " <td width=\"80\">Rating</td>\n";
|
||||||
echo " <td width=\"80\">Wine version</td>\n";
|
echo " <td width=\"80\">Wine version</td>\n";
|
||||||
|
echo " <td width=\"80\">Test results</td>\n";
|
||||||
echo " <td width=\"40\">Comments</td>\n";
|
echo " <td width=\"40\">Comments</td>\n";
|
||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
|
|
||||||
@@ -1033,6 +1034,7 @@ class version {
|
|||||||
echo " <td>".util_trim_description($oVersion->sDescription)."</td>\n";
|
echo " <td>".util_trim_description($oVersion->sDescription)."</td>\n";
|
||||||
echo " <td $sRatingColor align=center>".$oVersion->sTestedRating."</td>\n";
|
echo " <td $sRatingColor align=center>".$oVersion->sTestedRating."</td>\n";
|
||||||
echo " <td $sRatingColor align=center>".$oVersion->sTestedRelease."</td>\n";
|
echo " <td $sRatingColor align=center>".$oVersion->sTestedRelease."</td>\n";
|
||||||
|
echo " <td align=center>".testData::get_testdata_count_for_versionid($oVersion->iVersionId)."</td>\n";
|
||||||
echo " <td align=center>".Comment::get_comment_count_for_versionid($oVersion->iVersionId)."</td>\n";
|
echo " <td align=center>".Comment::get_comment_count_for_versionid($oVersion->iVersionId)."</td>\n";
|
||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user