Settings > Client portal - two-step sign-in for the portal, and * whether people can sign up themselves (saved by edit_client_portal_settings, * admin/post/settings_client_portal.php) with the clients that let them; and * the announcements shown on its home page (to every client, or one) between * their start and end. */ require_once "includes/inc_all_admin.php"; $show_archived = isset($_GET['archived']); $sql = mysqli_query($mysqli, "SELECT announcement_id, announcement_title, announcement_body, announcement_tone, announcement_client_id, announcement_starts_at, announcement_ends_at, announcement_created_at, announcement_archived_at, client_name, user_name FROM portal_announcements LEFT JOIN clients ON client_id = announcement_client_id LEFT JOIN users ON user_id = announcement_created_by WHERE announcement_archived_at IS " . ($show_archived ? 'NOT NULL' : 'NULL') . " ORDER BY COALESCE(announcement_starts_at, announcement_created_at) DESC, announcement_id DESC"); $archived_count = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FROM portal_announcements WHERE announcement_archived_at IS NOT NULL"))[0]); $state_badges = ['showing' => 'text-bg-success', 'scheduled' => 'text-bg-info', 'ended' => 'text-bg-secondary', 'archived' => 'text-bg-secondary']; // Signing up - on for the portal, and the clients that let people at their domains do it (functions/portal_invite.php) $signup_ready = portalInvitesReady(); $signup_on = $signup_ready && portalSignupOn(); $signup_clients = $signup_ready ? portalSignupClients() : []; ?> = settingsPageStart('client_portal') ?>
| Announcement | For | When | Action |
|---|---|---|---|
|
|
= intval($row['announcement_client_id']) ? escapeHtml($row['client_name'] ?? 'A client no longer here') : 'Every client' ?> | = escapeHtml(implode(' ', $when)) ?> Posted by = escapeHtml($row['user_name'] ?: 'someone') ?> |
|