51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?php
|
|
/*
|
|
* Template for admin pages
|
|
*/
|
|
?>
|
|
<h1>Logs</h1>
|
|
|
|
<div class="controls">
|
|
<form id="logs_options">
|
|
<p>
|
|
<span>Filter :</span>
|
|
|
|
<input type="checkbox" checked="checked" name="all" id="all" /> <label for="all">All</label>
|
|
<input type="checkbox" checked="checked" name="logins" id="logins" /> <label for="logins">Logins</label>
|
|
<input type="checkbox" checked="checked" name="logouts" id="logouts" /> <label for="logouts">Logouts</label>
|
|
<input type="checkbox" checked="checked" name="downloads" id="downloads" /> <label for="downloads">Downloads</label>
|
|
<input type="checkbox" checked="checked" name="uploads" id="uploads" /> <label for="uploads">Uploads</label>
|
|
|
|
<input type="checkbox" checked="checked" name="creations" id="creations" /> <label for="creations">Creations</label>
|
|
<input type="checkbox" checked="checked" name="deletions" id="deletions" /> <label for="deletions">Deletions</label>
|
|
</p>
|
|
<p>
|
|
<span>Show :</span>
|
|
<input type="text" maxlength="3" size="3" value="10" /> entries per page.
|
|
<input type="submit" value="Save" />
|
|
|
|
</p>
|
|
</form>
|
|
</div>
|
|
|
|
<table cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>What</th>
|
|
<th>When</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<? foreach( $_["logs"] as $entry ){ ?>
|
|
<tr>
|
|
<td class="login"><em><? echo $entry["user"] ?></em> <? echo $entry["message"] ?></td>
|
|
<td class="date"><? echo $entry["date"] ?></td>
|
|
</tr>
|
|
<? } ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="controls">
|
|
<p class="center"><a href="" title="Previous page">←</a> 3/5 <a href="" title="Next page">→</a></p>
|
|
</div>
|