Source
(new CCheckBox('show_suppressed'))->setChecked($data['sysmap']['show_suppressed'] == ZBX_PROBLEM_SUPPRESSED_TRUE)
<?php
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* @var CView $this
*/
require_once dirname(__FILE__).'/js/monitoring.sysmap.edit.js.php';
$widget = (new CWidget())->setTitle(_('Network maps'));
$tabs = new CTabView();
if (!$data['form_refresh']) {
$tabs->setSelected(0);
}
// Create sysmap form.
$form = (new CForm())
->setId('sysmap-form')
->setName('map.edit.php')
->addVar('form', getRequest('form', 1))
->addVar('current_user_userid', $data['current_user_userid'])
->addVar('current_user_fullname', getUserFullname($data['users'][$data['current_user_userid']]));
if (array_key_exists('sysmapid', $data['sysmap'])) {
$form->addVar('sysmapid', $data['sysmap']['sysmapid']);
}
$user_type = CWebUser::getType();
// Create sysmap form list.
$map_tab = (new CFormList());
// Map owner multiselect.
$multiselect_data = [
'name' => 'userid',
'object_name' => 'users',
'multiple' => false,
'disabled' => ($user_type != USER_TYPE_SUPER_ADMIN && $user_type != USER_TYPE_ZABBIX_ADMIN),
'data' => [],
'popup' => [
'parameters' => [
'srctbl' => 'users',
'srcfld1' => 'userid',