From e66abbeafaa678b1b2b9bbfe8f45deaeb57aa766 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Thu, 1 Dec 2011 12:30:19 +0000 Subject: [PATCH] 2011-12-01 Juan Manuel Ramon * extensions/snmp_explorer.php: Fixed snmp over IE8. Fixes: #3441762 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/extensions/snmp_explorer.php | 22 ++++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d702face2e..8fb9fa23b6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-12-01 Juan Manuel Ramon + + * extensions/snmp_explorer.php: Fixed snmp over IE8. + + Fixes: #3441762 + 2011-12-01 Sergio Martin * extensions/insert_data.php: Improved the error message to diff --git a/pandora_console/extensions/snmp_explorer.php b/pandora_console/extensions/snmp_explorer.php index 2d59dd33df..96d10e1d7a 100755 --- a/pandora_console/extensions/snmp_explorer.php +++ b/pandora_console/extensions/snmp_explorer.php @@ -23,6 +23,9 @@ require_once ('include/graphs/functions_utils.php'); function snmp_explorer() { +html_debug_print("Empieza snmp explorer", "/tmp/pp.txt"); + + $idAgent = (int) get_parameter('id_agente', 0); $ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent); @@ -57,7 +60,7 @@ function snmp_explorer() { $snmpis = get_snmpwalk($ip_target, $snmp_version, $snmp_community, $snmp3_auth_user, $snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass, $snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1"); - + if($snmpis === false) { $snmpis = array(); } @@ -230,7 +233,7 @@ function snmp_explorer() { } echo ''; - echo "
"; + echo ""; $table->width = '98%'; @@ -305,8 +308,8 @@ function snmp_explorer() { echo "
"; - echo ""; - echo ""; + //echo ""; + //echo ""; if(!empty($interfaces_list)){ echo ''; @@ -365,7 +368,7 @@ function snmp_explorer() { $(document).ready (function () { var inputActive = true; - + $(document).data('text_for_module', $("#none_text").html()); $("#id_snmp").change(snmp_changed_by_multiple_snmp); @@ -378,13 +381,14 @@ $(document).ready (function () { $("#snmp3_options").css("display", "none"); } }); - - $("#submit-snmp_walk").click (function () { - $(this).disable (); + + $("#walk_form").submit(function(){ + $("#submit-snmp_walk").disable (); $("#oid_loading").show (); $("#no_snmp").hide (); $("#form_interfaces").hide (); - }); + }); + }); function snmp_changed_by_multiple_snmp (event, id_snmp, selected) {