www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / statsifc.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3         (c) 2005 U.S. Robotics Corporation
4 -->
5 <html>
6 <head>
7         <title>Statistics &raquo; LAN</title>
8
9         <link href="usr_main.css" rel="stylesheet" type="text/css">
10         <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>
11         <script src="usr_common.js" type="text/javascript"></script>
12
13         <meta http-equiv='Pragma' content='no-cache'>
14         <meta http-equiv="refresh" content="15">
15
16
17         <script type="text/javascript">
18 <!-- hide
19
20 setPageTitle("<%ejGetWlJS(wlInterface)%>");
21
22 function frmLoad() {
23    var updateIfc = '<%ejFncCmd(stsifcupdate)%>';
24 }
25
26 function resetClick() {
27    var loc = 'statsifcreset.html';
28
29    var code = 'location = "' + loc + '"';
30    eval(code);
31 }
32
33 // done hiding -->
34 </script>
35    </head>
36    <body onload="initMenu(); frmLoad();">
37
38 <script type="text/javascript">
39         writeHeader("Statistics", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
40 </script>
41
42 <h3>LAN</h3>
43
44 <table border="1" cellpadding="2" cellspacing="0">
45    <tr>
46       <th>Interface</th>
47       <th colspan="4">Received</th>
48       <th colspan="4">Transmitted</th>
49    </tr>
50    <tr>
51       <th>&nbsp;</th>
52       <th>Bytes</th>
53       <th>Packets</th>
54       <th>Errors</th>
55       <th>Drops</th>
56       <th>Bytes</th>
57       <th>Packets</th>
58       <th>Errors</th>
59       <th>Drops</th>
60    </tr>
61 <script type="text/javascript">
62 <!-- hide
63
64 var numEnet = '<%ejGetJS(numEnet)%>';
65 var brdId = '<%ejGetJS(boardID)%>';
66 var dispName = ' ';
67
68 if ( numEnet == '2' ) {
69    dispName = getUNameByLName(brdId + '|eth1');
70    document.writeln("               <tr>");
71    document.writeln("                  <th>Ethernet " + dispName + "</th>");
72    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 0)%></td>");
73    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 1)%></td>");
74    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 2)%></td>");
75    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 3)%></td>");
76    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 4)%></td>");
77    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 5)%></td>");
78    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 6)%></td>");
79    document.writeln("                  <td><%ejGetOther(stsifcget, 3, 7)%></td>");
80    document.writeln("               </tr>");
81    dispName = getUNameByLName(brdId + '|eth0');
82    document.writeln("               <tr>");
83    document.writeln("                  <th>Ethernet " + dispName + "</th>");
84    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 0)%></td>");
85    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 1)%></td>");
86    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 2)%></td>");
87    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 3)%></td>");
88    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 4)%></td>");
89    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 5)%></td>");
90    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 6)%></td>");
91    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 7)%></td>");
92    document.writeln("              </tr>");
93 }
94 else {
95    document.writeln("               <tr>");
96    document.writeln("                  <th>Ethernet</th>");
97    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 0)%></td>");
98    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 1)%></td>");
99    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 2)%></td>");
100    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 3)%></td>");
101    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 4)%></td>");
102    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 5)%></td>");
103    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 6)%></td>");
104    document.writeln("                  <td><%ejGetOther(stsifcget, 0, 7)%></td>");
105    document.writeln("               </tr>");
106 }
107
108 var enblUsb = '<%ejGetJS(enblUsb)%>';
109
110 if ( enblUsb == '1' ) {
111    document.writeln("               <tr>");
112    document.writeln("                  <th>USB</th>");
113    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 0)%></td>");
114    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 1)%></td>");
115    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 2)%></td>");
116    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 3)%></td>");
117    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 4)%></td>");
118    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 5)%></td>");
119    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 6)%></td>");
120    document.writeln("                  <td><%ejGetOther(stsifcget, 1, 7)%></td>");
121    document.writeln("               </tr>");
122 }
123
124 var ifc = '<%ejGetWlJS(wlInterface)%>';
125
126 if ( ifc == '1' ) {
127    document.writeln("  <tr>");
128    document.writeln("    <th>Wireless</th>");
129    document.writeln("    <td><%ejGetOther(stsifcget, 2, 0)%></td>");
130    document.writeln("    <td><%ejGetOther(stsifcget, 2, 1)%></td>");
131    document.writeln("    <td><%ejGetOther(stsifcget, 2, 2)%></td>");
132    document.writeln("    <td><%ejGetOther(stsifcget, 2, 3)%></td>");
133    document.writeln("    <td><%ejGetOther(stsifcget, 2, 4)%></td>");
134    document.writeln("    <td><%ejGetOther(stsifcget, 2, 5)%></td>");
135    document.writeln("    <td><%ejGetOther(stsifcget, 2, 6)%></td>");
136    document.writeln("    <td><%ejGetOther(stsifcget, 2, 7)%></td>");
137    document.writeln("  </tr>");
138 }
139 // done hiding -->
140 </script>
141 </table>
142
143 <p><input type='button' onClick='resetClick()' value='Reset Statistics'></p>
144
145 <script type="text/javascript">
146         writeFooter();
147 </script>
148
149 </body>
150 </html>