2011-11-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* 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
This commit is contained in:
parent
3258426667
commit
0219685145
|
@ -1,3 +1,12 @@
|
|||
2011-11-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* 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 <juanmanuel.ramon@artica.es>
|
||||
|
||||
* pandoradb.data.postgreSQL.sql
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue