Subversion Repositories ALCASAR

Rev

Rev 2527 | Rev 2861 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2527 fabien.rak 1
<form action="stats.php" method="get">
2858 rexy 2
<div class="panel">
3
	<div class="panel-header"><?= $l_title ?></div>
4
	<div class="panel-row">
5
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
2527 fabien.rak 6
		<tr>
2858 rexy 7
			<td colspan="2"  align=center>
8
				<table  border=0 cellspacing=2 cellpadding=2>
9
					<tr valign=bottom>
10
						<td><small><b><?= $l_from ?></b></small></td>
11
						<td><small><b><?= $l_to ?></b></small></td>
12
						<td><small><b><?= $l_user ?></b></small></td>
13
						<td><small><b><?= $l_onserver ?></b></small></td>
14
						<td>&nbsp;</td>
15
					</tr>
16
					<tr valign=middle>
17
						<?php if(!isset($login)) { $login = ""; } ?>
18
						<td valign=middle><input type="text" name="after"  size="12" value="<?php echo $after; ?>" ></td>
19
						<td valign=middle><input type="text" name="before" size="12" value="<?php echo $before; ?>"></td>
20
						<td valign=middle><input type="text" name="login"  size="12" value="<?php echo $login; ?>" ></td>
21
						<td valign=middle>
22
							<select name="server" size=1>
23
							<?php foreach($servers as $key => $val): ?>
24
							<option value="<?php echo $val; ?>"><?php echo $key; ?>
25
							<?php endforeach; ?>
26
							</select>
27
						</td>
28
						<td  valign=middle><input type="submit" class=button value="Go"></td>
29
					</tr>
30
				</table>
31
			</td>
324 richard 32
		</tr>
2527 fabien.rak 33
		</table>
2858 rexy 34
		<center>Statistiques pour 
324 richard 35
<?php
36
if ($login == '')
37
	echo <<<EOM
38
<b><font color="darkblue">tous</font></b> les usagers
39
EOM;
40
else
41
	echo <<<EOM
42
l'usager <b><font color="darkblue">$login</font></b>
43
EOM;
44
?>
45
<tr>
46
	<td align="center">
47
	<tr>
48
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
1846 raphael.pi 49
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions
50
		<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage">Temps d'utilisation total
324 richard 51
		<option value="upload">------------------
1846 raphael.pi 52
		<option <?php if(isset($selected1['upload'])){print($selected1['upload']);} ?> value="upload">uploads
53
		<option <?php if(isset($selected1['download'])){print($selected1['download']);} ?> value="download">downloads
324 richard 54
	</select> <select name="column2">
1846 raphael.pi 55
		<option <?php if(isset($selected2['sessions'])){print($selected2['sessions']);} ?> value="sessions">Nbre de sessions
56
		<option <?php if(isset($selected2['usage'])){print($selected2['usage']);} ?> value="usage">Temps d'utilisation total
324 richard 57
		<option	value="upload">------------------
1846 raphael.pi 58
		<option <?php if(isset($selected2['upload'])){print($selected2['upload']);} ?> value="upload">uploads
59
		<option <?php if(isset($selected2['download'])){print($selected2['download']);} ?> value="download">downloads
324 richard 60
	</select> <select name="column3">
1846 raphael.pi 61
		<option <?php if(isset($selected3['sessions'])){print($selected3['sessions']);} ?> value="sessions">Nbre de sessions
62
		<option <?php if(isset($selected3['usage'])){print($selected3['usage']);} ?> value="usage">Temps d'utilisation total
324 richard 63
		<option value="upload">------------------
1846 raphael.pi 64
		<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload">uploads
65
		<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download">downloads
1831 raphael.pi 66
 
324 richard 67
		</select>
68
		</td>
69
	</tr>
2527 fabien.rak 70
	<hr size=1 noshade>
71
 
324 richard 72
	<tr>
73
		<td colspan=10 align=center valign=middle>
74
		<table border=0 width="100%">
75
		<tr>
1956 raphael.pi 76
			<td width=100% align=left>
324 richard 77
			<table border=0 cellpadding=0 cellspacing=0>
78
			<tr>
79
			<td align=right><input type="submit" class=button value="Rafra&icirc;chir"></td>
80
			</tr>
81
			</table>
82
			</td>
83
		</tr>
84
		</table>
85
		</td>
86
	</tr>
87
	</table>
88
	</td>
89
	<tr>
90
	<td colspan=10 height=20><img src="images/pixel.gif"></td>
91
	</tr>
2527 fabien.rak 92
</table>
93
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
94
			<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'>	
324 richard 95
		<td colspan=10 height=20 align=center>
96
					<table border=0 width=100% cellpadding=2 cellspacing=0>
2527 fabien.rak 97
						<tbody>
98
							<tr bgcolor="#666660" align=center valign=top><th>
99
									<font color="white">Analyse journali&egrave;re</font>&nbsp;
100
								</th>
101
							</tr>
102
							<tr bgcolor="#FFCC66">
103
								<td>
104
									<img src="/images/pix.gif" width="1" height="2">
105
								</td>
106
							</tr>			
107
						</tbody>
324 richard 108
					</table>
2527 fabien.rak 109
		<tr valign=top>
110
			<tr>
324 richard 111
				<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
112
				<tr bgcolor="#d0ddb0">
113
					<th>date</th>
114
<?php
115
echo <<<EOM
116
	<th colspan=3>$message[$column1]</th>
117
	<th colspan=3>$message[$column2]</th>
118
	<th colspan=3>$message[$column3]</th>
119
EOM;
120
?>
121
				</tr>
122
<?php
123
	for($i = 0; $i <= $num_days; $i++){
124
		$day = $days[$i];
125
		$trcolor = ($i % 2) ? "#f7f7e4" : "#efefe4";
126
		echo <<<EOM
127
	<tr align=center bgcolor="$trcolor">
128
		<td>$day</td>
129
		<td>{$data[$day][1]}</td>
130
		<td>{$perc[$day][1]}</td>
131
		<td align=left height=14>
132
			<table border=0 cellpadding=0>
133
			<tr>
134
				<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>
135
			</tr>
136
			</table>
137
		</td>
138
		<td>{$data[$day][2]}</td>
139
		<td>{$perc[$day][2]}</td>
140
		<td align=left height=14>
141
			<table border=0 cellpadding=0>
142
			<tr>
143
				<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>
144
			</tr>
145
			</table>
146
		</td>
147
		<td>{$data[$day][3]}</td>
148
		<td>{$perc[$day][3]}</td>
149
		<td align=left height=14>
150
			<table border=0 cellpadding=0>
151
			<tr>
152
			<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>
153
			</tr>
154
			</table>
155
		</td>
2527 fabien.rak 156
 
324 richard 157
		</tr>
158
EOM;
159
}
160
?>
161
</table>
2527 fabien.rak 162
</tbody>
324 richard 163
</table>
2527 fabien.rak 164
<table border=0 width=100% cellpadding=2 cellspacing=0>
324 richard 165
<tr valign=top>
166
<td width=440></td>
2527 fabien.rak 167
	<tr bgcolor="#666660" align=center valign=top><th>
324 richard 168
	<font color="white">R&eacute;capitulatif journalier</font>&nbsp;
169
	</th></tr>
2527 fabien.rak 170
	<tr bgcolor="#FFCC66">
171
	<td>
172
		<img src="/images/pix.gif" width="1" height="3">
173
	</td>
174
	</tr>	
324 richard 175
	</table>
176
</td></tr>
2527 fabien.rak 177
<tr valign=top><td colspan=2>
324 richard 178
	<tr><td>
179
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
180
ffe0" valign=top>
181
	<tr bgcolor="#d0ddb0">
182
	<th>&nbsp;</th>
183
<?php
184
echo <<<EOM
185
	<th>$message[$column1]</th>
186
	<th>$message[$column2]</th>
187
	<th>$message[$column3]</th>
188
EOM;
189
?>
190
	</tr>
191
<?php
192
echo <<<EOM
193
		<tr align=center bgcolor="#efefe4">
194
			<td>maximum</td>
1831 raphael.pi 195
			<td>{$data['max'][1]}</td>
196
			<td>{$data['max'][2]}</td>
197
			<td>{$data['max'][3]}</td>
324 richard 198
			</tr>
199
		<tr align=center bgcolor="#f7f7e4">
200
			<td>moyenne</td>
1831 raphael.pi 201
			<td>{$data['avg'][1]}</td>
202
			<td>{$data['avg'][2]}</td>
203
			<td>{$data['avg'][3]}</td>
324 richard 204
			</tr>
205
		<tr align=center bgcolor="#efefe4">
206
			<td>r&eacute;capitulatif</td>
1831 raphael.pi 207
			<td>{$data['sum'][1]}</td>
208
			<td>{$data['sum'][2]}</td>
209
			<td>{$data['sum'][3]}</td>
324 richard 210
			</tr>
211
EOM;
212
?>
213
		</td></tr>
214
	</td></tr>
215
</table>
2858 rexy 216
	</div>
217
</div>
324 richard 218
</form>
219
</center>
220
</body>
221
</html>