Dashboard: transformed a few overviews into customizable dashboards

SVN:trunk[2014]
This commit is contained in:
Romain Quetiez
2012-05-23 10:35:53 +00:00
parent ef453537d3
commit 28a7930a13
13 changed files with 88 additions and 73 deletions

View File

@@ -145,7 +145,7 @@ abstract class Dashboard
public function Render($oPage, $bEditMode = false, $aExtraParams = array())
{
$oPage->add('<h1>'.$this->sTitle.'</h1>');
$oPage->add('<h1>'.Dict::S($this->sTitle).'</h1>');
$oLayout = new $this->sLayoutClass;
$oLayout->Render($oPage, $this->aDashlets, $bEditMode, $aExtraParams);
if (!$bEditMode)

View File

@@ -379,7 +379,7 @@ class DashletGroupBy extends Dashlet
break;
case 'table':
default:
$sHtmlTitle = htmlentities($sTitle, ENT_QUOTES, 'UTF-8'); // done in the itop block
$sHtmlTitle = htmlentities(Dict::S($sTitle), ENT_QUOTES, 'UTF-8'); // done in the itop block
$sXML = '<itopblock BlockClass="DisplayBlock" type="count" parameters="group_by:'.$sGroupBy.'" asynchronous="false" encoding="text/oql">'.$sQuery.'</itopblock>';
break;
}