const HEADER_TITLE_HEIGHT = 60;
const PAGE_TITLE_HEIGHT = 45;
const PAGE_MARGIN_TOP = 10;
const PAGE_MARGIN_BOTTOM = 12;
$this->addJsFile('class.dashboard.js');
$this->addJsFile('class.dashboard.page.js');
$this->addJsFile('class.dashboard.print.js');
$this->addJsFile('class.dashboard.widget.placeholder.js');
$this->addJsFile('class.widgets-data.js');
$this->addJsFile('class.widget-base.js');
$this->addJsFile('class.widget.js');
$this->addJsFile('class.widget.inaccessible.js');
$this->addJsFile('class.widget.iterator.js');
$this->addJsFile('class.widget.misconfigured.js');
$this->addJsFile('class.widget.paste-placeholder.js');
if (array_key_exists('error', $data)) {
show_error_message($data['error']);
$this->addJsFile('class.csvggraph.js');
$this->addJsFile('class.svg.canvas.js');
$this->addJsFile('class.svg.map.js');
$this->addJsFile('d3.js');
$this->addJsFile('flickerfreescreen.js');
$this->addJsFile('gtlc.js');
$this->addJsFile('leaflet.js');
$this->addJsFile('leaflet.markercluster.js');
$this->addJsFile('class.geomaps.js');
$this->includeJsFile('monitoring.dashboard.print.js.php');
$this->addCssFile('assets/styles/vendors/Leaflet/leaflet.css');
$page_count = count($data['dashboard']['pages']);
$header_title_tag = (new CTag('h1', true, $data['dashboard']['name']));