Esempio n. 1
0
if (EVENTS_OPTION_NOEVENT) {
    $ev_select->addItem(EVENTS_OPTION_NOEVENT, S_HIDE_ALL);
}
if (EVENTS_OPTION_ALL) {
    $ev_select->addItem(EVENTS_OPTION_ALL, S_SHOW_ALL . SPACE . '(' . $config['event_expire'] . SPACE . ($config['event_expire'] > 1 ? S_DAYS : S_DAY) . ')');
}
if (EVENTS_OPTION_NOT_ACK && $config['event_ack_enable']) {
    $ev_select->addItem(EVENTS_OPTION_NOT_ACK, S_SHOW_UNACKNOWLEDGED . SPACE . '(' . $config['event_expire'] . SPACE . ($config['event_expire'] > 1 ? S_DAYS : S_DAY) . ')');
}
if (EVENTS_OPTION_ONLYTRUE_NOTACK && $config['event_ack_enable']) {
    $ev_select->addItem(EVENTS_OPTION_ONLYTRUE_NOTACK, S_SHOW_PROBLEM_UNACKNOWLEDGED . SPACE . '(' . $config['event_expire'] . SPACE . ($config['event_expire'] > 1 ? S_DAYS : S_DAY) . ')');
}
//------- JP -------
if ($show_triggers == TRIGGERS_OPTION_NOFALSEFORB) {
    $ev_select->addItem(EVENTS_OPTION_NOFALSEFORB, ' - ', 'yes');
    $ev_select->addOption('disabled', 'disabled');
    $ev_status = new CComboBox('show_events_status', $show_events_status, 'javascript: submit();');
    $ev_status->addItem(EVENTS_NOFALSEFORB_STATUS_ALL, S_SHOW_ALL);
    $ev_status->addItem(EVENTS_NOFALSEFORB_STATUS_FALSE, S_SHOW_ONLY_FALSE);
    $ev_status->addItem(EVENTS_NOFALSEFORB_STATUS_TRUE, S_SHOW_ONLY_TRUE);
}
//---
$filterForm->addRow(S_TRIGGERS, $tr_select);
// JP
if ($show_triggers == TRIGGERS_OPTION_NOFALSEFORB) {
    $filterForm->addRow(S_STATUS, $ev_status);
    $filterForm->addVar('show_events', $show_events);
} else {
    $filterForm->addRow(S_EVENTS, $ev_select);
    $filterForm->addVar('show_events_status', $show_events_status);
}