1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
15 <script type="text/javascript" src="portName.js"></script>
16 <script type="text/javascript">
18 setPageTitle("<%ejGetWlJS(wlInterface)%>");
20 var groupName = '<%ejGetOther(getPMapGroupName)%>';
21 var vid0 = '<%ejGetOther(vendorid, 0)%>';
22 var vid1 = '<%ejGetOther(vendorid, 1)%>';
23 var vid2 = '<%ejGetOther(vendorid, 2)%>';
24 var vid3 = '<%ejGetOther(vendorid, 3)%>';
25 var vid4 = '<%ejGetOther(vendorid, 4)%>';
28 with ( document.choiceForm ) {
29 var gName = '<%ejGetOther(getPMapGroupName)%>';
30 if ( groupName == gName )
33 txtGroupName.value = groupName;
34 vendorid0.value = vid0;
35 vendorid1.value = vid1;
36 vendorid2.value = vid2;
37 vendorid3.value = vid3;
38 vendorid4.value = vid4;
42 function btnRemove() {
43 with ( document.choiceForm ) {
44 var arrSelected = new Array();
46 for ( i = 0; i < lstChoice.options.length; i++ ) {
47 if ( lstChoice.options[i].selected == true ) {
48 arrSelected[count] = lstChoice.options[i].value;
49 //varOpt = new Option(lstChoice.options[i].text, lstChoice.options[i].value);
50 //lstAvailable.options[lstAvailable.length] = varOpt;
51 //lstChoice.options[i] = null;
56 for (i = 0; i < lstChoice.options.length; i++) {
57 for (x = 0; x < arrSelected.length; x++) {
58 if (lstChoice.options[i].value == arrSelected[x]) {
59 varOpt = new Option(lstChoice.options[i].text, lstChoice.options[i].value);
60 lstAvailable.options[lstAvailable.length] = varOpt;
61 lstChoice.options[i] = null;
69 with ( document.choiceForm ) {
70 var arrSelected = new Array();
72 for ( i = 0; i < lstAvailable.options.length; i++ ) {
73 if ( lstAvailable.options[i].selected == true ) {
74 arrSelected[count] = lstAvailable.options[i].value;
79 for (i = 0; i < lstAvailable.options.length; i++) {
80 for (x = 0; x < arrSelected.length; x++) {
81 if (lstAvailable.options[i].value == arrSelected[x]) {
82 varOpt = new Option(lstAvailable.options[i].text, lstAvailable.options[i].value);
83 lstChoice.options[lstChoice.length] = varOpt;
84 lstAvailable.options[i] = null;
92 var loc = 'portmapcfg.cmd?action=edit';
93 with ( document.forms[0] ) {
96 loc += '&groupName=' + '<%ejGetOther(getPMapGroupName)%>';
100 var brdId = '<%ejGetJS(boardID)%>';
101 if (lstChoice.length == 0) {
102 alert('Need to provide at least one interface "Select one from the Available list."');
105 for (i = 0; i < lstChoice.length; i++ ) {
106 if (lstChoice.options[i].value == '')
108 tempList += lstChoice.options[i].value + '|';
110 interfaces = tempList.split('|');
112 for (i = 0; i < interfaces.length; i++) {
113 ifc += getLNameByUName(brdId + '|' + interfaces[i]) + '|';
115 loc += '&choiceBox=' + ifc;
116 if (vendorid0.value != '')
117 loc += '&vendorid0=' + vendorid0.value;
118 if (vendorid1.value != '')
119 loc += '&vendorid1=' + vendorid1.value;
120 if (vendorid2.value != '')
121 loc += '&vendorid2=' + vendorid2.value;
122 if (vendorid3.value != '')
123 loc += '&vendorid3=' + vendorid3.value;
124 if (vendorid4.value != '')
125 loc += '&vendorid4=' + vendorid4.value;
127 var code = 'location = "' + loc + '"';
134 <body onload="initMenu(); frmLoad();">
136 <script type="text/javascript">
137 writeHeader("Port Mapping", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
140 <form name="choiceForm">
143 <p>To edit the port mapping configuration:</p>
146 <li>To add interfaces to the grouped list, select the interfaces in the
147 <b>Available interfaces</b> list.</li>
148 <li>Use the right arrow button to move the selected interfaces to the grouped list.</li>
149 <li>To automatically add LAN clients to the specified group PVC, edit the list.
150 <li>To remove the interfaces, select the interface in the <b>Grouped interfaces</b> list
151 and press the left arrow button.</li>
153 <li>Press the <b>Save</b> button to make the changes effective.</li>
156 <p><b>Note:</b> The selected interfaces will be removed from their
157 existing groups and added to the new group.</p>
159 <p><b>Note:</b> By adding the DHCP vendor ID (OPTION 60) the clients will automatically
160 be denied an IP address by the local DHCP server and may obtain a public IP address.<p>
162 <p><label>Group name:</label> <b><%ejGetOther(getPMapGroupName)%></b></p>
164 <table border="0" cellpadding="0" cellspacing="0">
166 <td><label>Available interfaces:</label></td>
168 <td><label>Grouped interfaces:</label></td>
172 <select multiple name="lstAvailable" size="10" style="width: 100">
173 <script type="text/javascript">
177 var interfaceInfo = '';
179 var brdId = '<%ejGetJS(boardID)%>';
180 if (groupName == '') {
181 interfaceInfo = '<%ejGetOther(bridgeInterfaceInfo, all)%>';
183 interfaceInfo = '<%ejGetOther(bridgeInterfaceInfo, group)%>';
185 var interfaces = interfaceInfo.split('|');
187 for ( i = 0; i < interfaces.length; i++ ) {
188 if (interfaces[i] != '') {
189 document.write(" <option value='" + interfaces[i] + "'>");
191 dispName = getUNameByLName(brdId + '|' + interfaces[i]);
192 document.writeln(dispName);
200 <table border="0" cellpadding="0" cellspacing="5">
202 <input type="button" value="->" onClick="btnAdd()" style="width: 30; height: 30">
205 <input type="button" value="<-" onClick="btnRemove()" style="width: 30; height: 30">
210 <select multiple name="lstChoice" id="lstChoice" size="10">
211 <script type="text/javascript">
214 if ( groupName != '' ) {
216 var brdId = '<%ejGetJS(boardID)%>';
218 var grpedIntfInfo = '<%ejGetOther(bridgeGroupInfo, group)%>';
219 var grpedInterfaces = grpedIntfInfo.split('|');
220 grpedInterfaces.sort();
221 for ( i = 0; i < grpedInterfaces.length; i++ ) {
222 if (grpedInterfaces[i] != '') {
223 document.write(" <option value='" + grpedInterfaces[i] + "'>");
225 dispName = getUNameByLName(brdId + '|' + grpedInterfaces[i]);
226 document.writeln(dispName);
236 <h4>Automatically add clients with the following DHCP vendor IDs:</h4>
239 <td><input type='text' name='vendorid0' size="32" maxlength="64"></td>
242 <td><input type='text' name='vendorid1' size="32" maxlength="64"></td>
245 <td><input type='text' name='vendorid2' size="32" maxlength="64"></td>
248 <td><input type='text' name='vendorid3' size="32" maxlength="64"></td>
251 <td><input type='text' name='vendorid4' size="32" maxlength="64"></td>
255 <p><input type='button' onClick='btnApply()' value="Save"></p>
258 <script type="text/javascript">