Subversion Repositories ALCASAR

Rev

Rev 1956 | Rev 2858 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1956 Rev 2527
Line 1... Line -...
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
1
<?php
15
if(!isset($login))
2
	# Choice of language
16
{
-
 
17
	$login = "";
3
	$Language = 'en';
-
 
4
	if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
18
}
5
	{
19
echo <<<EOM
-
 
20
		<td valign=middle><input type="text" name="after"  size="12" value="$after" ></td>
-
 
21
		<td valign=middle><input type="text" name="before" size="12" value="$before"></td>
6
		$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
22
		<td valign=middle><input type="text" name="login"  size="12" value="$login" ></td>
7
		$Language = strtolower(substr(chop($Langue[0]),0,2)); 
-
 
8
	}
23
		<td valign=middle><select name="server" size=1>
9
	if($Language == 'fr')
24
EOM;
10
	{
25
foreach($servers as $key => $val)
11
		$l_Pagename = "Usage journalier";
-
 
12
	}
26
	echo <<<EOM
13
	else
-
 
14
	{
27
	<option value="$val">$key
15
		$l_Pagename = "Daily use";
28
EOM;
16
	}
29
?>
17
?>
-
 
18
 
-
 
19
<form action="stats.php" method="get">
-
 
20
<table width="100%" border=0 cellspacing=0 cellpadding=2>
-
 
21
	<tbody>		
30
		</select></td>
22
		<tr>
31
		<td valign=middle><input type="submit" class=button value="Go"></td>
23
			<th class="thBasicACC">
-
 
24
				<?echo "$l_Pagename";?>
-
 
25
			</th>
32
		</tr>
26
		</tr>
33
	</table>
27
	</tbody>
-
 
28
	<tr bgcolor="#FFCC66">
-
 
29
		<td>
-
 
30
			<img src="/images/pix.gif" width="1" height="2">
34
	</td>
31
		</td>
35
</tr>
32
	</tr>
-
 
33
</table>
-
 
34
 
-
 
35
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
36
<tr>
36
	<tr>
-
 
37
		<td colspan="2"  align=center>
-
 
38
		<table  border=0 cellspacing=2 cellpadding=2>
-
 
39
			<tr valign=bottom>
-
 
40
				<td><small><b>De </td>
-
 
41
				<td><small><b>&agrave; </td>
37
<td><hr size=1 noshade></td>
42
				<td><small><b>usager</td>
-
 
43
				<td><small><b>sur le serveur</td>
-
 
44
				<td>&nbsp;</td>
-
 
45
				</tr>
-
 
46
			<tr valign=middle>
-
 
47
				<?php
-
 
48
				if(!isset($login))
-
 
49
				{
-
 
50
					$login = "";
-
 
51
				}
-
 
52
				?>
-
 
53
				<td valign=middle><input type="text" name="after"  size="12" value="<?php echo $after; ?>" ></td>
-
 
54
				<td valign=middle><input type="text" name="before" size="12" value="<?php echo $before; ?>"></td>
-
 
55
				<td valign=middle><input type="text" name="login"  size="12" value="<?php echo $login; ?>" ></td>
-
 
56
				<td valign=middle>
-
 
57
					<select name="server" size=1>
-
 
58
					<?php foreach($servers as $key => $val): ?>
-
 
59
						<option value="<?php echo $val; ?>"><?php echo $key; ?>
-
 
60
					<?php endforeach; ?>
-
 
61
				</select>
-
 
62
				</td>
-
 
63
					<td  valign=middle><input type="submit" class=button value="Go"></td>
-
 
64
			</tr>
-
 
65
		</table>
-
 
66
		</td>
38
</tr>
67
	</tr>
-
 
68
 
-
 
69
	<tbody >	
-
 
70
 
39
<tr>
71
<tr>
40
	<td valign=top>
72
	<tr>
41
	<tr>	<td align=center valign=top width=100"%">
-
 
42
		<small>
73
		<small>
-
 
74
		<td align=center valign=top width="40%">
43
		<font color="darkblue"><b><?php echo $date ?></b></font>
75
			<font color="darkblue" ><b><?php echo $date ?></b></font>
44
		</td>
76
			</td>
45
		<td align=center valign=top width="10%">&nbsp;</td>
77
		</small>
46
		<td align=center valign=top width="45%"><small>
78
			<td align= center  width="10%">&nbsp;
47
		P&eacute;riode observ&eacute;e :<br>
79
		P&eacute;riode observ&eacute;e :<br>
48
<?php
80
<?php
49
echo <<<EOM
81
echo <<<EOM
50
		<b>$after</b>  &agrave;  <b>$before</b>
82
		<b>$after</b>  &agrave;  <b>$before</b>
51
EOM;
83
EOM;
52
?>
84
?>
53
		</td>
85
		</td>
54
		</tr>
86
		</tr>
55
	</table>
-
 
56
	</td>
87
	</td>
57
</tr>
88
</tr>
-
 
89
	
-
 
90
 </tbody>
-
 
91
</table>
-
 
92
<br>
58
<tr>
93
<tr >
59
	<td align=center><h1><b>Statistiques d'utilisation journali&egrave;re</td>
94
	<td align=center><h1><b>Statistiques d'utilisation journali&egrave;re</td>
60
</tr>
95
</tr>
61
<tr>
96
<tr>
62
	<td valign=top>
97
	<td valign=top>
63
	<table border=0 width="100%">
98
	<table border=0 width="100%">
Line 81... Line 116...
81
	</td>
116
	</td>
82
</tr>
117
</tr>
83
 
118
 
84
<tr>
119
<tr>
85
	<td>
120
	<td>
86
	<table border=0 cellpadding=0 cellspacing=0 width="100%">
-
 
-
 
121
 
87
	<tr>	<td colspan=2><hr size=1 noshade>
122
	<tr>	<td colspan=2>
88
		</td>
123
		</td>
89
		</tr>
124
		</tr>
90
		
-
 
91
	</table>
-
 
92
	</td>
125
	</td>
93
	</tr>
126
	</tr>
-
 
127
</table>
94
<tr>
128
<tr>
95
	<td align="center">
129
	<td align="center">
96
 
130
 
97
 
-
 
98
 
-
 
99
	<tr>
131
	<tr>
100
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
132
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
101
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions
133
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions
102
		<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage">Temps d'utilisation total
134
		<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage">Temps d'utilisation total
103
		<option value="upload">------------------
135
		<option value="upload">------------------
Line 114... Line 146...
114
		<option <?php if(isset($selected3['usage'])){print($selected3['usage']);} ?> value="usage">Temps d'utilisation total
146
		<option <?php if(isset($selected3['usage'])){print($selected3['usage']);} ?> value="usage">Temps d'utilisation total
115
		<option value="upload">------------------
147
		<option value="upload">------------------
116
		<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload">uploads
148
		<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload">uploads
117
		<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download">downloads
149
		<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download">downloads
118
 
150
 
119
 
-
 
120
		</select>
151
		</select>
121
		</td>
152
		</td>
122
	</tr>
153
	</tr>
-
 
154
	<hr size=1 noshade>
-
 
155
 
123
	<tr>
156
	<tr>
124
		<td colspan=10 align=center valign=middle>
157
		<td colspan=10 align=center valign=middle>
125
		<table border=0 width="100%">
158
		<table border=0 width="100%">
126
		<tr>
159
		<tr>
127
			<td width=100% align=left>
160
			<td width=100% align=left>
Line 138... Line 171...
138
	</table>
171
	</table>
139
	</td>
172
	</td>
140
	<tr>
173
	<tr>
141
	<td colspan=10 height=20><img src="images/pixel.gif"></td>
174
	<td colspan=10 height=20><img src="images/pixel.gif"></td>
142
	</tr>
175
	</tr>
143
	<tr>
176
</table>
-
 
177
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
-
 
178
			<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'>	
144
		<td colspan=10 height=20 align=center>
179
		<td colspan=10 height=20 align=center>
145
		<tr valign=top>
-
 
146
				<td width=100%></td>
-
 
147
				<td bgcolor="black" width=200>
-
 
148
					<table border=0 width=100% cellpadding=2 cellspacing=0>
180
					<table border=0 width=100% cellpadding=2 cellspacing=0>
-
 
181
						<tbody>
149
					<tr bgcolor="#666666" align=center valign=top><th>
182
							<tr bgcolor="#666660" align=center valign=top><th>
150
							<font color="white">Analyse journali&egrave;re</font>&nbsp;
183
									<font color="white">Analyse journali&egrave;re</font>&nbsp;
-
 
184
								</th>
-
 
185
							</tr>
-
 
186
							<tr bgcolor="#FFCC66">
-
 
187
								<td>
-
 
188
									<img src="/images/pix.gif" width="1" height="2">
-
 
189
								</td>
-
 
190
							</tr>			
-
 
191
						</tbody>
151
					</table>
192
					</table>
152
				</td></tr>
-
 
153
		<tr valign=top><td colspan=2>
193
		<tr valign=top>
154
			<tr><td>
-
 
155
				<p>
194
			<tr>
156
				<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
195
				<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
157
				<tr bgcolor="#d0ddb0">
196
				<tr bgcolor="#d0ddb0">
158
					<th>date</th>
197
					<th>date</th>
159
<?php
198
<?php
160
echo <<<EOM
199
echo <<<EOM
Line 196... Line 235...
196
			<tr>
235
			<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>
236
			<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>
237
			</tr>
199
			</table>
238
			</table>
200
		</td>
239
		</td>
-
 
240
 
201
		</tr>
241
		</tr>
202
EOM;
242
EOM;
203
}
243
}
204
?>
244
?>
205
</table>
245
</table>
206
</td></tr>
-
 
207
</table>
-
 
208
</td></tr>
-
 
209
</table>
246
</tbody>
210
</td></tr>
-
 
211
</table>
247
</table>
212
<p>
-
 
213
<table border=0 width=100% cellpadding=1 cellspacing=1>
248
<table border=0 width=100% cellpadding=2 cellspacing=0>
214
<tr valign=top>
249
<tr valign=top>
215
<td width=440></td>
250
<td width=440></td>
216
	<tr bgcolor="#666666" align=center valign=top><th>
251
	<tr bgcolor="#666660" align=center valign=top><th>
217
	<font color="white">R&eacute;capitulatif journalier</font>&nbsp;
252
	<font color="white">R&eacute;capitulatif journalier</font>&nbsp;
218
	</th></tr>
253
	</th></tr>
-
 
254
	<tr bgcolor="#FFCC66">
-
 
255
	<td>
-
 
256
		<img src="/images/pix.gif" width="1" height="3">
-
 
257
	</td>
-
 
258
	</tr>	
219
	</table>
259
	</table>
220
</td></tr>
260
</td></tr>
221
<tr bgcolor="black" valign=top><td colspan=2>
261
<tr valign=top><td colspan=2>
222
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
-
 
223
	<tr><td>
262
	<tr><td>
224
<p>
-
 
225
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
263
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
226
ffe0" valign=top>
264
ffe0" valign=top>
227
	<tr bgcolor="#d0ddb0">
265
	<tr bgcolor="#d0ddb0">
228
	<th>&nbsp;</th>
266
	<th>&nbsp;</th>
229
<?php
267
<?php
Line 254... Line 292...
254
			<td>{$data['sum'][2]}</td>
292
			<td>{$data['sum'][2]}</td>
255
			<td>{$data['sum'][3]}</td>
293
			<td>{$data['sum'][3]}</td>
256
			</tr>
294
			</tr>
257
EOM;
295
EOM;
258
?>
296
?>
259
</table>
-
 
260
		</table>
-
 
261
		</td></tr>
297
		</td></tr>
262
	</table>
-
 
263
	</td></tr>
298
	</td></tr>
264
</table>
299
</table>
265
</form>
300
</form>
266
</center>
301
</center>
267
</body>
302
</body>