From ca0b1a1fb770003ca1e5d5e48665be7b954c1970 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 15 Feb 2025 20:35:35 -0500 Subject: [PATCH] Edit and Copy Assets is now using the new AJAX function --- ajax/ajax_asset_copy.php | 434 ++++++++++++++++++++++++++ ajax/ajax_asset_edit.php | 473 +++++++++++++++++++++++++++++ client_asset_details.php | 7 +- client_assets.php | 13 +- client_contact_details.php | 14 +- modals/client_asset_copy_modal.php | 393 ------------------------ report_assets.php | 12 +- 7 files changed, 931 insertions(+), 415 deletions(-) create mode 100644 ajax/ajax_asset_copy.php create mode 100644 ajax/ajax_asset_edit.php delete mode 100644 modals/client_asset_copy_modal.php diff --git a/ajax/ajax_asset_copy.php b/ajax/ajax_asset_copy.php new file mode 100644 index 00000000..86a92b17 --- /dev/null +++ b/ajax/ajax_asset_copy.php @@ -0,0 +1,434 @@ +Copying asset: $asset_name"; + +// Generate the HTML form content using output buffering. +ob_start(); +?> + +
+ + + + + +
+ +Editing asset: $asset_name"; + +// Generate the HTML form content using output buffering. +ob_start(); +?> + +
+ + + + + + +
+ +
-

@@ -293,8 +296,6 @@ if (isset($_GET['asset_id'])) {
- -
diff --git a/client_assets.php b/client_assets.php index 208490fb..736614e2 100644 --- a/client_assets.php +++ b/client_assets.php @@ -568,10 +568,16 @@ if (mysqli_num_rows($os_sql) > 0) {