From ba6e79dc8c90b3f55d95d232f8dc3b25dc5e6166 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 21 Sep 2023 17:03:53 -0400 Subject: [PATCH] Feature: Added Document Rename Modal to Document Listing --- client_document_rename_modal.php | 33 ++++++++++++++++++++++++++++++++ client_documents.php | 5 +++++ post/document.php | 21 ++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 client_document_rename_modal.php diff --git a/client_document_rename_modal.php b/client_document_rename_modal.php new file mode 100644 index 00000000..fbfb1e76 --- /dev/null +++ b/client_document_rename_modal.php @@ -0,0 +1,33 @@ + diff --git a/client_documents.php b/client_documents.php index 201ebe2e..268c57ad 100644 --- a/client_documents.php +++ b/client_documents.php @@ -200,6 +200,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Share + + Rename + + Move @@ -221,6 +225,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $name"; + + header("Location: " . $_SERVER["HTTP_REFERER"]); + +} + if (isset($_POST['link_file_to_document'])) { validateTechRole();