UI: Log sortierbare Tabelle

This commit is contained in:
Messerbill 2015-06-08 22:40:37 +02:00
parent a8f1741911
commit df3883c2e9
2 changed files with 20 additions and 13 deletions

View File

@ -1,5 +1,6 @@
google.load("visualization", "1", {packages:["corechart"]});
function init_saimod_sys_log() {
$("#sai_mod_log_table").tablesorter();
$('#tabs_log a').click(function (e) {
$('#tabs_log li').each(function(){
$(this).removeClass('active');});
@ -8,12 +9,14 @@ function init_saimod_sys_log() {
};
function init_saimod_sys_log_log() {
$("#sai_mod_log_table").tablesorter();
$('#tabs_log li').each(function(){
$(this).removeClass('active');});
$('#menu_loglist').parent().addClass('active');
}
function init_saimod_sys_log_stats() {
$("#sai_mod_log_table").tablesorter();
load_visualisation();
$('#vis_filter_time').change(function(){
load_visualisation();})

View File

@ -4,18 +4,22 @@
</ul>
<div id="table_log">
${basic_rows}: ${count}
<table class="table table-hover table-condensed">
<tr>
<th>${time_ago}</th>
<th>${table_class}</th>
<th>${table_message}</th>
<th>${table_file}</th>
<th>${table_line}</th>
<th>${table_ip}</th>
<th>${table_url}</th>
<th>${table_user}</th>
<th>${table_querytime}</th>
</tr>
${table}
<table class="table table-hover table-condensed tablesorter" id="sai_mod_log_table">
<thead>
<tr>
<th>${time_ago}</th>
<th>${table_class}</th>
<th>${table_message}</th>
<th>${table_file}</th>
<th>${table_line}</th>
<th>${table_ip}</th>
<th>${table_url}</th>
<th>${table_user}</th>
<th>${table_querytime}</th>
</tr>
</thead>
<tbody>
${table}
</tbody>
</table>
</div>