Subversion Repositories ALCASAR

Rev

Rev 1831 | Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
324 richard 1
<form action="stats.php" method="get">
2
<table border=0 width=600 cellpadding=2 cellspacing=0>
3
<tr>
4
	<td align=left>
5
	<table border=0 cellspacing=0 cellpadding=2>
6
	<tr valign=bottom>
7
		<td><small><b>De </td>
8
		<td><small><b>&agrave; </td>
9
		<td><small><b>usager</td>
10
		<td><small><b>sur le serveur</td>
11
		<td>&nbsp;</td>
12
		</tr>
13
	<tr valign=middle>
14
<?php
15
echo <<<EOM
16
		<td valign=middle><input type="text" name="after"  size="12" value="$after" ></td>
17
		<td valign=middle><input type="text" name="before" size="12" value="$before"></td>
18
		<td valign=middle><input type="text" name="login"  size="12" value="$login" ></td>
19
		<td valign=middle><select name="server" size=1>
20
EOM;
21
foreach($servers as $key => $val)
22
	echo <<<EOM
23
	<option value="$val">$key
24
EOM;
25
?>
26
		</select></td>
27
		<td valign=middle><input type="submit" class=button value="Go"></td>
28
		</tr>
29
	</table>
30
	</td>
31
</tr>
32
<tr>
33
<td><hr size=1 noshade></td>
34
</tr>
35
<tr>
36
	<td valign=top>
37
	<table border=0 width="100%">
38
	<tr>	<td align=center valign=top width="45%">
39
		<small>
40
		<font color="darkblue"><b><?php echo $date ?></b></font>
41
		</td>
42
		<td align=center valign=top width="10%">&nbsp;</td>
43
		<td align=center valign=top width="45%"><small>
44
		P&eacute;riode observ&eacute;e :<br>
45
<?php
46
echo <<<EOM
47
		<b>$after</b>  &agrave;  <b>$before</b>
48
EOM;
49
?>
50
		</td>
51
		</tr>
52
	</table>
53
	</td>
54
</tr>
55
<tr>
56
	<td align=center><h1><b>Statistiques d'utilisation journali&egrave;re</td>
57
</tr>
58
<tr>
59
	<td valign=top>
60
	<table border=0 width="100%">
61
	<tr>
62
		<td colspan=2>
63
		<center>
64
		Statistiques pour 
65
<?php
66
if ($login == '')
67
	echo <<<EOM
68
<b><font color="darkblue">tous</font></b> les usagers
69
EOM;
70
else
71
	echo <<<EOM
72
l'usager <b><font color="darkblue">$login</font></b>
73
EOM;
74
?>
75
	</td>
76
	</tr>
77
	</table>
78
	</td>
79
</tr>
80
 
81
<tr>
82
	<td>
83
	<table border=0 cellpadding=0 cellspacing=0 width="100%">
84
	<tr>	<td colspan=2><hr size=1 noshade>
85
		</td>
86
		</tr>
87
 
88
	</table>
89
	</td>
90
	</tr>
91
<tr>
92
	<td align="center">
93
	<table border=0 cellpadding=0 cellspacing=1 width="100%">
94
<?php
95
echo <<<EOM
96
	<tr>
97
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
98
		<option $selected1[sessions] value="sessions">Nbre de sessions
99
		<option $selected1[usage] value="usage">Temps d'utilisation total
100
		<option value="upload">------------------
101
		<option $selected1[upload] value="upload">uploads
102
		<option $selected1[download] value="download">downloads
103
	</select> <select name="column2">
104
		<option $selected2[sessions] value="sessions">Nbre de sessions
105
		<option $selected2[usage] value="usage">Temps d'utilisation total
106
		<option	value="upload">------------------
107
		<option $selected2[upload] value="upload">uploads
108
		<option $selected2[download] value="download">downloads
109
	</select> <select name="column3">
110
		<option $selected3[sessions] value="sessions">Nbre de sessions
111
		<option $selected3[usage] value="usage">Temps d'utilisation total
112
		<option value="upload">------------------
113
		<option $selected3[upload] value="upload">uploads
114
		<option $selected3[download] value="download">downloads
115
EOM;
116
?>
117
		</select>
118
		</td>
119
	</tr>
120
	<tr>
121
		<td colspan=10 align=center valign=middle>
122
		<table border=0 width="100%">
123
		<tr>
124
			<td width=50% align=left>
125
			<table border=0 cellpadding=0 cellspacing=0>
126
			<tr>
127
			<td align=right><input type="submit" class=button value="Rafra&icirc;chir"></td>
128
			</tr>
129
			</table>
130
			</td>
131
		</tr>
132
		</table>
133
		</td>
134
	</tr>
135
	</table>
136
	</td>
137
	<tr>
138
	<td colspan=10 height=20><img src="images/pixel.gif"></td>
139
	</tr>
140
	<tr>
141
		<td colspan=10 height=20 align=center>
142
		<table border=0 width=640 cellpadding=1 cellspacing=1>
143
		<tr valign=top>
144
				<td width=440></td>
145
				<td bgcolor="black" width=200>
146
					<table border=0 width=100% cellpadding=2 cellspacing=0>
147
					<tr bgcolor="#907030" align=right valign=top><th>
148
							<font color="white">Analyse journali&egrave;re</font>&nbsp;
149
					</th></tr>
150
					</table>
151
				</td></tr>
152
		<tr valign=top><td colspan=2>
153
			<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
154
			<tr><td>
155
				<p>
156
				<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
157
				<tr bgcolor="#d0ddb0">
158
					<th>date</th>
159
<?php
160
echo <<<EOM
161
	<th colspan=3>$message[$column1]</th>
162
	<th colspan=3>$message[$column2]</th>
163
	<th colspan=3>$message[$column3]</th>
164
EOM;
165
?>
166
				</tr>
167
<?php
168
	for($i = 0; $i <= $num_days; $i++){
169
		$day = $days[$i];
170
		$trcolor = ($i % 2) ? "#f7f7e4" : "#efefe4";
171
		echo <<<EOM
172
	<tr align=center bgcolor="$trcolor">
173
		<td>$day</td>
174
		<td>{$data[$day][1]}</td>
175
		<td>{$perc[$day][1]}</td>
176
		<td align=left height=14>
177
			<table border=0 cellpadding=0>
178
			<tr>
179
				<td bgcolor="{$color[$day][1]}" width={$width[$day][1]}><img border=0 height=14 width={$width[$day][1]} src="images/pixel.gif" alt="the $message[$column1] for $day is {$data[$day][1]}"></td>
180
			</tr>
181
			</table>
182
		</td>
183
		<td>{$data[$day][2]}</td>
184
		<td>{$perc[$day][2]}</td>
185
		<td align=left height=14>
186
			<table border=0 cellpadding=0>
187
			<tr>
188
				<td bgcolor="{$color[$day][2]}" width={$width[$day][2]}><img border=0 height=14 width={$width[$day][2]} src="images/pixel.gif" alt="the $message[$column3] for $day is {$data[$day][2]}"></td>
189
			</tr>
190
			</table>
191
		</td>
192
		<td>{$data[$day][3]}</td>
193
		<td>{$perc[$day][3]}</td>
194
		<td align=left height=14>
195
			<table border=0 cellpadding=0>
196
			<tr>
197
			<td bgcolor="{$color[$day][3]}" width={$width[$day][3]}><img border=0 height=14 width={$width[$day][3]} src="images/pixel.gif" alt="the $message[$column3] for $day is {$data[$day][3]}"></td>
198
			</tr>
199
			</table>
200
		</td>
201
		</tr>
202
EOM;
203
}
204
?>
205
</table>
206
</td></tr>
207
</table>
208
</td></tr>
209
</table>
210
</td></tr>
211
</table>
212
<p>
213
<table border=0 width=640 cellpadding=1 cellspacing=1>
214
<tr valign=top>
215
<td width=440></td>
216
<td bgcolor="black" width=200>
217
	<table border=0 width=100% cellpadding=2 cellspacing=0>
218
	<tr bgcolor="#907030" align=right valign=top><th>
219
	<font color="white">R&eacute;capitulatif journalier</font>&nbsp;
220
	</th></tr>
221
	</table>
222
</td></tr>
223
<tr bgcolor="black" valign=top><td colspan=2>
224
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
225
	<tr><td>
226
<p>
227
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
228
ffe0" valign=top>
229
	<tr bgcolor="#d0ddb0">
230
	<th>&nbsp;</th>
231
<?php
232
echo <<<EOM
233
	<th>$message[$column1]</th>
234
	<th>$message[$column2]</th>
235
	<th>$message[$column3]</th>
236
EOM;
237
?>
238
	</tr>
239
<?php
240
echo <<<EOM
241
		<tr align=center bgcolor="#efefe4">
242
			<td>maximum</td>
243
			<td>{$data[max][1]}</td>
244
			<td>{$data[max][2]}</td>
245
			<td>{$data[max][3]}</td>
246
			</tr>
247
		<tr align=center bgcolor="#f7f7e4">
248
			<td>moyenne</td>
249
			<td>{$data[avg][1]}</td>
250
			<td>{$data[avg][2]}</td>
251
			<td>{$data[avg][3]}</td>
252
			</tr>
253
		<tr align=center bgcolor="#efefe4">
254
			<td>r&eacute;capitulatif</td>
255
			<td>{$data[sum][1]}</td>
256
			<td>{$data[sum][2]}</td>
257
			<td>{$data[sum][3]}</td>
258
			</tr>
259
EOM;
260
?>
261
</table>
262
		</table>
263
		</td></tr>
264
	</table>
265
	</td></tr>
266
</table>
267
</form>
268
</center>
269
</body>
270
</html>