';
}
else {
$data[9] = '';
}
$data[9] .= ui_print_timestamp ($module["utimestamp"], true, array('style' => 'font-size: 7pt'));
$data[9] .= '';
array_push ($table->data, $data);
$rowIndex++;
}
?>
" .
__('Full list of monitors') . "";
print_form_filter_monitors($status_filter_monitor, $status_text_monitor);
if (empty ($table->data)) {
if ($filter_monitors) {
echo '' . __('Any monitors aren\'t with this filter.') . '
';
}
else {
echo '' . __('This agent doesn\'t have any active monitors.') . '
';
}
}
else {
ui_pagination ($count_modules);
html_print_table ($table);
ui_pagination ($count_modules);
}
unset ($table);
unset ($table_data);
ui_require_css_file ('cluetip');
ui_require_jquery_file ('cluetip');
?>
';
$table->data[0][0] = html_print_input_hidden('filter_monitors', 1, true);
$table->data[0][0] .= __('Status:');
$status_list = array(
-1 => __('All'),
AGENT_MODULE_STATUS_CRITICAL_BAD => __('Critical'),
AGENT_MODULE_STATUS_CRITICAL_ALERT => __('Alert'),
AGENT_MODULE_STATUS_NORMAL => __('Normal'),
AGENT_MODULE_STATUS_WARNING => __('Warning'),
AGENT_MODULE_STATUS_UNKNOW => __('Unknow'));
$table->data[0][1] = html_print_select ($status_list,
'status_filter_monitor', $status_filter_monitor, '', '', 0,
true);
$table->data[0][2] = __('Free text for search (*):');
$table->data[0][3] = html_print_input_text('status_text_monitor', $status_text_monitor, '', 30, 100, true);
$table->data[0][4] = html_print_submit_button(__('Filter'), 'filter', false, 'class="sub search"', true);
$table->data[0][4] .= '';
$table->data[0][5] = '';
html_print_submit_button(__('Filter'), 'filter', false, 'class="sub search"', true);
$form_text .= html_print_table($table, true);
$form_text .= '';
ui_toggle($form_text, __('Form filter'), __('Form filter'));
}
?>