$L->g('Users'), 'icon'=>'people')); echo Bootstrap::link(array( 'title'=>$L->g('add-a-new-user'), 'href'=>HTML_PATH_ADMIN_ROOT.'new-user', 'icon'=>'plus' )); echo ' '; $list = $dbUsers->getAllUsernames(); foreach ($list as $username) { try { $user = new User($username); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; if ($user->role()=='admin') { echo ''; } elseif ($user->role()=='editor') { echo ''; } else { echo ''; } echo ''; echo ''; } catch (Exception $e) { // Continue } } echo '
'.$L->g('Username').' '.$L->g('First name').' '.$L->g('Last name').' '.$L->g('Email').' '.$L->g('Status').' '.$L->g('Role').' '.$L->g('Registered').'
'.$username.''.$user->firstName().''.$user->lastName().''.$user->email().''.($user->enabled()?''.$L->g('Enabled').'':$L->g('Disabled')).''.$L->g('Administrator').''.$L->g('Editor').''.$L->g('Reader').''.Date::format($user->registered(), DB_DATE_FORMAT, ADMIN_PANEL_DATE_FORMAT).'
';