Upstream tarball 9882
[amule.git] / src / webserver / default / amuleweb-main-stats.php
blob489ae6c8b6bbb0e4052a0e35b82397113bb6f873
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>aMule control panel</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <?php
7 if ( $_SESSION["auto_refresh"] > 0 ) {
8 echo "<meta http-equiv=\"refresh\" content=\"", $_SESSION["auto_refresh"], '">';
11 amule_load_vars("stats_graph");
14 <script language="JavaScript" type="text/JavaScript">
15 <!--
16 function MM_swapImgRestore() { //v3.0
17 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
20 function MM_preloadImages() { //v3.0
21 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
22 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
23 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
26 function MM_findObj(n, d) { //v4.01
27 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
28 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
29 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
30 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
31 if(!x && d.getElementById) x=d.getElementById(n); return x;
34 function MM_swapImage() { //v3.0
35 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
36 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
38 //-->
39 </script>
40 <link href="style.css" rel="stylesheet" type="text/css"><style type="text/css">
41 <!--
42 caption {
43 font-family: Helvetica;
44 font-size: 18px;
45 font-weight: bold;
46 color: #003161;
48 th {
49 font-family: Helvetica;
50 font-size: 14px;
51 font-height: 22px;
52 font-weight: bold;
53 color: #003161;
55 a:link {
56 color: #003161;
57 text-decoration: none;
59 a:active {
60 color: #003161;
61 text-decoration: none;
63 a:visited {
64 color: #003161;
65 text-decoration: none;
67 a:hover {
68 color: #c0c0c0;
69 text-decoration: underline;
71 td {
72 font-family: Helvetica;
73 font-size: 12px;
74 font-weight: normal;
76 label {
77 font-family: Helvetica;
78 font-size: 14px;
79 font-weight: bold;
81 .texte {
82 font-family: Helvetica;
83 font-size: 12px;
84 font-weight: normal;
86 label {
87 font-family:"trebuchet ms",sans-serif;
88 font-size: 12px;
89 font-weight:bold
91 input {
92 border:1px solid #003161;
93 background-color: white;
94 font-family:"trebuchet ms",sans-serif;
95 font-size: 12px;
96 color: #003161;
98 select, option {
99 background-color: white;
100 font-size: 12px;
101 color: #003161;
103 textarea {
104 border:1px solid #003161;
105 background-color: #90B6DB;
106 font-family:"trebuchet ms",sans-serif;
107 font-size: 12px;
108 color: white;
111 </style>
112 </head><script language="JavaScript" type="text/JavaScript">
113 var openImg = new Image();
114 openImg.src = "tree-open.gif";
115 var closedImg = new Image();
116 closedImg.src = "tree-closed.gif";
118 function showBranch(branch){
119 var objBranch = document.getElementById(branch).style;
120 if(objBranch.display=="block")
121 objBranch.display="none";
122 else
123 objBranch.display="block";
126 function swapFolder(img){
127 objImg = document.getElementById(img);
128 if(objImg.src.indexOf('tree-closed.gif')>-1)
129 objImg.src = openImg.src;
130 else
131 objImg.src = closedImg.src;
134 </script>
135 <body background="images/fond.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/transf_1.png','images/shared_1.png','images/search_1.png','images/edkserv_1.png','images/sheserv_1.png','images/stats_1.png');">
136 <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
137 <tr valign="top">
138 <td width="143" height="64"><img src="images/logo.png" width="143" height="64"></td>
139 <td width="100%" height="64" align="right" background="images/fond_haut.png"> <table border="0" cellspacing="0" cellpadding="0">
140 <tr>
141 <td><a href="amuleweb-main-dload.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('transfert','','images/transf_1.png',1)"><img src="images/transf_0.png" alt="transfert" name="transfert" width="52" height="50" border="0"></a></td>
142 <td><a href="amuleweb-main-shared.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('shared','','images/shared_1.png',1)"><img src="images/shared_0.png" alt="shared" name="shared" width="52" height="50" border="0"></a></td>
143 <td><a href="amuleweb-main-search.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('search','','images/search_1.png',1)"><img src="images/search_0.png" alt="search" name="search" width="52" height="50" border="0"></a></td>
144 <td><a href="amuleweb-main-servers.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('edkserver','','images/edkserv_1.png',1)"><img src="images/edkserv_0.png" alt="edkserver" name="edkserver" width="52" height="50" border="0"></a></td>
145 <td><a href="amuleweb-main-kad.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sheserv','','images/sheserv_1.png',1)"><img src="images/sheserv_0.png" alt="sheserv" name="sheserv" width="52" height="50" border="0"></a></td>
146 <td><a href="amuleweb-main-stats.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('statistiques','','images/stats_1.png',1)"><img src="images/stats_0.png" alt="statistiques" name="statistiques" width="52" height="50" border="0"></a></td>
147 <td><img src="images/col.png"></td>
148 <td width="10"></td>
149 <td width="190" align="right" class="texteinv"><a href="login.php">exit</a><br>
150 <a href="amuleweb-main-log.php">log &bull;</a> <a href="amuleweb-main-prefs.php">configuration</a></td>
151 <td width="10"></td>
152 </tr>
153 </table></td>
154 </tr>
155 <tr align="center" valign="top">
156 <td colspan="2">
157 <table width="100%" border="0" cellspacing="0" cellpadding="0">
158 <caption>
159 STATISTICS
160 </caption>
161 <tr>
162 <td width="24"><img src="images/tab_top_left.png" width="24" height="24"></td>
163 <td background="images/tab_top.png">&nbsp;</td>
164 <td width="24"><img src="images/tab_top_right.png" width="24" height="24"></td>
165 </tr>
166 <tr>
167 <td width="24" background="images/tab_left.png">&nbsp;</td>
169 <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
170 <tr valign="top">
171 <td rowspan="7">
172 <iframe name="stats" src="stats_tree.php" width="100%" height="630" frameborder="0">liste</iframe></td>
173 <td width="500" align="right"><img src="amule_stats_download.png" width="500" height="200" border="0"></td>
174 </tr>
175 <tr valign="top">
176 <td width="500" height="15">
177 <div align="center">Download-Speed</div></td>
178 </tr>
179 <tr valign="top">
180 <td width="500" align="right"><img src="amule_stats_upload.png" width="500" height="200" border="0" alt="" title="" /></td>
181 </tr>
182 <tr valign="top">
183 <td width="500" height="15">
184 <div align="center">Upload-Speed</div></td>
185 </tr>
186 <tr valign="top">
187 <td width="500" align="right"><img src="amule_stats_conncount.png" width="500" height="200" border="0" alt="" title="" /></td>
188 </tr>
189 <tr valign="top">
190 <td width="500" height="15">
191 <div align="center">Connections</div></td>
192 </tr>
193 </table></td>
194 <td width="24" background="images/tab_right.png">&nbsp;</td>
195 </tr>
196 <tr>
197 <td width="24"><img src="images/tab_bottom_left.png" width="24" height="24"></td>
198 <td background="images/tab_bottom.png">&nbsp;</td>
199 <td width="24"><img src="images/tab_bottom_right.png" width="24" height="24"></td>
200 </tr>
201 </table></td>
202 </tr>
203 <tr valign="bottom">
204 <td height="25" colspan="2"> <table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
205 <tr align="center" valign="middle">
206 <td width="50%"> <iframe name="stats" src="footer.php" height="35" width="100%" scrolling="no" frameborder="0">edklink</iframe>
207 </td>
208 <td width="50%"> <iframe name="stats" src="stats.php" height="35" width="100%" scrolling="no" frameborder="0">connection</iframe>
209 </td>
210 </tr>
211 </table></td>
212 </tr>
213 </table>
214 </body>
215 </html>