query(
"SELECT id, name, email, phone, role, is_active, password_hash, last_login_at, last_login_ua
FROM users ORDER BY FIELD(role,'sysadmin','admin','staff','client'), name"
)->fetchAll(PDO::FETCH_ASSOC);
include __DIR__ . '/../../includes/header.php';
?>
Utilizadores
| Nome | Email | Perfil | Ativo |
Palavra-passe | Último acesso | |
| = htmlspecialchars($u['name']) ?> |
= htmlspecialchars($u['email']) ?> |
= htmlspecialchars(role_label($u['role'])) ?> |
= $u['is_active'] ? '' : '' ?> |
Por definir
|
= htmlspecialchars(format_date_pt($u['last_login_at'])) ?>
· = htmlspecialchars(parse_user_agent((string) $u['last_login_ua'])) ?>
—
|
|