voteInspector: Show number of comments
This commit is contained in:
@@ -288,7 +288,8 @@ class voteInspector
|
|||||||
$oTableRow->AddTextCell('Created');
|
$oTableRow->AddTextCell('Created');
|
||||||
$oTableRow->AddTextCell('Votes');
|
$oTableRow->AddTextCell('Votes');
|
||||||
$oTableRow->AddTextCell('Privileges');
|
$oTableRow->AddTextCell('Privileges');
|
||||||
$oTableRow->AddTextCell('# of test results');
|
$oTableRow->AddTextCell('Test data');
|
||||||
|
$oTableRow->AddTextcell('Comments');
|
||||||
$oTable->AddRow($oTableRow);
|
$oTable->AddRow($oTableRow);
|
||||||
|
|
||||||
for($i = 0; $oRow = mysql_fetch_object($hResult); $i++)
|
for($i = 0; $oRow = mysql_fetch_object($hResult); $i++)
|
||||||
@@ -318,6 +319,15 @@ class voteInspector
|
|||||||
|
|
||||||
$hSubResult = query_parameters("SELECT COUNT(testingId) AS count FROM testResults WHERE submitterId = '?' AND state != 'deleted'", $oVoter->iUserId);
|
$hSubResult = query_parameters("SELECT COUNT(testingId) AS count FROM testResults WHERE submitterId = '?' AND state != 'deleted'", $oVoter->iUserId);
|
||||||
|
|
||||||
|
if($hSubResult && ($oSubRow = mysql_fetch_object($hSubResult)))
|
||||||
|
$sSubmitted = $oSubRow->count;
|
||||||
|
else
|
||||||
|
$sSubmitted = 'DB failure';
|
||||||
|
|
||||||
|
$oTableRow->AddTextCell($sSubmitted);
|
||||||
|
|
||||||
|
$hSubResult = query_parameters("SELECT COUNT(commentId) as count FROM appComments WHERE userId = '?'", $oVoter->iUserId);
|
||||||
|
|
||||||
if($hSubResult && ($oSubRow = mysql_fetch_object($hSubResult)))
|
if($hSubResult && ($oSubRow = mysql_fetch_object($hSubResult)))
|
||||||
$sSubmitted = $oSubRow->count;
|
$sSubmitted = $oSubRow->count;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user