Source
(new CScriptTag('timeControl.addObject("auditlog", '.json_encode($data['timeline']).', '.json_encode($obj).');'.
<?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
* @var array $data
*/
$this->addJsFile('flickerfreescreen.js');
$this->addJsFile('gtlc.js');
$this->addJsFile('class.calendar.js');
$this->includeJsFile('reports.auditlog.list.js.php');
$filter = (new CFilter())
->setResetUrl((new CUrl('zabbix.php'))->setArgument('action', $data['action']));
$filter_resourcetype = (new CSelect('filter_resourcetype'))
->setId('resourcetype-select')
->setValue($data['resourcetype'])
->setFocusableElementId('filter-resourcetype')
->addOptions(CSelect::createOptionsFromArray($data['resources']));
$filter_actions_options = [];
foreach ($data['actions'] as $value => $name) {
$filter_actions_options[] = [
'label' => $name,
'value' => $value,
'checked' => in_array($value, $data['auditlog_actions'])
];
}
$filter_actions = (new CCheckBoxList('filter_actions'))
->setId('filter-actions')
->setColumns(3)
->setOptions($filter_actions_options);
$filter_form = (new CFormList())
->addRow(new CLabel(_('Users'), 'filter_userids__ms'), [
(new CMultiSelect([
'name' => 'filter_userids[]',
'object_name' => 'users',
'data' => $data['userids'],
'placeholder' => '',