Source
(new CDiv(mb_substr($last_history['value'], 0, ZBX_HINTBOX_CONTENT_LIMIT)))->addClass(ZBX_STYLE_HINTBOX_WRAP),
<?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 CPartial $this
* @var array $data
*/
$form = (new CForm('GET', 'history.php'))
->cleanItems()
->setName('items')
->addItem(new CVar('action', HISTORY_BATCH_GRAPH));
$table = (new CTableInfo())->addClass(ZBX_STYLE_OVERFLOW_ELLIPSIS);
// Latest data header.
$col_check_all = new CColHeader(
(new CCheckBox('all_items'))->onClick("checkAll('".$form->getName()."', 'all_items', 'itemids');")
);
$view_url = $data['view_curl']->getUrl();
$col_host = make_sorting_header(_('Host'), 'host', $data['sort_field'], $data['sort_order'], $view_url);
$col_name = make_sorting_header(_('Name'), 'name', $data['sort_field'], $data['sort_order'], $view_url);
$simple_interval_parser = new CSimpleIntervalParser();
$update_interval_parser = new CUpdateIntervalParser(['usermacros' => true]);
if ($data['filter']['show_tags'] == SHOW_TAGS_NONE) {
$tags_header = null;
}
else {
$tags_header = new CColHeader(_('Tags'));
switch ($data['filter']['show_tags']) {
case SHOW_TAGS_1:
$tags_header->addClass(ZBX_STYLE_COLUMN_TAGS_1);
break;
case SHOW_TAGS_2:
$tags_header->addClass(ZBX_STYLE_COLUMN_TAGS_2);
break;
case SHOW_TAGS_3:
$tags_header->addClass(ZBX_STYLE_COLUMN_TAGS_3);