diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3e08e78120..50a7d5374c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,35 @@ +2013-04-10 Sergio Martin + + * include/styles/pandora.css + include/functions_ui.php + include/functions_events.php + include/graphs/functions_flot.php + operation/events/events_list.php + operation/agentes/tactical.php + images/cross_undo.png + images/header_user.png + images/pandora_header_logo_enterprise.png + images/note.png + images/header_chat.png + images/enterprise_icon.png + images/header_warning.png + images/header_ready.png + images/header_blackout.png + images/header_refresh.png + images/header_logout.png + images/eye.png + images/header_email.png + images/pandora_header_logo.png + images/header_down.png + images/header_user_admin.png + images/header_help.png + images/bin.png + general/header.php: Change the header to tiny + version and clean/change more icons + + * operation/agentes/datos_agente.php: Restore + accidentaly deleted file + 2013-04-10 Miguel de Dios * godmode/reporting/visual_console_builder.editor.js: fixed the diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index ff3cb774bf..496b6f3ad1 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -31,29 +31,33 @@ config_check(); ?> - - - -
+ 'Pandora FMS Opensource', "border" => '0')); } else { - echo html_print_image('images/pandora_header_logo_enterprise.png', true, array("alt" => 'Pandora FMS Enterprise', "border" => '0', 'width' => '250px')); + echo html_print_image('images/pandora_header_logo_enterprise.png', true, array("alt" => 'Pandora FMS Enterprise', "border" => '0')); } ?> + class = "none"; $table->cellpadding = 0; $table->cellspacing = 0; $table->head = array (); $table->data = array (); - $table->style[0] = $table->style[2] = $table->style[4] = 'width: 22px; text-align:center; height: 22px; padding-left: 12px; padding-right: 2px;'; + $table->style[0] = $table->style[1] = $table->style[3] = $table->style[4] = $table->style[5] = $table->style[6] = $table->style[9] = 'width: 22px; text-align:center; height: 22px; padding-right: 9px;'; + $table->style[7] = 'width: 20px; padding-right: 9px;'; + $table->style['searchbar'] = 'width: 180px; min-width: 180px;'; + $table->style[11] = 'padding-left: 10px; padding-right: 5px;width: 16px;'; + $table->width = "100%"; + $table->styleTable = 'margin: auto; margin-top: 0px;'; $table->rowclass[0] = ''; - $table->styleTable = 'margin: auto; margin-top: 15px;'; - + // Servers check $servers = array(); $servers["all"] = (int) db_get_value ('COUNT(id_server)','tserver'); @@ -62,17 +66,14 @@ config_check(); if ($servers["up"] == 0) { //All Servers down or no servers at all $servers_check_img = html_print_image("images/header_down.png", true, array("alt" => 'cross', "class" => 'bot', 'title' => __('All systems').': '.__('Down'))); - $servers_check_txt = __('All systems').': '.__('Down'); } elseif ($servers["down"] != 0) { //Some servers down $servers_check_img = html_print_image("images/header_warning.png", true, array("alt" => 'error', "class" => 'bot', 'title' => $servers["down"].' '.__('servers down'))); - $servers_check_txt = $servers["down"].' '.__('servers down'); } else { //All servers up $servers_check_img = html_print_image("images/header_ready.png", true, array("alt" => 'ok', "class" => 'bot', 'title' => __('All systems').': '.__('Ready'))); - $servers_check_txt = __('All systems').': '.__('Ready'); } unset ($servers); // Since this is the header, we don't like to trickle down variables. @@ -80,11 +81,10 @@ config_check(); $servers_link_close = ''; $table->data[0][0] = $servers_link_open . $servers_check_img . $servers_link_close; - $table->data[0][1] = $servers_link_open . $servers_check_txt . $servers_link_close; // Autorefresh $autorefresh_img = html_print_image("images/header_refresh.png", true, array("class" => 'bot', "alt" => 'lightning', 'title' => __('Configure autorefresh'))); - $autorefresh_txt = __('Autorefresh'); + $autorefresh_txt = ''; $autorefresh_additional = ''; $ignored_params = array ('agent_config' => false, 'code' => false); @@ -126,11 +126,8 @@ config_check(); $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'); + $table->data[0][1] = $autorefresh_link_open_img . $autorefresh_img . $autorefresh_link_close; + $table->data[0][2] .= $autorefresh_link_open_txt . $autorefresh_txt . $autorefresh_link_close . $autorefresh_additional; if ($config["alert_cnt"] > 0) { echo ''; @@ -150,62 +147,32 @@ config_check(); $maintenance_img = html_print_image ("images/header_ready.png", true, array ("title" => __('There are not warnings'), "id" => "yougotalert", "class" => "bot")); } - $table->data[0][4] = $maintenance_img; - //$table->data[0][5] = $maintenance_txt; - - html_print_table($table); + $table->data[0][3] = $maintenance_img; - unset($table); - ?> - - class = "none"; - $table->cellpadding = 0; - $table->cellspacing = 0; - $table->head = array (); - $table->data = array (); - $table->style[0] = $table->style[1] = 'width: 22px; text-align:center; height: 22px; padding-right: 2px;'; - $table->rowclass[0] = ''; - $table->styleTable = 'margin-top: 15px;'; + // Main help icon + $table->data[0][4] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png'); // 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] .= ''; + $table->data[0][5] = ''; + $table->data[0][5] .= html_print_image("images/header_logout.png", true, array("alt" => __('Logout'), "class" => 'bot', "title" => __('Logout'))); + $table->data[0][5] .= ''; // User if (is_user_admin ($config["id_user"]) == 1) - $table->data[0][1] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); + $table->data[0][6] = html_print_image("images/header_user_admin.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); else - $table->data[0][1] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); + $table->data[0][6] = html_print_image("images/header_user.png" , true, array("title" => __('Edit my user'), "class" => 'bot', "alt" => 'user')); - $table->data[0][1] = '' . $table->data[0][1] . ''; + $table->data[0][6] = '' . $table->data[0][6] . ''; - $table->data[0][2] = ' [' . $config["id_user"] . ']'; - - html_print_table($table); + $table->data[0][7] = ' (' . $config["id_user"] . ')'; - unset($table); - ?> - - class = "none"; - $table->cellpadding = 0; - $table->cellspacing = 0; - $table->head = array (); - $table->data = array (); - $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: 15px; padding-right: 5px;'; - $table->rowclass[0] = ''; - - // Main help icon - $table->data[0][3] = ui_print_help_icon ("main_help", true, '', 'images/header_help.png'); + // Chat messages + $table->data[0][8] = ""; // Messages $msg_cnt = messages_get_count ($config["id_user"]); @@ -213,21 +180,11 @@ config_check(); echo ''; ui_require_css_file ('dialog'); - $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][4] = ''; + $table->data[0][9] = ''; + $table->data[0][9] .= 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][9] .= ''; } - // Chat messages - $table->data[0][5] = ""; - // Search bar $search_bar = '
'; $search_bar .= ''; @@ -240,16 +197,16 @@ config_check(); $search_bar .= "value='" . $config['search_keywords'] . "'"; $search_bar .= 'onfocus="javascript: if (fieldKeyWordEmpty) $(\'#keywords\').val(\'\');" - size="60" class="search_input" />'; + style="margin-top:5px;" class="search_input" />'; //$search_bar .= 'onClick="javascript: document.quicksearch.submit()"'; $search_bar .= ""; $search_bar .= '
'; - $table->data[0][6] = $search_bar; + $table->data[0]['searchbar'] = $search_bar; - $table->data[0][7] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true); + $table->data[0][11] = ui_print_help_tip (__("Blank characters are used as AND conditions"), true); html_print_table($table); diff --git a/pandora_console/images/bin.png b/pandora_console/images/bin.png deleted file mode 100755 index 8c4eeb54c8..0000000000 Binary files a/pandora_console/images/bin.png and /dev/null differ diff --git a/pandora_console/images/cross_undo.png b/pandora_console/images/cross_undo.png index c4b1da2bab..b542e9b776 100644 Binary files a/pandora_console/images/cross_undo.png and b/pandora_console/images/cross_undo.png differ diff --git a/pandora_console/images/enterprise_icon.png b/pandora_console/images/enterprise_icon.png deleted file mode 100755 index e6d5186547..0000000000 Binary files a/pandora_console/images/enterprise_icon.png and /dev/null differ diff --git a/pandora_console/images/eye.png b/pandora_console/images/eye.png index b8d045959b..23cc3e677f 100644 Binary files a/pandora_console/images/eye.png and b/pandora_console/images/eye.png differ diff --git a/pandora_console/images/header_blackout.png b/pandora_console/images/header_blackout.png index daa31623b8..a2ff7fafe5 100644 Binary files a/pandora_console/images/header_blackout.png and b/pandora_console/images/header_blackout.png differ diff --git a/pandora_console/images/header_chat.png b/pandora_console/images/header_chat.png index 9be019ccb8..35566b953b 100644 Binary files a/pandora_console/images/header_chat.png and b/pandora_console/images/header_chat.png differ diff --git a/pandora_console/images/header_down.png b/pandora_console/images/header_down.png index 9eeaddac08..3ac530630b 100755 Binary files a/pandora_console/images/header_down.png and b/pandora_console/images/header_down.png differ diff --git a/pandora_console/images/header_email.png b/pandora_console/images/header_email.png index 4ef5bb5cfe..0d45c72d46 100644 Binary files a/pandora_console/images/header_email.png and b/pandora_console/images/header_email.png differ diff --git a/pandora_console/images/header_help.png b/pandora_console/images/header_help.png index 32b4719f30..6b4046131e 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/header_logout.png b/pandora_console/images/header_logout.png index 49be4fde84..2fe2a7c269 100644 Binary files a/pandora_console/images/header_logout.png and b/pandora_console/images/header_logout.png differ diff --git a/pandora_console/images/header_ready.png b/pandora_console/images/header_ready.png index 90e30e4ace..165dbc1cc2 100644 Binary files a/pandora_console/images/header_ready.png and b/pandora_console/images/header_ready.png differ diff --git a/pandora_console/images/header_refresh.png b/pandora_console/images/header_refresh.png index e6b36603da..823297ff79 100644 Binary files a/pandora_console/images/header_refresh.png and b/pandora_console/images/header_refresh.png differ diff --git a/pandora_console/images/header_user.png b/pandora_console/images/header_user.png index 685eaa5d46..00e4d9b6f8 100644 Binary files a/pandora_console/images/header_user.png and b/pandora_console/images/header_user.png differ diff --git a/pandora_console/images/header_user_admin.png b/pandora_console/images/header_user_admin.png index 54384948bd..edaa6a7b27 100644 Binary files a/pandora_console/images/header_user_admin.png and b/pandora_console/images/header_user_admin.png differ diff --git a/pandora_console/images/header_warning.png b/pandora_console/images/header_warning.png index f22b48007f..d1377944fb 100644 Binary files a/pandora_console/images/header_warning.png and b/pandora_console/images/header_warning.png differ diff --git a/pandora_console/images/note.png b/pandora_console/images/note.png deleted file mode 100644 index f7f7ccc520..0000000000 Binary files a/pandora_console/images/note.png and /dev/null differ diff --git a/pandora_console/images/pandora_header_logo.png b/pandora_console/images/pandora_header_logo.png index 998e471878..39e8e7d380 100644 Binary files a/pandora_console/images/pandora_header_logo.png and b/pandora_console/images/pandora_header_logo.png differ diff --git a/pandora_console/images/pandora_header_logo_enterprise.png b/pandora_console/images/pandora_header_logo_enterprise.png index 998e471878..39e8e7d380 100644 Binary files a/pandora_console/images/pandora_header_logo_enterprise.png and b/pandora_console/images/pandora_header_logo_enterprise.png differ diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index fcf4a6032f..64e48a5c89 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -903,7 +903,7 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret } $events_table = html_print_table ($table, true); - $out = '
'; + $out = '
'; $out .= $events_table; if($agent_id != 0) { diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 5f9c18f74b..9c768d0ca8 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -949,7 +949,7 @@ function ui_print_help_icon ($help_id, $return = false, $home_url = '', $image = $home_url = "../../" . $home_url; } - $output = ' '.html_print_image ($image, true, + $output = html_print_image ($image, true, array ("class" => "img_help", "title" => __('Help'), "onclick" => "open_help ('".$help_id."','".$home_url."')")); @@ -1341,7 +1341,7 @@ function ui_process_page_head ($string, $bitfield) { if ($config['flash_charts']) { //Include the javascript for the js charts library - include_once('include/graphs/functions_flot.php'); + include_once($config["homedir"] . '/include/graphs/functions_flot.php'); $output .= include_javascript_dependencies_flot_graph(true); } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 3a7a3156c0..1a699f1df9 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -224,7 +224,7 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend, $long_in $nbuttons++; } - $menu_width = 18 * $nbuttons + 8; + $menu_width = 25 * $nbuttons + 8; $return .= "