mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
Added the display of the total count of objects above 'group by' blocks.
SVN:trunk[1492]
This commit is contained in:
@@ -347,6 +347,7 @@ class DisplayBlock
|
|||||||
$sGroupByField = $aExtraParams['group_by'];
|
$sGroupByField = $aExtraParams['group_by'];
|
||||||
$aGroupBy = array();
|
$aGroupBy = array();
|
||||||
$sLabels = array();
|
$sLabels = array();
|
||||||
|
$iTotalCount = $this->m_oSet->Count();
|
||||||
while($oObj = $this->m_oSet->Fetch())
|
while($oObj = $this->m_oSet->Fetch())
|
||||||
{
|
{
|
||||||
if (isset($aExtraParams['group_by_expr']))
|
if (isset($aExtraParams['group_by_expr']))
|
||||||
@@ -373,6 +374,8 @@ class DisplayBlock
|
|||||||
'group' => array('label' => MetaModel::GetLabel($this->m_oFilter->GetClass(), $sGroupByField), 'description' => ''),
|
'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+'))
|
'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);
|
$sHtml .= $oPage->GetTable($aAttribs, $aData);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user