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 href="../form_style.css" rel="stylesheet" type="text/css"> 8<style type="text/css"> 9.wan_type_title{ 10 color:#FFFFFF; 11 font-size:18px; 12 font-weight:bold; 13 margin-top:100px; 14 padding:10 0 5 0; 15 text-align:left; 16 width:95%; 17 text-shadow: 1px 1px 0px black; 18 filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=1, OffY=1, Color=#000000); 19} 20.wan_type_dec{ 21 line-height:20px; 22 color:#FFFFFF; 23 font-size:14px; 24 text-align:left; 25} 26 27.iptvTable{ 28 width:360px; 29 margin-left:-7px; 30} 31 32.iptvTable th{ 33 text-align:right; 34 width:160px; 35 color:#66CCFF; 36} 37 38.iptvTable td{ 39 text-align:left; 40} 41</style> 42<script type="text/javascript" src="/qis/QISMobilePlugin.js"></script> 43<script language="JavaScript" type="text/javascript" src="/js/jquery.js"></script> 44<script type="text/javascript" src="../validator.js"></script> 45<script type="text/javascript"> 46var now_flag = '<% get_parameter("flag"); %>'; 47var original_switch_wantag = '<% nvram_get("switch_wantag"); %>'; 48var contentM_height_orig = parent.document.getElementById("contentM").height; 49 50<% start_autodet(); %> 51 52function QKinternettype_load_body(){ 53 parent.document.title = "<#Web_Title#> - <#QKSet_type_head#>"; 54 55 if(parent.ISMOBILE){ 56 parent.set_step("detect"); 57 document.getElementById("field_general").style.display = "none"; 58 document.getElementById("field_mobile").style.display = ""; 59 hideObjs(); 60 61 document.getElementById("unifyBtn").style.display = "none"; 62 } 63 else{ 64 parent.set_step("t2"); 65 if('<% nvram_get("autodet_state"); %>' == "6" || '<% nvram_get("autodet_auxstate"); %>' == "6") 66 document.applyForm.wan_proto.value = "pppoe" 67 else 68 document.applyForm.wan_proto.value = '<% nvram_get("wan_proto"); %>'; 69 70 if(parent.get_internet_type_reducedmode() == "enable") 71 blocking("dhcppppoe_sec", false); 72 73 ISP_Profile_Selection(original_switch_wantag); 74 75 if( parent.based_modelid != "RT-AC3200" && 76 parent.based_modelid != "RT-AC87U" && 77 parent.based_modelid != "RT-AC68U" && 78 parent.based_modelid != "RT-AC66U" && 79 parent.based_modelid != "RT-AC51U" && 80 parent.based_modelid != "RT-N66U" && 81 parent.based_modelid != "RT-N18U" 82 ){ // MODELDEP: RT-AC3200, RT-AC87U@sysdep/RT-AC55U, RT-AC68U, RT-AC66U, RT-AC51U, RT-N66U, RT-N18U 83 document.getElementById('meoOption').outerHTML = ""; 84 document.getElementById('vodafoneOption').outerHTML = ""; 85 } 86 87 if( parent.based_modelid != "RT-AC5300" && 88 parent.based_modelid != "RT-AC3200" && 89 parent.based_modelid != "RT-AC3100" && 90 parent.based_modelid != "RT-AC88U" && 91 parent.based_modelid != "RT-AC87U" && 92 parent.based_modelid != "RT-AC68U" && 93 parent.based_modelid != "RT-AC66U" && 94 parent.based_modelid != "RT-AC56U" && 95 //based_modelid != "RT-AC51U" && 96 parent.based_modelid != "RT-N66U" && 97 parent.based_modelid != "RT-N18U" 98 ){ 99 document.getElementById('movistarOption').outerHTML = ""; 100 } 101 102 if(parent.based_modelid == "RT-AC5300R"){ //MODELDEP: RT-AC5300R : TRUNK ports 103 document.getElementById("voip_lan").innerHTML = "LAN4"; //P3 104 document.getElementById("iptv_lan").innerHTML = "LAN8"; //P4 105 document.getElementById("voip_port3").innerHTML = "VoIP (LAN port 4):"; //P3 106 document.getElementById("iptv_port4").innerHTML = "IPTV (LAN port 8):"; //P4 107 } 108 else if(parent.based_modelid == "RT-AC53"){ 109 document.getElementById("voip_lan").innerHTML = "LAN1"; 110 document.getElementById("iptv_lan").innerHTML = "LAN2"; 111 document.getElementById("voip_port3").innerHTML = "VoIP (LAN port 1):"; 112 document.getElementById("iptv_port4").innerHTML = "IPTV (LAN port 2):"; 113 } 114 115 if(parent.ruisp_support) 116 document.getElementById("ruisp_btn").style.display = ""; 117 118 if(!parent.manualstb_support) 119 document.applyForm.switch_wantag.remove(8); 120 121 detect_if_wan_plug(); 122 } 123} 124 125function inputCCtrl4(o, flag){ 126 o[0].checked = false; 127 o[1].checked = false; 128 o[2].checked = false; 129 o[3].checked = false; 130 o[4].checked = false; 131 132 o[flag].checked = true; 133} 134 135function submitForm(){ 136 if(parent.ISMOBILE){ 137 if(document.applyForm.specialisp.checked != true){ 138 document.applyForm.switch_wantag.value = 'none'; 139 } 140 else{ 141 if(document.applyForm.switch_wantag.value == ''){ 142 document.applyForm.switch_wantag.value = 'none'; 143 } 144 else if(document.applyForm.switch_wantag.value == 'manual'){ 145 document.applyForm.switch_wan0tagid.value = document.applyForm._switch_wan0tagid.value; 146 document.applyForm.switch_wan0prio.value = document.applyForm._switch_wan0prio.value; 147 document.applyForm.switch_wan1tagid.value = document.applyForm._switch_wan1tagid.value; 148 document.applyForm.switch_wan1prio.value = document.applyForm._switch_wan1prio.value; 149 document.applyForm.switch_wan2tagid.value = document.applyForm._switch_wan2tagid.value; 150 document.applyForm.switch_wan2prio.value = document.applyForm._switch_wan2prio.value; 151 } 152 } 153 } 154 155 if(parent.get_internet_type_reducedmode() == "enable" && 156 (document.applyForm.x_WANType[3].checked == false && 157 document.applyForm.x_WANType[4].checked == false 158 )){ 159 alert("<#QKSet_type_rechoice#>"); 160 return false; 161 } 162 163 parent.document.QKform.wan_proto.value = document.applyForm.wan_proto.value; 164 165 if(original_switch_wantag != document.applyForm.switch_wantag.value){ 166 var reboot_time = eval("<% get_default_reboot_time(); %> + 10"); 167 document.applyForm.action_script.value = "saveNvram"; 168 document.applyForm.action_wait.value = "0"; 169 parent.sysReboot = true; 170 if(reboot_time > parent.rebootTime) 171 parent.rebootTime = reboot_time; 172 } 173 174 document.applyForm.flag.value = "no_wait"; 175 document.applyForm.submit(); 176 location.href = "QIS_wireless.htm"; 177 return true; 178} 179 180function gotoprev_type(){ 181 parent.location.href = "/index.asp"; 182} 183 184function ISP_Profile_Selection(isp){ 185 if(isp == "none"){ 186 document.getElementById("port_settings").style.display = "none"; 187 document.getElementById("manual_settings").style.display = "none"; 188 document.getElementById("iptv_configuration").style.display = "none"; 189 document.applyForm.switch_wantag.value = "none"; 190 } 191 else if(isp == "unifi_home"){ 192 document.getElementById("port_settings").style.display = ""; 193 document.getElementById("wan_iptv_line").style.display = ""; 194 document.getElementById("wan_iptv_x").style.display = ""; 195 document.getElementById("wan_voip_line").style.display = "none"; 196 document.getElementById("wan_voip_x").style.display = "none"; 197 document.getElementById("manual_settings").style.display = "none"; 198 document.getElementById("iptv_configuration").style.display = "none"; 199 document.applyForm.switch_wantag.value = "unifi_home"; 200 } 201 else if(isp == "unifi_biz"){ 202 document.getElementById("port_settings").style.display = "none"; 203 document.getElementById("manual_settings").style.display = "none"; 204 document.getElementById("iptv_configuration").style.display = "none"; 205 document.applyForm.switch_wantag.value = "unifi_biz"; 206 } 207 else if(isp == "singtel_mio"){ 208 document.getElementById("port_settings").style.display = ""; 209 document.getElementById("wan_iptv_line").style.display = ""; 210 document.getElementById("wan_iptv_x").style.display = ""; 211 document.getElementById("wan_voip_line").style.display = ""; 212 document.getElementById("wan_voip_x").style.display = ""; 213 document.getElementById("manual_settings").style.display = "none"; 214 document.getElementById("iptv_configuration").style.display = "none"; 215 document.applyForm.switch_wantag.value = "singtel_mio"; 216 } 217 else if(isp == "singtel_others"){ 218 document.getElementById("port_settings").style.display = ""; 219 document.getElementById("wan_iptv_line").style.display = ""; 220 document.getElementById("wan_iptv_x").style.display = ""; 221 document.getElementById("wan_voip_line").style.display = "none"; 222 document.getElementById("wan_voip_x").style.display = "none"; 223 document.getElementById("manual_settings").style.display = "none"; 224 document.getElementById("iptv_configuration").style.display = "none"; 225 document.applyForm.switch_wantag.value = "singtel_others"; 226 } 227 else if(isp == "m1_fiber"){ 228 document.getElementById("port_settings").style.display = ""; 229 document.getElementById("wan_iptv_line").style.display = "none"; 230 document.getElementById("wan_iptv_x").style.display = "none"; 231 document.getElementById("wan_voip_line").style.display = ""; 232 document.getElementById("wan_voip_x").style.display = ""; 233 document.getElementById("manual_settings").style.display = "none"; 234 document.getElementById("iptv_configuration").style.display = "none"; 235 document.applyForm.switch_wantag.value = "m1_fiber"; 236 } 237 else if(isp == "maxis_fiber"){ 238 document.getElementById("port_settings").style.display = ""; 239 document.getElementById("wan_iptv_line").style.display = "none"; 240 document.getElementById("wan_iptv_x").style.display = "none"; 241 document.getElementById("wan_voip_line").style.display = ""; 242 document.getElementById("wan_voip_x").style.display = ""; 243 document.getElementById("manual_settings").style.display = "none"; 244 document.getElementById("iptv_configuration").style.display = "none"; 245 document.applyForm.switch_wantag.value = "maxis_fiber"; 246 } 247 else if(isp == "maxis_fiber_sp"){ 248 document.getElementById("port_settings").style.display = ""; 249 document.getElementById("wan_iptv_line").style.display = "none"; 250 document.getElementById("wan_iptv_x").style.display = "none"; 251 document.getElementById("wan_voip_line").style.display = ""; 252 document.getElementById("wan_voip_x").style.display = ""; 253 document.getElementById("manual_settings").style.display = "none"; 254 document.getElementById("iptv_configuration").style.display = "none"; 255 document.applyForm.switch_wantag.value = "maxis_fiber_sp"; 256 } 257 else if(isp == "movistar"){ 258 document.getElementById("port_settings").style.display = "none"; 259 document.getElementById("manual_settings").style.display = "none"; 260 document.getElementById("iptv_configuration").style.display = ""; 261 change_auth(document.applyForm.wan10_auth_x.value); 262 document.applyForm.switch_wantag.value = "movistar"; 263 } 264 else if(isp == "meo"){ 265 document.getElementById("port_settings").style.display = ""; 266 document.getElementById("wan_iptv_line").style.display = ""; 267 document.getElementById("wan_iptv_x").style.display = ""; 268 document.getElementById("wan_voip_line").style.display = "none"; 269 document.getElementById("wan_voip_x").style.display = "none"; 270 document.getElementById("manual_settings").style.display = "none"; 271 document.getElementById("iptv_configuration").style.display = "none"; 272 document.applyForm.switch_wantag.value = "meo"; 273 } 274 else if(isp == "vodafone"){ 275 document.getElementById("port_settings").style.display = ""; 276 document.getElementById("wan_iptv_line").style.display = ""; 277 document.getElementById("wan_iptv_x").style.display = ""; 278 document.getElementById("wan_voip_line").style.display = ""; 279 document.getElementById("wan_voip_x").style.display = ""; 280 document.getElementById("manual_settings").style.display = "none"; 281 document.getElementById("iptv_configuration").style.display = "none"; 282 document.applyForm.switch_wantag.value = "vodafone"; 283 } 284 else if(isp == "manual"){ 285 document.getElementById("port_settings").style.display = ""; 286 document.getElementById("wan_iptv_line").style.display = ""; 287 document.getElementById("wan_iptv_x").style.display = ""; 288 document.getElementById("wan_voip_line").style.display = ""; 289 document.getElementById("wan_voip_x").style.display = ""; 290 document.getElementById("manual_settings").style.display = ""; 291 document.getElementById("iptv_configuration").style.display = "none"; 292 document.applyForm.switch_wantag.value = "manual"; 293 } 294} 295 296function set_ISP_profile(){ 297 if(document.applyForm.switch_wantag.value == "unifi_home") { 298 document.applyForm.switch_stb_x.value = "4"; 299 document.applyForm.switch_wan0tagid.value = "500"; 300 document.applyForm.switch_wan0prio.value = "0"; 301 document.applyForm.switch_wan1tagid.value = "600"; 302 document.applyForm.switch_wan1prio.value = "0"; 303 document.applyForm.switch_wan2tagid.value = "0"; 304 document.applyForm.switch_wan2prio.value = "0"; 305 } 306 else if(document.applyForm.switch_wantag.value == "unifi_biz") { 307 document.applyForm.switch_stb_x.value = "0"; 308 document.applyForm.switch_wan0tagid.value = "500"; 309 document.applyForm.switch_wan0prio.value = "0"; 310 document.applyForm.switch_wan1tagid.value = "0"; 311 document.applyForm.switch_wan1prio.value = "0"; 312 document.applyForm.switch_wan2tagid.value = "0"; 313 document.applyForm.switch_wan2prio.value = "0"; 314 } 315 else if(document.applyForm.switch_wantag.value == "singtel_mio") { 316 document.applyForm.switch_stb_x.value = "6"; 317 document.applyForm.switch_wan0tagid.value = "10"; 318 document.applyForm.switch_wan0prio.value = "0"; 319 document.applyForm.switch_wan1tagid.value = "20"; 320 document.applyForm.switch_wan1prio.value = "4"; 321 document.applyForm.switch_wan2tagid.value = "30"; 322 document.applyForm.switch_wan2prio.value = "4"; 323 } 324 else if(document.applyForm.switch_wantag.value == "singtel_others") { 325 document.applyForm.switch_stb_x.value = "4"; 326 document.applyForm.switch_wan0tagid.value = "10"; 327 document.applyForm.switch_wan0prio.value = "0"; 328 document.applyForm.switch_wan1tagid.value = "20"; 329 document.applyForm.switch_wan1prio.value = "4"; 330 document.applyForm.switch_wan2tagid.value = "0"; 331 document.applyForm.switch_wan2prio.value = "0"; 332 } 333 else if(document.applyForm.switch_wantag.value == "m1_fiber") { 334 document.applyForm.switch_stb_x.value = "3"; 335 document.applyForm.switch_wan0tagid.value = "1103"; 336 document.applyForm.switch_wan0prio.value = "1"; 337 document.applyForm.switch_wan1tagid.value = "0"; 338 document.applyForm.switch_wan1prio.value = "0"; 339 document.applyForm.switch_wan2tagid.value = "1107"; 340 document.applyForm.switch_wan2prio.value = "1"; 341 } 342 else if(document.applyForm.switch_wantag.value == "maxis_fiber") { 343 document.applyForm.switch_stb_x.value = "3"; 344 document.applyForm.switch_wan0tagid.value = "621"; 345 document.applyForm.switch_wan0prio.value = "0"; 346 document.applyForm.switch_wan1tagid.value = "0"; 347 document.applyForm.switch_wan1prio.value = "0"; 348 document.applyForm.switch_wan2tagid.value = "821"; 349 document.applyForm.switch_wan2prio.value = "0"; 350 } 351 else if(document.applyForm.switch_wantag.value == "maxis_fiber_sp") { 352 document.applyForm.switch_stb_x.value = "3"; 353 document.applyForm.switch_wan0tagid.value = "11"; 354 document.applyForm.switch_wan0prio.value = "0"; 355 document.applyForm.switch_wan1tagid.value = "0"; 356 document.applyForm.switch_wan1prio.value = "0"; 357 document.applyForm.switch_wan2tagid.value = "14"; 358 document.applyForm.switch_wan2prio.value = "0"; 359 } 360 else if(document.applyForm.switch_wantag.value == "movistar") { 361 document.applyForm.switch_stb_x.value = "8"; 362 document.applyForm.switch_wan0tagid.value = "6"; 363 document.applyForm.switch_wan0prio.value = "0"; 364 document.applyForm.switch_wan1tagid.value = "2"; 365 document.applyForm.switch_wan1prio.value = "0"; 366 document.applyForm.switch_wan2tagid.value = "3"; 367 document.applyForm.switch_wan2prio.value = "0"; 368 document.applyForm.wan10_proto.value = "static"; 369 document.applyForm.wan11_proto.value = "dhcp"; 370 } 371 else if(document.applyForm.switch_wantag.value == "meo") { 372 document.applyForm.switch_stb_x.value = "4"; 373 document.applyForm.switch_wan0tagid.value = "12"; 374 document.applyForm.switch_wan0prio.value = "0"; 375 document.applyForm.switch_wan1tagid.value = "12"; 376 document.applyForm.switch_wan1prio.value = "0"; 377 document.applyForm.switch_wan2tagid.value = ""; 378 document.applyForm.switch_wan2prio.value = "0"; 379 } 380 else if(document.form.switch_wantag.value == "vodafone") { 381 document.applyForm.switch_stb_x.value = "3"; 382 document.applyForm.switch_wan0tagid.value = "100"; 383 document.applyForm.switch_wan0prio.value = "1"; 384 document.applyForm.switch_wan1tagid.value = ""; 385 document.applyForm.switch_wan1prio.value = "0"; 386 document.applyForm.switch_wan2tagid.value = "105"; 387 document.applyForm.switch_wan2prio.value = "1"; 388 } 389 390 if(document.applyForm.switch_wantag.value == "maxis_fiber_sp_iptv" || 391 document.applyForm.switch_wantag.value == "maxis_fiber_iptv" || 392 document.applyForm.switch_wantag.value == "meo" 393 ){ 394 document.applyForm.mr_enable_x.value = "1"; 395 document.applyForm.emf_enable.value = "1"; 396 } 397 398 if(document.applyForm.switch_wantag.value == "meo") 399 document.applyForm.ttl_inc_enable = "1"; 400} 401 402function change_auth(auth_mode){ 403 if(auth_mode == "8021x-md5"){ 404 document.getElementById("tr_pppoe_username").style.display = ""; 405 document.getElementById("tr_pppoe_password").style.display = ""; 406 } 407 else{ 408 document.getElementById("tr_pppoe_username").style.display = "none"; 409 document.getElementById("tr_pppoe_password").style.display = "none"; 410 } 411} 412 413/* password item show or not */ 414function pass_checked_iptv(obj){ 415 parent.switchType(obj, document.applyForm.show_pass_iptv.checked, true); 416} 417 418function submitenter(myfield,e) 419{ 420 var keycode; 421 if (window.event) keycode = window.event.keyCode; 422 else if (e) keycode = e.which; 423 else return true; 424 425 if (keycode == 13){ 426 submitForm(); 427 return false; 428 } 429 else 430 return true; 431} 432 433function focus_radio(obj){ 434 if(obj.value == "1") 435 document.applyForm.x_WANType[1].focus(); 436 else if(obj.value == "4") 437 document.applyForm.x_WANType[2].focus(); 438 else if(obj.value == "2") 439 document.applyForm.x_WANType[3].focus(); 440 else if(obj.value == "3") 441 document.applyForm.x_WANType[4].focus(); 442 else 443 document.applyForm.x_WANType[0].focus(); 444} 445 446function switch_dialUp_type(obj){ 447 if(obj.id == "dialUp_yes"){ 448 document.getElementById("image_field").className = "dialUp"; 449 document.getElementById("isp_card_desc").style.display = ""; 450 document.getElementById("dhcp_scenario_1").style.display = "none"; 451 document.getElementById("dhcp_scenario_2").style.display = "none"; 452 } 453 else if(obj.id == "non_dialUp"){ 454 document.getElementById("image_field").className = "non_dialUp"; 455 document.getElementById("isp_card_desc").style.display = "none"; 456 document.getElementById("dhcp_scenario_1").style.display = ""; 457 document.getElementById("dhcp_scenario_2").style.display = ""; 458 } 459} 460 461 462function detect_if_wan_plug(flag){ 463 String.prototype.strlenHandler = function(maxLen, handler){ 464 var len = 0; 465 for(var i=0; i<str.length; i++){ 466 var c = str.charCodeAt(i); 467 if((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)){len++;} 468 else{len+=2;} 469 } 470 471 if(len > maxLen) handler(); 472 } 473 474 $.ajax({ 475 url: '/result_of_get_changed_status_QIS.asp', 476 dataType: 'script', 477 error: function(xhr){ 478 detect_if_wan_plug(); 479 }, 480 success: function(response){ 481 if(autodet_state == 4){ // ethernet did not plug 482 document.getElementById("wan_unplug").innerHTML.strlenHandler(135, function(){ 483 document.getElementById("unknownIsp").style.display = "none"; 484 }); 485 document.getElementById("wan_unplug").style.display = ""; 486 } 487 else if(autodet_state == 0) 488 detect_if_wan_plug(); 489 else 490 return true; 491 } 492 }); 493} 494var stage = 0; 495 496function verify_vlan_settings(){//true: settings are modified 497 if(original_switch_wantag != document.applyForm.switch_wantag.value) 498 return true; 499 else if(original_switch_wantag == "manual"){ 500 if((document.applyForm.switch_wan0tagid.value == '<% nvram_get("switch_wan0tagid"); %>') && (document.applyForm.switch_wan0prio.value == '<% nvram_get("switch_wan0prio"); %>') && (document.applyForm.switch_wan1tagid.value == '<% nvram_get("switch_wan1tagid"); %>') && (document.applyForm.switch_wan1prio.value == '<% nvram_get("switch_wan1prio"); %>') && (document.applyForm.switch_wan2tagid.value == '<% nvram_get("switch_wan2tagid"); %>') && (document.applyForm.switch_wan2prio.value != '<% nvram_get("switch_wan2prio"); %>')) 501 return false; 502 else 503 return true; 504 } 505} 506function next_step(flag){ 507 if( !document.applyForm.wan_type[0].checked && !document.applyForm.wan_type[1].checked){ 508 alert("<#QKSet_type_desc#>"); 509 return false; 510 } 511 512 if(flag == 0){ 513 stage = 1; 514 if(document.applyForm.wan_type[0].checked){ // dial-up 515 parent.document.QKform.wan_dhcpenable_x.value = 1; 516 parent.document.QKform.wan_dnsenable_x.value = 1; 517 parent.document.QKform.wan_proto.value = document.applyForm.wan_proto.value; 518 519 document.applyForm.wan_proto.value = "pppoe"; 520 document.applyForm.next_page.value = "QIS_internet_account.htm"; 521 location.href = document.applyForm.next_page.value; 522 } 523 else if(document.applyForm.wan_type[1].checked){ 524 document.getElementById('dialUp_tr').style.display = "none"; 525 document.getElementById('dialUp_desc').style.display = "none"; 526 document.getElementById('non_dialUp_tr').style.display = "none"; 527 document.getElementById('non_dialUp_desc').style.display = "none"; 528 document.getElementById('previous_button').style.display = ""; 529 document.getElementById('dhcp_tr').style.display = ""; 530 document.getElementById('dhcp_desc').style.display = ""; 531 document.getElementById('static_tr').style.display = ""; 532 document.getElementById('static_desc').style.display = ""; 533 document.getElementById('specialISP_tr').style.display = ""; 534 document.applyForm.dhcp_type[0].checked = true; 535 } 536 } 537 else if(flag == 1){ 538 stage = 2; 539 540 if(document.applyForm.specialisp.checked){ 541 if(document.applyForm.switch_wantag.value == "manual"){//Check VID 542 if(document.applyForm.switch_wan1tagid.value == "" && document.applyForm.switch_wan2tagid.value == "") 543 document.applyForm.switch_stb_x.value = "0"; 544 else if(document.applyForm.switch_wan1tagid.value == "" && document.applyForm.switch_wan2tagid.value != "") 545 document.applyForm.switch_stb_x.value = "3"; 546 else if(document.applyForm.switch_wan1tagid.value != "" && document.applyForm.switch_wan2tagid.value == "") 547 document.applyForm.switch_stb_x.value = "4"; 548 else 549 document.applyForm.switch_stb_x.value = "6"; 550 551 if(document.applyForm.switch_wan0tagid.value.length > 0 && !validator.rangeNull(document.applyForm.switch_wan0tagid, 2, 4094, "")){ 552 document.applyForm.switch_wan0tagid.focus(); 553 stage = 1; 554 return false; 555 } 556 557 if(document.applyForm.switch_wan1tagid.value.length > 0 && !validator.rangeNull(document.applyForm.switch_wan1tagid, 2, 4094, "")){ 558 document.applyForm.switch_wan1tagid.focus(); 559 stage = 1; 560 return false; 561 } 562 563 if(document.applyForm.switch_wan2tagid.value.length > 0 && !validator.rangeNull(document.applyForm.switch_wan2tagid, 2, 4094, "")){ 564 document.applyForm.switch_wan2tagid.focus(); 565 stage = 1; 566 return false; 567 } 568 569 if(document.applyForm.switch_wan0prio.value.length > 0 && !validator.range(document.applyForm.switch_wan0prio, 0, 7)){ 570 document.applyForm.switch_wan0prio.focus(); 571 stage = 1; 572 return false; 573 } 574 575 if(document.applyForm.switch_wan1prio.value.length > 0 && !validator.range(document.applyForm.switch_wan1prio, 0, 7)){ 576 document.applyForm.switch_wan1prio.focus(); 577 stage = 1; 578 return false; 579 } 580 581 if(document.applyForm.switch_wan2prio.value.length > 0 && !validator.range(document.applyForm.switch_wan2prio, 0, 7)){ 582 document.applyForm.switch_wan2prio.focus(); 583 stage = 1; 584 return false; 585 } 586 587 if(document.applyForm.switch_wan0tagid.value.length == 0 && document.applyForm.switch_wan1tagid.value.length == 0 && document.applyForm.switch_wan2tagid.value.length == 0){ 588 alert("Please configure VLAN settings");//Untranslated 589 stage = 1; 590 return false; 591 } 592 } 593 set_ISP_profile(); 594 parent.document.QKform.switch_wantag.value = document.applyForm.switch_wantag.value; 595 parent.document.QKform.switch_wan0tagid.value = document.applyForm.switch_wan0tagid.value; 596 parent.document.QKform.switch_wan0prio.value = document.applyForm.switch_wan0prio.value; 597 parent.document.QKform.switch_wan1tagid.value = document.applyForm.switch_wan1tagid.value; 598 parent.document.QKform.switch_wan1prio.value = document.applyForm.switch_wan1prio.value; 599 parent.document.QKform.switch_wan2tagid.value = document.applyForm.switch_wan2tagid.value; 600 parent.document.QKform.switch_wan2prio.value = document.applyForm.switch_wan2prio.value; 601 parent.document.QKform.switch_stb_x.value = document.applyForm.switch_stb_x.value; 602 } 603 604 if(document.applyForm.dhcp_type[0].checked){ //DHCP 605 document.applyForm.wan_proto.value = "dhcp"; 606 parent.document.QKform.wan_proto.value = document.applyForm.wan_proto.value; 607 parent.document.QKform.wan_dhcpenable_x.value = 1; 608 parent.document.QKform.wan_dnsenable_x.value = 1; 609 //location.href = "QIS_verify_detect.htm"; // avoid redirect to internet_isp and internet_ip 610 //return true; 611 if(verify_vlan_settings()){ 612 parent.document.QKform.wan_proto.value = document.applyForm.wan_proto.value; 613 submitForm(); 614 return true; 615 } 616 else{ 617 document.applyForm.next_page.value = "QIS_verify_detect.htm"; 618 } 619 } 620 else if(document.applyForm.dhcp_type[1].checked){ //static IP 621 document.applyForm.wan_proto.value = "static"; 622 parent.document.QKform.wan_dhcpenable_x.value = 0; 623 parent.document.QKform.wan_dnsenable_x.value = 0; 624 document.applyForm.next_page.value = "QIS_internet_ip.htm"; 625 document.getElementById("dhcp_scenario_1").style.display = "none"; 626 document.getElementById("dhcp_scenario_2").style.display = "none"; 627 } 628 629 parent.document.QKform.wan_proto.value = document.applyForm.wan_proto.value; 630 location.href = document.applyForm.next_page.value; 631 return true; 632 } 633} 634 635function switch_dhcp_type(obj){ 636 if(!document.applyForm.specialisp.checked){ 637 if(obj.id == "non_dialUp_static"){ 638 document.getElementById("image_field").className = "static_image"; 639 document.getElementById("dhcp_scenario_1").style.display = "none"; 640 document.getElementById("dhcp_scenario_2").style.display = "none"; 641 document.getElementById("static_ip_desc").style.display = ""; 642 } 643 else{ 644 document.getElementById("image_field").className = "non_dialUp"; 645 document.getElementById("dhcp_scenario_1").style.display = ""; 646 document.getElementById("dhcp_scenario_2").style.display = ""; 647 document.getElementById("static_ip_desc").style.display = "none"; 648 } 649 } 650 651} 652 653function previous_step(flag){ 654 if(flag == 1){ 655 document.getElementById('dhcp_tr').style.display = "none"; 656 document.getElementById('dhcp_desc').style.display = "none"; 657 document.getElementById('static_tr').style.display = "none"; 658 document.getElementById('static_desc').style.display = "none"; 659 document.getElementById('dialUp_tr').style.display = ""; 660 document.getElementById('dialUp_desc').style.display = ""; 661 document.getElementById('non_dialUp_tr').style.display = ""; 662 document.getElementById('non_dialUp_desc').style.display = ""; 663 document.getElementById('specialISP_tr').style.display = "none"; 664 document.getElementById('previous_button').style.display = "none"; 665 document.getElementById('title_desc').innerHTML = "<#QIS_SmartConn_title1#>"; 666 if(document.getElementById("image_field").className == "static_image"){ 667 document.getElementById("image_field").className = "non_dialUp"; 668 document.getElementById("dhcp_scenario_1").style.display = ""; 669 document.getElementById("dhcp_scenario_2").style.display = ""; 670 document.getElementById("static_ip_desc").style.display = "none"; 671 } 672 document.getElementById("special_ISP_field").style.display = "none"; 673 674 stage = 0; 675 } 676} 677 678function enable_ISP_special(){ 679 if(document.applyForm.specialisp.checked){ 680 ISP_Profile_Selection(original_switch_wantag); 681 document.getElementById('image_field').style.display = "none"; 682 document.getElementById('special_ISP_field').style.display = ""; 683 if(document.getElementById('image_field').className == "static_image") 684 document.getElementById('static_ip_desc').style.display = "none"; 685 document.getElementById("dhcp_scenario_2").style.display = "none"; 686 } 687 else{ 688 document.getElementById('image_field').style.display = ""; 689 document.getElementById('special_ISP_field').style.display = "none"; 690 if(document.getElementById('image_field').className == "static_image") 691 document.getElementById('static_ip_desc').style.display = ""; 692 document.getElementById("dhcp_scenario_2").style.display = ""; 693 } 694} 695</script> 696<style> 697.dialUp{ 698 height:157px; 699 background:url('../images/New_ui/new_qis/PPPoE.png') no-repeat; 700 background-position:50% 0%; 701} 702.non_dialUp{ 703 height:320px; 704 background:url('../images/New_ui/new_qis/WAN-connection-type.png') no-repeat; 705 background-position:50% 0%; 706} 707.static_image{ 708 height:280px; 709 background:url('../images/New_ui/new_qis/staticIP.png') no-repeat; 710 background-position:50% 0%; 711 712} 713.image_field{ 714 height:300px; 715 background:url('../images/New_ui/new_qis/WAN-connection-defaultPage.png') no-repeat; 716 background-position: center; 717} 718 719</style> 720</head> 721 722<body onLoad="QKinternettype_load_body();" onunload="" onKeyPress="submitenter(this,event)"> 723 724<form method="post" name="applyForm" action="../start_apply.htm" target="hidden_frame" onsubmit="return submitForm();" autocomplete="off"> 725<input type="hidden" name="current_page" value="QIS_internet_type.htm"> 726<input type="hidden" name="next_page" value="/qis/QIS_finish.htm"> 727<input type="hidden" name="prev_page" value="/qis/QIS_detect.htm"> 728<input type="hidden" name="wan_proto" value=""> 729<input type="hidden" name="switch_stb_x" value=""> 730<input type="hidden" name="mr_enable_x" value="<% nvram_get("mr_enable_x"); %>"> 731<input type="hidden" name="emf_enable" value="<% nvram_get("emf_enable"); %>"> 732<input type="hidden" name="ttl_inc_enable" value="<% nvram_get("ttl_inc_enable"); %>"> 733<input type="hidden" name="action_mode" value="apply"> 734<input type="hidden" name="action_script" value=""> 735<input type="hidden" name="action_wait" value="5"> 736<input type="hidden" name="flag" value=""> 737<input type="hidden" name="wan10_proto" value="<% nvram_get("wan10_proto"); %>"> 738<input type="hidden" name="wan11_proto" value="<% nvram_get("wan11_proto"); %>"> 739 740<div class="QISmain"> 741 <div id="descTltle"> 742 <table width="100%"> 743 <tr> 744 <td align="left"> 745 <div class="description_down"><#QKSet_type_desc#></div> 746 </td> 747 </tr> 748 </table> 749 </div> 750 <div style="margin:5px;" id="splitLine"><img style="width: 720px; *width: 710px; height: 2px;" src="../images/New_ui/export/line_export.png"></div> 751</div> 752<br/> 753<div id="field_general"> 754 755<div id='dhcppppoe_sec'> 756 <table border="0" align="left" cellpadding="2" cellspacing="0"> 757 <tr> 758 <td style="width:380px;"> 759 <table class="QISform" style="width:98%;"> 760 <tr> 761 <td colspan="2"> 762 <div id="title_desc" style="font-size:14px; margin:0 0 10px 10px;"><#QIS_SmartConn_title1#></div> 763 </td> 764 </tr> 765 766 <tr id="dialUp_tr"> 767 <td align="center"><input type="radio" id="dialUp_yes" name="wan_type" value="0" onClick="switch_dialUp_type(this)" onKeyPress=""></td> 768 <td class="wan_type_title"><label for="dialUp_yes"><#checkbox_Yes#></label></td> 769 </tr> 770 <tr height="40px" id="dialUp_desc"> 771 <td align="center"></td> 772 <td valign="top"><span class="wan_type_dec"><#QIS_SmartConn_TypeDial#></span></td> 773 </tr> 774 775 <tr id="non_dialUp_tr"> 776 <td align="center"><input type="radio" id="non_dialUp" name="wan_type" value="1"onClick="switch_dialUp_type(this)" onKeyPress=""></td> 777 <td class="wan_type_title"><label for="non_dialUp"><#checkbox_No#></label></td> 778 </tr> 779 <tr height="40px" id="non_dialUp_desc"> 780 <td align="center"></td> 781 <td valign="top"><span class="wan_type_dec"><#QIS_SmartConn_TypeAuto#></span></td> 782 </tr> 783 784 785 <tr id="dhcp_tr" style="display:none"> 786 <td align="center"> 787 <input type="radio" id="non_dialUp_dhcp" name="dhcp_type" value="0" tabindex="1" onClick="switch_dhcp_type(this)" onKeyPress=""> 788 </td> 789 <td class="wan_type_title"> 790 <label for="non_dialUp_dhcp"><#BOP_ctype_title1#> (DHCP)</label> 791 </td> 792 </tr> 793 <tr id="dhcp_desc" style="display:none;height:40px;"> 794 <td align="center"></td> 795 <td valign="top"><span class="wan_type_dec"><#QIS_SmartConn_TypeAutoDesc#></span></td> 796 </tr> 797 798 <tr style="height:10px;"></tr> 799 <tr id="static_tr" style="display:none"> 800 <td align="center"><input type="radio" id="non_dialUp_static" name="dhcp_type" value="1" tabindex="2" onClick="switch_dhcp_type(this)" onKeyPress=""></td> 801 <td class="wan_type_title"><label for="non_dialUp_static"><#BOP_ctype_title5#></label></td> 802 </tr> 803 <tr id="static_desc" style="display:none;height:40px;"> 804 <td align="center"></td> 805 <td valign="top"><span class="wan_type_dec"><#BOP_ctype_item5#></span></td> 806 </tr> 807 808 <tr id="specialISP_tr" style="display:none"> 809 <td align="center"> 810 <input type="checkbox" id="specialisp" name="specialisp" onclick="enable_ISP_special()"> 811 </td> 812 <td> 813 <label for="specialisp"> 814 <span class="QISGeneralFont" style="margin-left:0px;font-style:normal;color:#66CCFF;font-size:12px;font-weight:bolder;"><#PPPConnection_x_HostNameForISP_sectionname#></span> 815 </label> 816 </td> 817 </tr> 818 819 <tr> 820 <td align="center" colspan="2"> 821 <div class="apply_gen"> 822 <input type="button" id="previous_button" value="<#CTL_prev#>" onclick="previous_step(stage);" class="button_gen" width="70px" align="center" style="display:none"> 823 <input type="button" value="<#CTL_next#>" onclick="next_step(stage);" class="button_gen" width="70px" align="center"> 824 </div> 825 </td> 826 </tr> 827 </table> 828 </td> 829 <td style="width:365px; height:400px;background:#444F52;border-radius:10px;"> 830 <div id="image_field" class="image_field"></div> 831 <div id="isp_card_desc" style="padding:15px;display:none;line-height:15px;"><#QIS_SmartConn_ISPDesc#></div> 832 <div id="static_ip_desc" style="padding:15px;display:none;line-height:15px;"><#QIS_SmartConn_StaticDesc#></div> 833 <div id="dhcp_scenario_1" style="color:#5F9EA0;font-weight:bold;position:absolute;margin:-312px 0px 0px 112px;font-size:12px; display:none;"><#QIS_SmartConn_Scen1#></div> 834 <div id="dhcp_scenario_2" style="color:#5F9EA0;font-weight:bold;position:absolute;margin:-149px 0px 0px 112px;font-size:12px; display:none;"><#QIS_SmartConn_Scen2#></div> 835 <div id="special_ISP_field" style="margin-top:-100px;display:none"> 836 <div style="line-height:25px;height:250px;"> 837 <div id="select_profile"> 838 <table class="iptvTable"> 839 <tr> 840 <th><#Select_ISPfile#>: </th> 841 <td><select name="switch_wantag" class="input_option" onChange="ISP_Profile_Selection(this.value)"> 842 <option value="none" <% nvram_match( "switch_wantag", "none", "selected"); %>><#wl_securitylevel_0#></option> 843 <option value="unifi_home" <% nvram_match( "switch_wantag", "unifi_home", "selected"); %>>Unifi-Home</option> 844 <option value="unifi_biz" <% nvram_match( "switch_wantag", "unifi_biz", "selected"); %>>Unifi-Business</option> 845 <option value="singtel_mio" <% nvram_match( "switch_wantag", "singtel_mio", "selected"); %>>Singtel-MIO</option> 846 <option value="singtel_others" <% nvram_match( "switch_wantag", "singtel_others", "selected"); %>>Singtel-Others</option> 847 <option value="m1_fiber" <% nvram_match("switch_wantag", "m1_fiber", "selected"); %>>M1-Fiber</option> 848 <option value="maxis_fiber" <% nvram_match("switch_wantag", "maxis_fiber", "selected"); %>>Maxis-Fiber</option> 849 <option value="maxis_fiber_sp" <% nvram_match("switch_wantag", "maxis_fiber_sp", "selected"); %>>Maxis-Fiber-Special</option> 850 <option id="movistarOption" value="movistar" <% nvram_match("switch_wantag", "movistar", "selected"); %>>Movistar Triple VLAN</option> 851 <option id="meoOption" value="meo" <% nvram_match("switch_wantag", "meo", "selected"); %>>Meo</option> 852 <option id="vodafoneOption" value="vodafone" <% nvram_match("switch_wantag", "vodafone", "selected"); %>>Vodafone</option> 853 <option value="manual" <% nvram_match( "switch_wantag", "manual", "selected"); %>><#Manual_Setting_btn#></option> 854 </select></td> 855 </tr> 856 </table> 857 </div> 858 859 <div id="port_settings"> 860 <table class="iptvTable"> 861 <tr id="wan_voip_line"><td colspan="2"><div style="margin: 5px 5px 5px 10px;" id="splitLine"><img style="width: 350px; *width: 340px; height: 2px;" src="../images/New_ui/export/line_export.png"></div></td></tr> 862 <tr id="wan_voip_x"> 863 <th><span id="voip_title">VoIP Port: </span></th> 864 <td>LAN3</td> 865 </tr> 866 <tr id="wan_iptv_line"><td colspan="2"><div style="margin: 5px 5px 5px 10px;" id="splitLine"><img style="width: 350px; *width: 340px; height: 2px;" src="../images/New_ui/export/line_export.png"></div></td></tr> 867 <tr id="wan_iptv_x"> 868 <th><span id="iptv_title">IPTV STB Port: </span></th> 869 <td>LAN4</td> 870 </tr> 871 </table> 872 </div> 873 874 <div id="manual_settings"> 875 <table class="iptvTable"> 876 <tr><td colspan="2"><div style="margin: 5px 5px 5px 10px;" id="splitLine"><img style="width: 350px; *width: 340px; height: 2px;" src="../images/New_ui/export/line_export.png"></div></td></tr> 877 <tr> 878 <th><#Internet#>:</th> 879 <td> 880 VID:<input type="text" name="switch_wan0tagid" class="input_6_table" maxlength="4" value="<% nvram_get( "switch_wan0tagid"); %>" autocorrect="off" autocapitalize="off"> 881 PRIO:<input type="text" name="switch_wan0prio" class="input_6_table" maxlength="1" value="<% nvram_get( "switch_wan0prio"); %>" autocorrect="off" autocapitalize="off"> 882 </td> 883 </tr> 884 <tr> 885 <th>IPTV (LAN port 4):</th> 886 <td> 887 VID:<input type="text" name="switch_wan1tagid" class="input_6_table" maxlength="4" value="<% nvram_get( "switch_wan1tagid"); %>" autocorrect="off" autocapitalize="off"> 888 PRIO:<input type="text" name="switch_wan1prio" class="input_6_table" maxlength="1" value="<% nvram_get( "switch_wan1prio"); %>" autocorrect="off" autocapitalize="off"> 889 </td> 890 </tr> 891 <tr> 892 <th>VoIP (LAN port 3):</th> 893 <td> 894 VID:<input type="text" name="switch_wan2tagid" class="input_6_table" maxlength="4" value="<% nvram_get( "switch_wan2tagid"); %>" autocorrect="off" autocapitalize="off"> 895 PRIO:<input type="text" name="switch_wan2prio" class="input_6_table" maxlength="1" value="<% nvram_get( "switch_wan2prio"); %>" autocorrect="off" autocapitalize="off"> 896 </td> 897 </tr> 898 </table> 899 </div> 900 901 <div id="iptv_configuration"> 902 <div style="margin: 5px 5px 5px 7px;" id="splitLine"><img style="width: 350px; *width: 340px; height: 2px;" src="../images/New_ui/export/line_export.png"></div> 903 <table class="iptvTable"> 904 <tr> 905 <th>VoIP Port: </th> 906 <td>LAN3</td> 907 </tr> 908 <tr><td colspan="2"><div style="margin: 5px 5px 5px 11px;" id="splitLine"><img style="width: 350px; *width: 340px; height: 2px;" src="../images/New_ui/export/line_export.png"></div></td></tr> 909 <tr> 910 <th>IPTV STB Port: </th> 911 <td>LAN4</td> 912 </tr> 913 <tr> 914 <th><#Layer3Forwarding_x_ConnectionType_itemname#>: </th> 915 <td><#BOP_ctype_title5#></td> 916 </tr> 917 <tr> 918 <th><#IPConnection_ExternalIPAddress_itemname#>: </th> 919 <td><input type="text" name="wan10_ipaddr_x" maxlength="15" class="input_15_table" value="<% nvram_get("wan10_ipaddr_x"); %>" onKeyPress="return validator.isIPAddr(this, event);" autocorrect="off" autocapitalize="off"></td> 920 </tr> 921 <tr> 922 <th><#IPConnection_x_ExternalSubnetMask_itemname#>: </th> 923 <td><input type="text" name="wan10_netmask_x" maxlength="15" class="input_15_table" value="<% nvram_get("wan10_netmask_x"); %>" onKeyPress="return validator.isIPAddr(this, event);" autocorrect="off" autocapitalize="off"></td> 924 </tr> 925 <tr> 926 <th><#IPConnection_x_ExternalGateway_itemname#>: </th> 927 <td><input type="text" name="wan10_gateway_x" maxlength="15" class="input_15_table" value="<% nvram_get("wan10_gateway_x"); %>" onKeyPress="return validator.isIPAddr(this, event);" autocorrect="off" autocapitalize="off"></td> 928 </tr> 929 <tr> 930 <th><#IPConnection_x_DNSServer1_itemname#>: </th> 931 <td><input type="text" name="wan10_dns1_x" maxlength="15" class="input_15_table" value="<% nvram_get("wan10_dns1_x"); %>" onKeyPress="return validator.isIPAddr(this, event);" autocorrect="off" autocapitalize="off"></td> 932 </tr> 933 <tr> 934 <th><#IPConnection_x_DNSServer2_itemname#>: </th> 935 <td><input type="text" name="wan10_dns2_x" maxlength="15" class="input_15_table" value="<% nvram_get("wan10_dns2_x"); %>" onKeyPress="return validator.isIPAddr(this, event);" autocorrect="off" autocapitalize="off"></td> 936 </tr> 937 <tr> 938 <th><#PPPConnection_Authentication_itemname#>: </th> 939 <td> 940 <select style="margin-left:2px;" class="input_option" name="wan10_auth_x" onChange="change_auth(this.value);"> 941 <option value="" <% nvram_match("wan10_auth_x", "", "selected"); %>><#wl_securitylevel_0#></option> 942 <option value="8021x-md5" <% nvram_match("wan10_auth_x", "8021x-md5", "selected"); %>>802.1x MD5</option> 943 </select> 944 </td> 945 </tr> 946 <tr id="tr_pppoe_username" style="display:none;"> 947 <th><#PPPConnection_UserName_itemname#>: </th> 948 <td><input type="text" maxlength="64" class="input_15_table" name="wan10_pppoe_username" value="<% nvram_get("wan10_pppoe_username"); %>" onkeypress="return validator.isString(this, event)"></td> 949 </tr> 950 <tr id="tr_pppoe_password" style="display:none;"> 951 <th><div style="margin-top:-25px;"><#PPPConnection_Password_itemname#>: </div></th> 952 <td><input type="password" autocapitalization="off" maxlength="64" class="input_15_table" id="wan10_pppoe_passwd" name="wan10_pppoe_passwd" value="<% nvram_get("wan10_pppoe_passwd"); %>"> 953 <div style="margin-top:1px;"><input type="checkbox" name="show_pass_iptv" onclick="pass_checked_iptv(document.applyForm.wan10_pppoe_passwd);"><#QIS_show_pass#></div> 954 </td> 955 </tr> 956 </table> 957 </div> 958 </div> 959 </td> 960 </tr> 961 <tr> 962 <td colspan="2"> 963 <div><img style="width: 100%; *width: 710px; margin-top: 15px;height: 2px;" src="/images/New_ui/export/line_export.png"></div> 964 <div id="unknownIsp" style="color:#FC0;font-size:14px;margin-left:10px;margin-top:10px;"><#QIS_SmartConn_TypeNote#></div> 965 <div id="wan_unplug" style="color:#FC0;font-size:14px;margin-left:10px;margin-top:5px;display:none">* <#web_redirect_suggestion1#></div> 966 </td> 967 </tr> 968 </table> 969</div> 970 971<div id="special_ISP_img" style="margin-top:0px;margin-left:500px;display:none;"><img width="220px" height="300px" src="../images/qis/border.png"></div> 972</div> 973 974<div style="display:none;" id="field_mobile"> 975 <span class="QISGeneralFont" id="theDesc" style="margin-left:0px;"><#QIS_type_desc1#><br><br></span> 976 <fieldset class="theFieldset" id="internetType_m"> 977 <div class="row"> 978 <a class="iuiA" onclick="document.applyForm.x_WANType[0].checked=true;submitForm();"><#BOP_ctype_title1#> (DHCP)</a> 979 </div> 980 <div class="row"> 981 <a class="iuiA" onclick="document.applyForm.x_WANType[1].checked=true;submitForm();">PPPoE</a> 982 </div> 983 <div class="row"> 984 <a class="iuiA" onclick="document.applyForm.x_WANType[2].checked=true;submitForm();"><#BOP_ctype_title5#></a> 985 </div> 986 <div class="row"> 987 <a class="iuiA" onclick="document.applyForm.x_WANType[3].checked=true;submitForm();">PPTP</a> 988 </div> 989 <div class="row_end"> 990 <a class="iuiA" onclick="document.applyForm.x_WANType[4].checked=true;submitForm();">L2TP</a> 991 </div> 992 </fieldset> 993 <fieldset class="theFieldset" id="unifyBtn"> 994 <div class="row_end"> 995 <a class="iuiA_unsel_check" id="unify_switcher" onclick="document.applyForm.specialisp.checked=this.getAttribute('myselected');mySel(this, false);" myselected="false">Unify</a> 996 <span class="sel_check" onclick='showHidden_slide("field_mobile_unify", ["internetType_m", "unifyBtn", "theDesc"]);'></span> 997 </div> 998 </fieldset> 999 1000 <div id="field_mobile_unify" style="display:none;left:100%;position:absolute;width:100%"> 1001 <fieldset class="theFieldset"> 1002 <div class="row"> 1003 <a class="iuiA_unsel" onclick="document.applyForm.switch_wantag.value='unifi_home';mySel(this, false);" myselected="false">Unifi-Home</a> 1004 </div> 1005 <div class="row"> 1006 <a class="iuiA_unsel" onclick="document.applyForm.switch_wantag.value='unifi_biz';mySel(this, false);" myselected="false">Unifi-Business</a> 1007 </div> 1008 <div class="row"> 1009 <a class="iuiA_unsel" onclick="document.applyForm.switch_wantag.value='singtel_mio';mySel(this, false);" myselected="false">Singtel-MIO</a> 1010 </div> 1011 <div class="row"> 1012 <a class="iuiA_unsel" onclick="document.applyForm.switch_wantag.value='singtel_others';mySel(this, false);" myselected="false">Singtel-Others</a> 1013 </div> 1014 <div class="row"> 1015 <a class="iuiA_unsel" onclick="document.applyForm.switch_wantag.value='m1_fiber';mySel(this, false);" myselected="false">M1-Fiber</a> 1016 </div> 1017 <div class="row_end"> 1018 <a class="iuiA_unsel_check" onclick="document.applyForm.switch_wantag.value='manual';mySel(this, false);" myselected="false"><#Manual_Setting_btn#></a> 1019 <span class="sel_check" onclick='showHidden_slide("unify_input", ["field_mobile_unify"]);'></span> 1020 </div> 1021 </fieldset> 1022 <div class="QISGeneralFont" id="voipport" style="margin-left:0px;">VoIP Port: <b style="color:#FC0">LAN3</b></div> 1023 <div class="QISGeneralFont" id="iptvport" style="margin-left:0px;">IPTV STB Port: <b style="color:#FC0">LAN4</b></div> 1024 </div> 1025 1026 <div id="unify_input" style="display:none;left:100%;position:absolute;width:100%"> 1027 <div class="itemTitle"><#Internet#>:</div> 1028 <fieldset class="theFieldset" id="unify_input_1"> 1029 <div class="row"> 1030 <label>VID</label> 1031 <input type="number" id="" name="_switch_wan0tagid" value=""> 1032 </div> 1033 <div class="row_end"> 1034 <label>PRIO</label> 1035 <input type="number" id="" name="_switch_wan0prio" value=""> 1036 </div> 1037 </fieldset> 1038 1039 <div class="itemTitle">VoIP(LAN port 3):</div> 1040 <fieldset class="theFieldset" id="unify_input_2"> 1041 <div class="row"> 1042 <label>VID</label> 1043 <input type="number" id="" name="_switch_wan1tagid" value=""> 1044 </div> 1045 <div class="row_end"> 1046 <label>PRIO</label> 1047 <input type="number" id="" name="_switch_wan1prio" value=""> 1048 </div> 1049 </fieldset> 1050 1051 <div class="itemTitle">IPTV(LAN port 4):</div> 1052 <fieldset class="theFieldset" id="unify_input_3"> 1053 <div class="row"> 1054 <label>VID</label> 1055 <input type="number" id="" name="_switch_wan2tagid" value=""> 1056 </div> 1057 <div class="row_end"> 1058 <label>PRIO</label> 1059 <input type="number" id="" name="_switch_wan2prio" value=""> 1060 </div> 1061 </fieldset> 1062 </div> 1063</div> 1064</form> 1065</body> 1066