1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 6<meta HTTP-EQUIV="Expires" CONTENT="-1"> 7<link type="text/css" rel="stylesheet" href="/form_style.css"> 8<link type="text/css" rel="stylesheet" href="qis_style.css"> 9<script type="text/javascript" src="/state.js"></script> 10<script type="text/javascript" src="/general.js"></script> 11<script type="text/javascript" src="/help.js"></script> 12<script type="text/javascript" src="/validator.js"></script> 13<script> 14var wl0_ssid_orig = decodeURIComponent('<% nvram_char_to_ascii("", "wl0_ssid"); %>'); 15var wl1_ssid_orig = decodeURIComponent('<% nvram_char_to_ascii("", "wl1_ssid"); %>'); 16var wl0_wpa_psk_orig = decodeURIComponent('<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>'); 17var wl1_wpa_psk_orig = decodeURIComponent('<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>'); 18 19var w_Setting = "<% nvram_get("w_Setting"); %>"; 20var is_admin_pswd_set = "<% nvram_get("dsltmp_qis_admin_passwd_set"); %>"; 21var is_dsl_pvc_set = "<% nvram_get("dsltmp_qis_dsl_pvc_set"); %>"; 22var is_reboot_flag_set = "<% nvram_get("dsltmp_qis_reboot"); %>"; 23var transfer_mode = "<% nvram_get("dsltmp_transmode"); %>"; 24var cfg_iptv_enable = "<%nvram_get("dsltmp_cfg_iptv_enable");%>"; 25var cfg_iptv_rmvlan = "<%nvram_get("dsltmp_cfg_iptv_rmvlan");%>"; 26var cfg_iptv_mr = "<%nvram_get("dsltmp_cfg_iptv_mr");%>"; 27 28function disable_dsl_pvc() { 29 document.form.dsl0_enable.disabled = true; 30 document.form.dsl0_vpi.disabled = true; 31 document.form.dsl0_vci.disabled = true; 32 document.form.dsl0_proto.disabled = true; 33 document.form.dsl0_encap.disabled = true; 34 document.form.dsl0_dot1q.disabled = true; 35 document.form.dsl0_vid.disabled = true; 36 document.form.dsl0_svc_cat.disabled = true; 37 document.form.dsl0_pcr.disabled = true; 38 document.form.dsl0_scr.disabled = true; 39 document.form.dsl0_mbs.disabled = true; 40 document.form.dsl8_enable.disabled = true; 41 document.form.dsl8_proto.disabled = true; 42 document.form.dsl8_dot1q.disabled = true; 43 document.form.dsl8_vid.disabled = true; 44 document.form.dslx_pppoe_username.disabled = true; 45 document.form.dslx_pppoe_passwd.disabled = true; 46 document.form.dslx_pppoe_idletime.disabled = true; 47 document.form.dslx_pppoe_mtu.disabled = true; 48 document.form.dslx_pppoe_service.disabled = true; 49 document.form.dslx_pppoe_ac.disabled = true; 50 document.form.dslx_pppoe_options.disabled = true; 51 document.form.dslx_pppoe_relay.disabled = true; 52 document.form.dslx_hwaddr.disabled = true; 53 document.form.dslx_DHCPClient.disabled = true; 54 document.form.dslx_ipaddr.disabled = true; 55 document.form.dslx_netmask.disabled = true; 56 document.form.dslx_gateway.disabled = true; 57 document.form.dslx_dnsenable.disabled = true; 58 document.form.dslx_dns1.disabled = true; 59 document.form.dslx_dns2.disabled = true; 60 document.form.fw_pt_pppoerelay.disabled = true; 61} 62 63function QKWireless_load_body(){ 64 parent.document.title = "<#Web_Title#> - <#QKSet_wireless_webtitle#>"; 65 parent.set_step("t3"); 66 67 /*To Handle copy, paste for mobile device*/ 68 if (document.getElementById("wl0_ssid").addEventListener){ 69 document.getElementById("wl0_ssid").addEventListener("paste", function(e){setTimeout(function(){Sync_2ghz(2);},100);}); 70 document.getElementById("wl0_wpa_psk").addEventListener("paste", function(e){setTimeout(function(){Sync_2ghz(2);},100);}); 71 document.getElementById('wl1_ssid').addEventListener("paste", function(e){setTimeout(function(){Sync_2ghz(5);},100);}); 72 document.getElementById('wl1_wpa_psk').addEventListener("paste", function(e){setTimeout(function(){Sync_2ghz(5);},100);}); 73 } 74 75 if (is_admin_pswd_set == "1") { 76 document.form.http_username.value="<% nvram_get("dsltmp_qis_admin_username"); %>"; 77 document.form.http_passwd.value="<% nvram_get("dsltmp_qis_admin_passwd"); %>"; 78 } 79 else { 80 document.form.http_username.disabled = true; 81 document.form.http_passwd.disabled = true; 82 } 83 84 if (is_dsl_pvc_set == "0") { 85 disable_dsl_pvc(); 86 } 87 88 document.form.wl0_ssid.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl0_ssid"); %>'); 89 document.form.wl0_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl0_wpa_psk"); %>'); 90 document.form.wl1_ssid.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl1_ssid"); %>'); 91 document.form.wl1_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl1_wpa_psk"); %>'); 92 93 if(!band5g_support){ 94 document.getElementById("wl_unit_field_1").style.display = "none"; 95 document.getElementById("wl_unit_field_2").style.display = "none"; 96 document.getElementById("wl_unit_field_3").style.display = "none"; 97 } 98 99 document.form.wl0_ssid.focus(); 100} 101 102function submitForm(){ 103 if(document.form.wl0_wpa_psk.value == "" && document.form.wl1_wpa_psk.value == ""){ 104 if(!confirm("<#QIS_confirm_recommand_encryp#>")) 105 return false; 106 } 107 108 if(!validator.stringSSID(document.form.wl1_ssid)) 109 return false; 110 111 if(!validator.stringSSID(document.form.wl0_ssid)) 112 return false; 113 114 if(document.form.wl1_wpa_psk.value.length > 0){ 115 document.form.wl1_auth_mode_x.value = "psk2"; 116 /*if(!validate_wlpsk(document.form.wl1_wpa_psk)) 117 return false;*/ 118 if(!validator.psk(document.form.wl1_wpa_psk)) 119 return false; 120 } 121 else 122 document.form.wl1_auth_mode_x.value = "open"; 123 124 if(document.form.wl0_wpa_psk.value.length > 0){ 125 document.form.wl0_auth_mode_x.value = "psk2"; 126 /*if(!validate_wlpsk(document.form.wl0_wpa_psk)) 127 return false;*/ 128 if(!validator.psk(document.form.wl0_wpa_psk)) 129 return false; 130 } 131 else 132 document.form.wl0_auth_mode_x.value = "open"; 133 134 document.form.flag.value = "finish"; 135 136 if(transfer_mode == "atm") 137 document.form.dsl0_enable.value = 1; 138 else {//PTM 139 document.form.dsl8_enable.value = 1; 140 } 141 142 if(is_reboot_flag_set == "1") 143 parent.sysReboot = true; 144 145 if(cfg_iptv_enable == "1") { 146 if(cfg_iptv_rmvlan != "") 147 document.form.dslx_rmvlan.value = cfg_iptv_rmvlan; 148 if(cfg_iptv_mr != "") 149 document.form.mr_enable_x.value = cfg_iptv_mr; 150 } 151 else { 152 document.form.dslx_rmvlan.value = "0"; 153 document.form.mr_enable_x.value = "0"; 154 } 155 156 document.form.next_page.value = "/qis/QIS_finish.htm"; 157 document.form.submit(); 158} 159 160/* 161function show_prev_button(){ 162 if(parent.document.getElementById("flag").value == "wireless"){ 163 document.getElementById("prevButton").value = '<#menu5#>'; 164 165 document.form.prev_page.value = "/Advanced_Wireless_Content.asp"; 166 } 167 else if(parent.document.getElementById("flag").value == "adv_ap_mode") 168 document.form.prev_page.value = "/Advanced_OperationMode_Content.asp"; 169} 170*/ 171 172function Sync_2ghz(band){ 173 if(band == 2){ 174 if(document.form.sync_with_2ghz.checked == true){ 175 document.form.wl1_wpa_psk.value = document.form.wl0_wpa_psk.value; 176 if(document.form.wl0_ssid.value != wl0_ssid_orig) 177 document.form.wl1_ssid.value = document.form.wl0_ssid.value.substring(0,29) + "_5G"; 178 } 179 }else 180 document.form.sync_with_2ghz.checked = false; 181} 182 183function validate_wlpsk(psk_obj){ 184 var psk_length = psk_obj.value.length; 185 186 if(psk_length < 8 || psk_length > 64){ 187 alert("<#qis_wireless_sk_warning#>"); 188 psk_obj.focus(); 189 psk_obj.select(); 190 191 return false; 192 } 193 194 if(psk_length >= 8 && psk_length <= 63 && !validator.string(psk_obj)){ 195 alert("<#JS_PSK64Hex#>"); 196 psk_obj.focus(); 197 psk_obj.select(); 198 199 return false; 200 } 201 202 return true; 203} 204 205function gotoHome(){ 206 if (w_Setting == "0") { 207 alert("<#QIS_recommand_encryption#>"); 208 location.href = '/qis/QIS_wireless.htm'; 209 } 210 else { 211 parent.location.href = '/index.asp'; 212 } 213} 214</script> 215</head> 216 217<body onLoad="QKWireless_load_body();" onunload=""> 218<form method="post" name="form" action="/start_apply.htm"> 219<input type="hidden" name="current_page" value=""> 220<input type="hidden" name="next_page" value=""> 221<input type="hidden" name="prev_page" value="/qis/QIS_manual_setting.htm"> 222<input type="hidden" name="flag" value=""> 223<input type="hidden" name="wsc_config_state" value="1"> 224 225<input type="hidden" name="action_mode" value="apply"> 226<input type="hidden" name="action_wait" value=""> 227<input type="hidden" name="action_script" value=""> 228<input type="hidden" name="productid" value="<% nvram_get("productid"); %>"> 229<input type="hidden" name="wl0_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b", "wl0_ssid"); %>"> 230<input type="hidden" name="wl0_auth_mode_x" value=""> 231<input type="hidden" name="wl0_crypto" value="aes"> 232<input type="hidden" name="wl0_wep_x" value="0"> 233<input type="hidden" name="wl0_wpa_mode" value="0"> 234<input type="hidden" name="wl1_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b", "wl1_ssid"); %>"> 235<input type="hidden" name="wl1_auth_mode_x" value=""> 236<input type="hidden" name="wl1_crypto" value="aes"> 237<input type="hidden" name="wl1_wep_x" value="0"> 238<input type="hidden" name="wl1_wpa_mode" value="0"> 239<input type="hidden" name="lan_ipaddr" value="" disabled> 240<input type="hidden" name="lan_proto" value="" disabled> 241<input type="hidden" name="lan_netmask" value="" disabled> 242<input type="hidden" name="lan_gateway" value="" disabled> 243<input type="hidden" name="lan_dnsenable_x" value="" disabled> 244<input type="hidden" name="lan_dns1_x" value="" disabled> 245<input type="hidden" name="lan_dns2_x" value="" disabled> 246<input type="hidden" name="lan_ipaddr_rt" value="" disabled> 247<input type="hidden" name="lan_netmask_rt" value="" disabled> 248<input type="hidden" name="http_username" value=""> 249<input type="hidden" name="http_passwd" value="<% nvram_get("password"); %>"> 250<input type="hidden" name="dsl0_enable" value="0"> 251<input type="hidden" name="dsl0_vpi" value="<% nvram_get("dsltmp_qis_vpi"); %>"> 252<input type="hidden" name="dsl0_vci" value="<% nvram_get("dsltmp_qis_vci"); %>"> 253<input type="hidden" name="dsl0_proto" value="<% nvram_get("dsltmp_qis_proto"); %>"> 254<input type="hidden" name="dsl0_encap" value="<% nvram_get("dsltmp_qis_encap"); %>"> 255<input type="hidden" name="dsl0_dot1q" value="<% nvram_get("dsltmp_cfg_dot1q"); %>"> 256<input type="hidden" name="dsl0_vid" value="<% nvram_get("dsltmp_cfg_vid"); %>"> 257<input type="hidden" name="dsl0_svc_cat" value="<% nvram_get("dsltmp_qis_svc_cat"); %>"> 258<input type="hidden" name="dsl0_pcr" value="<% nvram_get("dsltmp_qis_pcr"); %>"> 259<input type="hidden" name="dsl0_scr" value="<% nvram_get("dsltmp_qis_scr"); %>"> 260<input type="hidden" name="dsl0_mbs" value="<% nvram_get("dsltmp_qis_mbs"); %>"> 261 262<input type="hidden" name="dsl8_enable" value="0"> 263<input type="hidden" name="dsl8_proto" value="<% nvram_get("dsltmp_qis_proto"); %>"> 264<input type="hidden" name="dsl8_dot1q" value="<% nvram_get("dsltmp_cfg_dot1q"); %>"> 265<input type="hidden" name="dsl8_vid" value="<% nvram_get("dsltmp_cfg_vid"); %>"> 266 267<input type="hidden" name="dslx_pppoe_username" value="<% nvram_get("dsltmp_qis_pppoe_username"); %>"> 268<input type="hidden" name="dslx_pppoe_passwd" value="<% nvram_get("dsltmp_qis_pppoe_passwd"); %>"> 269<input type="hidden" name="dslx_pppoe_idletime" value="<% nvram_get("dsltmp_qis_pppoe_idletime"); %>"> 270<input type="hidden" name="dslx_pppoe_mtu" value="<% nvram_get("dsltmp_qis_pppoe_mtu"); %>"> 271<!-- 272<input type="hidden" name="dsl0_pppoe_mru" value="<% nvram_get("dsltmp_qis_pppoe_mru"); %>"> 273--> 274<input type="hidden" name="dslx_pppoe_service" value="<% nvram_get("dsltmp_qis_pppoe_service"); %>"> 275<input type="hidden" name="dslx_pppoe_ac" value=""> 276<input type="hidden" name="dslx_pppoe_options" value="<% nvram_get("dsltmp_qis_pppoe_options"); %>"> 277<input type="hidden" name="dslx_pppoe_relay" value=""> 278<input type="hidden" name="dslx_hwaddr" value="<% nvram_get("dsltmp_qis_hwaddr"); %>"> 279<input type="hidden" name="dslx_DHCPClient" value="<% nvram_get("dsltmp_qis_DHCPClient"); %>"> 280<input type="hidden" name="dslx_ipaddr" value="<% nvram_get("dsltmp_qis_ipaddr"); %>"> 281<input type="hidden" name="dslx_netmask" value="<% nvram_get("dsltmp_qis_netmask"); %>"> 282<input type="hidden" name="dslx_gateway" value="<% nvram_get("dsltmp_qis_gateway"); %>"> 283<input type="hidden" name="dslx_dnsenable" value="<% nvram_get("dsltmp_qis_dnsenable"); %>"> 284<input type="hidden" name="dslx_dns1" value="<% nvram_get("dsltmp_qis_dns1"); %>"> 285<input type="hidden" name="dslx_dns2" value="<% nvram_get("dsltmp_qis_dns2"); %>"> 286<input type="hidden" name="fw_pt_pppoerelay" value="<% nvram_get("dsltmp_qis_pppoe_relay"); %>"> 287<!-- IPTV General start --> 288<input type="hidden" name="mr_enable_x" value="<% nvram_get("mr_enable_x"); %>"> 289<input type="hidden" name="dslx_rmvlan" value="<% nvram_get("dslx_rmvlan"); %>"> 290<!-- IPTV General end --> 291<!-- clear set flag after submit --> 292<input type="hidden" name="dsltmp_qis_admin_passwd_set" value="0"> 293<input type="hidden" name="dsltmp_qis_dsl_pvc_set" value="0"> 294<input type="hidden" name="x_Setting" value="1"> 295<input type="hidden" name="w_Setting" value="1"> 296<input type="hidden" name="wlc_ure_ssid_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wlc_ure_ssid"); %>" disabled> 297<div class="QISmain"> 298 <div class="formfonttitle" style="padding:6 0 0 10;"> 299 <div> 300 <table width="730px"> 301 <tr> 302 <td align="left"> 303 <span class="description_down"><#QKSet_wireless_webtitle#></span> 304 </td> 305 </tr> 306 </table> 307 </div> 308 <div style="margin:5px;"><img style="width: 720px; *width: 710px; height: 2px;" src="/images/New_ui/export/line_export.png"></div> 309 </div> 310<div class="QISGeneralFont"><#qis_wireless_setting#></div> 311<br/> 312<table class="QISform_wireless" width="400" border=0 align="center" cellpadding="5" cellspacing="0"> 313 <tr> 314 <th width="180">2.4GHz - <#Security#> </th> 315 <td class="QISformtd"> 316 </td> 317 </tr> 318 319 <tr> 320 <th width="180"><span onmouseout="return nd();" onclick="openHint(0, 22);" style="cursor:help;"><#QIS_finish_wireless_item1#><img align="right" style="cursor:pointer;margin-top:-14px\9;" src="/images/New_ui/helpicon.png"></span></th> 321 <td class="QISformtd"> 322 <input type="text" id="wl0_ssid" name="wl0_ssid" tabindex="1" onkeypress="return validator.isString(this, event);" onkeyup="Sync_2ghz(2);" style="height:25px;" class="input_32_table" maxlength="32" value="default" autocomplete="off" autocorrect="off" autocapitalize="off"/> 323 </td> 324 </tr> 325 326 <tr id="wl_unit_field_0"> 327 <th width="180"><span onmouseout="return nd();" onclick="openHint(0, 23);" style="cursor:help;"><#Network_key#><img align="right" style="cursor:pointer;margin-top:-14px\9;" src="/images/New_ui/helpicon.png"></span></th> 328 <td class="QISformtd"> 329 <input id="wl0_wpa_psk" name="wl0_wpa_psk" type="password" tabindex="2" onBlur="switchType(this, false);" onFocus="switchType(this, true);" value="<% nvram_char_to_ascii("WLANConfig11b", "wl0_wpa_psk"); %>" onkeyup="Sync_2ghz(2);" style="height:25px;" class="input_32_table" maxlength="64" autocomplete="off" autocorrect="off" autocapitalize="off"> 330 </td> 331 </tr> 332 333 <tr id="wl_unit_field_1"> 334 <th width="180">5GHz - <#Security#> </th> 335 <td class="QISformtd"> 336 <span id="syncCheckbox"><input type="checkbox" id="sync_with_2ghz" name="sync_with_2ghz" tabindex="3" class="input" onclick="setTimeout('Sync_2ghz(2);',0);"><#qis_ssid_desc#></span> 337 </td> 338 </tr> 339 340 <tr id="wl_unit_field_2"> 341 <th width="180"><span onmouseout="return nd();" onclick="openHint(0, 22);" style="cursor:help;"><#QIS_finish_wireless_item1#><img align="right" style="cursor:pointer;margin-top:-14px\9;" src="/images/New_ui/helpicon.png"></span></th> 342 <td class="QISformtd"> 343 <input type="text" id="wl1_ssid" name="wl1_ssid" tabindex="4" onkeypress="return validator.isString(this, event);" onkeyup="Sync_2ghz(5);" style="height:25px;" class="input_32_table" maxlength="32" value="default" autocomplete="off" autocorrect="off" autocapitalize="off"/> 344 </td> 345 </tr> 346 347 <tr id="wl_unit_field_3"> 348 <th width="180"><span onmouseout="return nd();" onclick="openHint(0, 23);" style="cursor:help;"><#Network_key#><img align="right" style="cursor:pointer;margin-top:-14px\9;" src="/images/New_ui/helpicon.png"></span></th> 349 <td class="QISformtd"> 350 <input id="wl1_wpa_psk" name="wl1_wpa_psk" type="password" tabindex="5" onBlur="switchType(this, false);" onFocus="switchType(this, true);" value="<% nvram_char_to_ascii("WLANConfig11b", "wl1_wpa_psk"); %>" onkeyup="Sync_2ghz(5);" style="height:25px;" class="input_32_table" maxlength="64" autocomplete="off" autocorrect="off" autocapitalize="off"> 351 </td> 352 </tr> 353</table> 354 355<br/> 356<div class="QISGeneralFont"><#qis_wireless_setting_skdesc#></div> 357<br/> 358 359<div class="apply_gen" style="margin-top:10px"> 360 <input type="button" value="<#CTL_next#>" tabindex="6" onclick="submitForm();" class="button_gen"> 361</div> 362 363</form> 364</body> 365