setTheme($data['theme']) ->addCssFile('assets/styles/'.$page_header->getTheme().'.css') ->show(); $buttons = array_key_exists('buttons', $data) ? $data['buttons'] : [(new CSimpleButton(_('Retry')))->onClick('document.location.reload();')]; echo ''; (new CDiv((new CTag('main', true, new CWarning($data['header'], $data['messages'], $buttons) )))) ->addClass(ZBX_STYLE_LAYOUT_WRAPPER) ->show(); echo get_js("setTimeout('document.location.reload();', 30000);"); echo ''; echo '';