mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Admin: Add an 'All' account status filter
This commit is contained in:
parent
dc1518c8d4
commit
10494a0a86
@ -93,6 +93,7 @@ class admin_ui
|
|||||||
unset($sel_options['account_primary_group']['']);
|
unset($sel_options['account_primary_group']['']);
|
||||||
|
|
||||||
$sel_options['filter2'] = array(
|
$sel_options['filter2'] = array(
|
||||||
|
'' => 'All',
|
||||||
'enabled' => 'Enabled',
|
'enabled' => 'Enabled',
|
||||||
'disabled' => 'Disabled',
|
'disabled' => 'Disabled',
|
||||||
'expired' => 'Expired',
|
'expired' => 'Expired',
|
||||||
@ -337,6 +338,7 @@ class admin_ui
|
|||||||
// Make sure active filter give status what it needs
|
// Make sure active filter give status what it needs
|
||||||
switch($query['filter2'])
|
switch($query['filter2'])
|
||||||
{
|
{
|
||||||
|
case '':
|
||||||
case 'disabled':
|
case 'disabled':
|
||||||
case 'expired':
|
case 'expired':
|
||||||
case 'not_enabled':
|
case 'not_enabled':
|
||||||
@ -399,10 +401,10 @@ class admin_ui
|
|||||||
return $account['account_status'] == 'A';
|
return $account['account_status'] == 'A';
|
||||||
|
|
||||||
case 'disabled':
|
case 'disabled':
|
||||||
return $account['account_status'] !== 'A';
|
return $account['account_status'] !== 'A' && $account['account_expires'] == '-1';
|
||||||
|
|
||||||
case 'expired':
|
case 'expired':
|
||||||
return $account['account_expires'] !== '-1' && $account['account_status'] != 'A';
|
return $account['account_expires'] !== '-1' && $account['account_expires'] <= time();
|
||||||
|
|
||||||
case 'expires':
|
case 'expires':
|
||||||
return $account['account_expires'] != '-1' && $account['account_status'] == 'A';
|
return $account['account_expires'] != '-1' && $account['account_status'] == 'A';
|
||||||
|
Loading…
Reference in New Issue
Block a user