Subversion Repositories ALCASAR

Rev

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

Rev 2527 Rev 2858
Line 1... Line -...
1
<?php
-
 
2
	# Choice of language
-
 
3
	$Language = 'en';
-
 
4
	if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
-
 
5
	{
-
 
6
		$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
-
 
7
		$Language = strtolower(substr(chop($Langue[0]),0,2)); 
-
 
8
	}
-
 
9
	if($Language == 'fr')
-
 
10
	{
-
 
11
		$l_Pagename = "Usage journalier";
-
 
12
	}
-
 
13
	else
-
 
14
	{
-
 
15
		$l_Pagename = "Daily use";
-
 
16
	}
-
 
17
?>
-
 
18
 
-
 
19
<form action="stats.php" method="get">
1
<form action="stats.php" method="get">
-
 
2
<div class="panel">
-
 
3
	<div class="panel-header"><?= $l_title ?></div>
-
 
4
	<div class="panel-row">
20
<table width="100%" border=0 cellspacing=0 cellpadding=2>
5
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
21
	<tbody>		
-
 
22
		<tr>
6
		<tr>
23
			<th class="thBasicACC">
-
 
24
				<?echo "$l_Pagename";?>
-
 
25
			</th>
-
 
26
		</tr>
-
 
27
	</tbody>
-
 
28
	<tr bgcolor="#FFCC66">
-
 
29
		<td>
-
 
30
			<img src="/images/pix.gif" width="1" height="2">
-
 
31
		</td>
-
 
32
	</tr>
-
 
33
</table>
-
 
34
 
-
 
35
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
-
 
36
	<tr>
-
 
37
		<td colspan="2"  align=center>
7
			<td colspan="2"  align=center>
38
		<table  border=0 cellspacing=2 cellpadding=2>
8
				<table  border=0 cellspacing=2 cellpadding=2>
39
			<tr valign=bottom>
9
					<tr valign=bottom>
40
				<td><small><b>De </td>
10
						<td><small><b><?= $l_from ?></b></small></td>
41
				<td><small><b>&agrave; </td>
11
						<td><small><b><?= $l_to ?></b></small></td>
42
				<td><small><b>usager</td>
12
						<td><small><b><?= $l_user ?></b></small></td>
43
				<td><small><b>sur le serveur</td>
13
						<td><small><b><?= $l_onserver ?></b></small></td>
44
				<td>&nbsp;</td>
14
						<td>&nbsp;</td>
45
				</tr>
15
					</tr>
46
			<tr valign=middle>
16
					<tr valign=middle>
47
				<?php
-
 
48
				if(!isset($login))
17
						<?php if(!isset($login)) { $login = ""; } ?>
49
				{
-
 
50
					$login = "";
-
 
51
				}
-
 
52
				?>
-
 
53
				<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="<?php echo $after; ?>" ></td>
54
				<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="<?php echo $before; ?>"></td>
55
				<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="<?php echo $login; ?>" ></td>
56
				<td valign=middle>
21
						<td valign=middle>
57
					<select name="server" size=1>
22
							<select name="server" size=1>
58
					<?php foreach($servers as $key => $val): ?>
23
							<?php foreach($servers as $key => $val): ?>
59
						<option value="<?php echo $val; ?>"><?php echo $key; ?>
24
							<option value="<?php echo $val; ?>"><?php echo $key; ?>
60
					<?php endforeach; ?>
25
							<?php endforeach; ?>
61
				</select>
26
							</select>
62
				</td>
27
						</td>
63
					<td  valign=middle><input type="submit" class=button value="Go"></td>
28
						<td  valign=middle><input type="submit" class=button value="Go"></td>
64
			</tr>
29
					</tr>
65
		</table>
30
				</table>
66
		</td>
-
 
67
	</tr>
-
 
68
 
-
 
69
	<tbody >	
-
 
70
 
-
 
71
<tr>
-
 
72
	<tr>
-
 
73
		<small>
-
 
74
		<td align=center valign=top width="40%">
-
 
75
			<font color="darkblue" ><b><?php echo $date ?></b></font>
-
 
76
			</td>
31
			</td>
77
		</small>
-
 
78
			<td align= center  width="10%">&nbsp;
-
 
79
		P&eacute;riode observ&eacute;e :<br>
-
 
80
<?php
-
 
81
echo <<<EOM
-
 
82
		<b>$after</b>  &agrave;  <b>$before</b>
-
 
83
EOM;
-
 
84
?>
-
 
85
		</td>
-
 
86
		</tr>
32
		</tr>
87
	</td>
-
 
88
</tr>
-
 
89
	
-
 
90
 </tbody>
-
 
91
</table>
33
		</table>
92
<br>
-
 
93
<tr >
-
 
94
	<td align=center><h1><b>Statistiques d'utilisation journali&egrave;re</td>
-
 
95
</tr>
-
 
96
<tr>
-
 
97
	<td valign=top>
-
 
98
	<table border=0 width="100%">
-
 
99
	<tr>
-
 
100
		<td colspan=2>
-
 
101
		<center>
-
 
102
		Statistiques pour 
34
		<center>Statistiques pour 
103
<?php
35
<?php
104
if ($login == '')
36
if ($login == '')
105
	echo <<<EOM
37
	echo <<<EOM
106
<b><font color="darkblue">tous</font></b> les usagers
38
<b><font color="darkblue">tous</font></b> les usagers
107
EOM;
39
EOM;
108
else
40
else
109
	echo <<<EOM
41
	echo <<<EOM
110
l'usager <b><font color="darkblue">$login</font></b>
42
l'usager <b><font color="darkblue">$login</font></b>
111
EOM;
43
EOM;
112
?>
44
?>
113
	</td>
-
 
114
	</tr>
-
 
115
	</table>
-
 
116
	</td>
-
 
117
</tr>
-
 
118
 
-
 
119
<tr>
-
 
120
	<td>
-
 
121
 
-
 
122
	<tr>	<td colspan=2>
-
 
123
		</td>
-
 
124
		</tr>
-
 
125
	</td>
-
 
126
	</tr>
-
 
127
</table>
-
 
128
<tr>
45
<tr>
129
	<td align="center">
46
	<td align="center">
130
 
-
 
131
	<tr>
47
	<tr>
132
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
48
		<td>Champs affich&eacute;s :</td><td colspan=10 align=center nowrap><select name="column1">
133
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions
49
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions">Nbre de sessions
134
		<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage">Temps d'utilisation total
50
		<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage">Temps d'utilisation total
135
		<option value="upload">------------------
51
		<option value="upload">------------------
Line 295... Line 211...
295
EOM;
211
EOM;
296
?>
212
?>
297
		</td></tr>
213
		</td></tr>
298
	</td></tr>
214
	</td></tr>
299
</table>
215
</table>
-
 
216
	</div>
-
 
217
</div>
300
</form>
218
</form>
301
</center>
219
</center>
302
</body>
220
</body>
303
</html>
221
</html>