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<style>
9span{
10	border:0px solid #FFFFFF;
11	color:#FFFFFF;
12	font-size:14px;
13	font-family:Arial, Helvetica, sans-serif;
14	/*width:27px;*/
15	text-align:right;
16	margin:0px auto;
17	ime-mode:disabled;
18}
19</style>
20<script type="text/javascript" src="/qis/QISMobilePlugin.js"></script>
21<script>
22var wantype = '';
23var wanstate = -1;
24var wansbstate = -1;
25var wanauxstate = -1;
26<% wanlink(); %>
27<% wanstate(); %>
28
29function QKfinish_load_body(){
30	parent.document.title = "<#Web_Title#> - <#QKSet_all_title#>";
31
32	if(parent.ISMOBILE){
33		parent.set_step("internet_type");
34		hideObjs();
35		document.getElementById("QISmain").style.display = "none";
36		document.getElementById("QISmain_m").style.display = "";		
37	}
38	else{
39		parent.set_step("t3");
40		wantype = wanlink_type();
41	
42		if( wansbstate == 2 && wantype != "dhcp" && wantype != "static"){
43			document.getElementById("FailReason").innerHTML = "<#qis_fail_desc1#>";
44			document.getElementById("AuthFail").style.display = "";
45		}
46		else if(wansbstate == 1 && wantype != "dhcp" && wantype != "static"){
47			document.getElementById("FailReason").innerHTML = "<#qis_fail_desc9#>";
48			document.getElementById("PPPConnFail").style.display = "";
49	
50			if(wantype == "pppoe")
51				document.getElementById("wanproto").innerHTML = "PPPoE";
52			else if(wantype == "pptp")
53				document.getElementById("wanproto").innerHTML = "PPTP";
54			else if(wantype == "l2tp")
55				document.getElementById("wanproto").innerHTML = "L2TP";
56			else
57				document.getElementById("wanproto").innerHTML = "<#qis_fail_desc8#>";
58		}
59		else{
60			document.getElementById("FailReason").innerHTML = "<#qis_fail_desc7#>";
61			document.getElementById("ConnFail").style.display = "";
62		}
63	}
64}
65
66function redirect_page(redirect_flag){
67	document.redirectForm.action = "/qis/QIS_"+redirect_flag+".htm";
68	document.redirectForm.submit();
69}
70
71function goWireless(){
72	location.href = 'QIS_wireless.htm';
73}
74</script>
75</head>
76
77<body onLoad="QKfinish_load_body();" >
78<form method="post" name="redirectForm" action="" target="">
79<input type="hidden" name="prev_page" value="">
80<input type="hidden" name="current_page" value="/qis/QIS_fail.htm">
81<input type="hidden" name="next_page" value="">
82<input type="hidden" name="action_mode" value="">
83<input type="hidden" name="action_script" value="">
84<input type="hidden" name="action_wait" value="">
85
86<div class="QISmain" id="QISmain">
87	<div class="formfonttitle" style="padding:0 0 0 10;" id="FailReason"><#qis_fail_desc7#></div>
88	<div style="margin-left:5px;margin-top:10px;margin-bottom:10px" id="splitLine"><img style="width: 700px; height: 2px;" src="/images/New_ui/export/line_export.png"></div>
89	<br/>
90	
91	<div id="ConnFail" style="display:none;">
92		<p class="QISGeneralFont" style="line-height:25px"><#qis_fail_desc5#></p>
93		<p class='QISGeneralFont' style="line-height:25px"><#qis_fail_desc4#></p>
94		<p class='QISGeneralFont' style="line-height:25px"><#qis_fail_desc3#></p>
95	
96		<div class="apply_gen" style="margin-top:30px;">
97			<div style="text-align:center">
98				<input type="button" id="nextButton" value="<#QIS_type_title#>" onclick="redirect_page('internet_type');" class="button_gen_long" style="white-space:normal;">
99				<input type="button" id="nextButton" value="<#QKSet_wireless_webtitle#>" onclick="goWireless();" class="button_gen_long" style="white-space:normal;">
100			</div>
101		</div>
102	</div>
103	
104	<div id="AuthFail" style="display:none;">
105		<p class="QISGeneralFont"><#qis_fail_desc2#></p>
106		<p class='QISGeneralFont'><#qis_fail_desc4#></p>		
107		<p class='QISGeneralFont'><#qis_fail_desc3#></p>
108		
109	
110		<div class="apply_gen" style="margin-top:30px">
111			<input type="button" id="nextButton" value="<#QIS_type_title#>" onclick="redirect_page('internet_type');" class="button_gen_long" >
112			<input type="button" id="nextButton" value="<#QKSet_wireless_webtitle#>" onclick="goWireless();" class="button_gen_long">
113		</div>
114	</div>
115	
116	<div id="PPPConnFail" style="display:none;">
117		<p class="QISGeneralFont"><#qis_fail_desc6#></p>
118		<table class="QISform_finish" width="400" border=0 align="center" cellpadding="5" cellspacing="0">
119			<tr>
120		  <th width="180"><span><#Connectiontype#></span></th>
121		  <td class="QISformtd"><span id="wanproto"></span></td>
122			</tr>
123	
124			<tr>
125		  <th width="180"><span><#PPPConnection_UserName_itemname#></span></th>
126		  <td class="QISformtd"><span><% nvram_get("wan_pppoe_username"); %></span></td>
127			</tr>
128		
129			<tr>
130		  <th width="180"><span><#PPPConnection_Password_itemname#></span></th>
131		  <td class="QISformtd"><span><% nvram_get("wan_pppoe_passwd"); %></span></td>
132			</tr>
133		
134			<tr>
135		  <th width="180"><span>WAN IP</span></th>
136		  <td class="QISformtd"><span><% nvram_get("wan_ipaddr_x"); %></span></td>
137			</tr>
138		
139			<tr>
140		  <th width="180"><span>LAN IP</span></th>
141		  <td class="QISformtd"><span><% nvram_get("lan_ipaddr"); %></span></td>
142			</tr>
143		
144			<tr>
145		  <th width="180"><span><#MAC_Address#></span></th>
146		  <td class="QISformtd"><span><% nvram_get("lan_hwaddr"); %></span></td>
147			</tr>
148		</table>
149		<br>
150		<p class='QISGeneralFont'><#qis_fail_desc4#></p>
151		<p class='QISGeneralFont'><#qis_fail_desc3#></p>
152	
153		<div class="apply_gen" style="margin-top:30px">
154			<input type="button" id="nextButton" value="<#QIS_type_title#>" onclick="redirect_page('internet_type');" class="button_gen_long" >
155			<input type="button" id="nextButton" value="<#QKSet_wireless_webtitle#>" onclick="goWireless();" class="button_gen_long">
156		</div>
157	</div>
158</div>
159
160<div style="display:none;" id="QISmain_m">
161	<div>
162		<#qis_fail_desc5#>
163		<br>
164		<#qis_fail_desc4#>
165	</div>
166	<br>
167	<fieldset class="theFieldset">
168		<div class="row">
169			<a class="iuiA" onclick="redirect_page('internet_type');"><#QIS_type_title#></a>
170		</div>
171		<div class="row_end" id="siteSurvey">
172			<a class="iuiA" onclick="goWireless();"><#QKSet_wireless_webtitle#></a>
173		</div>
174	</fieldset>
175</div>
176
177</form>
178</body>
179</html>
180