1<html xmlns="http://www.w3.org/1999/xhtml"> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 5<meta HTTP-EQUIV="Expires" CONTENT="-1"> 6<link rel="stylesheet" type="text/css" href="../form_style.css"> 7<link rel="stylesheet" type="text/css" href="qis_style.css"> 8 9<script type="text/JavaScript" src="/state.js"></script> 10<script> 11var flag = '<% get_parameter("flag"); %>'; 12if(parent.get_failed_connection_reason().length > 0) 13 flag = parent.get_failed_connection_reason(); 14var wsc_config_state = '<% nvram_get_x("WLANConfig11b", "wsc_config_state"); %>'; 15var orig_x_Setting = '<% nvram_get_x("General", "x_Setting"); %>'; 16 17function QKfinish_load_body(){ 18 parent.document.title = "ASUS Wireless Router <#Web_Title#>"; 19 hideLinkTag(); 20 /*parent.showLoading(0, "waiting"); 21 if(orig_x_Setting != "1"){ 22 set_x_Setting("1", "/qis/QIS_internet_success.htm"); 23 return; 24 }//*/ 25 26 if(wsc_config_state != 1) 27 $("no_security_hint").style.display = "block"; 28 else 29 $("no_security_hint").style.display = "none"; 30 31 if(this.flag.length > 0){ 32 $("fail_to_connect").style.display = ""; 33 $("succeed_to_connect").style.display = "none"; 34 35 show_fail_response(); 36 37 showtext($("title_item"), "<#QKSet_Internet_Setup_fail#>"); 38 } 39 else{ 40 $("fail_to_connect").style.display = "none"; 41 $("succeed_to_connect").style.display = ""; 42 $("li_of_wireless").style.display = ""; 43 44 showtext($("title_item"), "<#QKSet_finish_desc#>"); 45 } 46 47 //parent.hideLoading("noDrSurf"); 48} 49 50function show_fail_response(){ 51 if(this.flag.indexOf("dhcp_wrong_") >= 0){ 52 $("link_id").onclick = function(){ 53 gotoDetect(); 54 }; 55 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method1#>"); 56 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason1#>"); 57 } 58 else if(this.flag.indexOf("pppoe_wrong_") >= 0){ 59 if(this.flag == "pppoe_wrong_input"){ 60 $("link_id").onclick = function(){ 61 gotoPPPoE(); 62 }; 63 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method2#>"); 64 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason2#>"); 65 } 66 else{ 67 $("link_id").onclick = function(){ 68 gotoDetect(); 69 }; 70 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method1#>"); 71 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason3#>"); 72 } 73 } 74 else if(this.flag.indexOf("pptp_wrong_") >= 0){ 75 $("link_id").onclick = function(){ 76 gotoDetect(); 77 }; 78 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method1#>"); 79 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason4#>"); 80 } 81 else if(this.flag.indexOf("l2tp_wrong_") >= 0){ 82 $("link_id").onclick = function(){ 83 gotoDetect(); 84 }; 85 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method1#>"); 86 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason5#>"); 87 } 88 else if(this.flag.indexOf("static_wrong_") >= 0){ 89 $("link_id").onclick = function(){ 90 gotoDetect(); 91 }; 92 showtext($("link_str"), "<#QKSet_Internet_Setup_fail_method1#>"); 93 showtext($("link_reason"), "<#QKSet_Internet_Setup_fail_reason6#>"); 94 } 95} 96 97function gotoInternet(){ 98 //set_x_Setting("1", "/qis/QIS_internet_success.htm"); 99 100 /*if(navigator.appName.indexOf("Microsoft") >= 0) 101 window.open("about:home");//*/ 102 103 parent.location.href = "/gotoHomePage.htm"; 104} 105 106function gotoAdvSetting(){ 107 //set_x_Setting("1", "/qis/QIS_internet_success.htm"); 108 109 parent.location.href = "/Advanced_WAN_Content.asp" 110} 111 112function gotoWireless(){ 113 parent.set_failed_connection_reason(flag); 114 115 with(document.resultForm){ 116 action = "/qis/QIS_wireless.htm"; 117 target = ""; 118 119 $("flag").value = ""; 120 121 submit(); 122 } 123} 124 125function gotoDetect(){ 126 with(document.resultForm){ 127 action = "/QIS_wizard.htm"; 128 target = "_parent"; 129 130 $("flag").value = "detect"; 131 132 submit(); 133 } 134} 135 136function gotoPPPoE(){ 137 with(document.resultForm){ 138 action = "/QIS_wizard.htm"; 139 target = "_parent"; 140 141 $("flag").value = "pppoe"; 142 143 submit(); 144 } 145} 146 147/*function set_x_Setting(set, page){ 148 with(document.resultForm){ 149 action = "/start_apply.htm"; 150 target = ""; 151 152 current_page.value = ""; 153 next_page.value = "QIS_wizard.htm"; 154 action_mode.value = " Apply "; 155 sid_list.value = "General;"; 156 $("x_Setting").disabled = false; 157 x_Setting.value = set; 158 159 $("flag").value = "unset_default"; 160 submit(); 161 } 162}//*/ 163</script> 164</head> 165 166<body onLoad="QKfinish_load_body();"> 167<div class="QISmain"> 168<div class="description_down" id="title_item"><#QKSet_finish_desc#></div> 169<br/><br/> 170<table id="tblsetting_1" class="QISform" width="400" border=0 align="center" cellpadding="5" cellspacing="0"> 171 <tr> 172 <td> 173 <ol> 174 <li id="fail_to_connect" style="display:none;"> 175 <a id="link_id" href="javascript:;"><span id="link_str"></span></a>: <span id="link_reason"></span> 176 </li> 177 <li id="succeed_to_connect" style="display:none;"> 178 <a href="javascript:gotoInternet();"><#QKSet_finish_moveto1#></a> 179 <span id="no_security_hint" style="display:none;" class="hint_word"><#QKSet_finish_moveto3#></span> 180 </li> 181 <li id="li_of_wireless" style="display:none;"> 182 <a href="javascript:gotoWireless();"><#QKSet_finish_moveto5#></a>: 183 <#QKSet_finish_moveto6#> 184 </li> 185 <li style="display:;"> 186 <!--a href="/Advanced_WAN_Content.asp" target="_parent"><#QKSet_finish_moveto7#></a--> 187 <a href="javascript:gotoAdvSetting();"><#QKSet_finish_moveto7#></a>: 188 <#QKSet_finish_moveto8#> 189 </li> 190 </ol> 191 </td> 192 </tr> 193</table> 194</div> 195 196<br> 197<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe> 198<form method="post" name="resultForm" action=""> 199<input type="hidden" name="current_page" value=""> 200<input type="hidden" name="next_page" value=""> 201<input type="hidden" name="action_mode" value=""> 202<input type="hidden" name="sid_list" value=""> 203<!--input type="hidden" name="x_Setting" id="x_Setting" value="" disabled--> 204 205<input type="hidden" name="flag" id="flag" value=""> 206</form> 207 208<div class="QISfoot"></div> 209</body> 210