From 45564d45bc21ac9ec2c8a80bb44d9ddf8f45fc1f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 18 Jan 2023 22:00:45 -0500 Subject: [PATCH] Added Document Template Listing, editing, deletion, move scheduled tickets into tickets --- client_document_template_add_modal.php | 32 ++++++ client_document_template_details.php | 63 ++++++++++++ client_document_template_edit_modal.php | 30 ++++++ client_document_templates.php | 130 ++++++++++++++++++++++++ client_documents.php | 9 +- client_scheduled_tickets.php | 4 + client_side_nav.php | 11 +- client_tickets.php | 4 + client_vendors.php | 14 ++- post.php | 74 +++++++++++--- side_nav.php | 8 +- tickets.php | 4 + 12 files changed, 344 insertions(+), 39 deletions(-) create mode 100644 client_document_template_add_modal.php create mode 100644 client_document_template_details.php create mode 100644 client_document_template_edit_modal.php create mode 100644 client_document_templates.php diff --git a/client_document_template_add_modal.php b/client_document_template_add_modal.php new file mode 100644 index 00000000..db371f2f --- /dev/null +++ b/client_document_template_add_modal.php @@ -0,0 +1,32 @@ + \ No newline at end of file diff --git a/client_document_template_details.php b/client_document_template_details.php new file mode 100644 index 00000000..acc52416 --- /dev/null +++ b/client_document_template_details.php @@ -0,0 +1,63 @@ + + + + + + + +
+
+ +

+ +
+ + +
+
+
+ +
+
+ + + + \ No newline at end of file diff --git a/client_document_template_edit_modal.php b/client_document_template_edit_modal.php new file mode 100644 index 00000000..9905c839 --- /dev/null +++ b/client_document_template_edit_modal.php @@ -0,0 +1,30 @@ + \ No newline at end of file diff --git a/client_document_templates.php b/client_document_templates.php new file mode 100644 index 00000000..3168fa39 --- /dev/null +++ b/client_document_templates.php @@ -0,0 +1,130 @@ + + + $sb, 'o' => $o))); + +$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM documents + WHERE document_template = 1 + AND documents.company_id = $session_company_id + $query_snippet + ORDER BY $sb $o LIMIT $record_from, $record_to" +); + +$num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); + +?> + +
+
+

Document Templates

+ + +
+ +
+
+
+ +
+ +
+ +
+ +
+
+
+
+ +
+ + "> + + + + + + + + + + + + + + + + + + + + +
+ Template Name + + Created + + Updated + + Action +
+ + + +
+
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/client_documents.php b/client_documents.php index 398021b1..83aa5048 100644 --- a/client_documents.php +++ b/client_documents.php @@ -47,7 +47,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
-

Documents

+

+ Documents +

+ + +
diff --git a/client_scheduled_tickets.php b/client_scheduled_tickets.php index b0c192be..fe94bc5b 100644 --- a/client_scheduled_tickets.php +++ b/client_scheduled_tickets.php @@ -28,6 +28,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));

Scheduled Tickets

+ +
diff --git a/client_side_nav.php b/client_side_nav.php index 5f9061b2..b6612daa 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -144,7 +144,7 @@ - - - -