diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0b81d0af82..5daf94c6d1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2009-02-16 Raul Mateos + + * include/config_process.php: Update build after last changes. + + * operation/events/events.php: Now the legend is shown only if there are + events, just a cosmetic change. + 2009-02-16 Esteban Sanchez * include/javascript/jquery.pandora.controls.js: Added to repository. diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 66593ff1dd..3ae86a41e1 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. //Pandora Version -$build_version = 'PC090120'; +$build_version = 'PC090216'; $pandora_version = 'v2.1-dev'; // Next is the directory where "/attachment" directory is placed, to upload files stores. @@ -86,9 +86,13 @@ foreach ($configs as $c) { break; case "auth": exit (' - Pandora FMS Error + + + Pandora FMS Error -
+ + +
logo diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index a25b2ebed3..1308f61cc9 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -2,7 +2,7 @@ // Pandora FMS - the Flexible Monitoring System // ============================================ -// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es +// Copyright (c) 2009 Artica Soluciones Tecnologicas, http://www.artica.es // Please see http://pandora.sourceforge.net for full contribution list // This program is free software; you can redistribute it and/or @@ -430,7 +430,9 @@ foreach ($result as $row) { array_push ($table->data, $data); } -if (!empty ($table->data)) { +if (empty ($table->data)) { + echo '
'.__('No events').'
'; +} else { echo '
'; print_table ($table); echo '
'; @@ -440,39 +442,37 @@ if (!empty ($table->data)) { if (give_acl ($config["id_user"], 0,"IM") == 1) { print_submit_button (__('Delete'), 'delete', false, 'class="sub delete"'); } - echo '
'; -} else { - echo '
'.__('No events').'
'; + echo '
+ '; + if ($config["pure"]== 0) { + echo '
'; + echo '

'.__('Status').'

'; + echo ' - '.__('Validated event'); + echo '
'; + echo ' - '.__('Not validated event'); + + echo '
'; + echo '

'.__('Action').'

'; + echo ' - '.__('Validate event'); + echo '
'; + echo ' - '.__('Delete event'); + echo '
'; + echo ' - '.__('Create incident'); + echo '
 
'; + } } unset ($table); -if ($config["pure"]== 0) { - echo '
'; - echo '

'.__('Status').'

'; - echo ' - '.__('Validated event'); - echo '
'; - echo ' - '.__('Not validated event'); - - echo '
'; - echo '

'.__('Action').'

'; - echo ' - '.__('Validate event'); - echo '
'; - echo ' - '.__('Delete event'); - echo '
'; - echo ' - '.__('Create incident'); - echo '
 
'; -} ?> -