From c9381b887940e7064d5effd4bd9aa6ca9c91f713 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Thu, 1 Mar 2012 13:39:03 +0000 Subject: [PATCH] 2012-03-01 Juan Manuel Ramon * extensions/agents_modules.php: Changes in this view to do it more 'compact'. Fixes: #3484718 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5683 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++++++ pandora_console/extensions/agents_modules.php | 22 +++++++++---------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 45fc5b44a5..5518d09142 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2012-03-01 Juan Manuel Ramon + + * extensions/agents_modules.php: Changes in this view to do it + more 'compact'. + + Fixes: #3484718 + 2012-03-01 Vanessa Gil * godmode/reporting/reporting_builder.preview.php: Fixed bug: When diff --git a/pandora_console/extensions/agents_modules.php b/pandora_console/extensions/agents_modules.php index 1f954f0de3..8cb1011240 100644 --- a/pandora_console/extensions/agents_modules.php +++ b/pandora_console/extensions/agents_modules.php @@ -162,9 +162,9 @@ function mainAgentsModules() { return; } - echo ''; + echo '
'; - echo ""; + echo ""; if($hor_offset > 0) { $new_hor_offset = $hor_offset-$block; @@ -178,8 +178,7 @@ function mainAgentsModules() { continue; } - $file_name = string2image(ui_print_truncate_text($module['name'],15, false, true, false, '...'), 115, 13, 3, 270, '#90B165', 'FFF', 4, 0); - echo '"; + echo '"; } if(($hor_offset + $block) < $nmodules) { @@ -224,10 +223,9 @@ function mainAgentsModules() { break; } - echo ""; + echo ""; - $file_name = string2image(ui_print_truncate_text($agent['nombre'],19, false, true, false, '...'), 140, 15, 3, 0, $rowcolor, $textcolor, 4, 0); - echo ""; + echo ""; $agent_modules = agents_get_modules($agent['id_agente']); $nmodules = 0; @@ -251,19 +249,19 @@ function mainAgentsModules() { echo ''; switch($status){ case 0: - ui_print_status_image ('module_ok.png', $module['name']." in ".$agent['nombre'].": ".__('NORMAL'), false, array('width' => '20px', 'height' => '20px')); + ui_print_status_image ('module_ok.png', modules_get_last_value($module_id), false, array('width' => '20px', 'height' => '20px')); break; case 1: - ui_print_status_image ('module_critical.png', $module['name']." in ".$agent['nombre'].": ".__('CRITICAL'), false, array('width' => '20px', 'height' => '20px')); + ui_print_status_image ('module_critical.png', modules_get_last_value($module_id), false, array('width' => '20px', 'height' => '20px')); break; case 2: - ui_print_status_image ('module_warning.png', $module['name']." in ".$agent['nombre'].": ".__('WARNING'), false, array('width' => '20px', 'height' => '20px')); + ui_print_status_image ('module_warning.png', modules_get_last_value($module_id), false, array('width' => '20px', 'height' => '20px')); break; case 3: - ui_print_status_image ('module_unknown.png', $module['name']." in ".$agent['nombre'].": ".__('UNKNOWN'), false, array('width' => '20px', 'height' => '20px')); + ui_print_status_image ('module_unknown.png', modules_get_last_value($module_id), false, array('width' => '20px', 'height' => '20px')); break; case 4: - ui_print_status_image ('module_alertsfired.png', $module['name']." in ".$agent['nombre'].": ".__('ALERTS FIRED'), false, array('width' => '20px', 'height' => '20px')); + ui_print_status_image ('module_alertsfired.png', modules_get_last_value($module_id), false, array('width' => '20px', 'height' => '20px')); break; } echo '';
".__("Agents")." / ".__("Modules")."".__("Agents")." / ".__("Modules")."'.html_print_image($file_name, true, array('title' => $module['name']))."'. html_print_image('images/information.png', true, array('title' => io_safe_output($module['name']))) ."
".html_print_image($file_name, true, array('title' => $agent['nombre']))."" . ui_print_truncate_text(io_safe_output($agent['nombre']), 35, true, true, true, '...', 'font-size:8.5px; font-weight: bold;') . "