Subversion Repositories ALCASAR

Rev

Rev 2858 | 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>
2861 rexy 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>
2858 rexy 14
						<td>&nbsp;</td>
15
					</tr>
16
					<tr valign=middle>
17
						<?php if(!isset($login)) { $login = ""; } ?>
2861 rexy 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="<?=$before?>"></td>
20
						<td valign=middle><input type="text" name="login"  size="12" value="<?=$login?>" ></td>
2858 rexy 21
						<td valign=middle>
22
							<select name="server" size=1>
23
							<?php foreach($servers as $key => $val): ?>
2861 rexy 24
							<option value="<?=$val?>"><?=$key?>
2858 rexy 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>
2861 rexy 34
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
35
		<tr>
36
		<td><?=$l_fields_to_display?></td><td>
37
		<select name="column1">
38
		<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
39
			<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage"><?=$l_total_usage_time?>
40
			<option value="upload">------------------
41
			<option <?php if(isset($selected1['upload'])){print($selected1['upload']);} ?> value="upload"><?=$l_uploads?>
42
			<option <?php if(isset($selected1['download'])){print($selected1['download']);} ?> value="download"><?=$l_downloads?>
43
		</select> <select name="column2">
44
		<option <?php if(isset($selected2['sessions'])){print($selected2['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
45
		<option <?php if(isset($selected2['usage'])){print($selected2['usage']);} ?> value="usage"><?=$l_total_usage_time?>
46
			<option	value="upload">------------------
47
			<option <?php if(isset($selected2['upload'])){print($selected2['upload']);} ?> value="upload"><?=$l_uploads?>
48
			<option <?php if(isset($selected2['download'])){print($selected2['download']);} ?> value="download"><?=$l_downloads?>
49
		</select> <select name="column3">
50
		<option <?php if(isset($selected3['sessions'])){print($selected3['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
51
		<option <?php if(isset($selected3['usage'])){print($selected3['usage']);} ?> value="usage"><?=$l_total_usage_time?>
52
			<option value="upload">------------------
53
			<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload"><?=$l_uploads?>
54
			<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download"><?=$l_downloads?>
324 richard 55
		</select>
56
		</td>
2861 rexy 57
		</tr>
58
		</table>
59
		<hr size=1 noshade>
324 richard 60
		<table border=0 width="100%">
61
		<tr>
2861 rexy 62
			<td align="center">
63
<?php
64
if ($login == '') echo $l_stat_for_all;
65
else echo "$l_stat_for_user <b><font color=\"darkblue\">$login</font></b>"
66
?>
324 richard 67
			</td>
68
		</tr>
69
		</table>
2861 rexy 70
	</div>
71
	<div class="panel-header"><?= $l_title ?></div>
72
	<div class="panel-row">
2527 fabien.rak 73
		<table width="100%" border=0 cellspacing=0 cellpadding=0>
74
			<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'>
324 richard 75
				<tr bgcolor="#d0ddb0">
2861 rexy 76
				<th><?=$l_date?></th>
324 richard 77
<?php
78
echo <<<EOM
79
	<th colspan=3>$message[$column1]</th>
80
	<th colspan=3>$message[$column2]</th>
81
	<th colspan=3>$message[$column3]</th>
82
EOM;
83
?>
84
				</tr>
85
<?php
86
	for($i = 0; $i <= $num_days; $i++){
87
		$day = $days[$i];
88
		$trcolor = ($i % 2) ? "#f7f7e4" : "#efefe4";
89
		echo <<<EOM
90
	<tr align=center bgcolor="$trcolor">
91
		<td>$day</td>
92
		<td>{$data[$day][1]}</td>
93
		<td>{$perc[$day][1]}</td>
94
		<td align=left height=14>
95
			<table border=0 cellpadding=0>
96
			<tr>
97
				<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>
98
			</tr>
99
			</table>
100
		</td>
101
		<td>{$data[$day][2]}</td>
102
		<td>{$perc[$day][2]}</td>
103
		<td align=left height=14>
104
			<table border=0 cellpadding=0>
105
			<tr>
106
				<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>
107
			</tr>
108
			</table>
109
		</td>
110
		<td>{$data[$day][3]}</td>
111
		<td>{$perc[$day][3]}</td>
112
		<td align=left height=14>
113
			<table border=0 cellpadding=0>
114
			<tr>
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>
116
			</tr>
117
			</table>
118
		</td>
119
		</tr>
120
EOM;
121
}
122
?>
123
</table>
2861 rexy 124
<table border=0 width=100% cellpadding=2 cellspacing=0>
125
	<tr bgcolor="#666660" align=center valign=top>
126
		<th>
127
		<font color="white"><?=$l_daily_summary?></font>
128
		</th>
129
	</tr>
324 richard 130
</table>
2861 rexy 131
<table border=0 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
324 richard 132
ffe0" valign=top>
133
	<tr bgcolor="#d0ddb0">
134
	<th>&nbsp;</th>
135
<?php
136
echo <<<EOM
137
	<th>$message[$column1]</th>
138
	<th>$message[$column2]</th>
139
	<th>$message[$column3]</th>
140
EOM;
141
?>
142
	</tr>
143
<?php
144
echo <<<EOM
145
		<tr align=center bgcolor="#efefe4">
2861 rexy 146
			<td>$l_maximum</td>
1831 raphael.pi 147
			<td>{$data['max'][1]}</td>
148
			<td>{$data['max'][2]}</td>
149
			<td>{$data['max'][3]}</td>
324 richard 150
			</tr>
151
		<tr align=center bgcolor="#f7f7e4">
2861 rexy 152
			<td>$l_average</td>
1831 raphael.pi 153
			<td>{$data['avg'][1]}</td>
154
			<td>{$data['avg'][2]}</td>
155
			<td>{$data['avg'][3]}</td>
324 richard 156
			</tr>
157
		<tr align=center bgcolor="#efefe4">
2861 rexy 158
			<td>$l_summary</td>
1831 raphael.pi 159
			<td>{$data['sum'][1]}</td>
160
			<td>{$data['sum'][2]}</td>
161
			<td>{$data['sum'][3]}</td>
324 richard 162
			</tr>
163
EOM;
164
?>
165
</table>
2858 rexy 166
</div>
2861 rexy 167
</div>
324 richard 168
</form>
169
</body>
170
</html>