New attributes for sortable tables: sort-column (0 ... x) for default sort col in template and sort-direction (asc, desc) for default sort order on load
56 lines
1.5 KiB
Smarty
56 lines
1.5 KiB
Smarty
$header
|
|
<article>
|
|
<header>
|
|
<h2>
|
|
<img src="templates/{$theme}/assets/img/icons/syslog_big.png" alt="" />
|
|
{$lng['menue']['logger']['logger']}
|
|
</h2>
|
|
</header>
|
|
|
|
<section>
|
|
|
|
<form action="{$linker->getLink(array('section' => 'logger'))}" method="post" enctype="application/x-www-form-urlencoded">
|
|
|
|
<div class="overviewsearch">
|
|
{$searchcode}
|
|
</div>
|
|
|
|
<if 15 < $log_count >
|
|
<div class="overviewadd">
|
|
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
|
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
|
</div>
|
|
</if>
|
|
|
|
<table class="bradius" id="sortable" sort-direction="desc">
|
|
<thead>
|
|
<tr>
|
|
<th>{$lng['logger']['date']}</th>
|
|
<th>{$lng['logger']['type']}</th>
|
|
<th>{$lng['logger']['user']}</th>
|
|
<th style="width: 60%;">{$lng['logger']['action']}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
$log
|
|
</tbody>
|
|
</table>
|
|
|
|
<p style="display:none;">
|
|
<input type="hidden" name="s" value="$s"/>
|
|
<input type="hidden" name="page" value="$page"/>
|
|
<input type="hidden" name="send" value="send" />
|
|
</p>
|
|
|
|
</form>
|
|
|
|
<div class="overviewadd">
|
|
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
|
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
$footer
|