Source
$checkbox_update->onClick('updateWarning(this, '.json_encode(_('Images for all maps will be updated!')).')');
<?php
/*
** Zabbix
** 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 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'),
'images' => _('Images'),
'mediaTypes' => _('Media types')
];
$col_update = false;
$col_create = false;
$col_delete = false;
foreach ($titles as $key => $title) {
if (array_key_exists($key, $data['rules'])) {
$col_update = ($col_update || array_key_exists('updateExisting', $data['rules'][$key]));
$col_create = ($col_create || array_key_exists('createMissing', $data['rules'][$key]));
$col_delete = ($col_delete || array_key_exists('deleteMissing', $data['rules'][$key]));
}
}
foreach ($titles as $key => $title) {
if (!array_key_exists($key, $data['rules'])) {
continue;
}
$checkbox_update = null;
$checkbox_create = null;