Subversion Repositories ALCASAR

Rev

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

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