diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c692b529a4..f870bb7958 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,17 @@ +2013-04-10 Sergio Martin + + * include/styles/pandora.css + include/functions_graph.php + include/functions_events.php + include/functions_reporting.php + operation/agentes/tactical.php + images/header_help.png + general/header.php: Adapt the screen to + 1024 resolutions reducing header and tactical + view + + * images/tree.png: Add tree new icon + 2013-04-10 Miguel de Dios * mobile/operation/groups.php: changed the call to get groups to diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index d0ff8a85de..ff3cb774bf 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -38,21 +38,21 @@ config_check(); echo html_print_image('images/pandora_header_logo.png', true, array("alt" => 'Pandora FMS Opensource', "border" => '0')); } else { - echo html_print_image('images/pandora_header_logo_enterprise.png', true, array("alt" => 'Pandora FMS Enterprise', "border" => '0')); + echo html_print_image('images/pandora_header_logo_enterprise.png', true, array("alt" => 'Pandora FMS Enterprise', "border" => '0', 'width' => '250px')); } ?> - + class = "none"; $table->cellpadding = 0; $table->cellspacing = 0; $table->head = array (); $table->data = array (); - $table->style[0] = $table->style[2] = $table->style[4] = 'width: 27px; text-align:center; height: 27px; padding-left: 12px; padding-right: 2px;'; + $table->style[0] = $table->style[2] = $table->style[4] = 'width: 22px; text-align:center; height: 22px; padding-left: 12px; padding-right: 2px;'; $table->rowclass[0] = ''; - $table->styleTable = 'margin: auto; margin-top: 20px;'; + $table->styleTable = 'margin: auto; margin-top: 15px;'; // Servers check $servers = array(); @@ -76,7 +76,7 @@ config_check(); } unset ($servers); // Since this is the header, we don't like to trickle down variables. - $servers_link_open = ''; + $servers_link_open = ''; $servers_link_close = ''; $table->data[0][0] = $servers_link_open . $servers_check_img . $servers_link_close; @@ -122,15 +122,15 @@ config_check(); } } - $autorefresh_link_open_img = ''; - $autorefresh_link_open_txt = ''; + $autorefresh_link_open_img = ''; + $autorefresh_link_open_txt = ''; $autorefresh_link_close = ''; $table->data[0][2] = $autorefresh_link_open_img . $autorefresh_img . $autorefresh_link_close; $table->data[0][3] = $autorefresh_link_open_txt . $autorefresh_txt . $autorefresh_link_close . $autorefresh_additional; // Maintenance - $maintenance_txt = __('Maintenance'); + //$maintenance_txt = __('Maintenance'); if ($config["alert_cnt"] > 0) { echo ''; @@ -138,7 +138,7 @@ config_check(); $maintenance_link = 'javascript:'; $maintenance_title = __("System alerts detected - Please fix as soon as possible"); - $maintenance_class = $maintenance_id = 'show_systemalert_dialog white_bold'; + $maintenance_class = $maintenance_id = 'show_systemalert_dialog white'; $maintenance_link_open_txt = ''; $maintenance_link_open_img = ''; @@ -151,7 +151,7 @@ config_check(); } $table->data[0][4] = $maintenance_img; - $table->data[0][5] = $maintenance_txt; + //$table->data[0][5] = $maintenance_txt; html_print_table($table); @@ -165,50 +165,47 @@ config_check(); $table->cellspacing = 0; $table->head = array (); $table->data = array (); - $table->style[0] = $table->style[2] = 'width: 27px; text-align:center; height: 27px; padding-left: 12px; padding-right: 2px;'; + $table->style[0] = $table->style[1] = 'width: 22px; text-align:center; height: 22px; padding-right: 2px;'; $table->rowclass[0] = ''; - $table->styleTable = 'margin-top: 20px;'; + $table->styleTable = 'margin-top: 15px;'; + + // Logout + $table->data[0][0] = ''; + $table->data[0][0] .= html_print_image("images/header_logout.png", true, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout'))); + $table->data[0][0] .= ''; // User if (is_user_admin ($config["id_user"]) == 1) - $table->data[0][0] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); + $table->data[0][1] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); else - $table->data[0][0] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); + $table->data[0][1] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); - $table->data[0][0] = '' . $table->data[0][0] . ''; + $table->data[0][1] = '' . $table->data[0][1] . ''; - $table->data[0][1] = ' [' . $config["id_user"] . ']'; - - // Logout - $table->data[0][2] = ''; - $table->data[0][2] .= html_print_image("images/header_logout.png", true, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout'))); - $table->data[0][2] .= ''; - - $table->data[0][3] = ''; - $table->data[0][3] .= __('Logout'); - $table->data[0][3] .= ''; + $table->data[0][2] = ' [' . $config["id_user"] . ']'; html_print_table($table); unset($table); ?> - + class = "none"; $table->cellpadding = 0; $table->cellspacing = 0; $table->head = array (); $table->data = array (); - $table->style[0] = $table->style[1] = $table->style[2] = 'text-align:right; padding-right: 2px; width: 1px;'; - $table->style[3] = 'width: 180px;'; - $table->style[4] = 'padding-left: 10px; width: 20px;'; + $table->style[0] = $table->style[1] = 'width: 22px; text-align:center; height: 22px; padding-right: 2px;'; + $table->style[3] = $table->style[4] = $table->style[5] = 'text-align:right; padding-right: 2px; width: 1px;'; + $table->style[6] = 'width: 120px;'; + $table->style[7] = 'padding-left: 10px; padding-left: 10px; width: 20px;'; $table->width = "100%"; - $table->styleTable = 'margin: auto; margin-top: 20px; padding-right: 5px;'; + $table->styleTable = 'margin: auto; margin-top: 15px; padding-right: 5px;'; $table->rowclass[0] = ''; // Main help icon - $table->data[0][0] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png'); + $table->data[0][3] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png'); // Messages $msg_cnt = messages_get_count ($config["id_user"]); @@ -216,20 +213,20 @@ config_check(); echo ''; ui_require_css_file ('dialog'); - $table->data[0][1] = ''; - $table->data[0][1] .= html_print_image ("images/header_email.png", true, array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot", 'style' => 'width:24px;')); - $table->data[0][1] .= ''; + $table->data[0][4] = ''; + $table->data[0][4] .= html_print_image ("images/header_email.png", true, array ("title" => __('You have %d unread message(s)', $msg_cnt), "id" => "yougotmail", "class" => "bot", 'style' => 'width:24px;')); + $table->data[0][4] .= ''; } else { - $table->data[0][1] = ''; + $table->data[0][4] = ''; } // Chat messages - $table->data[0][2] = ""; + $table->data[0][5] = ""; // Search bar $search_bar = '
'; @@ -250,9 +247,9 @@ config_check(); $search_bar .= ""; $search_bar .= '
'; - $table->data[0][3] = $search_bar; + $table->data[0][6] = $search_bar; - $table->data[0][4] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true); + $table->data[0][7] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true); html_print_table($table); diff --git a/pandora_console/images/header_help.png b/pandora_console/images/header_help.png index 661d8648b0..32b4719f30 100755 Binary files a/pandora_console/images/header_help.png and b/pandora_console/images/header_help.png differ diff --git a/pandora_console/images/tree.png b/pandora_console/images/tree.png new file mode 100644 index 0000000000..bd5bbf5edd Binary files /dev/null and b/pandora_console/images/tree.png differ diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 6471f2b262..fcf4a6032f 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -907,33 +907,32 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret $out .= $events_table; if($agent_id != 0) { - $out .= ''; + $out .= ''; $out .= '
'; $out .= '
' . __('Events generated -by module-') . '' . - graph_event_module (250, 100, $event['id_agente']) . '
'; + graph_event_module (180, 100, $event['id_agente']) . ''; $out .= '
'; } else { - $out .= ''; + $out .= ''; $out .= '
'; $out .= '
' . __('Event graph') . '' . - grafico_eventos_total("", 250, 100) . '
'; + grafico_eventos_total("", 180, 60) . ''; $out .= '
' . __('Event graph by agent') . '' . - grafico_eventos_grupo(250, 100) . '
'; + grafico_eventos_grupo(180, 60) . ''; $out .= '
'; } $out .= ''; - unset ($table); diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 38f84ade5e..672902bdc3 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -2068,7 +2068,7 @@ function grafico_eventos_grupo ($width = 300, $height = 200, $url = "", $meta = break; } - $result = db_get_all_rows_sql ($sql); + $result = db_get_all_rows_sql ($sql, false, false); if ($result === false) { $result = array(); } @@ -2120,7 +2120,7 @@ function grafico_eventos_grupo ($width = 300, $height = 200, $url = "", $meta = return pie3d_graph($config['flash_charts'], $data, $width, $height, __('Other'), '', $water_mark, - $config['fontpath'], $config['font_size'], 1); + $config['fontpath'], $config['font_size'], 1, 'bottom'); } /** @@ -2144,7 +2144,7 @@ function grafico_eventos_total($filter = "", $width = 320, $height = 200) { $sql = "SELECT criticity, COUNT(id_evento) events FROM tevento GROUP BY criticity ORDER BY events DESC"; - $criticities = db_get_all_rows_sql ($sql); + $criticities = db_get_all_rows_sql ($sql, false, false); if(empty($criticities)) { $criticities = array(); @@ -2190,7 +2190,7 @@ function grafico_eventos_total($filter = "", $width = 320, $height = 200) { return pie3d_graph($config['flash_charts'], $data, $width, $height, __('Other'), '', $water_mark, - $config['fontpath'], $config['font_size'], 1, false, $colors); + $config['fontpath'], $config['font_size'], 1, 'bottom', $colors); } /** diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ba39251a1d..8fce726385 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -891,7 +891,7 @@ function reporting_get_stats_servers($tiny = true) { $table_srv->data[] = $tdata; $tdata = array(); - $tdata[0] = html_print_image('images/database25.png', true, array('title' => __('Local modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/database.png', true, array('title' => __('Local modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_local_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["local_modules_rate"], 2) . ''; @@ -902,7 +902,7 @@ function reporting_get_stats_servers($tiny = true) { if ($tiny) { $tdata = array(); - $tdata[0] = html_print_image('images/network25.png', true, array('title' => __('Remote modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Remote modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_remote_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["remote_modules_rate"], 2) . ''; @@ -914,7 +914,7 @@ function reporting_get_stats_servers($tiny = true) { else { if (isset($server_performance ["total_network_modules"])) { $tdata = array(); - $tdata[0] = html_print_image('images/network25.png', true, array('title' => __('Network modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/network.png', true, array('title' => __('Network modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_network_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["network_modules_rate"], 2) . ''; @@ -938,7 +938,7 @@ function reporting_get_stats_servers($tiny = true) { if (isset($server_performance ["total_prediction_modules"])) { $tdata = array(); - $tdata[0] = html_print_image('images/bars25.png', true, array('title' => __('Prediction modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/chart_bar.png', true, array('title' => __('Prediction modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_prediction_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["prediction_modules_rate"], 2) . ''; @@ -950,7 +950,7 @@ function reporting_get_stats_servers($tiny = true) { if (isset($server_performance ["total_wmi_modules"])) { $tdata = array(); - $tdata[0] = html_print_image('images/wmi25.png', true, array('title' => __('WMI modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/wmi.png', true, array('title' => __('WMI modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_wmi_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["wmi_modules_rate"], 2) . ''; @@ -962,7 +962,7 @@ function reporting_get_stats_servers($tiny = true) { if (isset($server_performance ["total_web_modules"])) { $tdata = array(); - $tdata[0] = html_print_image('images/web25.png', true, array('title' => __('Web modules'), 'width' => '25px')); + $tdata[0] = html_print_image('images/world.png', true, array('title' => __('Web modules'), 'width' => '25px')); $tdata[1] = '' . format_numeric($server_performance ["total_web_modules"]) . ''; $tdata[2] = '' . format_numeric($server_performance ["web_modules_rate"], 2) . ''; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 683c1323c6..b0d2a78147 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -42,7 +42,7 @@ div#page { #login_body { /* Set rules to fill background */ min-height: 100%; - min-width: 1024px; + min-width: 960px; /* Set up proportionate scaling */ width: 100%; @@ -1698,10 +1698,16 @@ div#head { height: auto; background-color: #000; background-image: url(../../images/header_blackout.png); - height: 78px; + height: 68px; min-width: 882px; + color: white; } +div#head .bot{ + width: 20px; +} + + div#foot { width: auto; } diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index 1f0e1ddb75..f9016c8f5d 100644 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -56,7 +56,7 @@ if(tags_has_user_acl_tags()) { } echo ''; -echo '
'; +echo ''; // --------------------------------------------------------------------- // The status horizontal bars (Global health, Monitor sanity... // --------------------------------------------------------------------- @@ -69,7 +69,7 @@ $table->head = array (); $table->data = array (); $table->style = array (); -$table->data[0][0] = reporting_get_stats_indicators($data, 180, 20); +$table->data[0][0] = reporting_get_stats_indicators($data, 120, 20); $table->rowclass[] = ''; @@ -89,7 +89,7 @@ $table->data = array (); $table->style = array (); $table->data[0][0] = reporting_get_stats_alerts($data); -$table->data[0][0] .= reporting_get_stats_modules_status($data, 200, 100); +$table->data[0][0] .= reporting_get_stats_modules_status($data, 180, 100); $table->data[0][0] .= reporting_get_stats_agents_monitors($data); $table->rowclass[] = '';