From 0219685145417063de1658aa378a141725797777 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 7 Nov 2011 10:38:49 +0000 Subject: [PATCH] 2011-11-07 Juan Manuel Ramon * godmode/modules/manage_network_components_form.php: Fixed network components interface problems. Fixes: #3421733 * pandoradb.data.oracle.sql: I forgot to upload from last commit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5117 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 9 ++++ .../manage_network_components_form.php | 52 ++++++++++++++++++- pandora_console/pandoradb.data.oracle.sql | 4 +- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 72b05c4944..b64c9bd4ca 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2011-11-07 Juan Manuel Ramon + + * godmode/modules/manage_network_components_form.php: Fixed network + components interface problems. + + Fixes: #3421733 + + * pandoradb.data.oracle.sql: I forgot to upload from last commit. + 2011-11-07 Juan Manuel Ramon * pandoradb.data.postgreSQL.sql diff --git a/pandora_console/godmode/modules/manage_network_components_form.php b/pandora_console/godmode/modules/manage_network_components_form.php index 18de91c704..ff989eb4fa 100644 --- a/pandora_console/godmode/modules/manage_network_components_form.php +++ b/pandora_console/godmode/modules/manage_network_components_form.php @@ -311,6 +311,56 @@ function type_change () { } $(document).ready (function () { + if ($("#snmp_version").value == "3"){ + $("input[name=snmp3_auth_user]").css({backgroundColor: '#fff'}); + $("input[name=snmp3_auth_user]").attr("disabled", false); + + $("input[name=snmp3_auth_pass]").css({backgroundColor: '#fff'}); + $("input[name=snmp3_auth_pass]").attr("disabled", false); + + $("#snmp3_privacy_method").css({backgroundColor: '#fff'}); + $("#snmp3_privacy_method").attr("disabled", false); + + $("input[name=snmp3_privacy_pass]").css({backgroundColor: '#fff'}); + $("input[name=snmp3_privacy_pass]").attr("disabled", false); + + $("#snmp3_auth_method").css({backgroundColor: '#fff'}); + $("#snmp3_auth_method").attr("disabled", false); + + $("#snmp3_security_level").css({backgroundColor: '#fff'}); + $("#snmp3_security_level").attr("disabled", false); + + $("input[name=active_snmp_v3]").val(1); + $("input[name=snmp_community]").css({backgroundColor: '#ddd'}); + $("input[name=snmp_community]").attr("disabled",true); + } + else{ + $("input[name=snmp3_auth_user]").val(""); + $("input[name=snmp3_auth_user]").css({backgroundColor: '#ddd'}); + $("input[name=snmp3_auth_user]").attr("disabled", true); + + $("input[name=snmp3_auth_pass]").val(""); + $("input[name=snmp3_auth_pass]").css({backgroundColor: '#ddd'}); + $("input[name=snmp3_auth_pass]").attr("disabled", true); + + $("#snmp3_privacy_method").css({backgroundColor: '#ddd'}); + $("#snmp3_privacy_method").attr("disabled", true); + + $("input[name=snmp3_privacy_pass]").val(""); + $("input[name=snmp3_privacy_pass]").css({backgroundColor: '#ddd'}); + $("input[name=snmp3_privacy_pass]").attr("disabled", true); + + $("#snmp3_auth_method").css({backgroundColor: '#ddd'}); + $("#snmp3_auth_method").attr("disabled", true); + + $("#snmp3_security_level").css({backgroundColor: '#ddd'}); + $("#snmp3_security_level").attr("disabled", true); + + $("input[name=active_snmp_v3]").val(0); + $("input[name=snmp_community]").css({backgroundColor: '#fff'}); + $("input[name=snmp_community]").attr("disabled", false); + } + $("#snmp_version").change(function () { if (this.value == "3") { $("input[name=snmp3_auth_user]").css({backgroundColor: '#fff'}); @@ -360,8 +410,6 @@ $(document).ready (function () { $("input[name=active_snmp_v3]").val(0); $("input[name=snmp_community]").css({backgroundColor: '#fff'}); $("input[name=snmp_community]").attr("disabled", false); - - } }); diff --git a/pandora_console/pandoradb.data.oracle.sql b/pandora_console/pandoradb.data.oracle.sql index f27860f5a5..94b78556fd 100644 --- a/pandora_console/pandoradb.data.oracle.sql +++ b/pandora_console/pandoradb.data.oracle.sql @@ -269,8 +269,8 @@ END;; -- BEGIN LOCK TABLE tusuario IN EXCLUSIVE MODE; -INSERT INTO tusuario (id_user, fullname, firstname, lastname, middlename, password, comments, last_connect, registered, email, phone, is_admin, flash_chart, language) VALUES -('admin', 'Pandora', 'Pandora', 'Admin', ' ', '1da7ee7d45b96d0e1f45ee4ee23da560', 'Admin Pandora', 1232642121, 0, 'admin@example.com', '555-555-5555', 1, -1, 'default'); +INSERT INTO tusuario (id_user, fullname, firstname, lastname, middlename, password, comments, last_connect, registered, email, phone, is_admin, flash_chart, language, block_size) VALUES +('admin', 'Pandora', 'Pandora', 'Admin', ' ', '1da7ee7d45b96d0e1f45ee4ee23da560', 'Admin Pandora', 1232642121, 0, 'admin@example.com', '555-555-5555', 1, -1, 'default', 0); COMMIT; END;;