| 2858 | rexy | 1 | <div class="panel">
 | 
        
           |  |  | 2 | 	<div class="panel-header"><?= $l_title ?></div>
 | 
        
           |  |  | 3 | 	<div class="panel-row">
 | 
        
           | 2926 | rexy | 4 | 		<form action="stats.php" method="get">
 | 
        
           | 2858 | rexy | 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> </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>
 | 
        
           | 3173 | rexy | 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>
 | 
        
           | 2926 | rexy | 59 | 		</form>
 | 
        
           | 2861 | rexy | 60 | 		<hr size=1 noshade>
 | 
        
           | 2926 | rexy | 61 | 		<center>
 | 
        
           | 2861 | rexy | 62 | <?php
 | 
        
           |  |  | 63 | if ($login == '') echo $l_stat_for_all;
 | 
        
           |  |  | 64 | else echo "$l_stat_for_user <b><font color=\"darkblue\">$login</font></b>"
 | 
        
           |  |  | 65 | ?>
 | 
        
           | 2926 | rexy | 66 | 		</center>
 | 
        
           | 2527 | fabien.rak | 67 | 		<table width="100%" border=0 cellspacing=0 cellpadding=0>
 | 
        
           |  |  | 68 | 			<tbody style='font-family: "DejaVu Sans";font-size: small;color: #666666;'>	
 | 
        
           | 324 | richard | 69 | 				<tr bgcolor="#d0ddb0">
 | 
        
           | 2861 | rexy | 70 | 				<th><?=$l_date?></th>
 | 
        
           | 324 | richard | 71 | <?php
 | 
        
           |  |  | 72 | echo <<<EOM
 | 
        
           |  |  | 73 | 	<th colspan=3>$message[$column1]</th>
 | 
        
           |  |  | 74 | 	<th colspan=3>$message[$column2]</th>
 | 
        
           |  |  | 75 | 	<th colspan=3>$message[$column3]</th>
 | 
        
           |  |  | 76 | EOM;
 | 
        
           |  |  | 77 | ?>
 | 
        
           |  |  | 78 | 				</tr>
 | 
        
           |  |  | 79 | <?php
 | 
        
           |  |  | 80 | 	for($i = 0; $i <= $num_days; $i++){
 | 
        
           |  |  | 81 | 		$day = $days[$i];
 | 
        
           |  |  | 82 | 		$trcolor = ($i % 2) ? "#f7f7e4" : "#efefe4";
 | 
        
           |  |  | 83 | 		echo <<<EOM
 | 
        
           |  |  | 84 | 	<tr align=center bgcolor="$trcolor">
 | 
        
           |  |  | 85 | 		<td>$day</td>
 | 
        
           |  |  | 86 | 		<td>{$data[$day][1]}</td>
 | 
        
           |  |  | 87 | 		<td>{$perc[$day][1]}</td>
 | 
        
           |  |  | 88 | 		<td align=left height=14>
 | 
        
           |  |  | 89 | 			<table border=0 cellpadding=0>
 | 
        
           |  |  | 90 | 			<tr>
 | 
        
           |  |  | 91 | 				<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>
 | 
        
           |  |  | 92 | 			</tr>
 | 
        
           |  |  | 93 | 			</table>
 | 
        
           |  |  | 94 | 		</td>
 | 
        
           |  |  | 95 | 		<td>{$data[$day][2]}</td>
 | 
        
           |  |  | 96 | 		<td>{$perc[$day][2]}</td>
 | 
        
           |  |  | 97 | 		<td align=left height=14>
 | 
        
           |  |  | 98 | 			<table border=0 cellpadding=0>
 | 
        
           |  |  | 99 | 			<tr>
 | 
        
           |  |  | 100 | 				<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>
 | 
        
           |  |  | 101 | 			</tr>
 | 
        
           |  |  | 102 | 			</table>
 | 
        
           |  |  | 103 | 		</td>
 | 
        
           |  |  | 104 | 		<td>{$data[$day][3]}</td>
 | 
        
           |  |  | 105 | 		<td>{$perc[$day][3]}</td>
 | 
        
           |  |  | 106 | 		<td align=left height=14>
 | 
        
           |  |  | 107 | 			<table border=0 cellpadding=0>
 | 
        
           |  |  | 108 | 			<tr>
 | 
        
           |  |  | 109 | 			<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>
 | 
        
           |  |  | 110 | 			</tr>
 | 
        
           |  |  | 111 | 			</table>
 | 
        
           |  |  | 112 | 		</td>
 | 
        
           |  |  | 113 | 		</tr>
 | 
        
           |  |  | 114 | EOM;
 | 
        
           |  |  | 115 | }
 | 
        
           |  |  | 116 | ?>
 | 
        
           |  |  | 117 | </table>
 | 
        
           | 2861 | rexy | 118 | <table border=0 width=100% cellpadding=2 cellspacing=0>
 | 
        
           |  |  | 119 | 	<tr bgcolor="#666660" align=center valign=top>
 | 
        
           |  |  | 120 | 		<th>
 | 
        
           |  |  | 121 | 		<font color="white"><?=$l_daily_summary?></font>
 | 
        
           |  |  | 122 | 		</th>
 | 
        
           |  |  | 123 | 	</tr>
 | 
        
           | 324 | richard | 124 | </table>
 | 
        
           | 2861 | rexy | 125 | <table border=0 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ff
 | 
        
           | 324 | richard | 126 | ffe0" valign=top>
 | 
        
           |  |  | 127 | 	<tr bgcolor="#d0ddb0">
 | 
        
           |  |  | 128 | 	<th> </th>
 | 
        
           |  |  | 129 | <?php
 | 
        
           |  |  | 130 | echo <<<EOM
 | 
        
           |  |  | 131 | 	<th>$message[$column1]</th>
 | 
        
           |  |  | 132 | 	<th>$message[$column2]</th>
 | 
        
           |  |  | 133 | 	<th>$message[$column3]</th>
 | 
        
           |  |  | 134 | EOM;
 | 
        
           |  |  | 135 | ?>
 | 
        
           |  |  | 136 | 	</tr>
 | 
        
           |  |  | 137 | <?php
 | 
        
           |  |  | 138 | echo <<<EOM
 | 
        
           |  |  | 139 | 		<tr align=center bgcolor="#efefe4">
 | 
        
           | 2861 | rexy | 140 | 			<td>$l_maximum</td>
 | 
        
           | 1831 | raphael.pi | 141 | 			<td>{$data['max'][1]}</td>
 | 
        
           |  |  | 142 | 			<td>{$data['max'][2]}</td>
 | 
        
           |  |  | 143 | 			<td>{$data['max'][3]}</td>
 | 
        
           | 324 | richard | 144 | 			</tr>
 | 
        
           |  |  | 145 | 		<tr align=center bgcolor="#f7f7e4">
 | 
        
           | 2861 | rexy | 146 | 			<td>$l_average</td>
 | 
        
           | 1831 | raphael.pi | 147 | 			<td>{$data['avg'][1]}</td>
 | 
        
           |  |  | 148 | 			<td>{$data['avg'][2]}</td>
 | 
        
           |  |  | 149 | 			<td>{$data['avg'][3]}</td>
 | 
        
           | 324 | richard | 150 | 			</tr>
 | 
        
           |  |  | 151 | 		<tr align=center bgcolor="#efefe4">
 | 
        
           | 2861 | rexy | 152 | 			<td>$l_summary</td>
 | 
        
           | 1831 | raphael.pi | 153 | 			<td>{$data['sum'][1]}</td>
 | 
        
           |  |  | 154 | 			<td>{$data['sum'][2]}</td>
 | 
        
           |  |  | 155 | 			<td>{$data['sum'][3]}</td>
 | 
        
           | 324 | richard | 156 | 			</tr>
 | 
        
           |  |  | 157 | EOM;
 | 
        
           |  |  | 158 | ?>
 | 
        
           | 2926 | rexy | 159 | 	</table>
 | 
        
           |  |  | 160 | 	</div>
 | 
        
           | 2858 | rexy | 161 | </div>
 | 
        
           | 324 | richard | 162 | </body>
 | 
        
           |  |  | 163 | </html>
 |