diff --git a/pandora_console/extensions/agents_alerts.php b/pandora_console/extensions/agents_alerts.php index 557bacb31a..e93b97cddf 100755 --- a/pandora_console/extensions/agents_alerts.php +++ b/pandora_console/extensions/agents_alerts.php @@ -105,10 +105,18 @@ function mainAgentsAlerts() { } // Header - ui_print_page_header (__("Agents/Alerts"), "images/op_alerts.png", false, "", false, $onheader); + ui_print_page_header (__("Agents/Alerts"), "images/op_alerts.png", false, "", false, $updated_time); // Old style table, we need a lot of special formatting,don't use table function // Prepare old-style table + echo ''; + echo ""; + echo ""; + if ($config['pure'] == 1) + echo ""; + echo ""; + echo ""; + echo "
" . $filter_groups . "" . $comborefr . " " . __("Full screen") . "" . $fullscreen['text'] . "
"; $filter = array ('offset' => (int) $offset, 'limit' => (int) $config['block_size']); @@ -144,7 +152,7 @@ function mainAgentsAlerts() { $nagents = count(agents_get_agents ($filter_count)); if ($agents == false) { - echo "
" . __('There are no agents with alerts')."
"; + ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no agents with alerts') ) ); return; } @@ -164,12 +172,15 @@ function mainAgentsAlerts() { // Prepare pagination ui_pagination ($nagents); - echo ''; - echo ""; + echo '
".__("Agents")." / ".__("Alert templates")."
'; + echo ""; if ($hor_offset > 0) { $new_hor_offset = $hor_offset-$block; - echo ""; + echo ""; } $templates_raw = array(); @@ -200,12 +211,14 @@ function mainAgentsAlerts() { if ($tname == '') { continue; } - echo '"; + echo '"; } if (($hor_offset + $block) < $ntemplates) { $new_hor_offset = $hor_offset+$block; - echo ""; + echo ""; } foreach ($agents as $agent) { @@ -231,7 +244,7 @@ function mainAgentsAlerts() { $cellstyle = 'background:'.COL_ALERTFIRED.';'; } - echo '
".__("Agents")." / ".__("Alert templates")."".html_print_image("images/darrowleft.png",true, array('title' => __('Previous templates')))." + ". + html_print_image("images/darrowleft.png",true, array('title' => __('Previous templates')))." '. html_print_image('images/information.png', true, array('title' => io_safe_output($tname))) ."'. io_safe_output($tname) . html_print_image('images/information.png', true, array('title' => io_safe_output($tname))) ."".html_print_image("images/darrowright.png",true, array('title' => __('More templates')))." + ".html_print_image("images/darrowright.png",true, array('title' => __('More templates')))." '; + echo ' '; $uniqid = uniqid(); echo "
";