• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/www/sysdep/DSL-N55U-B/www/qis/
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<style>
12span{
13	border:0px solid #FFFFFF;
14	color:#FFFFFF;
15	font-size:14px;
16	font-family:Arial, Helvetica, sans-serif;
17	/*width:27px;*/
18	text-align:right;
19	margin:0px auto;
20	ime-mode:disabled;
21}
22</style>
23<script>
24var w_Setting = "<% nvram_get("w_Setting"); %>";
25var vpi_val = "<% nvram_get("dsltmp_cfg_vpi"); %>";
26var vci_val = "<% nvram_get("dsltmp_cfg_vci"); %>";
27var encap_val = "<% nvram_get("dsltmp_cfg_encap"); %>";
28var vlanid_val = "<% nvram_get("dsltmp_cfg_vid"); %>";
29var ispname_str = "<% nvram_get("dsltmp_cfg_ispname"); %>";
30var country_str = "<% nvram_get("dsltmp_cfg_country"); %>";
31var transfer_mode = "<% nvram_get("dsltmp_transmode"); %>";
32var iptv_atm_pvc_str = "";
33var iptv_ptm_pvc_str = "";
34var dsltmp_cfg_iptv_pvclist = decodeURIComponent('<%nvram_char_to_ascii("","dsltmp_cfg_iptv_pvclist");%>');
35
36var encap_str = "LLC";
37if (encap_val == "1") encap_str = "VC-Mux";
38
39var iptv_num_pvc_val = "<% nvram_get("dsltmp_cfg_iptv_num_pvc"); %>";
40
41//udpate iptv information
42if (iptv_num_pvc_val != "0" && iptv_num_pvc_val != "") {
43	var dsltmp_cfg_iptv_pvclist_row;
44	var dsltmp_cfg_iptv_pvclist_col;
45	var i, j;
46
47	iptv_atm_pvc_str = iptv_num_pvc_val + " IPTV PVC(s)";
48	iptv_ptm_pvc_str = iptv_num_pvc_val + " IPTV service(s)";
49
50	//<vpi>vci>proto>encap>vlanid
51	if(dsltmp_cfg_iptv_pvclist.charAt(0) == "<")	//rempve the 1st "<"
52		dsltmp_cfg_iptv_pvclist = dsltmp_cfg_iptv_pvclist.substr(1,dsltmp_cfg_iptv_pvclist.length);
53	dsltmp_cfg_iptv_pvclist_row = dsltmp_cfg_iptv_pvclist.split('<');
54
55	iptv_atm_pvc_str += ": ";
56	iptv_ptm_pvc_str += ": ";
57	for(i=0; i<dsltmp_cfg_iptv_pvclist_row.length; i++) {
58		if(i > 0) {
59			iptv_atm_pvc_str += " + ";
60			iptv_ptm_pvc_str += " + ";
61		}
62		dsltmp_cfg_iptv_pvclist_col = dsltmp_cfg_iptv_pvclist_row[i].split('>');
63		for(j=0; j<dsltmp_cfg_iptv_pvclist_col.length; j++){
64			switch(j) {
65				case 0:	//vpi
66					iptv_atm_pvc_str += "<span class='cfg_val'>" + dsltmp_cfg_iptv_pvclist_col[j] + "/";
67					break;
68				case 1:	//vci
69					iptv_atm_pvc_str += dsltmp_cfg_iptv_pvclist_col[j] + ",";
70					break;
71				case 2:	//proto
72					iptv_ptm_pvc_str += "<span class='cfg_val'>";
73					if(dsltmp_cfg_iptv_pvclist_col[j] == 3) {
74						iptv_atm_pvc_str += "Bridged, ";
75						iptv_ptm_pvc_str += "Bridged, ";
76					}
77					else {
78						iptv_atm_pvc_str += ", ";
79						iptv_ptm_pvc_str += "Bridged, ";
80					}
81					break;
82				case 3:	//encap
83					if(dsltmp_cfg_iptv_pvclist_col[j] == 1)
84						iptv_atm_pvc_str += "VC-Mux";
85					else
86						iptv_atm_pvc_str += "LLC";
87					break;
88				case 4:	//vlan id
89					if(dsltmp_cfg_iptv_pvclist_col[j] != "") {
90						iptv_atm_pvc_str += "VLAN ID " + dsltmp_cfg_iptv_pvclist_col[j];
91						iptv_ptm_pvc_str += "VLAN ID " + dsltmp_cfg_iptv_pvclist_col[j];
92					}
93					iptv_atm_pvc_str += "</span>";
94					iptv_ptm_pvc_str += "</span>";
95					break;
96			}
97		}
98	}
99}
100
101function QKfinish_load_body(){
102	parent.document.title = "<#Web_Title#> - <#QKSet_all_title#>";
103	parent.set_step("t2");
104        if(transfer_mode == "atm"){
105		document.getElementById("atm_info").style.display = "";		
106                document.form.prev_page.value = "/qis/QIS_manual_setting.htm";
107        }
108	else{ //transmode "ptm"
109		document.getElementById("ptm_info").style.display = "";
110		document.form.prev_page.value = "/qis/QIS_PTM_manual_setting.htm";
111	}
112
113}
114
115function submitForm(){
116		document.form.next_page.value = "/qis/QIS_wireless.htm";
117		document.form.submit();
118}
119
120function gotoHome(){
121	if (w_Setting == "0") {
122		alert("<#QIS_recommand_encryption#>");
123		location.href = '/qis/QIS_wireless.htm';
124	}
125	else {
126		parent.location.href = '/index.asp';
127	}
128}
129
130</script>
131</head>
132
133<body onLoad="QKfinish_load_body();" >
134<form method="post" name="form" action="/start_apply.htm" target="">
135<input type="hidden" name="prev_page" value="/qis/QIS_manual_setting.htm">
136<input type="hidden" name="current_page" value="/qis/QIS_bridge_cfg_tmp.htm">
137<input type="hidden" name="next_page" value="">
138<input type="hidden" name="action_mode" value="apply">
139<input type="hidden" name="action_script" value="">
140<input type="hidden" name="action_wait" value="">
141<input type="hidden" name="dsltmp_qis_vpi" value="<% nvram_get("dsltmp_cfg_vpi"); %>">
142<input type="hidden" name="dsltmp_qis_vci" value="<% nvram_get("dsltmp_cfg_vci"); %>">
143<input type="hidden" name="dsltmp_qis_proto" value="bridge">
144<input type="hidden" name="dsltmp_qis_encap" value="<% nvram_get("dsltmp_cfg_encap"); %>">
145<!--<input type="hidden" name="dsltmp_qis_pppoe_username" value="">
146<input type="hidden" name="dsltmp_qis_pppoe_passwd" value="">
147<input type="hidden" name="dsltmp_qis_pppoe_dial_on_demand" value="0">
148<input type="hidden" name="dsltmp_qis_pppoe_idletime" value="0">
149<input type="hidden" name="dsltmp_qis_pppoe_mtu" value="1492">
150<input type="hidden" name="dsltmp_qis_pppoe_mru" value="1492">
151<input type="hidden" name="dsltmp_qis_pppoe_service" value="">
152<input type="hidden" name="dsltmp_qis_pppoe_options" value="">
153<input type="hidden" name="dsltmp_qis_DHCPClient" value="1">
154<input type="hidden" name="dsltmp_qis_ipaddr" value="0.0.0.0">
155<input type="hidden" name="dsltmp_qis_netmask" value="0.0.0.0">
156<input type="hidden" name="dsltmp_qis_gateway" value="0.0.0.0">
157<input type="hidden" name="dsltmp_qis_dnsenable" value="1">
158<input type="hidden" name="dsltmp_qis_dns1" value="">
159<input type="hidden" name="dsltmp_qis_dns2" value="">-->
160<input type="hidden" name="dsltmp_qis_svc_cat" value="0">
161<input type="hidden" name="dsltmp_qis_pcr" value="0">
162<input type="hidden" name="dsltmp_qis_scr" value="0">
163<input type="hidden" name="dsltmp_qis_mbs" value="0">
164<input type="hidden" name="dsltmp_qis_dsl_pvc_set" value="1">
165<input type="hidden" name="dsltmp_qis_pppoe_relay" value="1">
166
167<div class="QISmain">
168	<table width="730px">
169		<tr>
170			<td align="left">
171				<span class="description_down"><#Manual_Setting_Title#></span>
172			</td>
173		</tr>
174	</table>
175	<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>
176	<br/>
177
178<table id="tblsetting_1" class="QISform" width="400" border=0 align="center" cellpadding="5" cellspacing="0">
179  <tr>
180  		<td>
181				<div id="atm_info" style="display:none;">
182					<#Transfer_Mode#>: <span class="cfg_val">ADSL WAN (ATM)</span>,&nbsp;<#Layer3Forwarding_x_ConnectionType_itemname#>: <span class="cfg_val">Bridge</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>
183					<b><script>document.write("<br>"+iptv_atm_pvc_str);</script></b><br>
184				</div>
185				<div id="ptm_info" style="display:none;">
186					<#Transfer_Mode#>: <span class="cfg_val">VDSL WAN (PTM)</span>,&nbsp;<#Layer3Forwarding_x_ConnectionType_itemname#>: <span class="cfg_val">Bridge</span>, <#WANVLANIDText#>: <span class="cfg_val"><script>document.write(vlanid_val);</script></span><br>
187					<b><script>document.write("<br>"+iptv_ptm_pvc_str);</script></b><br>
188				</div>	
189     <br><br>
190     	</td>
191  </tr>
192</table>
193
194	<div class="apply_gen" style="margin-top:30px">
195		<input type="button" id="prevButton" value="<#Manual_Setting_btn#>" onclick="gotoprev(document.form);" class="button_gen" >
196<!--
197		<input type="button" id="nextButton" value="Ethernet WAN" onclick="redirect_page('internet_type');" class="button_gen" >
198-->
199		<input type="button" id="nextButton" value="<#CTL_next#>" onclick="submitForm();" class="button_gen">
200	</div>
201
202</div>
203</form>
204</body>
205</html>
206