From d76d405d5a17046f5ae53677fbcb4cc23320ff27 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 20 Feb 2025 00:38:40 -0500 Subject: [PATCH] Make contacts global view compatible, remove bulk mail from admin as this is in contacts bulk actions, updated links, tidy --- admin_bulk_mail.php | 153 ------------------ client_document_details.php | 2 +- client_overview.php | 10 +- ...contact_details.php => contact_details.php | 48 ++++-- client_contacts.php => contacts.php | 110 ++++++++++--- dashboard.php | 6 +- global_search.php | 4 +- includes/admin_side_nav.php | 7 - includes/client_overview_side_nav.php | 6 + includes/client_side_nav.php | 2 +- ...ct_add_modal.php => contact_add_modal.php} | 0 ...ve_modal.php => contact_archive_modal.php} | 0 ...=> contact_bulk_assign_location_modal.php} | 0 ...php => contact_bulk_assign_tags_modal.php} | 0 ...=> contact_bulk_edit_department_modal.php} | 0 ....php => contact_bulk_edit_phone_modal.php} | 0 ...l.php => contact_bulk_edit_role_modal.php} | 0 ...modal.php => contact_bulk_email_modal.php} | 0 ...odal.php => contact_create_note_modal.php} | 0 ...ort_modal.php => contact_export_modal.php} | 4 +- ...ort_modal.php => contact_import_modal.php} | 6 +- ...ite_modal.php => contact_invite_modal.php} | 0 post/admin/admin_bulk_mail.php | 54 ------- post/user/contact.php | 81 +++++++--- scripts/cron.php | 4 +- 25 files changed, 210 insertions(+), 287 deletions(-) delete mode 100644 admin_bulk_mail.php rename client_contact_details.php => contact_details.php (96%) rename client_contacts.php => contacts.php (86%) rename modals/{client_contact_add_modal.php => contact_add_modal.php} (100%) rename modals/{client_contact_archive_modal.php => contact_archive_modal.php} (100%) rename modals/{client_contact_bulk_assign_location_modal.php => contact_bulk_assign_location_modal.php} (100%) rename modals/{client_contact_bulk_assign_tags_modal.php => contact_bulk_assign_tags_modal.php} (100%) rename modals/{client_contact_bulk_edit_department_modal.php => contact_bulk_edit_department_modal.php} (100%) rename modals/{client_contact_bulk_edit_phone_modal.php => contact_bulk_edit_phone_modal.php} (100%) rename modals/{client_contact_bulk_edit_role_modal.php => contact_bulk_edit_role_modal.php} (100%) rename modals/{client_contact_bulk_email_modal.php => contact_bulk_email_modal.php} (100%) rename modals/{client_contact_create_note_modal.php => contact_create_note_modal.php} (100%) rename modals/{client_contact_export_modal.php => contact_export_modal.php} (80%) rename modals/{client_contact_import_modal.php => contact_import_modal.php} (81%) rename modals/{client_contact_invite_modal.php => contact_invite_modal.php} (100%) delete mode 100644 post/admin/admin_bulk_mail.php diff --git a/admin_bulk_mail.php b/admin_bulk_mail.php deleted file mode 100644 index 0d68f27f..00000000 --- a/admin_bulk_mail.php +++ /dev/null @@ -1,153 +0,0 @@ - - - -
-
-

Bulk Mail

-
- -
-
-
-
- - -
- -
- -
Email Message
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
-
- -
- -
-
- -
- -
- -
Select Contacts
-
-
-
- - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
ClientNameTitleEmail
-
- -
-
- - - -
-
- -
- -
- -
- -
-
-
- - - - -
- + diff --git a/client_overview.php b/client_overview.php index 61e955bb..22c9fa2c 100644 --- a/client_overview.php +++ b/client_overview.php @@ -241,7 +241,7 @@ $sql_asset_retired = mysqli_query( ?> - +
@@ -410,7 +410,7 @@ $sql_asset_retired = mysqli_query( ?>

- + --

@@ -430,7 +430,7 @@ $sql_asset_retired = mysqli_query( ?>

- + --

@@ -528,7 +528,7 @@ $sql_asset_retired = mysqli_query( ?>

- + --

@@ -548,7 +548,7 @@ $sql_asset_retired = mysqli_query( ?>

- + --

diff --git a/client_contact_details.php b/contact_details.php similarity index 96% rename from client_contact_details.php rename to contact_details.php index 59e519d1..95dd3e2a 100644 --- a/client_contact_details.php +++ b/contact_details.php @@ -1,18 +1,30 @@ - + +
@@ -516,7 +533,11 @@ if (isset($_GET['contact_id'])) { - + @@ -680,7 +701,15 @@ if (isset($_GET['contact_id'])) { ?> - + + + + + @@ -690,8 +719,11 @@ if (isset($_GET['contact_id'])) {
+ +
@@ -107,6 +133,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
+
+ +
+
+ +
+
+
- "> Archived @@ -215,6 +263,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Location + + + + Client + + + Action @@ -222,6 +277,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $contact_tag_name"; + $contact_tag_name_display_array[] = "$contact_tag_name"; } $contact_tags_display = implode('', $contact_tag_name_display_array); @@ -340,7 +397,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
@@ -371,13 +428,16 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); + + +