From 724d4a347ae305d68a4c69c1dcbcbd0d4b26462f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 23 Nov 2024 17:52:03 -0500 Subject: [PATCH] Feature: Contact Notes / Interactions - Create an Add Model and display cpontact notes under contact details --- client_contact_create_note_modal.php | 44 ++++++++++++++++++ client_contact_details.php | 69 ++++++++++++++++++++++++++++ client_contacts.php | 4 ++ post/user/contact.php | 27 +++++++++++ 4 files changed, 144 insertions(+) create mode 100644 client_contact_create_note_modal.php diff --git a/client_contact_create_note_modal.php b/client_contact_create_note_modal.php new file mode 100644 index 000000000..92d37be58 --- /dev/null +++ b/client_contact_create_note_modal.php @@ -0,0 +1,44 @@ + diff --git a/client_contact_details.php b/client_contact_details.php index 43bbb910c..c2e57c9fe 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -94,6 +94,10 @@ } $contact_tags_display = implode('', $contact_tag_name_display_array); + // Notes + $sql_related_notes = mysqli_query($mysqli, "SELECT * FROM contact_notes LEFT JOIN users ON contact_note_created_by = user_id WHERE contact_note_contact_id = $contact_id ORDER BY contact_note_created_at DESC"); + $note_count = mysqli_num_rows($sql_related_notes); + ?>
@@ -614,6 +618,71 @@
+ +
"> +
+

Notes

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
TypeNoteByCreatedAction
+ +
+
+
+
diff --git a/client_contacts.php b/client_contacts.php index 74564f9d5..078995ce5 100644 --- a/client_contacts.php +++ b/client_contacts.php @@ -382,6 +382,9 @@ class="btn btn-&contact_id="> Details + + Make Note + Edit @@ -416,6 +419,7 @@ class="btn btn-$type created for $contact_name"; + + header("Location: " . $_SERVER["HTTP_REFERER"]); + +} + if (isset($_POST['bulk_assign_contact_location'])) { enforceUserPermission('module_client', 2);