diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index dfaa71a450..f8398efaa0 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2010-06-08 Raúl Mateos + + * operation/incidents/incident_detail.php, + operation/incidents/incident.php: cleaned code, improved button usability. + TODO: Use links instead buttons where adding notes. + + * operation/incidents/events.php: Cleaned code. + 2010-06-08 Ramon Novoa * pandoradb_data.sql, DEBIAN/control, diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 694ffaf501..97b4e09512 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas // Please see http://pandorafms.org for full contribution list // This program is free software; you can redistribute it and/or @@ -160,13 +160,13 @@ if ($event_type != ""){ // If normal, warning, could be several (going_up_warning, going_down_warning... too complex // for the user so for him is presented only "warning, critical and normal" if ($event_type == "warning" || $event_type == "critical" || $event_type == "normal"){ - $sql_post .= " AND event_type LIKE '%$event_type%' "; - } - elseif ($event_type == "not_normal"){ - $sql_post .= " AND event_type LIKE '%warning%' OR LIKE '%critical%' "; - } - else - $sql_post .= " AND event_type = '".$event_type."'"; + $sql_post .= " AND event_type LIKE '%$event_type%' "; + } + elseif ($event_type == "not_normal"){ + $sql_post .= " AND event_type LIKE '%warning%' OR LIKE '%critical%' "; + } + else + $sql_post .= " AND event_type = '".$event_type."'"; } if ($severity != -1) diff --git a/pandora_console/operation/incidents/incident.php b/pandora_console/operation/incidents/incident.php index 6ec92bcb9e..5908c455ea 100644 --- a/pandora_console/operation/incidents/incident.php +++ b/pandora_console/operation/incidents/incident.php @@ -179,7 +179,7 @@ echo '

'.__('Filter').'

'; $fields = get_incidents_status (); -print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155'); +print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155'); //Legend echo '
'; if ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $config["id_user"])) { - print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;"'); + print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;"'); } else { - print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;" disabled'); + print_textarea ("descripcion", 15, 80, $texto, 'style="height:200px;" disabled'); } -echo '
'; +echo '
'; // Only if user is the used who opened incident or (s)he is admin if (isset ($id_inc) AND ((give_acl ($config["id_user"], $id_grupo, "IM") == 1) OR ($usuario == $config["id_user"]))) {