$this->addJsFile('class.dashboard.js');
$this->addJsFile('class.dashboard.page.js');
$this->addJsFile('class.dashboard.widget.placeholder.js');
$this->addJsFile('class.form.fieldset.collapsible.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']);
if (array_key_exists('no_data', $data)) {
->setTitle(_('Dashboards'))
->setDocUrl(CDocHelper::getUrl(CDocHelper::MONITORING_HOST_DASHBOARD_VIEW))
->addItem(new CTableInfo())
$this->addJsFile('class.calendar.js');
$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('items.js');
$this->addJsFile('layout.mode.js');
$this->addJsFile('leaflet.js');
$this->addJsFile('leaflet.markercluster.js');
$this->addJsFile('class.geomaps.js');
$this->addJsFile('multilineinput.js');
$this->includeJsFile('monitoring.host.dashboard.view.js.php');
$this->addCssFile('assets/styles/vendors/Leaflet/leaflet.css');
$this->enableLayoutModes();
$web_layout_mode = $this->getLayoutMode();
$html_page = (new CHtmlPage())
->setTitle(_('Host dashboards'))
->setWebLayoutMode($web_layout_mode)
->setDocUrl(CDocHelper::getUrl(CDocHelper::MONITORING_HOST_DASHBOARD_VIEW))
(new CList())->addItem(get_icon('kioskmode', ['mode' => $web_layout_mode]))
->setAttribute('aria-label', _('Content controls'))
(count($data['dashboard']['pages']) > 1)
->addClass(ZBX_STYLE_DASHBOARD_KIOSKMODE_CONTROLS)
->addClass(ZBX_ICON_CHEVRON_LEFT)
->addClass(ZBX_STYLE_BTN_DASHBOARD_KIOSKMODE_PREVIOUS_PAGE)
->setTitle(_('Previous page'))