diff --git a/client_contact_create_note_modal.php b/client_contact_create_note_modal.php
new file mode 100644
index 00000000..92d37be5
--- /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 43bbb910..c2e57c9f 100644
--- a/client_contact_details.php
+++ b/client_contact_details.php
@@ -94,6 +94,10 @@ if (isset($_GET['contact_id'])) {
}
$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 @@ if (isset($_GET['contact_id'])) {
+
+ ">
+
+
+
+
+
+
+ | Type |
+ Note |
+ By |
+ Created |
+ Action |
+
+
+
+
+
+
+ |
+ |
+ |
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
diff --git a/client_contacts.php b/client_contacts.php
index 74564f9d..078995ce 100644
--- a/client_contacts.php
+++ b/client_contacts.php
@@ -382,6 +382,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
Details
+
+ Make Note
+
Edit
@@ -416,6 +419,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
$type created for $contact_name";
+
+ header("Location: " . $_SERVER["HTTP_REFERER"]);
+
+}
+
if (isset($_POST['bulk_assign_contact_location'])) {
enforceUserPermission('module_client', 2);