voteInspector: Show number of test results per user
This commit is contained in:
@@ -288,6 +288,7 @@ 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');
|
||||||
$oTable->AddRow($oTableRow);
|
$oTable->AddRow($oTableRow);
|
||||||
|
|
||||||
for($i = 0; $oRow = mysql_fetch_object($hResult); $i++)
|
for($i = 0; $oRow = mysql_fetch_object($hResult); $i++)
|
||||||
@@ -314,6 +315,15 @@ class voteInspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
$oTableRow->AddTextCell($sPrivs);
|
$oTableRow->AddTextCell($sPrivs);
|
||||||
|
|
||||||
|
$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);
|
||||||
$oTable->AddRow($oTableRow);
|
$oTable->AddRow($oTableRow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user