Rev 2861 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
<div class="panel">
<div class="panel-header"><?= $l_title ?></div>
<div class="panel-row">
<form action="stats.php" method="get">
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr>
<td colspan="2" align=center>
<table border=0 cellspacing=2 cellpadding=2>
<tr valign=bottom>
<td><small><b><?=$l_from?></b></small></td>
<td><small><b><?=$l_to?></b></small></td>
<td><small><b><?=$l_user?></b></small></td>
<td><small><b><?=$l_onserver?></b></small></td>
<td> </td>
</tr>
<tr valign=middle>
<?php if(!isset($login)) { $login = ""; } ?>
<td valign=middle><input type="text" name="after" size="12" value="<?=$after?>" ></td>
<td valign=middle><input type="text" name="before" size="12" value="<?=$before?>"></td>
<td valign=middle><input type="text" name="login" size="12" value="<?=$login?>" ></td>
<td valign=middle>
<select name="server" size=1>
<?php foreach($servers as $key => $val): ?>
<option value="<?=$val?>"><?=$key?>
<?php endforeach; ?>
</select>
</td>
<td valign=middle><input type="submit" class=button value="Go"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr>
<td><?=$l_fields_to_display?></td><td>
<select name="column1">
<option <?php if(isset($selected1['sessions'])){print($selected1['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
<option <?php if(isset($selected1['usage'])){print($selected1['usage']);} ?> value="usage"><?=$l_total_usage_time?>
<option value="upload">------------------
<option <?php if(isset($selected1['upload'])){print($selected1['upload']);} ?> value="upload"><?=$l_uploads?>
<option <?php if(isset($selected1['download'])){print($selected1['download']);} ?> value="download"><?=$l_downloads?>
</select> <select name="column2">
<option <?php if(isset($selected2['sessions'])){print($selected2['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
<option <?php if(isset($selected2['usage'])){print($selected2['usage']);} ?> value="usage"><?=$l_total_usage_time?>
<option value="upload">------------------
<option <?php if(isset($selected2['upload'])){print($selected2['upload']);} ?> value="upload"><?=$l_uploads?>
<option <?php if(isset($selected2['download'])){print($selected2['download']);} ?> value="download"><?=$l_downloads?>
</select> <select name="column3">
<option <?php if(isset($selected3['sessions'])){print($selected3['sessions']);} ?> value="sessions"><?=$l_number_of_sessions?>
<option <?php if(isset($selected3['usage'])){print($selected3['usage']);} ?> value="usage"><?=$l_total_usage_time?>
<option value="upload">------------------
<option <?php if(isset($selected3['upload'])){print($selected3['upload']);} ?> value="upload"><?=$l_uploads?>
<option <?php if(isset($selected3['download'])){print($selected3['download']);} ?> value="download"><?=$l_downloads?>
</select>
</td>
</tr>
</table>
</form>
<hr size=1 noshade>
<center>
<?php
if ($login == '') echo $l_stat_for_all;
else echo "$l_stat_for_user <b><font color=\"darkblue\">$login</font></b>"
?>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'>
<tr bgcolor="#d0ddb0">
<th><?=$l_date?></th>
<?php
echo <<<EOM
<th colspan=3>$message[$column1]</th>
<th colspan=3>$message[$column2]</th>
<th colspan=3>$message[$column3]</th>
EOM;
?>
</tr>
<?php
for($i = 0; $i <= $num_days; $i++){
$day = $days[$i];
$trcolor = ($i % 2) ? "#f7f7e4" : "#efefe4";
echo <<<EOM
<tr align=center bgcolor="$trcolor">
<td>$day</td>
<td>{$data[$day][1]}</td>
<td>{$perc[$day][1]}</td>
<td align=left height=14>
<table border=0 cellpadding=0>
<tr>
<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>
</tr>
</table>
</td>
<td>{$data[$day][2]}</td>
<td>{$perc[$day][2]}</td>
<td align=left height=14>
<table border=0 cellpadding=0>
<tr>
<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>
</tr>
</table>
</td>
<td>{$data[$day][3]}</td>
<td>{$perc[$day][3]}</td>
<td align=left height=14>
<table border=0 cellpadding=0>
<tr>
<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>
</tr>
</table>
</td>
</tr>
EOM;
}
?>
</table>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#666660" align=center valign=top>
<th>
<font color="white"><?=$l_daily_summary?></font>
</th>
</tr>
</table>
<table border=0 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
ffe0" valign=top>
<tr bgcolor="#d0ddb0">
<th> </th>
<?php
echo <<<EOM
<th>$message[$column1]</th>
<th>$message[$column2]</th>
<th>$message[$column3]</th>
EOM;
?>
</tr>
<?php
echo <<<EOM
<tr align=center bgcolor="#efefe4">
<td>$l_maximum</td>
<td>{$data['max'][1]}</td>
<td>{$data['max'][2]}</td>
<td>{$data['max'][3]}</td>
</tr>
<tr align=center bgcolor="#f7f7e4">
<td>$l_average</td>
<td>{$data['avg'][1]}</td>
<td>{$data['avg'][2]}</td>
<td>{$data['avg'][3]}</td>
</tr>
<tr align=center bgcolor="#efefe4">
<td>$l_summary</td>
<td>{$data['sum'][1]}</td>
<td>{$data['sum'][2]}</td>
<td>{$data['sum'][3]}</td>
</tr>
EOM;
?>
</table>
</div>
</div>
</body>
</html>