Add more accurate information on login and last login date
This commit is contained in:
parent
46031dc39e
commit
5eda49632a
@ -2096,9 +2096,17 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
||||
'.$userDropDownImage.'
|
||||
<p>
|
||||
'.$profilName.'<br>';
|
||||
if ($user->datepreviouslogin) {
|
||||
$btnUser .= '<small class="classfortooltip" title="'.$langs->trans("PreviousConnexion").'" ><i class="fa fa-user-clock"></i> '.dol_print_date($user->datepreviouslogin, "dayhour", 'tzuser').'</small><br>';
|
||||
if ($user->datelastlogin) {
|
||||
$title = $langs->trans("ConnectedSince").' : '.dol_print_date($user->datelastlogin, "dayhour", 'tzuser');
|
||||
if ($user->datepreviouslogin) {
|
||||
$title .= '<br>'.$langs->trans("PreviousConnexion").' : '.dol_print_date($user->datepreviouslogin, "dayhour", 'tzuser');
|
||||
}
|
||||
}
|
||||
$btnUser .= '<small class="classfortooltip" title="'.dol_escape_htmltag($title).'" ><i class="fa fa-user-clock"></i> '.dol_print_date($user->datelastlogin, "dayhour", 'tzuser').'</small><br>';
|
||||
if ($user->datepreviouslogin) {
|
||||
$btnUser .= '<small class="classfortooltip" title="'.dol_escape_htmltag($title).'" ><i class="fa fa-user-clock opacitymedium"></i> '.dol_print_date($user->datepreviouslogin, "dayhour", 'tzuser').'</small><br>';
|
||||
}
|
||||
|
||||
//$btnUser .= '<small class="classfortooltip"><i class="fa fa-cog"></i> '.$langs->trans("Version").' '.$appli.'</small>';
|
||||
$btnUser .= '
|
||||
</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user