Liste de logs un poil plus zoli
This commit is contained in:
parent
e7c362ec12
commit
7ef8a958cc
|
@ -37,37 +37,38 @@ $list=$log->list_logs_directory_all($log->get_logs_directory());
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
if (isset($error) && $error) {
|
if (isset($error) && $error) {
|
||||||
echo "<p class=\"error\">$error</p>";
|
echo "<p class=\"error\">$error</p>";
|
||||||
}
|
}
|
||||||
if(!$list || empty($list['dir'])){
|
if(!$list || empty($list['dir'])){
|
||||||
echo "<p class=\"error\">"._("You have no web logs to list a the moment.")."</p>";
|
echo "<p class=\"error\">"._("You have no web logs to list a the moment.")."</p>";
|
||||||
include_once('foot.php');
|
include_once('foot.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<?php __("Here are web logs of your account.<br/>You can download them to do specific extract and statistics.");?>
|
<?php __("Here are web logs of your account.<br/>You can download them to do specific extract and statistics.");?>
|
||||||
</p>
|
</p>
|
||||||
<table class="tlist">
|
<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
|
<?php
|
||||||
|
|
||||||
$col=1;
|
$col=1;
|
||||||
//listing of every logs of the current user.
|
//listing of every logs of the current user.
|
||||||
echo "<pre>";
|
|
||||||
while (list($key,$val)=each($list)){
|
while (list($key,$val)=each($list)){
|
||||||
$col=3-$col;
|
foreach($val as $k => $v){
|
||||||
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['name']; ?></td>
|
||||||
<td><?php echo $v['creation_date']; ?></td>
|
<td><?php echo $v['creation_date']; ?></td>
|
||||||
<td><?php echo format_size($v['filesize']); ?></td>
|
<td><?php echo format_size($v['filesize']); ?></td>
|
||||||
<td><?php echo "<a href=\"".$v['downlink']."\">"._("Download")."</a>";?></td>
|
<td><?php echo "<a href=\"".$v['downlink']."\">"._("Download")."</a>";?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
} //foreach
|
||||||
}
|
} // while
|
||||||
?>
|
?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue