mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
add field to filter user list
This commit is contained in:
parent
ef0f9cfc46
commit
e483796c85
|
@ -31,6 +31,20 @@
|
|||
*/
|
||||
class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
|
||||
|
||||
function js() { /* {{{ */
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
?>
|
||||
$(document).ready(function(){
|
||||
$("#myInput").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$("#myTable tbody tr").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
||||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
|
@ -48,8 +62,9 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
|
|||
$sessionmgr = new SeedDMS_SessionMgr($dms->getDB());
|
||||
?>
|
||||
|
||||
<table class="table table-condensed">
|
||||
<thead><tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('discspace'); ?></th><th><?php printMLText('authentication'); ?></th><th></th></tr></thead><tbody>
|
||||
<input type="text" id="myInput" class="form-control" placeholder="<?= getMLText('type_to_filter'); ?>">
|
||||
<table id="myTable" class="table table-condensed table-sm">
|
||||
<thead><tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('discspace'); ?></th><th><?php printMLText('authentication'); ?></th><th></th></tr></thead><tbody>
|
||||
<?php
|
||||
foreach ($allUsers as $currUser) {
|
||||
echo "<tr".($currUser->isDisabled() ? " class=\"error\"" : "").">";
|
||||
|
|
Loading…
Reference in New Issue
Block a user