UI: Security sortierbare Tabelle

This commit is contained in:
Messerbill 2015-06-08 22:26:48 +02:00
parent fea33b3f1f
commit c28ddc55ef
5 changed files with 64 additions and 44 deletions

View File

@ -1,4 +1,5 @@
function init_saimod_sys_security() { function init_saimod_sys_security() {
$("#sai_mod_security_table").tablesorter();
$('#securitytab a').click(function (e) { $('#securitytab a').click(function (e) {
$('#securitytab li').each(function(){ $('#securitytab li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
@ -10,12 +11,14 @@ function init_saimod_sys_security() {
}; };
function init_saimod_sys_security_users() { function init_saimod_sys_security_users() {
$("#sai_mod_security_table").tablesorter();
$('#securitytab li').each(function(){ $('#securitytab li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
$('#menu_users').parent().addClass('active'); $('#menu_users').parent().addClass('active');
} }
function init_saimod_sys_security_user() { function init_saimod_sys_security_user() {
$("#sai_mod_security_table").tablesorter();
$('.deleteuserright').click(function(){ $('.deleteuserright').click(function(){
$.get( './sai.php?sai_mod=.SYSTEM.SAI.saimod_sys_security&action=deleterightuser&rightid='+$(this).attr('right_id')+ $.get( './sai.php?sai_mod=.SYSTEM.SAI.saimod_sys_security&action=deleterightuser&rightid='+$(this).attr('right_id')+
'&userid='+$(this).attr('user_id'),function(data){ '&userid='+$(this).attr('user_id'),function(data){
@ -39,6 +42,7 @@ function init_saimod_sys_security_user() {
} }
function init_saimod_sys_security_rights() { function init_saimod_sys_security_rights() {
$("#sai_mod_security_table").tablesorter();
$('#securitytab li').each(function(){ $('#securitytab li').each(function(){
$(this).removeClass('active');}); $(this).removeClass('active');});
$('#menu_rights').parent().addClass('active'); $('#menu_rights').parent().addClass('active');

View File

@ -1,11 +1,15 @@
${addright_btn} ${addright_btn}
</br></br> </br></br>
<table class="table table-hover table-condensed sai_table" style="overflow: auto;"> <table class="table table-hover table-condensed sai_table tablesorter" id="sai_mod_security_table" style="overflow: auto;">
<tr> <thead>
<th>ID</th> <tr>
<th>Name</th> <th>ID</th>
<th>Description</th> <th>Name</th>
<th>Action</th> <th>Description</th>
</tr> <th>Action</th>
${rows} </tr>
</thead>
<tbody>
${rows}
</tbody>
</table> </table>

View File

@ -1,17 +1,21 @@
<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_security_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>

View File

@ -1,11 +1,15 @@
<table class="table sai_table"> <table class="table sai_table tablesorter" id="sai_mod_security_table">
<tr> <thead>
<th>ID</td> <tr>
<th>Name</th> <th>ID</td>
<th>Description</th> <th>Name</th>
<th>Access</th> <th>Description</th>
<th>Remove</th> <th>Access</th>
</tr> <th>Remove</th>
${user_rights_table} </tr>
</thead>
<tbody>
${user_rights_table}
</tbody>
${user_rights_add} ${user_rights_add}
</table> </table>

View File

@ -1,15 +1,19 @@
Users: ${count} Users: ${count}
<table class="sai_table table table-hover table-condensed" style="overflow: auto;"> <table class="sai_table table table-hover table-condensed tablesorter" id="sai_mod_security_table" style="overflow: auto;">
<tr> <thead>
<th>ID</th> <tr>
<th>Username</th> <th>ID</th>
<th>E-Mail</th> <th>Username</th>
<th>JoinDate</th> <th>E-Mail</th>
<th>Locale</th> <th>JoinDate</th>
<th>Last Active</th> <th>Locale</th>
<th>Flag</th> <th>Last Active</th>
<!--<th style="width: 110px;">Rights</th>--> <th>Flag</th>
<th>reset password</th> <!--<th style="width: 110px;">Rights</th>-->
</tr> <th>reset password</th>
${rows} </tr>
</thead>
<tbody>
${rows}
</tbody>
</table> </table>