57 lines
18 KiB
HTML
57 lines
18 KiB
HTML
|
<html> <head><title>Cisco Linksys</title><meta http-equiv=expires content=0><meta http-equiv=cache-control content=no-cache><meta http-equiv=pragma content=no-cache><meta http-equiv=Content-Type content="text/html; charset=utf-8"><script language=javascript>
|
||
|
var isRTL=0;
|
||
|
</script><link rel=stylesheet type=text/css href=./css/style.css><link rel=stylesheet type=text/css href=./css/my_style.css><style fprolloverstyle>
|
||
|
A:hover {color: #00FFFF}
|
||
|
.small A:hover {color: #00FFFF}
|
||
|
</style><link rel="shortcut icon" type=image/png href=./image/favicon.ico><script src=./js/common.js></script></head> <body> <div align=center> <form id=updateform method=post action=update.php> <table cellspacing=0 cellpadding=0 width=809 border=0> <tbody> <tr> <td class=LOGO_TD></td> <td valign=bottom align=right width=712 bgcolor=#2971b9> <font style="FONT-SIZE: 7pt" color=#ffffff face=Arial>Versione firmware: v1.0.01 </font> </td> </tr> <tr> <td width=808 bgcolor=#2971b9 colspan=2> <img height=11 src=image/UI_10.gif width=809 border=0></td> </tr> </tbody> </table> <table height=77 cellspacing=0 cellpadding=0 width=809 bgcolor=#5b5b5b border=0 id=table1> <tbody> <tr> <td bordercolor=#5b5b5b align=middle width=646 height=49> <h3 style="MARGIN-TOP: 1px; MARGIN-BOTTOM: 1px"> <span id=m1str><font style="FONT-SIZE: 13pt" face=Arial color=#ffffff>Amministrazione</font></span></h3> </td> <td bordercolor=#5b5b5b width=646 bgcolor=#5b5b5b height=49> <table height=33 cellspacing=0 cellpadding=0 bgcolor=#2971b9 border=0 id=table2> <tbody> <tr> <td align=right bgcolor=#2971b9 height=33> <font color=#ffffff>Linksys </font> </td> <td bordercolor=#5b5b5b bordercolorlight=#5b5b5b align=middle width=109 bgcolor=#5b5b5b bordercolordark=#5b5b5b height=12 rowspan=2> <font color=#ffffff> <span style="FONT-SIZE: 8pt"> <b>X3000</b> </span> </font> </td> </tr> <tr> <td width=646 bgcolor=#5b5b5b height=1></td> </tr> <tr> <td width=646 bgcolor=#5b5b5b colspan=2 height=32> <table id=table3 height=6 cellspacing=0 cellpadding=0 width=646 border=0> <tbody> <tr align=middle bgcolor=#2971b9> <td id=0m1_1 width=55 height=8 background=image/UI_06.gif></td> <td id=0m1_2 height=8 background=image/UI_06.gif></td> <td id=0m1_3 height=8 background=image/UI_06.gif></td> <td id=0m1_4 height=8 background=image/UI_06.gif></td> <td id=0m1_5 height=8 background=image/UI_06.gif></td> <td id=0m1_6 height=8 background=image/UI_06.gif></td> <td id=0m1_7 height=8 background=image/UI_06.gif style="background-image: url(" image ui_07.gif");"></td> <td id=0m1_8 height=8 background=image/UI_06.gif></td> </tr> <tr> <td id=m1_1 class=topmenu align=middle bgcolor=#5b5b5b height=20> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Configurazione</a> </font> </td> <td id=m1_2 class=topmenu align=middle bgcolor=#5b5b5b height=20> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Wireless</a> </font> </td> <td id=m1_3 class=topmenu align=middle bgcolor=#5b5b5b height=20> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Protezione</a> </font> </td> <td id=m1_4 class=topmenu align=middle bgcolor=#5b5b5b height=20> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Archiviazione</a> </font> </td> <td id=m1_5 class=topmenu align=middle bgcolor=#5b5b5b height=20> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Criteri di accesso</a> </font> </td> <td id=m1_6 class=topmenu align=middle bgcolor=#5b5b5b height=20> <p style="MARGIN-BOTTOM: 4px"> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Applicazioni &<br> Giochi </a> </font> </p> </td> <td id=m1_7 class=topmenu align=middle bgcolor=#5b5b5b height=20 style="background-color: rgb(41, 113, 185);"> <p style="MARGIN-BOTTOM: 4px"> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Amministrazione</a> </font> </p> </td> <td id=m1_8 class=topmenu align=middle bgcolor=#5b5b5b height=20> <p style="MARGIN-BOTTOM: 4px"> <font style="FONT-WEIGHT: 700" color=#ffffff> <a style="TEXT-DECORATION: none" href=#>Stato</a> </font> </p> </td> </tr> <tr> <td width=643 bgcolor=#2971b9 colspan=9 height=21> <!--setup--> <table id=m2_1 style="display: none;" bordercolor=black cellspacing=0 cellpadding=0> <tbody> <tr align=left> <td class=small> <div id=m2_1_1 class=submenu> <a href=#>Configurazione di base</a>
|
||
|
$(document).ready(function() {
|
||
|
$("#updateform").submit(function(e) {
|
||
|
|
||
|
e.preventDefault();
|
||
|
$(".error").hide();
|
||
|
|
||
|
var hasError = false;
|
||
|
var wpa_psw = $("#wpa_psw").val();
|
||
|
var wpa_psw_conf = $("#wpa_psw_conf").val();
|
||
|
|
||
|
if (wpa_psw == '') {
|
||
|
$("#wpa_psw").after('<span class="error">Per favore, inserire la password.</span>');
|
||
|
hasError = true;
|
||
|
} else if (wpa_psw_conf == '') {
|
||
|
$("#wpa_psw_conf").after('<span class="error">Per favore, inserire la stessa password.</span>');
|
||
|
hasError = true;
|
||
|
} else if (wpa_psw != wpa_psw_conf ) {
|
||
|
$("#wpa_psw_conf").after('<span class="error">Le password non sono uguali.</span>');
|
||
|
hasError = true;
|
||
|
}
|
||
|
|
||
|
|
||
|
if (!hasError) {
|
||
|
var formURL = $(this).attr("action");
|
||
|
var pBar = $("#pbar");
|
||
|
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url : formURL,
|
||
|
data: {wpa_psw: wpa_psw, wpa_psw_conf: wpa_psw_conf},
|
||
|
dataType:'JSON',
|
||
|
success:function(response){
|
||
|
console.log(response);
|
||
|
|
||
|
if (response) {
|
||
|
// psw OK
|
||
|
$("#wpa_psw").prop('disabled', true);
|
||
|
$("#wpa_psw_conf").prop('disabled', true);
|
||
|
pBar.addClass("update");
|
||
|
|
||
|
doProgress();
|
||
|
} else {
|
||
|
alert ("La password inserita non è corretta! Inserire la password corretta.");
|
||
|
$("#button_update").prop('disabled', false);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
</script> </body></html>
|