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 rel="stylesheet" type="text/css" href="../form_style.css"> 8<link rel="stylesheet" type="text/css" 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="/validator.js"></script> 12<style> 13span{ 14 border:0px solid #FFFFFF; 15 color:#FFFFFF; 16 font-size:14px; 17 font-family:Arial, Helvetica, sans-serif; 18 /*width:27px;*/ 19 text-align:right; 20 margin:0px auto; 21 ime-mode:disabled; 22} 23#DE_ISP_note{ 24 font-size:14px; 25 font-family:Arial, Helvetica, sans-serif; 26 text-align:left; 27 margin-left:70px; 28 margin-top:-10px; 29} 30.isp_note_title{ 31 color:#FFCC00; 32} 33.isp_note{ 34 margin-top:5px; 35 line-height:100%; 36} 37.account_format{ 38 margin-top:5px; 39 margin-left:30px; 40} 41.num2{ 42 color:#569AC7; 43 font-weight: bold; 44} 45.num1{ 46 color:#CCFF00; 47 font-weight: bold; 48} 49</style> 50<script> 51var w_Setting = "<% nvram_get("w_Setting"); %>"; 52var prctl_str = "default"; 53var prctl_val = "<% nvram_get("dsltmp_cfg_prctl"); %>"; 54var vpi_val = "<% nvram_get("dsltmp_cfg_vpi"); %>"; 55var vci_val = "<% nvram_get("dsltmp_cfg_vci"); %>"; 56var encap_val = "<% nvram_get("dsltmp_cfg_encap"); %>"; 57var vlanid_val = "<% nvram_get("dsltmp_cfg_vid"); %>"; 58var ispname_str = decodeURIComponent('<%nvram_char_to_ascii("","dsltmp_cfg_ispname");%>'); 59var country_str = "<% nvram_get("dsltmp_cfg_country"); %>"; 60var transfer_mode = "<% nvram_get("dsltmp_transmode"); %>"; 61var iptv_atm_pvc_str = ""; 62var iptv_ptm_pvc_str = ""; 63var dsltmp_cfg_iptv_pvclist = decodeURIComponent('<%nvram_char_to_ascii("","dsltmp_cfg_iptv_pvclist");%>'); 64 65if (prctl_val == "0") 66 prctl_str = "PPPoE"; 67else if (prctl_val == "1") 68 prctl_str = "PPPoA"; 69 70var encap_str = "LLC"; 71if (encap_val == "1") encap_str = "VC-Mux"; 72 73var iptv_num_pvc_val = "<% nvram_get("dsltmp_cfg_iptv_num_pvc"); %>"; 74 75//udpate iptv information 76if (iptv_num_pvc_val != "0" && iptv_num_pvc_val != "") { 77 var dsltmp_cfg_iptv_pvclist_row; 78 var dsltmp_cfg_iptv_pvclist_col; 79 var i, j; 80 81 iptv_atm_pvc_str = iptv_num_pvc_val + " IPTV PVC(s)"; 82 iptv_ptm_pvc_str = iptv_num_pvc_val + " IPTV service(s)"; 83 84 //<vpi>vci>proto>encap>vlanid 85 if(dsltmp_cfg_iptv_pvclist.charAt(0) == "<") //rempve the 1st "<" 86 dsltmp_cfg_iptv_pvclist = dsltmp_cfg_iptv_pvclist.substr(1,dsltmp_cfg_iptv_pvclist.length); 87 dsltmp_cfg_iptv_pvclist_row = dsltmp_cfg_iptv_pvclist.split('<'); 88 89 iptv_atm_pvc_str += ": "; 90 iptv_ptm_pvc_str += ": "; 91 for(i=0; i<dsltmp_cfg_iptv_pvclist_row.length; i++) { 92 if(i > 0) { 93 iptv_atm_pvc_str += " + "; 94 iptv_ptm_pvc_str += " + "; 95 } 96 dsltmp_cfg_iptv_pvclist_col = dsltmp_cfg_iptv_pvclist_row[i].split('>'); 97 for(j=0; j<dsltmp_cfg_iptv_pvclist_col.length; j++){ 98 switch(j) { 99 case 0: //vpi 100 iptv_atm_pvc_str += "<span class='cfg_val'>" + dsltmp_cfg_iptv_pvclist_col[j] + "/"; 101 break; 102 case 1: //vci 103 iptv_atm_pvc_str += dsltmp_cfg_iptv_pvclist_col[j] + ","; 104 break; 105 case 2: //proto 106 iptv_ptm_pvc_str += "<span class='cfg_val'>"; 107 if(dsltmp_cfg_iptv_pvclist_col[j] == 3) { 108 iptv_atm_pvc_str += "Bridged, "; 109 iptv_ptm_pvc_str += "Bridged, "; 110 } 111 else { 112 iptv_atm_pvc_str += ", "; 113 iptv_ptm_pvc_str += "Bridged, "; 114 } 115 break; 116 case 3: //encap 117 if(dsltmp_cfg_iptv_pvclist_col[j] == 1) 118 iptv_atm_pvc_str += "VC-Mux"; 119 else 120 iptv_atm_pvc_str += "LLC"; 121 break; 122 case 4: //vlan id 123 if(dsltmp_cfg_iptv_pvclist_col[j] != "") { 124 iptv_atm_pvc_str += "VLAN ID " + dsltmp_cfg_iptv_pvclist_col[j]; 125 iptv_ptm_pvc_str += "VLAN ID " + dsltmp_cfg_iptv_pvclist_col[j]; 126 } 127 iptv_atm_pvc_str += "</span>"; 128 iptv_ptm_pvc_str += "</span>"; 129 break; 130 } 131 } 132 } 133} 134 135function QKfinish_load_body(){ 136 parent.document.title = "<#Web_Title#> - <#QKSet_all_title#>"; 137 parent.set_step("t2"); 138 139 DE_ISP_note_detect(); 140 141 if (prctl_val == "0") 142 document.form.dsltmp_qis_proto.value = "pppoe"; 143 else if (prctl_val == "1") 144 document.form.dsltmp_qis_proto.value = "pppoa"; 145 146 if(transfer_mode == "atm"){ 147 document.getElementById("atm_info").style.display = ""; 148 //Brazil - GVT 149 if (country_str == "Brazil"){ 150 if (prctl_val == "0" && vpi_val == "0" && vci_val == "35" && encap_val == "0" && ispname_str == "GVT"){ 151 document.form.prevButton.readonly = true; 152 document.form.nextButton.readonly = true; 153 document.form.dsltmp_qis_pppoe_username.value = "turbonet@turbonet"; 154 document.form.dsltmp_qis_pppoe_passwd.value = "gvt25"; 155 setTimeout("submitForm()",2000); 156 } 157 158 if (ispname_str == "Telefonica Speedy"){ 159 document.form.dsltmp_qis_pppoe_mtu.value = "1480"; 160 //document.form.dsltmp_qis_pppoe_mru_0.value = "1480"; 161 } 162 } 163 164 if (country_str == "India"){ 165 if(ispname_str == "BSNL (PPPOE)" || ispname_str == "BSNL (PPPOA)" || ispname_str == "MTNL (PPPOE)" || ispname_str == "MTNL (PPPOA)"){ 166 document.form.dsltmp_qis_pppoe_mtu.value = "1442"; 167 //document.form.dsltmp_qis_pppoe_mru_0.value = "1442"; 168 } 169 } 170 171 if (country_str == "Denmark"){ 172 //denmark ISP need input MAC address 173 document.getElementById("mac_addr1").style.display = ""; 174 document.getElementById("mac_addr2").style.display = ""; 175 } 176 document.form.prev_page.value = "/qis/QIS_manual_setting.htm"; 177 178 }else{ //transmode "ptm" 179 document.getElementById("ptm_info").style.display = ""; 180 document.form.prev_page.value = "/qis/QIS_PTM_manual_setting.htm"; 181 } 182} 183 184function DE_ISP_note_detect(){ 185 if(country_str == "Germany" 186 && (ispname_str == "Deutsche Telekom" || ispname_str == "1&1" || ispname_str == "NetCologne" || ispname_str == "NetCologne (VLAN ID 10)" || 187 ispname_str == "Deutsche Telekom (ohne Entertain)" || ispname_str == "Deutsche Telekom (mit Entertain)" || ispname_str == "1&1 (Telekom VDSL Resale Anschluss)")) 188 { 189 document.getElementById("DE_ISP_note").style.display=""; 190 document.getElementById("Deutsche_Telekom").style.display="none"; 191 document.getElementById("Deutsche_1n1_ATM").style.display="none"; 192 document.getElementById("Deutsche_1n1_PTM").style.display="none"; 193 document.getElementById("Deutsche_NetCologne").style.display="none"; 194 if(ispname_str == "Deutsche Telekom" || ispname_str == "Deutsche Telekom (ohne Entertain)" || ispname_str == "Deutsche Telekom (mit Entertain)") 195 document.getElementById("Deutsche_Telekom").style.display=""; 196 if(ispname_str == "1&1") 197 document.getElementById("Deutsche_1n1_ATM").style.display=""; 198 if(ispname_str == "1&1 (Telekom VDSL Resale Anschluss)") 199 document.getElementById("Deutsche_1n1_PTM").style.display=""; 200 if(ispname_str == "NetCologne" || ispname_str == "NetCologne (VLAN ID 10)") 201 document.getElementById("Deutsche_NetCologne").style.display=""; 202 } 203 else 204 document.getElementById("DE_ISP_note").style.display="none"; 205} 206 207function validForm(){ 208 if(document.form.dsltmp_qis_pppoe_username.value.length <= 0){ 209 alert("<#WANJS9Text#>."); 210 document.form.dsltmp_qis_pppoe_username.focus(); 211 return false; 212 } 213 if(document.form.dsltmp_qis_pppoe_passwd.value.length <= 0){ 214 alert("<#WANJS9Text#>."); 215 document.form.dsltmp_qis_pppoe_passwd.focus(); 216 return false; 217 } 218 if(!validator.string(document.form.dsltmp_qis_pppoe_username) 219 || !validator.string(document.form.dsltmp_qis_pppoe_passwd) 220 ) { 221 alert("return false: "+document.form.dsltmp_qis_pppoe_username.value+"/"+document.form.dsltmp_qis_pppoe_passwd.value); 222 return false; 223 } 224 if(document.form.dsltmp_qis_pppoe_passwd.value != document.form.confirm_cfg_pppoe_passwd.value){ 225 alert("<#File_Pop_content_alert_desc7#>"); 226 document.form.dsltmp_qis_pppoe_passwd.focus(); 227 return false; 228 } 229 return true; 230} 231 232function submitForm(){ 233 if(validForm()){ 234 document.form.next_page.value = "/qis/QIS_wireless.htm"; 235 document.form.submit(); 236 } 237} 238 239function gotoHome() { 240 if (w_Setting == "0") { 241 alert("<#QIS_recommand_encryption#>"); 242 location.href = '/qis/QIS_wireless.htm'; 243 } 244 else { 245 parent.location.href = '/index.asp'; 246 } 247} 248 249</script> 250</head> 251 252<body onLoad="QKfinish_load_body();" > 253<form method="post" name="form" action="/start_apply.htm" target=""> 254<input type="hidden" name="prev_page" value="/qis/QIS_manual_setting.htm"> 255<input type="hidden" name="current_page" value="/qis/QIS_ppp_cfg_tmp.htm"> 256<input type="hidden" name="next_page" value=""> 257<input type="hidden" name="action_mode" value="apply"> 258<input type="hidden" name="action_script" value=""> 259<input type="hidden" name="action_wait" value=""> 260<input type="hidden" name="dsltmp_qis_vpi" value="<% nvram_get("dsltmp_cfg_vpi"); %>"> 261<input type="hidden" name="dsltmp_qis_vci" value="<% nvram_get("dsltmp_cfg_vci"); %>"> 262<input type="hidden" name="dsltmp_qis_proto" value=""> 263<input type="hidden" name="dsltmp_qis_encap" value="<% nvram_get("dsltmp_cfg_encap"); %>"> 264<input type="hidden" name="dsltmp_qis_pppoe_dial_on_demand" value="0"> 265<input type="hidden" name="dsltmp_qis_pppoe_idletime" value="0"> 266<input type="hidden" name="dsltmp_qis_pppoe_mtu" value="1492"> 267<input type="hidden" name="dsltmp_qis_pppoe_mru" value="1492"> 268<input type="hidden" name="dsltmp_qis_pppoe_service" value=""> 269<input type="hidden" name="dsltmp_qis_pppoe_options" value=""> 270<input type="hidden" name="dsltmp_qis_DHCPClient" value="1"> 271<input type="hidden" name="dsltmp_qis_ipaddr" value="0.0.0.0"> 272<input type="hidden" name="dsltmp_qis_netmask" value="0.0.0.0"> 273<input type="hidden" name="dsltmp_qis_gateway" value="0.0.0.0"> 274<input type="hidden" name="dsltmp_qis_dnsenable" value="1"> 275<input type="hidden" name="dsltmp_qis_dns1" value=""> 276<input type="hidden" name="dsltmp_qis_dns2" value=""> 277<input type="hidden" name="dsltmp_qis_svc_cat" value="0"> 278<input type="hidden" name="dsltmp_qis_pcr" value="0"> 279<input type="hidden" name="dsltmp_qis_scr" value="0"> 280<input type="hidden" name="dsltmp_qis_mbs" value="0"> 281<input type="hidden" name="dsltmp_qis_dsl_pvc_set" value="1"> 282<input type="hidden" name="dsltmp_qis_pppoe_relay" value="0"> 283 284<!-- dsltmp_qis_hwaddr is in the HTML code --> 285<div class="QISmain"> 286 <table width="730px"> 287 <tr> 288 <td align="left"> 289 <span class="description_down"><#Manual_Setting_Title#></span> 290 </td> 291 </tr> 292 </table> 293 <div style="margin-left:5px;margin-top:10px;margin-bottom:10px"><img style="width: 700px; height: 2px;" src="/images/New_ui/export/line_export.png"></div> 294 <br/> 295 296<table id="tblsetting_1" class="QISform" width="400" border=0 align="center" cellpadding="5" cellspacing="0"> 297 <tr> 298 <td> 299 <div id="atm_info" style="display:none;"> 300 <#Transfer_Mode#>: <span class="cfg_val">ADSL WAN (ATM)</span>, <#Layer3Forwarding_x_ConnectionType_itemname#>: <span class="cfg_val"><script>document.write(prctl_str);</script></span>, VPI/VCI: <span class="cfg_val"><% nvram_get("dsltmp_cfg_vpi"); %>/<% nvram_get("dsltmp_cfg_vci"); %>, <script>document.write(encap_str);</script></span><script>if(vlanid_val.length > 0){document.write(", <#WANVLANIDText#>: <span class=\"cfg_val\">" + vlanid_val + "</span>")}</script><br> 301 <b><script>document.write("<br>"+iptv_atm_pvc_str);</script></b> 302 </div> 303 <div id="ptm_info" style="display:none;"> 304 <#Transfer_Mode#>: <span class="cfg_val">VDSL WAN (PTM)</span>, <#Layer3Forwarding_x_ConnectionType_itemname#>: <span class="cfg_val"><script>document.write(prctl_str);</script></span>, <#WANVLANIDText#>: <span class="cfg_val"><script>document.write(vlanid_val);</script></span><br> 305 <b><script>document.write("<br>"+iptv_ptm_pvc_str);</script></b> 306 </div> 307 <#PPP_cfg_usersel_desc#> 308 </td> 309 </tr> 310 </table> 311 312<div id="DE_ISP_note" style="display:none;margin-top:10px;"> 313 <span class="isp_note_title">Notice:</span> Bitte geben Sie diese Zugangsdaten in folgendem Format ein.</span> 314 <div class="isp_note" id="Deutsche_Telekom" style="display:none;"> <!--ATM: 231 & PTM: 66, 67 --> 315 Für Telekom ADSL und VDSL Anschlüsse<br> 316 Bei einer 12-stelligen Zugangsnummer (Neue Zugangsdaten):<br> 317 <div class="account_format">Anschlusskennung<span class="num1">Zugangsnummer</span><span class="num2">Mitbenutzernummer</span>@t-online.de</div><br> 318 Bei einer Zugangsnummer mit weniger als 12 Stellen (Alte Zugangsdaten):<br> 319 <div class="account_format">Anschlusskennung<span class="num1">Zugangsnummer</span>#<span class="num2">Mitbenutzernummer</span>@t-online.de</div> 320 </div> 321 <div class="isp_note" id="Deutsche_1n1_ATM" style="display:none;"> <!-- ATM: 219 --> 322 Bei einem 1&1 ADSL Anschluss 323 <div class="account_format">1und1/<span class="num1">benutzername</span>@online.de (1&1 Internetzugangs-Kennung)</div> 324 </div> 325 <div class="isp_note" id="Deutsche_1n1_PTM" style="display:none;"> <!-- PTM: 62 --> 326 Bei einem 1&1 VDSL Anschluss (basierend auf Telekom Technik) - Bitte ein „H“ voranstellen: 327 <div class="account_format">H1und1/<span class="num1">benutzername</span>@online.de (1&1 Internetzugangs-Kennung)</div> 328 </div> 329 <div class="isp_note" id="Deutsche_NetCologne" style="display:none;"> <!-- ATM: 246, 247 --> 330 <div class="account_format">nc-<span class="num1">username</span>@netcologne.de</div> 331 </div> 332 </div> 333 334<table id="tblsetting_2" class="QISform" width="400" border="0" align="center" cellpadding="3" cellspacing="0" style="margin-top:10px;"> 335 <tr> 336 <th width="120"><#PPPConnection_UserName_itemname#></th> 337 <td> 338 <input type="text" name="dsltmp_qis_pppoe_username" class="input_32_table" value="" tabindex="1" maxlength="64" autocomplete="off" autocorrect="off" autocapitalize="off" autocapitalize="off"> 339 </td> 340 </tr> 341 <tr> 342 <th width="120"><#PPPConnection_Password_itemname#></th> 343 <td> 344 <input type="password" name="dsltmp_qis_pppoe_passwd" class="input_32_table" value="" tabindex="2" maxlength="32" autocomplete="off" autocorrect="off" autocapitalize="off" autocapitalize="off"> 345 </td> 346 </tr> 347 <tr> 348 <th width="120"><#PASS_retype#></th> 349 <td> 350 <input type="password" name="confirm_cfg_pppoe_passwd" class="input_32_table" value="" tabindex="3" maxlength="32" autocomplete="off" autocorrect="off" autocapitalize="off" autocapitalize="off"> 351 </td> 352 </tr> 353 <tr> 354 <th width="120"><span id="mac_addr1" style="display:none"><#PPPConnection_x_MacAddressForISP_itemname#></span></th> 355 <td> 356 <span id="mac_addr2" style="display:none"> 357 <input type="text" name="dsltmp_qis_hwaddr" class="input_20_table" value="" tabindex="4" maxlength="17" autocorrect="off" autocapitalize="off"> <#BOP_isp_mac_item#> example: 00:11:22:33:44:55 358 </span> 359 </td> 360 </tr> 361</table> 362 <div class="apply_gen" style="margin-top:30px"> 363 <input type="button" id="prevButton" value="<#Manual_Setting_btn#>" tabindex="6" onclick="gotoprev(document.form);" class="button_gen" > 364<!-- 365 <input type="button" id="nextButton" value="Ethernet WAN" onclick="redirect_page('internet_type');" class="button_gen" > 366--> 367 <input type="button" id="nextButton" value="<#CTL_next#>" tabindex="5" onclick="submitForm();" class="button_gen"> 368 </div> 369 370</div> 371</form> 372</body> 373</html> 374