Mailboxes datatable - server side processing ordering
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
parent
4dad0002cd
commit
efcca61f5a
@ -1002,7 +1002,6 @@ jQuery(function($){
|
|||||||
title: lang.last_mail_login,
|
title: lang.last_mail_login,
|
||||||
data: 'last_mail_login',
|
data: 'last_mail_login',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
orderable: false,
|
|
||||||
defaultContent: '',
|
defaultContent: '',
|
||||||
responsivePriority: 7,
|
responsivePriority: 7,
|
||||||
render: function (data, type) {
|
render: function (data, type) {
|
||||||
@ -1016,18 +1015,15 @@ jQuery(function($){
|
|||||||
title: lang.last_pw_change,
|
title: lang.last_pw_change,
|
||||||
data: 'last_pw_change',
|
data: 'last_pw_change',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
orderable: false,
|
|
||||||
defaultContent: ''
|
defaultContent: ''
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: lang.in_use,
|
title: lang.in_use,
|
||||||
data: 'in_use.value',
|
data: 'in_use.value',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
orderable: false,
|
|
||||||
defaultContent: '',
|
defaultContent: '',
|
||||||
responsivePriority: 9,
|
responsivePriority: 9,
|
||||||
className: 'dt-data-w100',
|
className: 'dt-data-w100'
|
||||||
orderData: 24
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: lang.fname,
|
title: lang.fname,
|
||||||
@ -1093,7 +1089,6 @@ jQuery(function($){
|
|||||||
title: lang.msg_num,
|
title: lang.msg_num,
|
||||||
data: 'messages',
|
data: 'messages',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
orderable: false,
|
|
||||||
defaultContent: '',
|
defaultContent: '',
|
||||||
responsivePriority: 5
|
responsivePriority: 5
|
||||||
},
|
},
|
||||||
@ -1119,7 +1114,6 @@ jQuery(function($){
|
|||||||
title: lang.active,
|
title: lang.active,
|
||||||
data: 'active',
|
data: 'active',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
orderable: false,
|
|
||||||
defaultContent: '',
|
defaultContent: '',
|
||||||
responsivePriority: 4,
|
responsivePriority: 4,
|
||||||
render: function (data, type) {
|
render: function (data, type) {
|
||||||
|
@ -1057,6 +1057,11 @@ if (isset($_GET['query'])) {
|
|||||||
$columns = [
|
$columns = [
|
||||||
['db' => 'username', 'dt' => 2],
|
['db' => 'username', 'dt' => 2],
|
||||||
['db' => 'quota', 'dt' => 3],
|
['db' => 'quota', 'dt' => 3],
|
||||||
|
['db' => 'last_mail_login', 'dt' => 4, 'dummy' => true, 'order_subquery' => "SELECT MAX(`datetime`) FROM `sasl_log` WHERE `service` != 'SSO' AND `username` = `m`.`username`"],
|
||||||
|
['db' => 'last_pw_change', 'dt' => 5, 'dummy' => true, 'order_subquery' => "JSON_EXTRACT(attributes, '$.passwd_update')"],
|
||||||
|
['db' => 'in_use', 'dt' => 6, 'dummy' => true, 'order_subquery' => "(SELECT SUM(bytes) FROM `quota2` WHERE `quota2`.`username` = `m`.`username`) / `m`.`quota`"],
|
||||||
|
['db' => 'messages', 'dt' => 17, 'dummy' => true, 'order_subquery' => "SELECT SUM(messages) FROM `quota2` WHERE `quota2`.`username` = `m`.`username`"],
|
||||||
|
['db' => 'active', 'dt' => 21]
|
||||||
];
|
];
|
||||||
|
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/ssp.class.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/ssp.class.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user