Exemplo n.º 1
0
$filterForm->addRow(S_MIN_SEVERITY, $severity_select);
$filterForm->addRow(S_SHOW_ACTIONS, new CCheckBox('show_actions', $_REQUEST['show_actions'], null, 1));
$filterForm->addRow(S_SHOW_DETAILS, new CCheckBox('show_details', $_REQUEST['show_details'], null, 1));
$filterForm->addRow(S_SELECT, new CTextBox('txt_select', $_REQUEST['txt_select'], 40));
$filterForm->addRow(S_INVERSE_SELECT, new CCheckBox('inverse_select', $_REQUEST['inverse_select'], null, 1));
$reset = new CButton('filter_rst', S_RESET);
$reset->SetType('button');
$reset->SetAction('javascript: var url = new Curl(location.href); url.setArgument("filter_rst",1); location.href = url.getUrl();');
$filterForm->addItemToBottomRow(new CButton('filter_set', S_FILTER));
$filterForm->addItemToBottomRow($reset);
$p_elements[] = create_filter(S_FILTER, array(), $filterForm, 'tr_filter', get_profile('web.tr_status.filter.state', 0));
/*************** FILTER END ******************/
if ($_REQUEST['fullscreen']) {
    $triggerInfo = new CTriggersInfo();
    $triggerInfo->HideHeader();
    $triggerInfo->Show();
}
if ($_REQUEST['fullscreen']) {
    $fullscreen = '&fullscreen=1';
} else {
    $fullscreen = '';
}
$m_form = new CForm('acknow.php');
$m_form->SetName('tr_status');
$admin_links = $USER_DETAILS['type'] == USER_TYPE_ZABBIX_ADMIN || $USER_DETAILS['type'] == USER_TYPE_SUPER_ADMIN;
$table = new CTableInfo();
$table->ShowStart();
$header = array();
$show_event_col = $config['event_ack_enable'] && $show_events != EVENTS_OPTION_NOEVENT;
$table->SetHeader(array($show_event_col ? new CCheckBox('all_events', false, "CheckAll('" . $m_form->GetName() . "','all_events','events');") : NULL, make_sorting_link(S_SEVERITY, 't.priority'), S_STATUS, make_sorting_link(S_LAST_CHANGE, 't.lastchange'), is_show_subnodes() ? make_sorting_link(S_NODE, 'h.hostid') : null, $_REQUEST['hostid'] > 0 ? null : make_sorting_link(S_HOST, 'h.host'), make_sorting_link(S_NAME, 't.description'), $_REQUEST['show_actions'] ? S_ACTIONS : NULL, $show_event_col ? S_ACKNOWLEDGED : NULL, S_COMMENTS));
$cond = $_REQUEST['hostid'] > 0 ? ' AND h.hostid=' . $_REQUEST['hostid'] . ' ' : '';