Skip to content

Commit cdbeaf8

Browse files
authored
Update web_user_management.static.php
1 parent 18d5b52 commit cdbeaf8

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

manager/actions/web_user_management.static.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function menuAction(a) {
120120
<div class="row">
121121
<div class="table-responsive">
122122
<?php
123-
$ds = $modx->db->select("wu.id, wu.username, wua.fullname, wua.email, ELT(wua.gender, '{$_lang['user_male']}', '{$_lang['user_female']}', '{$_lang['user_other']}') AS gender, IF(wua.blocked,'{$_lang['yes']}','-') as 'blocked'", $modx->getFullTableName("web_users") . " wu
123+
$ds = $modx->db->select("wu.id, wu.username, wua.fullname, wua.email, wua.lastlogin, wua.logincount, IF(wua.blocked,'{$_lang['yes']}','-') as 'blocked'", $modx->getFullTableName("web_users") . " wu
124124
INNER JOIN " . $modx->getFullTableName("web_user_attributes") . " wua ON wua.internalKey=wu.id", ($sqlQuery ? "(wu.username LIKE '{$sqlQuery}%') OR (wua.fullname LIKE '%{$sqlQuery}%') OR (wua.email LIKE '%{$sqlQuery}%')" : ""), 'username');
125125
include_once MODX_MANAGER_PATH . "includes/controls/datagrid.class.php";
126126
$grd = new DataGrid('', $ds, $number_of_results); // set page size to 0 t show all items
@@ -129,11 +129,12 @@ function menuAction(a) {
129129
$grd->columnHeaderClass = "tableHeader";
130130
$grd->itemClass = "tableItem";
131131
$grd->altItemClass = "tableAltItem";
132-
$grd->fields = "id,username,fullname,email,gender,blocked";
133-
$grd->columns = $_lang["icon"] . " ," . $_lang["name"] . " ," . $_lang["user_full_name"] . " ," . $_lang["email"] . " ," . $_lang["user_gender"] . " ," . $_lang["user_block"];
134-
$grd->colWidths = "1%,,,,1%,1%";
135-
$grd->colAligns = "center,,,,center,right' nowrap='nowrap";
136-
$grd->colTypes = "template:<a class='gridRowIcon' href='javascript:;' onclick='return showContentMenu([+id+],event);' title='" . $_lang["click_to_context"] . "'><i class='" . $_style["icons_user"] . "'></i></a>||template:<a href='index.php?a=88&id=[+id+]' title='" . $_lang["click_to_edit_title"] . "'>[+value+]</a>";
132+
$grd->fields = "id,username,fullname,email,lastlogin,logincount,blocked";
133+
$grd->columns = $_lang["icon"] . " ," . $_lang["name"] . " ," . $_lang["user_full_name"] . " ," . $_lang["email"] . " ," . $_lang["user_prevlogin"] . " ," . $_lang["user_logincount"] . " ," . $_lang["user_block"];
134+
$grd->colWidths = "1%,,,,1%,1%,1%";
135+
$grd->colAligns = "center,,,,right' nowrap='nowrap,right,center";
136+
$grd->colTypes = "template:<a class='gridRowIcon' href='javascript:;' onclick='return showContentMenu([+id+],event);' title='" . $_lang["click_to_context"] . "'><i class='" . $_style["icons_user"] . "'></i></a>||template:<a href='index.php?a=88&id=[+id+]' title='" . $_lang["click_to_edit_title"] . "'>[+value+]</a>||template:[+fullname+]||template:[+email+]||date: " . $modx->toDateFormat('[+thislogin+]', 'formatOnly') .
137+
" %H:%M";
137138
if($listmode == '1') {
138139
$grd->pageSize = 0;
139140
}

0 commit comments

Comments
 (0)