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

View File

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