summaryrefslogtreecommitdiff
path: root/polux/application/goahead/web/br0.asp
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/goahead/web/br0.asp')
-rw-r--r--polux/application/goahead/web/br0.asp294
1 files changed, 294 insertions, 0 deletions
diff --git a/polux/application/goahead/web/br0.asp b/polux/application/goahead/web/br0.asp
new file mode 100644
index 0000000000..5a0cc690de
--- /dev/null
+++ b/polux/application/goahead/web/br0.asp
@@ -0,0 +1,294 @@
+<html>
+
+<head>
+
+<link rel="stylesheet" href="style/normal_ws.css" type="text/css">
+<style type="text/css">
+
+
+
+
+input[disabled='disabled'] {
+ background:lavender;
+ color:black;
+ cursor:default;
+}
+body{
+ background-image: url("/spidcom.gif");
+ background-repeat: no-repeat;
+ background-attachment: fixed;
+ background-position: center center;
+}
+td.d25{
+width:25%;
+}
+</style>
+<script type="text/javascript" src="jslib/wz_jsgraphics.js"></script>
+<script type="text/javascript" src="jslib/query.js"></script>
+
+<script type='text/javascript'>
+
+function breakout_of_frame()
+{
+ if (top.location != location) {
+ top.location.href = document.location.href ;
+ }
+}
+
+
+
+var mac = <% aspGetMac('br0'); %> ;
+var ip = <% aspGetIp('br0'); %>;
+var networking = <% aspGetParamValue("NETWORKING"); %>
+var bridging = <% aspGetParamValue("BRIDGING"); %>
+var stp = <% aspGetParamValue("STP"); %>
+var forwarding = <% aspGetParamValue("FORWARD_IPV4"); %>
+var dhcp = <% aspGetDhcp(); %>
+
+
+var ip_data_array = ip.split(':');
+var ip_array = ip_data_array[0].split('.');
+var nm_array = ip_data_array[1].split('.');
+var gw_array = ip_data_array[3].split('.');
+var mac_array = mac.split(':');
+
+
+function drawNoise()
+{
+ if (document.drawForm.host.value != 0)
+ {
+ mojProzor = window.open("","prozor","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=1020, height=350, left=50, top=100");
+ mojProzor.focus();
+ }
+
+}
+
+
+function checkDrawForm()
+{
+var temp = document.getElementById('host').value;
+if (temp == 0)
+{
+ alert("You must choose valid host.");
+ return false;
+}
+
+return true;
+}
+
+
+
+function breakout_of_frame(s)
+{
+
+ if (top.location != s) {
+ top.location.href = s ;
+ }
+}
+
+function refresh(){
+parent.content.location.reload();
+}
+
+function set_refresh(){
+
+if (document.getElementById('refresh_or_not').checked)
+ document.getElementById("stat_iframe").contentWindow.RestartRefresh();
+else
+ document.getElementById('stat_iframe').contentWindow.StopRefresh();
+}
+
+function reboot_flag()
+{
+ document.getElementById('reboot').value = 'yes';
+}
+
+
+function joinadd(){
+document.getElementById('ip').value = document.getElementById('ipe1').value + '.' + document.getElementById('ipe2').value + '.' + document.getElementById('ipe3').value + '.' + document.getElementById('ipe4').value;
+document.getElementById('nm').value = document.getElementById('nete1').value + '.' + document.getElementById('nete2').value + '.' + document.getElementById('nete3').value + '.' + document.getElementById('nete4').value;
+document.getElementById('gw').value = document.getElementById('gwe1').value + '.' + document.getElementById('gwe2').value + '.' + document.getElementById('gwe3').value + '.' + document.getElementById('gwe4').value;
+}
+
+
+function showTip(){
+document.getElementById('tooltip').innerHTML = "You must restart modem for the changes to take effect";
+}
+
+function clearTip(){
+document.getElementById('tooltip').innerHTML = "";
+}
+
+function checkForm(){
+joinadd();
+// Here we will put addresses validation code
+
+if (document.getElementById('reboot').value == 'yes'){
+var r=confirm("The modem is going to be restarted. Ok to proceed.");
+if (r==true)
+{
+return true;
+}
+document.getElementById('reboot').value = 'no';
+return false
+}
+}
+
+
+
+function fill_ip_data()
+{
+
+var idip = 'ipe';
+var idnet = 'nete';
+var idgw = 'gwe';
+var idmac = 'mace'
+
+for (var i=1;i<=4;i++)
+{
+document.getElementById(idip+i).value = ip_array[i-1];
+document.getElementById(idnet+i).value = nm_array[i-1];
+document.getElementById(idgw+i).value = gw_array[i-1];
+document.getElementById(idmac+i).value = mac_array[i-1];
+}
+document.getElementById(idmac+5).value = mac_array[4];
+document.getElementById(idmac+6).value = mac_array[5];
+
+
+if (networking == 'yes')
+ document.glavnaForma.networking[0].checked = 'checked';
+
+
+if (forwarding == 'yes')
+ document.glavnaForma.forwarding[0].checked = 'checked';
+
+
+if (stp == 'yes')
+ document.glavnaForma.stp[0].checked = 'checked';
+
+
+if (bridging == 'yes')
+ document.glavnaForma.bridging[0].checked = 'checked';
+
+
+if (dhcp == 'dhcp')
+ document.glavnaForma.dhcp[0].checked = 'checked';
+
+
+
+}
+
+</script>
+
+</head>
+
+<!-- <body onload='javascript:ip_data();'> -->
+<body onload='javascript:fill_ip_data();'>
+
+<div style='margin-left:5%;width:500px;background-color:#F5F5F5' > <h2>Bridge configuration</h2></div>
+
+
+<form name='glavnaForma' action='/goform/formIpModification' target="_self" method='POST' onSubmit='return checkForm();'>
+<table style='margin-left:5%;width:500px' border='0'>
+
+<tr>
+<td><h3 style='margin-top:10px'>Network configuration</h3></td>
+</tr>
+<tr>
+<td>Current IP address</td>
+<td><input id='ipe1' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='ipe2' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='ipe3' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='ipe4' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input type='hidden' name='ip' id='ip' value='0'/> </td>
+</tr>
+<tr>
+<td>Current NET mask</td>
+<td><input id='nete1' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='nete2' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='nete3' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='nete4' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input type='hidden' name='nm' id='nm' value='0'/> </td>
+</tr>
+<tr>
+<td>Current gateway address</td>
+<td><input id='gwe1' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='gwe2' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='gwe3' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input id='gwe4' type='text' size=3 maxlength=3 value='0'/> </td>
+<td><input type='hidden' id='gw' name='gw' value='0'/> </td>
+</tr>
+<tr align='center'>
+<td align='left'>MAC address</td>
+<td><input disabled='disabled' id='mace1' type='text' size=2 maxlength=2 value='0'/> </td>
+<td><input disabled='disabled' id='mace2' type='text' size=2 maxlength=2 value='0'/> </td>
+<td><input disabled='disabled' id='mace3' type='text' size=2 maxlength=2 value='0'/> </td>
+<td><input disabled='disabled' id='mace4' type='text' size=2 maxlength=2 value='0'/> </td>
+<td><input disabled='disabled' id='mace5' type='text' size=2 maxlength=2 value='0'/> </td>
+<td><input disabled='disabled' id='mace6' type='text' size=2 maxlength=2 value='0'/> </td>
+</tr>
+<!-- <tr><td><input type='submit' onclick='javascript:joinadd();' value='Save configuration'/> </td></tr> -->
+
+</table>
+<input type='hidden' name='inter' id='inter' value='br0'/>
+
+
+
+<div style='margin-left:5%;width:500px;background-color:#F5F5F5'> <h2>Global configuration</h2></div>
+<table style='margin-left:5%;width:500px' border='0'>
+
+<tr><td>DHCP Mode</td><td><input type='radio' name='dhcp' value='male'/>ON</td><td><input type='radio' name='dhcp' value='female' checked='checked'/>OFF</td> </tr>
+<tr><td>Networking </td><td><input type='radio' name='networking' value='male'/>ON</td><td><input type='radio' name='networking' value='female' checked='checked'/>OFF</td> </tr>
+<tr><td>Forward IPv4 </td><td><input type='radio' name='forwarding' value='male'/>ON</td><td><input type='radio' name='forwarding' value='female' checked='checked'/>OFF</td> </tr>
+<tr><td>Bridging </td><td><input type='radio' name='bridging' value='male'/>ON</td><td><input type='radio' name='bridging' value='female' checked='checked'/> OFF</td> </tr>
+<tr><td>STP </td><td><input type='radio' name='stp' value='male'/>ON</td><td><input type='radio' name='stp' value='female' checked='checked'/>OFF</td> </tr>
+<!--<tr><td><input type='submit' onclick='javascript:joinadd();' value='Save configuration'/></td></tr>
+<tr><td> <input type='submit' value='Restart the modem' onclick='javascript:reboot_flag();'/>--><tr><td> <input type='hidden' name='reboot' id='reboot' value='no'/></td> </tr>
+</table>
+
+
+
+
+
+
+<div style='margin-left:5%;width:500px;background-color:#F5F5F5'><h2>Activity statistics</h2></div>
+
+
+
+<table id='background-image' class='d25' style='margin-left:5%;width:500px' border='0'> <tr align='center'><td colspan='2'>RX:</td><td colspan='2'>TX:</td></tr>
+<tr><td class='d25' >Bytes</td><td class='d25' id='rb' bgcolor='lavender' align='center'></td><td>Bytes</td> <td class='d25' id = 'tb' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Packets</td><td class='d25' id='rp' bgcolor='lavender' align='center'></td><td>Packets</td> <td class='d25' id = 'tp' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Errors</td><td class='d25' id='re' bgcolor='lavender' align='center'></td><td>Errors</td> <td class='d25' id = 'te' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Drops</td><td class='d25' id='rd' bgcolor='lavender' align='center'></td><td>Drops</td> <td class='d25' id = 'td' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Fifo</td><td class='d25' id='rf' bgcolor='lavender' align='center'></td><td>Fifo</td> <td class='d25' id = 'tf' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Frame</td><td class='d25' id='rfr' bgcolor='lavender' align='center'></td><td>Colls</td> <td class='d25' id = 'tc' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Compressed</td><td class='d25' id='rc' bgcolor='lavender' align='center'></td><td>Carrier</td> <td class='d25' id = 'tcar' bgcolor='lavender' align='center'></td></tr>
+<tr><td class='d25' >Multicast</td><td class='d25' id='rm' bgcolor='lavender' align='center'></td><td>Compressed</td> <td class='d25' id = 'tcom' bgcolor='lavender' align='center'></td></tr>
+
+</table>
+<div style='position:relative;margin-left:5%;width:500px' align='right'>
+Auto refresh<input type='checkbox' name='refresh_or_not' id='refresh_or_not' onchange='set_refresh();' checked='checked' >
+</div>
+
+
+
+
+<div style='position:relative;margin-left:5%;width:500px' align='right'>
+<pre></pre>
+<input type='button' value='Refresh' onclick='javascript:refresh();'>
+<input type='submit' onclick='javascript:joinadd();' value='Save configuration' onmouseover='javascript:showTip();' onmouseout='javascript:clearTip();'/>
+<input type='submit' value='Restart the modem' onclick='javascript:reboot_flag();'/>
+<pre id ='tooltip'></pre>
+</div>
+</form>
+
+
+
+<iframe id='stat_iframe' name='stat_iframe' src ="stat.asp?iter=br0" frameborder='0' height='5'>
+ <p>Your browser does not support iframes.</p>
+</iframe>
+</body>
+
+</html>
+
+