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<html> 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 7<meta HTTP-EQUIV="Expires" CONTENT="-1"> 8<title>ASUS Wireless Router <#Web_Title#> - Quickly Internet Setup</title> 9 10<link rel="stylesheet" type="text/css" href="qis/qis_style.css"> 11<link rel="stylesheet" type="text/css" href="form_style.css"> 12<link rel="stylesheet" type="text/css" href="other.css"> 13<style type="text/css"> 14body { 15 background-image: url(images/bg.gif); 16} 17</style> 18 19<script type="text/JavaScript" src="/state.js"></script> 20<script type="text/javascript" src="/popup.js"></script> 21<script type="text/javascript" src="/detect.js"></script> 22<script> 23<% login_state_hook(); %> 24var wireless = [<% wl_auth_list(); %>]; // [[MAC, associated, authorized], ...] 25 26var arg_wan_nat_x = '<% get_parameter("wan_nat_x"); %>'; 27var arg_wan_proto = '<% get_parameter("wan_proto"); %>'; 28var arg_wan_route_x = '<% get_parameter("wan_route_x"); %>'; 29var arg_prev_page = '<% get_parameter("prev_page"); %>'; 30 31var reduced_internet_type = "disable"; 32var targeturl = "/index.htm"; 33var firmver = '<% nvram_get_x("", "firmver"); %>'; 34var isdirect2Internet = false; 35 36var failed_connection_reason = ""; 37 38function QIS_load_body(){ 39 var showCase; 40 showCase = $("flag").value; 41 42 get_args(); 43 44 winW_H(); 45 46 with(document.redirectForm){ 47 if(showCase == "remind"){ 48 action = "/qis/QIS_internet_success.htm"; 49 submit(); 50 } 51 else if(showCase == "detect"){ 52 action = "/qis/QIS_detect.htm"; 53 submit(); 54 } 55 else if(showCase == "auto_way_static"){ 56 //else if(showCase.indexOf("auto_way_static") == 0){ 57 action = "/qis/QIS_internet_ip.htm"; 58 flag.value = showCase; 59 prev_page.value = arg_prev_page; 60 submit(); 61 } 62 else if(showCase == "auto_way"){ 63 action = "/qis/QIS_detect.htm"; 64 //action = "/qis/QIS_internet_ip.htm"; 65 flag.value = showCase; 66 submit(); 67 } 68 else if(showCase == "verify_detect"){ 69 action = "/qis/QIS_detect.htm"; 70 flag.value = showCase; 71 submit(); 72 } 73 else if(showCase == "router_mode"){ 74 action = "/qis/QIS_internet_type.htm"; 75 submit(); 76 } 77 else if(showCase == "bridge_mode"){ 78 action = "/qis/QIS_wireless.htm"; 79 submit(); 80 } 81 else if(showCase == "wireless"){ 82 action = "/qis/QIS_wireless.htm"; 83 submit(); 84 } 85 else if(showCase == "pppoe"){ 86 document.QKform.wan_proto.value = "pppoe"; 87 88 action = "/qis/QIS_internet_account.htm"; 89 submit(); 90 } 91 else if(showCase == "dns"){ 92 document.QKform.wan_proto.value = "pptp"; 93 94 action = "/qis/QIS_internet_ip.htm"; 95 submit(); 96 } 97 else if(showCase == "account"){ 98 document.QKform.wan_proto.value = "pptp"; 99 100 action = "/qis/QIS_internet_account.htm"; 101 submit(); 102 } 103 else if(showCase == "success"){ 104 action = "/qis/QIS_internet_success.htm"; 105 submit(); 106 } 107 else if(showCase == "finish"){ 108 action = "/qis/QIS_finish.htm"; 109 submit(); 110 } 111 else{ 112 action = "/qis/QIS_internet_type.htm"; 113 submit(); 114 } 115 } 116} 117 118function get_args(){ 119 if(arg_wan_proto.length > 0) 120 document.QKform.wan_proto.value = arg_wan_proto; 121 122 if(arg_wan_nat_x.length > 0) 123 document.QKform.wan_nat_x.value = arg_wan_nat_x; 124 125 if(arg_wan_route_x.length > 0) 126 document.QKform.wan_route_x.value = arg_wan_route_x; 127 128 if(arg_prev_page.length > 0) 129 document.QKform.prev_page.value = arg_prev_page; 130} 131 132function getOperationMode(){ 133 if(document.QKform.wan_nat_x.value == "1") 134 return "gateway"; 135 else if(document.QKform.wan_route_x.value == "IP_Routed") 136 return "router"; 137 else 138 return "ap"; 139} 140 141function set_internet_type_reducedmode(mode){ 142 reduced_internet_type = mode; 143} 144 145function get_internet_type_reducedmode(mode){ 146 return reduced_internet_type; 147} 148 149function set_next_step(topage){ 150 targeturl = topage; 151} 152 153function get_next_step(){ 154 return targeturl; 155} 156 157function set_failed_connection_reason(flag){ 158 failed_connection_reason = flag; 159} 160 161function get_failed_connection_reason(){ 162 return failed_connection_reason; 163} 164 165function gotoFinish(forward_page, page_flag){ 166 with(document.redirectForm){ 167 action = forward_page; 168 target = ""; 169 flag.value = page_flag; 170 171 submit(); 172 } 173} 174</script> 175</head> 176 177<body class="LevelQIS" onload="QIS_load_body();"> 178<noscript> 179 <div class="popup_bg" style="display:block"> 180 <div style="margin:200px auto; width:300px; background-color:#006699; color:#FFFFFF; line-height:150%; border:3px solid #FFF; padding:5px;"><#not_support_script#></p></div> 181 </div> 182</noscript> 183 184<div id="Loading" class="popup_bg"> 185 <table cellpadding="5" cellspacing="0" id="loadingBlock" class="loadingBlock" align="center"> 186 <tr> 187 <td width="20%" height="80" align="center"><img src="/images/loading.gif"></td> 188 <td><span id="proceeding_main_txt"><#Main_alert_proceeding_desc4#></span><span id="proceeding_txt" style="color:#FFFFCC;"></span></td> 189 </tr> 190 </table> 191<!--[if lte IE 6.5]><iframe class="hackiframe"></iframe><![endif]--> 192</div> 193 194<div id="hiddenMask" class="popup_bg"> 195 <table cellpadding="5" cellspacing="0" id="dr_sweet_advise" class="dr_sweet_advise" align="center"> 196 <tr> 197 <td> 198 <div class="drword" id="drword"><#Main_alert_proceeding_desc4#> <#Main_alert_proceeding_desc1#>... 199 <br/> 200 <br/> 201 </div> 202 <div class="drImg"><img src="images/DrsurfImg.gif"></div> 203 <div style="height:70px; "></div> 204 </td> 205 </tr> 206 </table> 207<!--[if lte IE 6.5]><iframe class="hackiframe"></iframe><![endif]--> 208</div> 209 210<!--For content in ifame--> 211<table width="705" border="0" align="center" cellpadding="0" cellspacing="0"> 212 <tr> 213 <td colspan="3" height="55" valign="top" background="images/qis_title.gif"><div class="modelName" style="margin:28px 0px 0px 180px;"><#Web_Title#></div></td> 214 </tr> 215</table> 216<table width="705" border="0" align="center" cellpadding="0" cellspacing="0"> 217 <tr> 218 <td width="187" height="350" background="images/qis_banner.gif"> </td> 219 <td width="510" height="380" valign="top" > 220 <iframe name="contentM" id="contentM" scrolling="no" width="100%" height="100%" frameborder="0"></iframe></td> 221 <td width="8" height="380"valign="top" background="images/qis_right.gif" ></td> 222 </tr> 223 <tr> 224 <td height="12" colspan="3" style="background: url('images/qis_bottom.gif') no-repeat"> </td> 225 </tr> 226</table> 227</div> 228 229<form method="post" name="QKform"> 230 <input type="hidden" name="flag" id="flag" value='<% get_parameter("flag"); %>'> 231 232 <input type="hidden" name="prev_page" value=""> 233 <input type="hidden" name="current_page" value="/QIS_wizard.htm"> 234 <input type="hidden" name="next_page" value=""> 235 236 <input type="hidden" name="sid_list" value=""> 237 <input type="hidden" name="action_mode" value=" Apply "> 238 <input type="hidden" name="action_script" value="reboot"> 239 <input type="hidden" name="modified" value=""> 240 <!-- system --> 241 <input type="hidden" name="machine_name" value="<% nvram_get_x("", "machine_name"); %>"> 242 <input type="hidden" name="time_zone" value="<% nvram_get_x("", "time_zone"); %>"> 243 <input type="hidden" name="lan_ipaddr" value="<% nvram_get_x("", "lan_ipaddr"); %>"> 244 <input type="hidden" name="lan_netmask" value="<% nvram_get_x("", "lan_netmask"); %>"> 245 <input type="hidden" name="wan_nat_x" value="<% nvram_get_x("", "wan_nat_x"); %>"> 246 <input type="hidden" name="wan_route_x" value="<% nvram_get_x("", "wan_route_x"); %>"> 247 <input type="hidden" name="http_username" value="<% nvram_get_x("", "http_username"); %>"> 248 <input type="hidden" name="http_passwd" value="<% nvram_get_x("", "http_passwd"); %>"> 249 <!-- detect --> 250 <input type="hidden" name="wan_proto" value="<% nvram_get_x("", "wan_proto"); %>"> 251 <!-- internet IP --> 252 <input type="hidden" name="x_DHCPClient" value="<% nvram_get_x("", "x_DHCPClient"); %>"> 253 <input type="hidden" name="wan_ipaddr" value="<% nvram_get_x("", "wan_ipaddr"); %>"> 254 <input type="hidden" name="wan_netmask" value="<% nvram_get_x("", "wan_netmask"); %>"> 255 <input type="hidden" name="wan_gateway" value="<% nvram_get_x("", "wan_gateway"); %>"> 256 <input type="hidden" name="vpn_enable" value=""> 257 <input type="hidden" name="wan_heartbeat_x" value="<% nvram_get_x("", "wan_heartbeat_x"); %>"> 258 <input type="hidden" name="wan_dnsenable_x" value="<% nvram_get_x("", "wan_dnsenable_x"); %>"> 259 <input type="hidden" name="wan_dns1_x" value="<% nvram_get_x("", "wan_dns1_x"); %>"> 260 <input type="hidden" name="wan_dns2_x" value="<% nvram_get_x("", "wan_dns2_x"); %>"> 261 <!-- internet ISP --> 262 <input type="hidden" name="wan_hostname" value="<% nvram_get_x("", "wan_hostname"); %>"> 263 <input type="hidden" name="wan_hwaddr_x" value="<% nvram_get_x("", "wan_hwaddr_x"); %>"> 264 <!-- internet Account --> 265 <input type="hidden" name="wan_pppoe_username" value="<% nvram_get_x("", "wan_pppoe_username"); %>"> 266 <input type="hidden" name="wan_pppoe_passwd" value="<% nvram_get_x("", "wan_pppoe_passwd"); %>"> 267 <!-- AP LAN --> 268 <input type="hidden" name="lan_proto_x" value="<% nvram_get_x("", "lan_proto_x"); %>"> 269 <input type="hidden" name="lan_gateway" value="<% nvram_get_x("", "lan_gateway"); %>"> 270</form> 271 272<form method="post" name="redirectForm" action="" target="contentM"> 273<input type="hidden" name="flag" value=""> 274<input type="hidden" name="prev_page" value=""> 275</form> 276</body> 277</html> 278