diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 64e3deeac3..59a778fe6d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-02-09 Juan Manuel Ramon + + * godmode/snmpconsole/snmp_alert.php: Changed position of tables + 'Alert filters' and 'Alert configuration' in this view. + 2012-02-09 Ramon Novoa * operation/events/events_list.php: Removed short tags. diff --git a/pandora_console/godmode/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php index 88a7d51b42..8b6148428f 100644 --- a/pandora_console/godmode/snmpconsole/snmp_alert.php +++ b/pandora_console/godmode/snmpconsole/snmp_alert.php @@ -185,6 +185,46 @@ if (isset ($_GET["delete_alert"])) { // Delete alert if (isset ($_GET["update_alert"])) { //the update_alert means the form should be displayed. If update_alert > 1 then an existing alert is updated echo '
'; + + /* SNMP alert filters */ + + echo ''; + + echo ''; + + // Custom + echo ''; + + // SNMP Agent + echo ''; + + // Trap type + echo ''; + + // Single value + echo ''; + + //Button + //echo '
' . __('Alert filters') . ui_print_help_icon("snmp_alert_filters", true) . '
'.__('Custom Value/OID'); + echo ui_print_help_icon ("snmp_alert_custom", true); + + echo ''; + html_print_textarea ("custom_value", $custom_value, 2, $custom_value, 'style="width:400px;"'); + + echo '
'.__('SNMP Agent').' (IP)'; + html_print_input_text ("source_ip", $source_ip, '', 20); + echo '
'.__('Trap type').''; + $trap_types = array(0 => 'Cold start (0)', 1 => 'Warm start (1)', 2 => 'Link down (2)', 3 => 'Link up (3)', 4 => 'Authentication failure (4)', -1 => 'Other'); + echo html_print_select ($trap_types, 'trap_type', $trap_type, '', '', '', false, false, false); + echo '
'.__('Single value').''; + html_print_input_text ("single_value", $single_value, '', 20); + echo '
'; + + // End table + echo "
"; + + // Alert configuration + echo ''; echo ''; @@ -325,44 +365,6 @@ if (isset ($_GET["update_alert"])) { echo ''; echo '
' . __('Alert configuration') . ui_print_help_icon("snmp_alert_configuration", true) . '
'; - /* SNMP alert filters */ - - echo ''; - - echo ''; - - // Custom - echo ''; - - // SNMP Agent - echo ''; - - // Trap type - echo ''; - - // Single value - echo ''; - - //Button - //echo '
' . __('Alert filters') . ui_print_help_icon("snmp_alert_filters", true) . '
'.__('Custom Value/OID'); - echo ui_print_help_icon ("snmp_alert_custom", true); - - echo ''; - html_print_textarea ("custom_value", $custom_value, 2, $custom_value, 'style="width:400px;"'); - - echo '
'.__('SNMP Agent').' (IP)'; - html_print_input_text ("source_ip", $source_ip, '', 20); - echo '
'.__('Trap type').''; - $trap_types = array(0 => 'Cold start (0)', 1 => 'Warm start (1)', 2 => 'Link down (2)', 3 => 'Link up (3)', 4 => 'Authentication failure (4)', -1 => 'Other'); - echo html_print_select ($trap_types, 'trap_type', $trap_type, '', '', '', false, false, false); - echo '
'.__('Single value').''; - html_print_input_text ("single_value", $single_value, '', 20); - echo '
'; - - - // End table - echo "
"; - echo ""; echo '
'; if ($id_as > 0) {