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;">
<thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Name</th> <th>Name</th>
<th>Description</th> <th>Description</th>
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead>
<tbody>
${rows} ${rows}
</tbody>
</table> </table>

View File

@ -1,6 +1,7 @@
<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">
<thead>
<tr> <tr>
<th>${time_ago}</th> <th>${time_ago}</th>
<th>${table_class}</th> <th>${table_class}</th>
@ -12,6 +13,9 @@
<th>${table_user}</th> <th>${table_user}</th>
<th>${table_querytime}</th> <th>${table_querytime}</th>
</tr> </tr>
</thead>
<tbody>
${table} ${table}
</tbody>
</table> </table>
</div> </div>

View File

@ -1,4 +1,5 @@
<table class="table sai_table"> <table class="table sai_table tablesorter" id="sai_mod_security_table">
<thead>
<tr> <tr>
<th>ID</td> <th>ID</td>
<th>Name</th> <th>Name</th>
@ -6,6 +7,9 @@
<th>Access</th> <th>Access</th>
<th>Remove</th> <th>Remove</th>
</tr> </tr>
</thead>
<tbody>
${user_rights_table} ${user_rights_table}
</tbody>
${user_rights_add} ${user_rights_add}
</table> </table>

View File

@ -1,5 +1,6 @@
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;">
<thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Username</th> <th>Username</th>
@ -11,5 +12,8 @@ Users: ${count}
<!--<th style="width: 110px;">Rights</th>--> <!--<th style="width: 110px;">Rights</th>-->
<th>reset password</th> <th>reset password</th>
</tr> </tr>
</thead>
<tbody>
${rows} ${rows}
</tbody>
</table> </table>