From 75e002a054d5685d63070ab7a82e75f452c6a523 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Mon, 3 Feb 2025 22:18:22 +0000 Subject: [PATCH 1/8] Update git-ignore for new quotes dir --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c70c3cf8..ada890d7 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ uploads/tmp/* !uploads/tmp/index.php uploads/tickets/* !uploads/tickets/index.php +uploads/quotes/* +!uploads/quotes/index.php .idea/* plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/* !plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/.gitkeep From b50c2295a6df4a3a8c1153aadb82411d759f7034 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Mon, 3 Feb 2025 22:19:06 +0000 Subject: [PATCH 2/8] Add logic for showing quote attachments in the admin/tech side --- quote.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/quote.php b/quote.php index 816ea672..7b34f0db 100644 --- a/quote.php +++ b/quote.php @@ -108,6 +108,13 @@ if (isset($_GET['quote_id'])) { $json_products = json_encode($products); } + // Attachments + // Get Ticket Attachments + $sql_quote_attachments = mysqli_query( + $mysqli, + "SELECT * FROM quote_attachments WHERE quote_attachments.quote_attachment_quote_id = $quote_id" + ); + ?>