www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / lancfg2.html
index d7a81db..05c4047 100755 (executable)
@@ -7,7 +7,7 @@
        <title>LAN &raquo; DHCP Server</title>
 
        <link href="usr_main.css" rel="stylesheet" type="text/css">
        <title>LAN &raquo; DHCP Server</title>
 
        <link href="usr_main.css" rel="stylesheet" type="text/css">
-       <script src="usr_menus.js" type="text/javascript"></script>
+       <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>
        <script src="usr_common.js" type="text/javascript"></script>
 
        <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
        <script src="usr_common.js" type="text/javascript"></script>
 
        <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
        <script type="text/javascript" src="util.js"></script>
        <script type="text/javascript">
 <!-- hide
        <script type="text/javascript" src="util.js"></script>
        <script type="text/javascript">
 <!-- hide
-setPageTitle("<%ejGetWl(wlInterface)%>");
+setPageTitle("<%ejGetWlJS(wlInterface)%>");
 
 
-var state = '<%ejGet(lanRefresh)%>';
+var state = '<%ejGetJS(lanRefresh)%>';
 if ( state == '1' ) {
 if ( state == '1' ) {
-   var code = 'location.assign("lancfg2.cgi?lanRefresh=0")';
+   var code = 'location = "lancfg2.cgi?lanRefresh=0"';
    eval(code);
 }
 
    eval(code);
 }
 
-var dhcpStart = '<%ejGet(dhcpEthStart)%>';
-var dhcpEnd = '<%ejGet(dhcpEthEnd)%>';
-var dhcpLease = '<%ejGet(dhcpLeasedTime)%>';
+var dhcpStart = '<%ejGetJS(dhcpEthStart)%>';
+var dhcpEnd = '<%ejGetJS(dhcpEthEnd)%>';
+var dhcpLease = '<%ejGetJS(dhcpLeasedTime)%>';
 var proto = '<%ejGetOther(sysInfo, noBrPrtcl)%>';
 var ipExt = '<%ejGetOther(sysInfo, pppIpExtension)%>';
 var proto = '<%ejGetOther(sysInfo, noBrPrtcl)%>';
 var ipExt = '<%ejGetOther(sysInfo, pppIpExtension)%>';
-var dhcpEnbl = '<%ejGet(enblDhcpSrv)%>';
+var dhcpEnbl = '<%ejGetJS(enblDhcpSrv)%>';
 var natEnbl = '<%ejGetOther(sysInfo, enblNat)%>';
 var natEnbl = '<%ejGetOther(sysInfo, enblNat)%>';
-var enblUpnp = '<%ejGet(enblUpnp)%>';
+var enblUpnp = '<%ejGetJS(enblUpnp)%>';
+var enblIgmpSnp = '<%ejGetJS(enblIgmpSnp)%>';
 var buildUpnp = '<%ejGetOther(sysInfo, buildUpnp)%>';
 var buildUpnp = '<%ejGetOther(sysInfo, buildUpnp)%>';
-var enblStp = '<%ejGet(enblStp)%>';
+var enblStp = '<%ejGetJS(enblStp)%>';
 
 function hideStpInfo(hide) {
    var status = 'visible';
 
 function hideStpInfo(hide) {
    var status = 'visible';
@@ -60,6 +61,19 @@ function hideUpnpInfo(hide) {
    }
 }
 
    }
 }
 
+function hideIgmpSnpInfo(hide) {
+   var status = 'visible';
+
+   if ( hide == 1 )
+      status = 'hidden';
+   if (document.getElementById)  // DOM3 = IE5, NS6
+      document.getElementById('IGMPSnooping').style.visibility = status;
+   else {
+      if (document.layers == false) // IE4
+         document.all.iIGMPSnooping.style.visibility = status;
+   }
+}
+
 function hideDhcpInfo(hide) {
    var status = 'visible';
 
 function hideDhcpInfo(hide) {
    var status = 'visible';
 
@@ -156,8 +170,8 @@ function typeClick() {
 
 function frmLoad() {
    with ( document.forms[0] ) {
 
 function frmLoad() {
    with ( document.forms[0] ) {
-      ethIpAddress.value = '<%ejGet(ethIpAddress)%>';
-      ethSubnetMask.value = '<%ejGet(ethSubnetMask)%>';
+      ethIpAddress.value = '<%ejGetJS(ethIpAddress)%>';
+      ethSubnetMask.value = '<%ejGetJS(ethSubnetMask)%>';
 
       if ( natEnbl == '1' && buildUpnp == '1' ) {
          if ( enblUpnp == '1' )
 
       if ( natEnbl == '1' && buildUpnp == '1' ) {
          if ( enblUpnp == '1' )
@@ -168,6 +182,13 @@ function frmLoad() {
       } else
          hideUpnpInfo(1);
 
       } else
          hideUpnpInfo(1);
 
+      if ( enblIgmpSnp == '1' )
+        chkIgmpSnp.checked = true;
+      else
+        chkIgmpSnp.checked = false;
+      hideIgmpSnpInfo(0);
+
+
       // if protocol is Bridge or PPP IP extension
       // then don't show DHCP info
       if (proto == 'Bridge' || ipExt == '1')
       // if protocol is Bridge or PPP IP extension
       // then don't show DHCP info
       if (proto == 'Bridge' || ipExt == '1')
@@ -198,9 +219,9 @@ function frmLoad() {
                disableDhcpSrvRelay();
             }
          }
                disableDhcpSrvRelay();
             }
          }
-         lan2IpAddress.value = '<%ejGet(lan2IpAddress)%>';
-         lan2SubnetMask.value = '<%ejGet(lan2SubnetMask)%>';
-         if ('<%ejGet(enblLan2)%>' == '1') {
+         lan2IpAddress.value = '<%ejGetJS(lan2IpAddress)%>';
+         lan2SubnetMask.value = '<%ejGetJS(lan2SubnetMask)%>';
+         if ('<%ejGetJS(enblLan2)%>' == '1') {
             enblLan2.checked = true;
             hideLan2Info(0);
          } else {
             enblLan2.checked = true;
             hideLan2Info(0);
          } else {
@@ -274,6 +295,10 @@ function btnApply(reboot) {
       else
          loc += '&enblStp=0';
       
       else
          loc += '&enblStp=0';
       
+     if ( chkIgmpSnp.checked == true )
+        loc += '&enblIgmpSnp=1';
+     else
+        loc += '&enblIgmpSnp=0';
       if ( dhcpSrvType[1].checked == true ) {
          if (isValidIpAddress(dhcpEthStart.value) == false || 
                !(isSameSubNet(ethIpAddress.value, ethSubnetMask.value, dhcpEthStart.value, ethSubnetMask.value))) {
       if ( dhcpSrvType[1].checked == true ) {
          if (isValidIpAddress(dhcpEthStart.value) == false || 
                !(isSameSubNet(ethIpAddress.value, ethSubnetMask.value, dhcpEthStart.value, ethSubnetMask.value))) {
@@ -336,14 +361,14 @@ function btnApply(reboot) {
       else
          loc += '&enblLan2=0';
    }
       else
          loc += '&enblLan2=0';
    }
-   var code = 'location.assign("' + loc + '")';
+   var code = 'location = "' + loc + '"';
    eval(code);
 }
 
 function btnReset() {
      var loc = 'rebootinfo.cgi';
 
    eval(code);
 }
 
 function btnReset() {
      var loc = 'rebootinfo.cgi';
 
-     var code = 'location.assign("' + loc + '")';
+     var code = 'location = "' + loc + '"';
      eval(code);
 }
 
      eval(code);
 }
 
@@ -371,16 +396,22 @@ function setDhcpAddresses(lanIp) {
    }
 }
 
    }
 }
 
+function manualModDhcp() {
+   with ( document.forms[0] ) {
+      dhcpStart = dhcpEthStart.value;
+      dhcpEnd = dhcpEthEnd.value;
+   }
+}   
 
 // done hiding -->
 </script>
               <base target="_self">
      </head>
 
 
 // done hiding -->
 </script>
               <base target="_self">
      </head>
 
-<body onload="initMenu('idMenu'); frmLoad();">
+<body onload="initMenu(); frmLoad();">
 
 <script type="text/javascript">
 
 <script type="text/javascript">
-       writeHeader("LAN", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
+       writeHeader("LAN", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
 </script>
 
 <form>
 </script>
 
 <form>
@@ -444,6 +475,11 @@ function setDhcpAddresses(lanIp) {
        </div>
 </div>
 
        </div>
 </div>
 
+<div id='IGMPSnooping'>
+<h3>IGMP Snooping</h3>
+<p><input type='checkbox' name='chkIgmpSnp' id='chkIgmpSnp'> <label for="chkIgmpSnp">IGMP Snooping</label></p>
+</div>
+
 <div id='upnpInfo'>
 <h3>Universal Plug-n-Play</h3>
 <p><input type='checkbox' name='chkUpnp' id='chkUpnp'> <label for="chkUpnp">Universal Plug-n-Play (UPnP)</label></p>
 <div id='upnpInfo'>
 <h3>Universal Plug-n-Play</h3>
 <p><input type='checkbox' name='chkUpnp' id='chkUpnp'> <label for="chkUpnp">Universal Plug-n-Play (UPnP)</label></p>