Added the display of the total count of objects above 'group by' blocks.

SVN:trunk[1492]
This commit is contained in:
Denis Flaven
2011-08-22 16:42:28 +00:00
parent e53c07393c
commit 98ac85c098

View File

@@ -347,6 +347,7 @@ class DisplayBlock
$sGroupByField = $aExtraParams['group_by'];
$aGroupBy = array();
$sLabels = array();
$iTotalCount = $this->m_oSet->Count();
while($oObj = $this->m_oSet->Fetch())
{
if (isset($aExtraParams['group_by_expr']))
@@ -373,6 +374,8 @@ class DisplayBlock
'group' => array('label' => MetaModel::GetLabel($this->m_oFilter->GetClass(), $sGroupByField), 'description' => ''),
'value' => array('label'=> Dict::S('UI:GroupBy:Count'), 'description' => Dict::S('UI:GroupBy:Count+'))
);
$sFormat = isset($aExtraParams['format']) ? $aExtraParams['format'] : 'UI:Pagination:HeaderNoSelection';
$sHtml .= $oPage->GetP(Dict::Format($sFormat, $iTotalCount));
$sHtml .= $oPage->GetTable($aAttribs, $aData);
}
else