? _s('Displaying %1$s of %2$s found', count($data['template_groups']), $data['total_template_groups_cnt'])
$this->addJsFile('items.js');
$this->addJsFile('multilineinput.js');
$this->includeJsFile('search.js.php');
$table = (new CTableInfo())
->setHeader((new CRowHeader())
->addItem(new CColHeader(_('Host')))
->addItem(new CColHeader(_('IP')))
->addItem(new CColHeader(_('DNS')))
->addItem((new CColHeader(_('Monitoring')))
->setColSpan($data['hosts'] ? 5 : 1)
->addClass(ZBX_STYLE_TABLE_LEFT_BORDER)
->addItem((new CColHeader(_('Configuration')))
->setColSpan($data['hosts'] ? 5 : 1)
->addClass(ZBX_STYLE_TABLE_LEFT_BORDER)
->setNoDataMessage(_('No data found'));
foreach ($data['hosts'] as $hostid => $host) {
$interface = reset($host['interfaces']);
$visible_name = make_decoration($host['name'], $data['search']);
$name_link = ($host['editable'] && $data['allowed_ui_conf_hosts'])
? (new CLink($visible_name, (new CUrl('zabbix.php'))
->setArgument('action', 'host.edit')
->setArgument('hostid', $hostid)
->setAttribute('data-hostid', $host['hostid'])
->onClick('view.editHost(event, this.dataset.hostid);')
: new CSpan($visible_name);
if ($host['status'] == HOST_STATUS_NOT_MONITORED) {
->addClass(ZBX_STYLE_LINK_ALT)
->addClass(ZBX_STYLE_RED);