Add Client Bulk Actions: Edit Tags, Referral, Industry, Set Hourly Rate, Send Bulk Email, Archive. Also added restore option to restore a client

This commit is contained in:
johnnyq
2025-07-21 18:27:31 -04:00
parent 50a8e67917
commit b100498dd7
8 changed files with 863 additions and 227 deletions

View File

@@ -661,14 +661,14 @@ if (isset($_POST['bulk_unarchive_contacts'])) {
mysqli_query($mysqli,"UPDATE contacts SET contact_archived_at = NULL WHERE contact_id = $contact_id");
// Individual Contact logging
logAction("Contact", "Unarchive", "$session_name unarchived $contact_name", $client_id, $contact_id);
logAction("Contact", "Restore", "$session_name restored $contact_name", $client_id, $contact_id);
}
// Bulk Logging
logAction("Contact", "Bulk Unarchive", "$session_name Unarchived $count contacts", $client_id);
logAction("Contact", "Bulk Restore", "$session_name restored $count contacts", $client_id);
$_SESSION['alert_message'] = "You unarchived <strong>$count</strong> contact(s)";
$_SESSION['alert_message'] = "Restored <strong>$count</strong> contact(s)";
}