query( "SELECT id, name, email, phone, role, is_active, andmore_id, 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'; ?>
| Nome | Perfil | Ativo | Andmore ID | Último acesso | |
|---|---|---|---|---|---|
| = htmlspecialchars($u['name']) ?> | = htmlspecialchars($u['email']) ?> | = htmlspecialchars(role_label($u['role'])) ?> | = $u['is_active'] ? '' : '' ?> | = $u['andmore_id'] ? (int) $u['andmore_id'] : '—' ?> | = htmlspecialchars(format_date_pt($u['last_login_at'])) ?> · = htmlspecialchars(parse_user_agent((string) $u['last_login_ua'])) ?> — |