Liste de logs un poil plus zoli

This commit is contained in:
Alan Garcia 2013-01-25 16:05:52 +00:00
parent e7c362ec12
commit 7ef8a958cc
1 changed files with 20 additions and 19 deletions

View File

@ -49,25 +49,26 @@ if(!$list || empty($list['dir'])){
<?php __("Here are web logs of your account.<br/>You can download them to do specific extract and statistics.");?>
</p>
<table class="tlist">
<tr><th><?php __("Name");?></th><th align=center><?php __("Creation Date"); ?></th><th><?php __("Size"); ?></th><th><?php __("Download link");?></th></tr>
<thead>
<tr><th><?php __("Name");?></th><th align=center><?php __("Creation Date"); ?></th><th><?php __("Size"); ?></th><th><?php __("Download link");?></th></tr>
</thead>
<tbody>
<?php
$col=1;
//listing of every logs of the current user.
echo "<pre>";
while (list($key,$val)=each($list)){
$col=3-$col;
foreach($val as $k => $v){
$col=3-$col;
?>
<tr>
<tr class="lst<?php echo $col; ?>">
<td><?php echo $v['name']; ?></td>
<td><?php echo $v['creation_date']; ?></td>
<td><?php echo format_size($v['filesize']); ?></td>
<td><?php echo "<a href=\"".$v['downlink']."\">"._("Download")."</a>";?></td>
</tr>
<?php
}
}
} //foreach
} // while
?>
</tbody>
</table>