diff --git a/public/index.php b/public/index.php index 0de93c6..0c41f09 100644 --- a/public/index.php +++ b/public/index.php @@ -774,6 +774,10 @@ if ($route === 'users') { foreach ($users as $listed) if ($editUserId && (int)$listed['id'] === (int)$editUserId) { $editUser = $listed; break; } if (isset($_SESSION['user_edit_errors'])) { $userErrors = (array)$_SESSION['user_edit_errors']; unset($_SESSION['user_edit_errors']); } render_header('Users'); + echo '
Manage user accounts and their assigned roles.
| Name | Role | Status | Last login | Actions | |
|---|---|---|---|---|---|
| No users found. | |||||
| ' . e($account['name']) . ' | ' . e($account['email']) . ' | ' . e($account['role_name']) . ' | ' . e($account['is_active'] ? 'Active' : 'Inactive') . ' | ' . e((string)($account['last_login_at'] ?? 'Never')) . ' | Edit ' . (($user['role_name'] === 'Administrator' && (int)$account['id'] !== (int)$user['id'] && $account['role_name'] !== 'Administrator') ? '' : '') . ' |
Create and review system accounts.
| Name | Role | Status | Last login | Actions | |
|---|---|---|---|---|---|
| ' . e($listedUser['name']) . ' | ' . e($listedUser['email']) . ' | ' . e($listedUser['role_name']) . ' | ' . e($listedUser['is_active'] ? 'Active' : 'Inactive') . ' | ' . e((string)($listedUser['last_login_at'] ?? 'Never')) . ' | Edit ' . (($user['role_name'] === 'Administrator' && (int)$listedUser['id'] !== (int)$user['id'] && $listedUser['role_name'] !== 'Administrator') ? '' : '') . ' |