www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / pvccfg.html
index baa8319..e1f4fe7 100755 (executable)
@@ -7,7 +7,7 @@
        <title></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 type="text/javascript" src="util.js"></script>
        <script type="text/javascript">
 <!-- hide
-setPageTitle("<%ejGetWl(wlInterface)%>");
+setPageTitle("<%ejGetWlJS(wlInterface)%>");
 
 var upRate = parseInt('<%ejGetOther(lineRate, 0)%>');
 var pcrMax = 1887;   // 1887 * 53 * 8 = 800000
-var serviceCat = '<%ejGet(atmServiceCategory)%>';
-var qos = '<%ejGet(enblQos)%>';
+var serviceCat = '<%ejGetJS(atmServiceCategory)%>';
+var qos = '<%ejGetJS(enblQos)%>';
 var hideQos = false;
-var serviceId = '<%ejGet(serviceId)%>';
+var serviceId = '<%ejGetJS(serviceId)%>';
 var numQueue = parseInt('<%ejGetOther(memInfo, queueNum)%>');
 var numQueueMax = 8;
 
-var enetWan = parseInt('<%ejGet(enblEnetWan)%>');
-var vpi = '<%ejGet(atmVpi)%>';
-var vci = '<%ejGet(atmVci)%>';
+var enetWan = parseInt('<%ejGetJS(enblEnetWan)%>');
+var vpi = '<%ejGetJS(atmVpi)%>';
+var vci = '<%ejGetJS(atmVci)%>';
 
 if ( isNaN(upRate) == false )
    pcrMax = Math.ceil((upRate * 1000) / (53 * 8));
@@ -42,8 +42,8 @@ if ( chipId == 0x6348 )
 else if ( chipId == 0x6338 )
    numPvcMax = 8;
 
-var numEnet = parseInt('<%ejGet(numEnet)%>');
-var numPvc = parseInt('<%ejGet(numPvc)%>');
+var numEnet = parseInt('<%ejGetJS(numEnet)%>');
+var numPvc = parseInt('<%ejGetJS(numPvc)%>');
    
 function disableQos() {
    with ( document.forms[0] ) {
@@ -115,11 +115,8 @@ function hideInfo(hide) {
 function shouldQosBeHidden() {
    var ret = false;
    
-   // QoS cannot be enabled for 6338 chip
-   if ( chipId == 0x6338 )
-      ret = true;
    // only allow QoS enabled for ubr, ubrwpcr, ntr_vbr
-   else if ( serviceCat == 'UBR' ||
+   if ( serviceCat == 'UBR' ||
              serviceCat == 'UBRwPCR' ||
              serviceCat == 'NRT_VBR' ) {
       // if PVC is not QoS enabled
@@ -187,11 +184,11 @@ function frmLoad() {
       hideQosInfo(0);
    
    with ( document.forms[0] ) {
-      atmVpi.value = '<%ejGet(atmVpi)%>';
-      atmVci.value = '<%ejGet(atmVci)%>';
-      peakCell.value  = '<%ejGet(atmPeakCellRate)%>';
-      sustainableCell.value = '<%ejGet(atmSustainedCellRate)%>';
-      maximumBurst.value = '<%ejGet(atmMaxBurstSize)%>'
+      atmVpi.value = '<%ejGetJS(atmVpi)%>';
+      atmVci.value = '<%ejGetJS(atmVci)%>';
+      peakCell.value  = '<%ejGetJS(atmPeakCellRate)%>';
+      sustainableCell.value = '<%ejGetJS(atmSustainedCellRate)%>';
+      maximumBurst.value = '<%ejGetJS(atmMaxBurstSize)%>'
    }
    
    if (serviceCat == 'UBR') {
@@ -231,7 +228,7 @@ function frmLoad() {
 }
 
 function btnBack() {
-   var code = 'location.assign("' + 'wancfg.cmd'+ '")';
+   var code = 'location = "' + 'wancfg.cmd'+ '"';
    eval(code);
 }
 
@@ -310,7 +307,7 @@ function btnNext() {
    }
    loc += '&quickSetup=' + 0;
 
-   var code = 'location.assign("' + loc + '")';
+   var code = 'location = "' + loc + '"';
    eval(code);
 }
 
@@ -335,10 +332,10 @@ function cbClick(obj) {
 // done hiding -->
 </script>
    </head>
-   <body onload="initMenu('idMenu'); frmLoad();">
+   <body onload="initMenu(); frmLoad();">
 
 <script type="text/javascript">
-       writeHeader("ATM PVC Configuration", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
+       writeHeader("ATM PVC Configuration", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
 </script>
 
 <form ID="Form1">
@@ -402,12 +399,7 @@ function cbClick(obj) {
        will be reduced. Use <b>LAN/Quality of Service</b> to 
        assign priorities for the applications.<br>
        </p>
-       <table border="0" cellpadding="4" cellspacing="0">
-          <tr>
-             <td><label for="enblQos">Enable Quality Of Service</label></td>
-             <td width='30' height="30"><input type='checkbox' name='enblQos' id=enblQos></td>
-          </tr>
-       </table>
+               <p><input type='checkbox' name='enblQos' id=enblQos> <label for="enblQos">Quality of service</label></p>
     </div>
 </div>
        <p><input type='button' onClick='btnBack()' value='Back'> <input type='button' onClick='btnNext()' value='Next'></p>