Source
xxxxxxxxxx
->setHeader([_('Label'), _('Macro'), '', _('Regular expression'), (new CColHeader(_('Action')))->setWidth('100%')]);
<?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
*/
$output = [
'header' => $data['title']
];
$options = $data['options'];
$overrides_popup_form = (new CForm())
->cleanItems()
->setId('lldoverride_form')
->addItem((new CVar('no', $options['no']))->removeId())
->addItem((new CVar('templated', $options['templated']))->removeId())
->addVar('old_name', $options['old_name'])
->addVar('overrides_names', $options['overrides_names'])
->addItem((new CVar('action', 'popup.lldoverride'))->removeId());
// Enable form submitting on Enter.
$overrides_popup_form->addItem((new CSubmitButton(null))->addClass(ZBX_STYLE_FORM_SUBMIT_HIDDEN));
$overrides_popup_form_list = (new CFormList())
->addRow(
(new CLabel(_('Name'), 'override_name'))->setAsteriskMark(),
(new CTextBox('name', $options['old_name'], $options['templated'], DB::getFieldLength('lld_override', 'name')))
->setAriaRequired()
->setWidth(ZBX_TEXTAREA_STANDARD_WIDTH)
->setId('override_name')
)
->addRow(
_('If filter matches'),
(new CRadioButtonList('stop', (int) $options['stop']))
->addValue(_('Continue overrides'), ZBX_LLD_OVERRIDE_STOP_NO)
->addValue(_('Stop processing'), ZBX_LLD_OVERRIDE_STOP_YES)
->setModern(true)
->setReadonly($options['templated'])
);
// filters
$override_evaltype_select = (new CSelect('overrides_evaltype'))
->setId('overrides-evaltype')