-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!--
- (c) 2005 U.S. Robotics Corporation
--->
<html>
-<head>
- <title>System Log Configuration</title>
-
- <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
- <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css"><script src="usr_menus_dropdown.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
- <link href="usr_device.css" type="text/css" rel="stylesheet" /><script src="usr_device.js" type="text/javascript"></script><link href="usr_91xx.css" type="text/css" rel="stylesheet" /><script src="usr_91xx.js" type="text/javascript"></script><script src="usr_resources.js" type="text/javascript"></script>
-
- <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
-
-<script type="text/javascript" src="util.js"></script>
-<script type="text/javascript">
+ <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">
<!-- hide
-
-
-var addr = '<%ejGetJS(logIpAddress)%>';
-var port = '<%ejGetJS(logPort)%>';
+var addr = '<%ejGet(logIpAddress)%>';
+var port = '<%ejGet(logPort)%>';
function getLogPort() {
var portNum = parseInt(port);
function frmLoad() {
with ( document.forms[0] ) {
- status[<%ejGetJS(logStatus)%>].checked = true;
+ status[<%ejGet(logStatus)%>].checked = true;
- levelLog.selectedIndex = <%ejGetJS(logLevel)%>;
- levelDisplay.selectedIndex = <%ejGetJS(logDisplay)%>;
+ levelLog.selectedIndex = <%ejGet(logLevel)%>;
+ levelDisplay.selectedIndex = <%ejGet(logDisplay)%>;
- logMode.selectedIndex = <%ejGetJS(logMode)%> - 1;
+ logMode.selectedIndex = <%ejGet(logMode)%> - 1;
if ( logMode.selectedIndex == 0 ) {
logAddr.value = '';
logPort.value = '';
with ( document.forms[0] ) {
if ( status[0].checked == true ) {
var msg = 'If disabled, the information captured by the ';
- msg += 'router will be lost. If you wish to save ';
+ 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 ';
alert('Server IP address "' + logAddr.value + '" is invalid IP address.');
return;
}
- if ( isNaN(logPort.value) == true ) {
+ if ( isValidPort(logPort.value) == false ) {
alert('Server UDP port "' + logPort.value + '" is invalid.');
return;
}
// done hiding -->
</script>
-</head>
-
-<body onload="initMenu(); frmLoad();">
-
-<script type="text/javascript">
- writeHeader("System Log Configuration");
-</script>
-
-
-<form>
-
- <p>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 <b>Remote</b> or <b>Both</b> events will be sent to the specified
- UDP port of the specified log server.</p>
-
- <p>Select the desired values and press <b>Apply</b> to configure the system log options.</p>
-
- <p>
- <input name='status' id="optStatusDisable" type='radio'> <label for="optStatusDisable">Disable log</label><br/>
- <input name='status' id="optStatusEnable" type='radio'> <label for="optStatusEnable">Enable log</label>
- </p>
-
- <table border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td><label for="">Log level:</label></td>
- <td colspan=2><select name='levelLog' id='levelLog' size=1>
- <option value=0>Emergency</option>
- <option value=1>Alert</option>
- <option value=2>Critical</option>
- <option value=3>Error</option>
- <option value=4>Warning</option>
- <option value=5>Notice</option>
- <option value=6>Informational</option>
- <option value=7>Debugging</option>
- </select></td>
- </tr>
- <tr>
- <td><label for="">Display level:</label></td>
- <td colspan=2><select name='levelDisplay' id='levelDisplay' size=1>
- <option value=0>Emergency</option>
- <option value=1>Alert</option>
- <option value=2>Critical</option>
- <option value=3>Error</option>
- <option value=4>Warning</option>
- <option value=5>Notice</option>
- <option value=6>Informational</option>
- <option value=7>Debugging</option>
- </select></td>
- </tr>
- <tr>
- <td><label for="">Mode:</label></td>
- <td colspan=2><select name='logMode' id='logMode' size=1 onClick='cbClick(this)'>
- <option value=1>Local</option>
- <option value=2>Remote</option>
- <option value=3>Both</option>
- </select></td>
- </tr>
-
- <div id='srvInfo'>
- <tr>
- <td><label for="logAddr">Server IP address:</label></td>
- <td><input type='text' name='logAddr' id='logAddr'></td>
- </tr>
- <tr>
- <td><label for="logPort">Server UDP port:</label></td>
- <td><input type='text' name='logPort' id='logPort'></td>
- </tr>
- </div>
- </table>
-
- <p><input type='button' onClick='btnApply()' value='Apply'></p>
-</form>
-
-<script type="text/javascript">
- writeFooter();
-</script>
-
-</body>
+ </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>
</html>