mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
fix colouring of user lines, show hidden users in yellow
This commit is contained in:
parent
00fe04a82f
commit
dca43ea703
|
@ -67,7 +67,7 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
|
|||
<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\"" : "").">";
|
||||
echo "<tr".($currUser->isDisabled() ? " class=\"table-error error\"" : ( $currUser->isHidden() ? " class=\"table-warning warning\"" : "")).">";
|
||||
echo "<td>";
|
||||
if ($currUser->hasImage())
|
||||
print "<img width=\"100\" src=\"".$httproot . "out/out.UserImage.php?userid=".$currUser->getId()."\">";
|
||||
|
@ -121,7 +121,7 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style {
|
|||
printMLText("password_expired");
|
||||
}
|
||||
}
|
||||
$sessions = $sessionmgr->getUserSessions($currUser);
|
||||
$sessions = $sessionmgr->getUserSessions($currUser, 10);
|
||||
if($sessions) {
|
||||
foreach($sessions as $session) {
|
||||
echo "<br />".getMLText('lastaccess').": ".getLongReadableDate($session->getLastAccess());
|
||||
|
|
Loading…
Reference in New Issue
Block a user