3 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
\r
4 <link rel="stylesheet" href='stylemain.css' type='text/css'>
\r
5 <link rel="stylesheet" href='colors.css' type='text/css'>
\r
6 <script language="javascript" src="util.js"></script>
\r
7 <script language="javascript">
\r
9 var ssid = '<%ejGetWl(wlSsid)%>';
\r
10 var ssid_2 = '<%ejGetWl(wlSsid_2)%>';
\r
11 var enbl = '<%ejGetWl(wlEnbl)%>';
\r
12 var enbl_2 = '<%ejGetWl(wlEnbl_2)%>';
\r
13 var hide = '<%ejGetWl(wlHide)%>';
\r
14 var country = '<%ejGetWl(wlCountry)%>';
\r
15 var wlRefresh = '<%ejGetWl(wlRefresh)%>';
\r
16 var band= '<%ejGetWl(wlBand)%>';
\r
18 if ( wlRefresh == '1' ) {
\r
19 var code = 'location="wlcfgrefresh.wl?wlRefresh=0"';
\r
23 function hideWlSecInfo(hidden) {
\r
24 var status = 'visible';
\r
26 with ( document.forms[0] ) {
\r
28 if ( hidden == 1 ) {
\r
30 wlHide.disabled = 1;
\r
31 wlSsid.disabled = 1;
\r
32 wlCountry.disabled = 1;
\r
34 wlHide.disabled = 0;
\r
35 wlSsid.disabled = 0;
\r
36 wlCountry.disabled = 0;
\r
40 if (document.getElementById) // DOM3 = IE5, NS6
\r
41 document.getElementById('wlSecInfo').style.visibility = status;
\r
43 if (document.layers == false) // IE4
\r
44 document.all.wlSecInfo.style.visibility = status;
\r
48 function wlSecCbClick(cb) {
\r
49 if ( cb.checked == true )
\r
55 function wlLoadCountryList()
\r
62 if (band == "1") { // 5G
\r
63 <%ejGetWl(wlCountryList, a)%>
\r
65 <%ejGetWl(wlCountryList, b)%>
\r
68 for (i=0; i< document.forms[0].wlCountry.options.length; i++) {
\r
69 if (document.forms[0].wlCountry.options[i].value == country) {
\r
70 document.forms[0].wlCountry.options[i].selected = true;
\r
75 /* set to all(the last one) if not found */
\r
76 if( i == document.forms[0].wlCountry.options.length)
\r
77 document.forms[0].wlCountry.options[idx-1].selected = true;
\r
81 function frmLoad() {
\r
83 wlLoadCountryList();
\r
85 with ( document.forms[0] ) {
\r
86 setCheck(wlEnbl, enbl);
\r
87 if ( enbl == '1' ) {
\r
92 setCheck(wlHide, hide);
\r
93 wlSsid.value = ssid;
\r
94 setCheck(wlEnbl_2, enbl_2);
\r
95 wlSsid_2.value = ssid_2;
\r
99 function btnApply() {
\r
100 var loc = 'wlcfg.wl?';
\r
102 with ( document.forms[0] ) {
\r
103 if ( wlEnbl.checked == false ) {
\r
105 loc += '&wlHide=' + hide;
\r
106 loc += '&wlSsid=' + ssid;
\r
107 loc += '&wlCountry=' + country;
\r
109 if ( wlSsid.value == '' ) {
\r
110 alert('SSID should not be empty.');
\r
113 if ( wlSsid_2.value == '' ) {
\r
114 alert('Guest SSID should not be empty.');
\r
118 var str = new String();
\r
119 str = wlSsid.value;
\r
120 if ( str.length > 32 ) {
\r
121 alert('SSID "' + wlSsid.value + '" should not be longer than 32 characters.');
\r
126 loc += submitCheck(wlHide);
\r
127 loc += '&wlSsid=' + encodeUrl(wlSsid.value);
\r
128 loc += submitSelect(wlCountry);
\r
129 loc += submitCheck(wlEnbl_2);
\r
130 loc += '&wlSsid_2=' + encodeUrl(wlSsid_2.value);
\r
135 var code = 'location="' + loc + '"';
\r
142 <body onLoad='frmLoad()'>
\r
144 <form onSubmit='return false'>
\r
145 <b>Wireless -- Basic</b><br>
\r
147 This page allows you to configure basic features of the wireless LAN interface.
\r
148 You can enable or disable the wireless LAN interface, hide the network from
\r
149 active scans, set the wireless network name (also known as SSID) and restrict
\r
150 the channel set based on country requirements.<br>
\r
151 Click "Apply" to configure the basic wireless options.<br>
\r
153 <table border="0" cellpadding="4" cellspacing="0">
\r
155 <td valign="middle" align="center" width="30" height="30">
\r
156 <input type='checkbox' name='wlEnbl' onClick='wlSecCbClick(this)' value="ON"></td>
\r
157 <td>Enable Wireless</td>
\r
160 <div id='wlSecInfo'>
\r
161 <table border="0" cellpadding="4" cellspacing="0">
\r
163 <td valign="middle" align="center" width="30" height="30">
\r
164 <input type='checkbox' name='wlHide' value="ON"></td>
\r
165 <td>Hide Access Point</td>
\r
168 <table border="0" cellpadding="4" cellspacing="0">
\r
170 <td width="50">SSID:</td>
\r
172 <input type='text' name='wlSsid' maxlength="32" size="32"></td>
\r
175 <td width="50">BSSID:</td>
\r
177 <%ejGetWl(wlBssid)%>
\r
182 <td><select name='wlCountry' size="1">
\r
185 <tr> <td> </td> <td> </td> </tr>
\r
186 <table border="0" cellpadding="4" cellspacing="0">
\r
188 <td valign="middle" align="center" width="30" height="30">
\r
189 <input type='checkbox' name='wlEnbl_2' value="ON"></td>
\r
190 <td>Enable Wireless Guest Network</td>
\r
193 <table border="0" cellpadding="4" cellspacing="0">
\r
195 <td width="100">Guest SSID:</td>
\r
197 <input type='text' name='wlSsid_2' maxlength="32" size="32"></td>
\r
204 <input type='button' onClick='btnApply()' value='Save/Apply'>
\r