diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3841ef4ca8..fed20303fa 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,17 @@ +2009-02-05 Esteban Sanchez + + * godmode/agentes/alert_manager.php: Hide actions and templates form. + Removed unncessary check when there's no module set. + + * include/styles/ie.css: Added to repository. IE fixes. Added fixes + for menu, because IE doesn't support hover in other elements than a. + + * include/styles/menu.css: Removed font-family property. + + * include/functions_db.php: Style correction. + + * index.php: Added IE CSS fixes if needed. + 2009-02-05 Esteban Sanchez * operation/visual_console/render_view.php: Recoverd countdown when diff --git a/pandora_console/godmode/agentes/alert_manager.php b/pandora_console/godmode/agentes/alert_manager.php index 69d809a11e..fae574d06e 100644 --- a/pandora_console/godmode/agentes/alert_manager.php +++ b/pandora_console/godmode/agentes/alert_manager.php @@ -254,44 +254,41 @@ foreach ($modules as $id_agent_module => $module) { $table->data = array (); } -if (isset($module)){ +/* This hidden value is used in Javascript. It's a workaraound for IE because + it doesn't allow input elements creation. */ +print_input_hidden ('add_action', 1); +print_input_hidden ('id_alert_module', 0); - /* This hidden value is used in Javascript. It's a workaraound for IE because - it doesn't allow input elements creation. */ - print_input_hidden ('add_action', 1); - print_input_hidden ('id_alert_module', 0); - - echo '
'; - echo '
'; - print_label (__('Template'), 'template'); - $templates = get_alert_templates (); - if (empty ($templates)) - $templates = array (); - print_select ($templates, 'template', '', '', __('None'), 0); - echo '
'; - print_label (__('Action'), 'action'); - $actions = get_alert_actions (); - if (empty ($actions)) - $actions = array (); - print_select ($actions, 'action', '', '', __('None'), 0); - echo '
'; - echo ''.__('Advanced options').' » '; - echo '
'; - echo '

'; - print_submit_button (__('Add'), 'add', false, 'class="sub next"'); - print_input_hidden ('id_agent_module', 0); - print_input_hidden ('create_alert', 1); - echo '
'; -} +echo ''; ?> diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index c5fa4de2ff..8a428aea24 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -302,10 +302,10 @@ function get_group_agents ($id_group = 0, $disabled = false, $case = "lower") { foreach ($result as $row) { switch ($case) { case "lower": - $agents[$row["id_agente"]] = mb_strtolower ($row["nombre"],"UTF-8"); + $agents[$row["id_agente"]] = mb_strtolower ($row["nombre"], "UTF-8"); break; case "upper": - $agents[$row["id_agente"]] = mb_strtoupper ($row["nombre"],"UTF-8"); + $agents[$row["id_agente"]] = mb_strtoupper ($row["nombre"], "UTF-8"); break; default: $agents[$row["id_agente"]] = $row["nombre"]; diff --git a/pandora_console/include/styles/ie.css b/pandora_console/include/styles/ie.css new file mode 100644 index 0000000000..681abcfe31 --- /dev/null +++ b/pandora_console/include/styles/ie.css @@ -0,0 +1,12 @@ +.title .toggle { + background: none; +} +.title .toggle { + background: transparent url(images/toggle.gif) no-repeat scroll !important; +} + +.title a { + clear: none; + zoom: 100%; + padding: 1; +} diff --git a/pandora_console/include/styles/menu.css b/pandora_console/include/styles/menu.css index e5052ee14e..28fd0d20bc 100644 --- a/pandora_console/include/styles/menu.css +++ b/pandora_console/include/styles/menu.css @@ -41,7 +41,6 @@ li.not_selected a { background: #E9F3D2; } .menu a { - font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; color: #000000; display:block; /* This makes it so that the whole li is clickable */ text-decoration:none; diff --git a/pandora_console/index.php b/pandora_console/index.php index 468c394615..ef7e3f1d66 100644 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -143,6 +143,9 @@ echo 'Pandora FMS - '.__('the Flexible Monitoring System').' +