http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / userapps / broadcom / cfm / html / logconfig.html
index f4ce53d..bb1fd81 100755 (executable)
@@ -1,11 +1,13 @@
 <html>
-   <head>
-      <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
-      <link rel="stylesheet" href='stylemain.css' type='text/css'>
-         <link rel="stylesheet" href='colors.css' type='text/css'>
-            <script language="javascript" src="util.js"></script>
-            <script language="javascript">
+<head>
+<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
+<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
+<link rel=stylesheet href='stylemain.css' type='text/css'>
+<link rel=stylesheet href='colors.css' type='text/css'>
+<script language="javascript" src="util.js"></script>
+<script language="javascript">
 <!-- hide
+var randomNum = '<%ejGet(CheckNum)%>';
 var addr = '<%ejGet(logIpAddress)%>';
 var port = '<%ejGet(logPort)%>';
 
@@ -20,11 +22,10 @@ function getLogPort() {
 function frmLoad() {
    with ( document.forms[0] ) {
       status[<%ejGet(logStatus)%>].checked = true;
-
       levelLog.selectedIndex = <%ejGet(logLevel)%>;
       levelDisplay.selectedIndex = <%ejGet(logDisplay)%>;
-
       logMode.selectedIndex = <%ejGet(logMode)%> - 1;
+
       if ( logMode.selectedIndex == 0 ) {
          logAddr.value = '';
          logPort.value = '';
@@ -39,16 +40,12 @@ function frmLoad() {
 
 function btnApply() {
    var loc = 'logintro.cgi?';
+   loc += 'checkNum=' + randomNum + '&';
    var idx, log, display, mode;
 
    with ( document.forms[0] ) {
       if ( status[0].checked == true ) {
-         var msg = 'If disabled, the information captured by the ';
-         msg += 'DSL Router will be lost. If you wish to save ';
-         msg += 'the current log information, click the ';
-         msg += '"Cancel" button, view the current system ';
-         msg += 'log, and use the Save option from the File ';
-         msg += 'menu to save the log data.';
+         var msg = 'The system log data will be lost if it is configured to be disable. To save current system log data, click "Cancel", view system log and use File menu to save data.';
          if ( confirm(msg) == false )
             return;
       }
@@ -71,10 +68,6 @@ function btnApply() {
             alert('Server IP address "' + logAddr.value + '" is invalid IP address.');
             return;
          }
-         if ( isValidPort(logPort.value) == false ) {
-            alert('Server UDP port "' + logPort.value + '" is invalid.');
-            return;
-         }
          valAddr = logAddr.value;
          valPort = logPort.value;
       }
@@ -85,7 +78,8 @@ function btnApply() {
       loc += '&logPort=' + valPort;
    }
 
-   var code = 'location="' + loc + '"';
+   var code = 'window.location.href="/';
+   code += loc + '"';
    eval(code);
 }
 
@@ -123,104 +117,108 @@ function cbClick(obj) {
       hideInfo(0);
 }
 
+function btnCancel() {\r
+       var code = 'window.location.href="/logconfig.html"';\r
+       eval(code);\r
+}
 // done hiding -->
 </script>
-   </head>
-   <body onLoad='frmLoad()'>
-      <blockquote>
-         <form>
-            <b>System Log -- Configuration<br>
-            </b>
-            <br>
-            If the log mode is enabled, the system will begin to log all the selected 
-            events. For the Log Level, all events above or equal to the selected level will 
-            be logged. For the Display Level, all logged events above or equal to the 
-            selected level will be displayed. If the selected mode is 'Remote' or 'Both,' 
-            events will be sent to the specified IP address and UDP port of the remote 
-            syslog server. If the selected mode is 'Local' or 'Both,' events will be 
-            recorded in the local memory.<br>
-            <br>
-            Select the desired values and click 'Save/Apply' to configure the system log 
-            options.<br>
-            <br>
-            <table border="0" cellpadding="0" cellspacing="0">
-               <tr>
-                  <td width="80">Log:</td>
-                  <td><input name='status' type='radio'>Disable</td>
-                  <td><input name='status' type='radio'>Enable</td>
-               </tr>
-            </table>
-            <br>
-            <table border="0" cellpadding="0" cellspacing="0">
-               <tr>
-                  <td>Log Level:</td>
-                  <td colspan="2"><select name='levelLog' size="1">
-                        <option value="0">
-                        Emergency
-                        <option value="1">
-                        Alert
-                        <option value="2">
-                        Critical
-                        <option value="3">
-                        Error
-                        <option value="4">
-                        Warning
-                        <option value="5">
-                        Notice
-                        <option value="6">
-                        Informational
-                        <option value="7">
-                        Debugging
-                     </select></td>
-               </tr>
-               <tr>
-                  <td>Display Level:</td>
-                  <td colspan="2"><select name='levelDisplay' size="1">
-                        <option value="0">
-                        Emergency
-                        <option value="1">
-                        Alert
-                        <option value="2">
-                        Critical
-                        <option value="3">
-                        Error
-                        <option value="4">
-                        Warning
-                        <option value="5">
-                        Notice
-                        <option value="6">
-                        Informational
-                        <option value="7">
-                        Debugging
-                     </select></td>
-               </tr>
-               <tr>
-                  <td width="120">Mode:</td>
-                  <td colspan="2"><select name='logMode' size="1" onClick='cbClick(this)'>
-                        <option value="1">
-                        Local
-                        <option value="2">
-                        Remote
-                        <option value="3">
-                        Both
-                     </select></td>
-               </tr>
-            </table>
-            <div id='srvInfo'>
-               <table border="0" cellpadding="0" cellspacing="0">
-                  <tr>
-                     <td width="120">Server IP Address:</td>
-                     <td><input type='text' name='logAddr'></td>
-                  </tr>
-                  <tr>
-                     <td>Server UDP Port:</td>
-                     <td><input type='text' name='logPort'></td>
-                  </tr>
-               </table>
-            </div>
-            <p align="center">
-               <input type='button' onClick='btnApply()' value='Save/Apply'>
-         </form>
-      </blockquote>
-   </body>
+</head>
+
+<body onLoad='frmLoad()'>
+
+<form class="formpadding">
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+<tr>
+  <td><b><font class="netgear">System Log Configuration</font></b></td>
+</tr>
+<tr><td>&nbsp;</td></tr>
+<tr>\r
+  <td background="liteblue.gif" height="12">&nbsp;</td>\r
+</tr>
+</table>
+
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+<tr>
+<td width="100%">
+This dialog allows you to configure System Log settings. All events greater than or equal to the selected level will be logged or displayed. If the selected mode is "Remote" or "Both" events will be sent to the specified UDP port of the specified log server.
+</td>
+</tr>
+<tr><td>&nbsp;</td></tr>
+<tr>
+<td width="100%">
+Select the desired values and click "Apply" to configure the system log options.
+</td>
+</tr>
+<tr><td>&nbsp;</td></tr>
+</table>
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+  <tr>
+    <td width="160">Log:</td>
+    <td width="95"><input name='status' type='radio'>&nbsp;Disabled</td>
+    <td><input name='status' type='radio'>&nbsp;Enabled</td>
+  </tr>
+</table>
+<br>
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+  <tr height="30">
+    <td>Log Level:</td>
+    <td colspan=2><select name='levelLog' size=1>
+      <option value=0>Emergency
+      <option value=1>Alert
+      <option value=2>Critical
+      <option value=3>Error
+      <option value=4>Warning
+      <option value=5>Notice
+      <option value=6>Informational
+      <option value=7>Debugging
+    </select></td>
+  </tr>
+  <tr height="30">
+    <td>Display Level:</td>
+    <td colspan=2><select name='levelDisplay' size=1>
+      <option value=0>Emergency
+      <option value=1>Alert
+      <option value=2>Critical
+      <option value=3>Error
+      <option value=4>Warning
+      <option value=5>Notice
+      <option value=6>Informational
+      <option value=7>Debugging
+    </select></td>
+  </tr>
+  <tr height="30">
+    <td width="160">Mode:</td>
+    <td colspan=2><select name='logMode' size=1 onClick='cbClick(this)'>
+      <option value=1>Local</option>
+      <option value=2>Remote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
+      <option value=3>Both</option>
+    </select></td>
+  </tr>
+</table>
+<div id='srvInfo'>
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+  <tr height="30">
+    <td width="160">Server IP Address:</td>
+    <td><input type='text' name='logAddr' size="20"></td>
+  </tr>
+  <tr height="30">
+    <td>Server UDP Port:</td>
+    <td><input type='text' name='logPort' size="20"></td>
+  </tr>
+</table>
+</div>
+<table border="0" cellpadding="0" cellspacing="3" width="98%">
+<tr>\r
+  <td colspan="2" background="liteblue.gif" height="12">&nbsp;</td>\r
+</tr>\r
+<tr>\r
+       <td width="580">\r
+       <p align="left"><input type='button' onClick='btnApply()' value='Apply'> <input type="button" onClick="btnCancel()" value="Cancel">\r
+    </td>\r
+</tr>
+</table>
+</form>
+
+</body>
 </html>