From e1a579387f6a6d325747372e141633d6b33cbf0f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 2 Dec 2025 15:04:05 -0500 Subject: [PATCH] Convert all Import / Export Modals to Ajax and a few other lingering modals that were not converted yet --- admin/modals/user/user_export.php | 43 +- admin/users.php | 14 +- agent/assets.php | 30 +- agent/certificates.php | 18 +- agent/contacts.php | 42 +- agent/credentials.php | 21 +- agent/domains.php | 575 +++++++++--------- agent/expenses.php | 4 +- agent/invoices.php | 13 +- agent/locations.php | 9 +- agent/modals/asset/asset_export.php | 51 +- agent/modals/asset/asset_import.php | 67 +- .../modals/certificate/certificate_export.php | 49 +- agent/modals/contact/contact_export.php | 50 +- agent/modals/contact/contact_import.php | 63 +- agent/modals/credential/credential_export.php | 50 +- agent/modals/credential/credential_import.php | 61 +- agent/modals/domain/domain_export.php | 49 +- agent/modals/expense/expense_export.php | 223 +++---- agent/modals/invoice/invoice_export.php | 85 +-- agent/modals/location/location_export.php | 49 +- agent/modals/location/location_import.php | 62 +- agent/modals/network/network_export.php | 49 +- agent/modals/payment/payment_export.php | 52 +- agent/modals/product/product_export.php | 43 +- agent/modals/quote/quote_export.php | 50 +- .../software/software_add_from_template.php | 133 ++-- agent/modals/software/software_export.php | 50 +- agent/modals/ticket/ticket_export.php | 49 +- agent/modals/trip/trip_export.php | 85 +-- .../vendor/vendor_add_from_template.php | 89 +-- agent/modals/vendor/vendor_export.php | 50 +- agent/networks.php | 19 +- agent/payments.php | 12 +- agent/post/asset.php | 82 +-- agent/post/certificate.php | 4 +- agent/post/contact.php | 34 +- agent/post/credential.php | 10 +- agent/post/domain.php | 12 +- agent/post/invoice.php | 6 +- agent/post/location.php | 20 +- agent/post/network.php | 8 +- agent/post/payment.php | 34 +- agent/post/quote.php | 2 +- agent/post/software.php | 8 +- agent/post/ticket.php | 2 +- agent/post/trip.php | 10 +- agent/post/vendor.php | 28 +- agent/products.php | 4 +- agent/quotes.php | 4 +- agent/software.php | 19 +- agent/tickets.php | 32 +- agent/trips.php | 8 +- agent/vendors.php | 12 +- 54 files changed, 1381 insertions(+), 1267 deletions(-) diff --git a/admin/modals/user/user_export.php b/admin/modals/user/user_export.php index b0aa26e2..fc4ead57 100644 --- a/admin/modals/user/user_export.php +++ b/admin/modals/user/user_export.php @@ -1,21 +1,26 @@ - @@ -54,7 +61,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- "> Archived @@ -235,5 +242,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -789,8 +791,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); 0) { ?> @@ -78,7 +79,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- + @@ -103,7 +104,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- "> Archived @@ -283,7 +284,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Archive - +
@@ -299,15 +300,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - + - - - + Import - + Export @@ -112,7 +114,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- + @@ -134,7 +136,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- "> Archived @@ -219,7 +221,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Bulk Action (0)
- + @@ -566,10 +568,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
@@ -198,7 +200,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); @@ -366,7 +368,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $credential_contact_display = ''; } - if ($credential_asset_id) { + if ($credential_asset_id) { $credential_asset_display = " @@ -528,15 +530,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - - -
- - -
- - - +
+
+

Domains

+
+
+ + 0) { ?> + + - -
-
-
- -
- -
-
-
- - -
- -
-
- -
-
- - -
-
- "> - Archived - - -
-
- -
- -
-
- -
- - - - - - text-nowrap"> - - - - - - - - - - - - - - - - - $domain_registrar_name - " : "-"; - $domain_webhost_name_display = $domain_webhost_name ? " - - $domain_webhost_name - " : "-"; - $domain_dnshost_name_display = $domain_dnshost_name ? " - - $domain_dnshost_name - " : "-"; - $domain_mailhost_name_display = $domain_mailhost_name ? " - - $domain_mailhost_name - " : "-"; - - ?> - - - - - - - - - - - - - - - - - -
-
- -
-
- - Domain - - - - Registrar - - - - Web Host - - - - DNS Host - - - - Mail Host - - - - Expires - - - - Client - - Action
-
- -
-
- -
- -
-
-
-
-
-
-
-
- -
- -
- -
- -
-
- +
+
+ + + + +
+
+
+ +
+ +
+
+
+ + +
+ +
+
+ +
+
+ + +
+
+ "> + Archived + + +
+
+ +
+
+
+
+ +
+ + + + + + text-nowrap"> + + + + + + + + + + + + + + + + + $domain_registrar_name + " : "-"; + $domain_webhost_name_display = $domain_webhost_name ? " + + $domain_webhost_name + " : "-"; + $domain_dnshost_name_display = $domain_dnshost_name ? " + + $domain_dnshost_name + " : "-"; + $domain_mailhost_name_display = $domain_mailhost_name ? " + + $domain_mailhost_name + " : "-"; + + ?> + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + Domain + + + + Registrar + + + + Web Host + + + + DNS Host + + + + Mail Host + + + + Expires + + + + Client + + Action
+
+ +
+
+ +
+ +
+
+
+
+
+
+
+
+ +
+ +
+ +
+ +
+
+ +
+
New Expense @@ -357,5 +358,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Invoices
- + @@ -217,7 +221,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Bulk Action (0)