From 8e87c25de1e983cb92ed693e39a071ec0e73250c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 30 Jul 2025 20:08:28 -0400 Subject: [PATCH] Update more broken links from file diretory consolidation and started migrating some js and ajax and css from root to /user /admin etc that pertain to the section --- ajax.php => REMOVEajax.php | 0 admin/ticket_template_details.php | 4 +- js/credential_show_otp_via_id.js | 2 +- js/share_modal.js | 2 +- user/ajax.php | 677 ++++++++++++ user/ajax/ajax_asset_details.php | 8 +- user/ajax/ajax_asset_edit.php | 2 +- user/ajax/ajax_contact_details.php | 4 +- user/ajax/ajax_contact_edit.php | 4 +- user/ajax/ajax_expense_edit.php | 2 +- user/ajax/ajax_location_edit.php | 6 +- user/ajax/ajax_transfer_edit.php | 2 +- user/asset_details.php | 4 +- user/assets.php | 4 +- user/client_document_details.php | 4 +- user/client_files.php | 10 +- user/client_overview.php | 968 +++++++++--------- user/client_racks.php | 2 +- user/contact_details.php | 4 +- user/contacts.php | 2 +- user/css/quote_dropdowns_fix.css | 15 + user/css/tickets_kanban.css | 83 ++ user/dashboard.php | 2 +- user/expenses.php | 4 +- user/includes/client_side_nav.php | 354 +++++++ user/includes/inc_all_client.php | 2 +- user/invoice.php | 16 +- user/js/ai_reword.js | 41 + user/js/ai_ticket_summary.js | 14 + user/js/autopay_setup_stripe.js | 23 + {js => user/js}/certificate_fetch_ssl.js | 0 {js => user/js}/client_delete_confirm.js | 0 user/js/credential_show_otp_via_id.js | 16 + {js => user/js}/file_delete_modal.js | 0 user/js/generate_password.js | 14 + user/js/guest_pay_invoice_stripe.js | 117 +++ user/js/keepalive.js | 18 + user/js/share_modal.js | 58 ++ {js => user/js}/ticket_change_client.js | 0 {js => user/js}/ticket_collision_detection.js | 0 {js => user/js}/ticket_merge.js | 0 {js => user/js}/ticket_time_tracking.js | 0 {js => user/js}/tickets_add_modal.js | 0 {js => user/js}/tickets_kanban.js | 0 user/modals/recurring_ticket_add_modal.php | 4 +- user/modals/ticket_add_modal_v2.php | 4 +- user/modals/ticket_change_client_modal.php | 4 +- user/modals/transfer_add_modal.php | 2 +- user/modals/user_mfa_modal.php | 4 +- user/project_details.php | 2 +- user/quote.php | 16 +- user/recurring_invoice.php | 8 +- user/ticket.php | 16 +- user/tickets_kanban.php | 4 +- 54 files changed, 1989 insertions(+), 563 deletions(-) rename ajax.php => REMOVEajax.php (100%) create mode 100644 user/ajax.php create mode 100644 user/css/quote_dropdowns_fix.css create mode 100644 user/css/tickets_kanban.css create mode 100644 user/includes/client_side_nav.php create mode 100644 user/js/ai_reword.js create mode 100644 user/js/ai_ticket_summary.js create mode 100644 user/js/autopay_setup_stripe.js rename {js => user/js}/certificate_fetch_ssl.js (100%) rename {js => user/js}/client_delete_confirm.js (100%) create mode 100644 user/js/credential_show_otp_via_id.js rename {js => user/js}/file_delete_modal.js (100%) create mode 100644 user/js/generate_password.js create mode 100644 user/js/guest_pay_invoice_stripe.js create mode 100644 user/js/keepalive.js create mode 100644 user/js/share_modal.js rename {js => user/js}/ticket_change_client.js (100%) rename {js => user/js}/ticket_collision_detection.js (100%) rename {js => user/js}/ticket_merge.js (100%) rename {js => user/js}/ticket_time_tracking.js (100%) rename {js => user/js}/tickets_add_modal.js (100%) rename {js => user/js}/tickets_kanban.js (100%) diff --git a/ajax.php b/REMOVEajax.php similarity index 100% rename from ajax.php rename to REMOVEajax.php diff --git a/admin/ticket_template_details.php b/admin/ticket_template_details.php index 5834b790..8cd66b49 100644 --- a/admin/ticket_template_details.php +++ b/admin/ticket_template_details.php @@ -137,9 +137,9 @@ $sql_task_templates = mysqli_query($mysqli, "SELECT * FROM task_templates WHERE - + - + + @@ -831,7 +831,7 @@ ob_start(); $file_created_at = nullable_htmlentities($row['file_created_at']); ?> - " target="_blank" >$file_description"; ?> + " target="_blank" >$file_description"; ?> diff --git a/user/ajax/ajax_asset_edit.php b/user/ajax/ajax_asset_edit.php index aca0aaa6..f2b725ae 100644 --- a/user/ajax/ajax_asset_edit.php +++ b/user/ajax/ajax_asset_edit.php @@ -438,7 +438,7 @@ ob_start();
- asset_photo"> + asset_photo">
diff --git a/user/ajax/ajax_contact_details.php b/user/ajax/ajax_contact_details.php index 2043b0d0..ed749f44 100644 --- a/user/ajax/ajax_contact_details.php +++ b/user/ajax/ajax_contact_details.php @@ -221,7 +221,7 @@ ob_start();
- contact_photo"> + contact_photo"> @@ -773,7 +773,7 @@ ob_start(); -
+
diff --git a/user/ajax/ajax_contact_edit.php b/user/ajax/ajax_contact_edit.php index 9eb42eb0..714777b8 100644 --- a/user/ajax/ajax_contact_edit.php +++ b/user/ajax/ajax_contact_edit.php @@ -282,7 +282,7 @@ ob_start();
- contact_photo"> + contact_photo"> @@ -352,7 +352,7 @@ ob_start(); function generatePassword(type, id) { // Send a GET request to ajax.php as ajax.php?get_readable_pass=true jQuery.get( - "../ajax.php", { + "ajax.php", { get_readable_pass: 'true' }, function(data) { diff --git a/user/ajax/ajax_expense_edit.php b/user/ajax/ajax_expense_edit.php index 84a06a24..3110efe5 100644 --- a/user/ajax/ajax_expense_edit.php +++ b/user/ajax/ajax_expense_edit.php @@ -230,7 +230,7 @@ ob_start();
- " + " download=""> diff --git a/user/ajax/ajax_location_edit.php b/user/ajax/ajax_location_edit.php index 2b477f92..444d0d85 100644 --- a/user/ajax/ajax_location_edit.php +++ b/user/ajax/ajax_location_edit.php @@ -1,6 +1,6 @@ - "> + ">
@@ -299,4 +299,4 @@ ob_start(); - Method of Transfer - diff --git a/user/asset_details.php b/user/asset_details.php index f0aba1a5..b62f4beb 100644 --- a/user/asset_details.php +++ b/user/asset_details.php @@ -245,7 +245,7 @@ if (isset($_GET['asset_id'])) {

- asset_photo"> + asset_photo">
@@ -948,7 +948,7 @@ if (isset($_GET['asset_id'])) { ?> - " target="_blank" >$file_description"; ?> + " target="_blank" >$file_description"; ?> diff --git a/user/assets.php b/user/assets.php index adcd0800..50f6942d 100644 --- a/user/assets.php +++ b/user/assets.php @@ -721,8 +721,8 @@ if (mysqli_num_rows($os_sql) > 0) { - - + + + 0) { $files[] = [ 'id' => $file_id, 'name' => $file_name, - 'preview' => "uploads/clients/$client_id/$file_reference_name" + 'preview' => "../uploads/clients/$client_id/$file_reference_name" ]; ?> @@ -335,7 +335,7 @@ while ($folder_id > 0) {
- " alt=""> + " alt="">
@@ -345,7 +345,7 @@ while ($folder_id > 0) { - " target="_blank"> + " target="_blank">
@@ -550,7 +550,7 @@ while ($folder_id > 0) {