Source
$checkbox_update->onClick('updateWarning(this, '.json_encode(_('Images for all maps will be updated!')).')');
<?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
*/
$rules_table = new CTable();
$titles = [
'groups' => _('Groups'),
'hosts' => _('Hosts'),
'templates' => _('Templates'),
'valueMaps' => _('Value mappings'),
'templateDashboards' => _('Template dashboards'),
'templateLinkage' => _('Template linkage'),
'items' => _('Items'),
'discoveryRules' => _('Discovery rules'),
'triggers' => _('Triggers'),
'graphs' => _('Graphs'),
'httptests' => _('Web scenarios'),
'maps' => _('Maps')
];
if ($data['user']['type'] == USER_TYPE_SUPER_ADMIN) {
$titles['images'] = _('Images');
$titles['mediaTypes'] = _('Media types');
}
switch ($data['rules_preset']) {
case 'map':
$doc_url = CDocHelper::POPUP_MAPS_IMPORT;
break;
case 'template':
$doc_url = CDocHelper::POPUP_TEMPLATE_IMPORT;
break;
case 'host':
$doc_url = CDocHelper::POPUP_HOST_IMPORT;
break;
case 'mediatype':
$doc_url = CDocHelper::POPUP_MEDIA_IMPORT;
break;
default:
$doc_url = ZBX_DOCUMENTATION_URL;
}