From 36e1df93bbc79bade4afb90b4ad5451c93f48896 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 15 Feb 2025 16:19:35 -0500 Subject: [PATCH] Moved edit client, notification, and create contact note to the new ajax system, also updated the notificaiton count to be more efficient --- ajax/ajax_client_edit.php | 249 ++++++++++++++++++++++++++++++ ajax/ajax_contact_note_create.php | 49 ++++++ ajax/ajax_notifications.php | 74 +++++++++ client_contact_details.php | 16 +- client_contacts.php | 8 +- clients.php | 9 +- includes/ajax_header.php | 8 +- includes/footer.php | 1 - includes/inc_client_top_head.php | 8 +- includes/top_nav.php | 9 +- modals/notifications_modal.php | 70 --------- 11 files changed, 403 insertions(+), 98 deletions(-) create mode 100644 ajax/ajax_client_edit.php create mode 100644 ajax/ajax_contact_note_create.php create mode 100644 ajax/ajax_notifications.php delete mode 100644 modals/notifications_modal.php diff --git a/ajax/ajax_client_edit.php b/ajax/ajax_client_edit.php new file mode 100644 index 00000000..70b34235 --- /dev/null +++ b/ajax/ajax_client_edit.php @@ -0,0 +1,249 @@ +Editing Client: $client_name"; + +// Generate the HTML form content using output buffering. +ob_start(); +?> +
+ + + + +
+ +Creating note: $contact_name"; + +// Generate the HTML form content using output buffering. +ob_start(); +?> +
+ + + + + +
+ +Notifications$num_notifications"; + +// Generate the HTML form content using output buffering. +ob_start(); +?> + + + +
- ?> - @@ -254,8 +252,11 @@ if (isset($_GET['contact_id'])) { New Recurring Ticket - - New Note + + New Note @@ -420,7 +421,6 @@ if (isset($_GET['contact_id'])) {

Notes

-
@@ -1136,7 +1139,6 @@ if (isset($_GET['contact_id'])) { &contact_id="> Details - + Make Note diff --git a/clients.php b/clients.php index a1da892f..52fc5def 100644 --- a/clients.php +++ b/clients.php @@ -449,7 +449,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));