Source
(new CCheckBox('show_suppressed'))->setChecked($data['sysmap']['show_suppressed'] == ZBX_PROBLEM_SUPPRESSED_TRUE)
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* @var CView $this
* @var array $data
*/
require_once dirname(__FILE__).'/js/monitoring.sysmap.edit.js.php';
$html_page = (new CHtmlPage())
->setTitle(_('Network maps'))
->setDocUrl(CDocHelper::getUrl(CDocHelper::MONITORING_SYSMAP_EDIT));
$tabs = new CTabView();
if ($data['form_refresh'] == 0) {
$tabs->setSelected(0);
}
// Create sysmap form.
$form = (new CForm())
->addItem((new CVar('form_refresh', $data['form_refresh'] + 1))->removeId())
->addItem((new CVar(CSRF_TOKEN_NAME, CCsrfTokenHelper::get('sysmaps.php')))->removeId())
->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,
'readonly' => ($user_type != USER_TYPE_SUPER_ADMIN && $user_type != USER_TYPE_ZABBIX_ADMIN),
'data' => [],
'popup' => [
'parameters' => [
'srctbl' => 'users',
'srcfld1' => 'userid',