1<?php 2/* 3** Zabbix 4** Copyright (C) 2001-2021 Zabbix SIA 5** 6** This program is free software; you can redistribute it and/or modify 7** it under the terms of the GNU General Public License as published by 8** the Free Software Foundation; either version 2 of the License, or 9** (at your option) any later version. 10** 11** This program is distributed in the hope that it will be useful, 12** but WITHOUT ANY WARRANTY; without even the implied warranty of 13** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14** GNU General Public License for more details. 15** 16** You should have received a copy of the GNU General Public License 17** along with this program; if not, write to the Free Software 18** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19**/ 20 21 22$this->addJsFile('js/gtlc.js'); 23$this->addJsFile('js/flickerfreescreen.js'); 24 25(new CWidget()) 26 ->setTitle(_('Web monitoring')) 27 ->setControls((new CForm('get')) 28 ->addVar('fullscreen', $data['fullscreen']) 29 ->addVar('action', 'web.view') 30 ->addItem((new CList()) 31 ->addItem([ 32 new CLabel(_('Group'), 'groupid'), 33 (new CDiv())->addClass(ZBX_STYLE_FORM_INPUT_MARGIN), 34 $data['pageFilter']->getGroupsCB() 35 ]) 36 ->addItem([ 37 new CLabel(_('Host'), 'hostid'), 38 (new CDiv())->addClass(ZBX_STYLE_FORM_INPUT_MARGIN), 39 $data['pageFilter']->getHostsCB() 40 ]) 41 ->addItem(get_icon('fullscreen', ['fullscreen' => $data['fullscreen']])) 42 ) 43 ) 44 ->addItem( 45 CScreenBuilder::getScreen([ 46 'resourcetype' => SCREEN_RESOURCE_HTTPTEST, 47 'mode' => SCREEN_MODE_JS, 48 'dataId' => 'httptest', 49 'groupid' => $data['pageFilter']->groupid, 50 'hostid' => $data['pageFilter']->hostid, 51 'page' => $data['page'], 52 'data' => [ 53 'hosts_selected' => $data['pageFilter']->hostsSelected, 54 'fullscreen' => $data['fullscreen'], 55 'sort' => $data['sort'], 56 'sortorder' => $data['sortorder'] 57 ] 58 ])->get() 59 ) 60 ->show(); 61