From 4d06ad6b8e6c397ea67310f422a5044ad7da254a Mon Sep 17 00:00:00 2001 From: PhemcodeJay Date: Sat, 2 Nov 2024 20:32:31 +0300 Subject: [PATCH] up --- analytics.php | 141 +--- db.sql | 45 +- feedback.php | 4 +- home.html | 2 +- page-add-sale.php | 48 +- page-list-sale.php | 2 +- project.sql | 678 ++++++++++++++++++ ...1730520358_1726523112_20230712_130458.jpg} | Bin 8 files changed, 724 insertions(+), 196 deletions(-) create mode 100644 project.sql rename uploads/user/{1726523112_20230712_130458.jpg => 1730551257_1730520358_1726523112_20230712_130458.jpg} (100%) diff --git a/analytics.php b/analytics.php index 2e37b91b..a6fc6276 100644 --- a/analytics.php +++ b/analytics.php @@ -548,16 +548,7 @@ class="rounded-top img-fluid mb-4">
- +
@@ -572,16 +563,7 @@ class="rounded-top img-fluid mb-4">
- +
@@ -597,16 +579,7 @@ class="rounded-top img-fluid mb-4">
- +
@@ -619,16 +592,7 @@ class="rounded-top img-fluid mb-4">
- +
@@ -694,103 +658,6 @@ class="rounded-top img-fluid mb-4"> window.location.href = 'invoice-form.php'; }); - \ No newline at end of file diff --git a/db.sql b/db.sql index 7f531b6f..14c8037b 100644 --- a/db.sql +++ b/db.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 --- Generation Time: Nov 02, 2024 at 05:17 AM +-- Generation Time: Nov 02, 2024 at 05:34 PM -- Server version: 10.4.32-MariaDB -- PHP Version: 8.2.12 @@ -35,6 +35,7 @@ CREATE TABLE `activation_codes` ( `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -48,6 +49,7 @@ CREATE TABLE `categories` ( `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -63,6 +65,7 @@ CREATE TABLE `customers` ( `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -77,6 +80,7 @@ CREATE TABLE `expenses` ( `created_by` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -95,6 +99,7 @@ CREATE TABLE `inventory` ( `product_name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -117,6 +122,7 @@ CREATE TABLE `invoices` ( `total_amount` decimal(10,2) GENERATED ALWAYS AS (`subtotal` - `subtotal` * (`discount` / 100)) STORED ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -132,6 +138,7 @@ CREATE TABLE `invoice_items` ( `total` decimal(10,2) GENERATED ALWAYS AS (`qty` * `price`) STORED ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -193,6 +200,7 @@ CREATE TABLE `products` ( `profit` decimal(10,2) GENERATED ALWAYS AS (`price` - `cost`) STORED ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -222,6 +230,7 @@ CREATE TABLE `reports` ( `net_profit` decimal(2,0) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -241,11 +250,11 @@ CREATE TABLE `sales` ( `name` varchar(255) NOT NULL, `product_type` enum('Goods','Services','Digital') NOT NULL, `sale_note` varchar(255) NOT NULL, - `image_path` varchar(255) NOT NULL, `sales_price` decimal(10,2) NOT NULL, `total_price` decimal(10,2) GENERATED ALWAYS AS (`sales_qty` * `sales_price`) VIRTUAL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -276,6 +285,7 @@ CREATE TABLE `sales_analytics` ( `most_sold_product_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -291,6 +301,7 @@ CREATE TABLE `staffs` ( `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -309,6 +320,7 @@ CREATE TABLE `suppliers` ( `note` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -------------------------------------------------------- -- @@ -329,6 +341,7 @@ CREATE TABLE `users` ( `location` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + -- -- Indexes for dumped tables -- @@ -448,43 +461,43 @@ ALTER TABLE `users` -- AUTO_INCREMENT for table `activation_codes` -- ALTER TABLE `activation_codes` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` - MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` - MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `expenses` -- ALTER TABLE `expenses` - MODIFY `expense_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `expense_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `inventory` -- ALTER TABLE `inventory` - MODIFY `inventory_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `inventory_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `invoices` -- ALTER TABLE `invoices` - MODIFY `invoice_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; + MODIFY `invoice_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `invoice_items` -- ALTER TABLE `invoice_items` - MODIFY `invoice_items_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; + MODIFY `invoice_items_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `password_resets` @@ -502,43 +515,43 @@ ALTER TABLE `payments` -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `reports` -- ALTER TABLE `reports` - MODIFY `reports_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `reports_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `sales` -- ALTER TABLE `sales` - MODIFY `sales_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `sales_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `sales_analytics` -- ALTER TABLE `sales_analytics` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `staffs` -- ALTER TABLE `staffs` - MODIFY `staff_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `staff_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `suppliers` -- ALTER TABLE `suppliers` - MODIFY `supplier_id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `supplier_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/feedback.php b/feedback.php index 285c0ad3..e5c0233e 100644 --- a/feedback.php +++ b/feedback.php @@ -52,8 +52,8 @@ $mail->Port = 587; // TCP port to connect to // Set email sender and recipient - $mail->setFrom('pphemcodejay@gmail.com', 'SalesPilot'); // Replace with your email and name - $mail->addAddress($to); // Add a recipient + $mail->setFrom('phemcodejay@gmail.com', 'SalesPilot'); // Replace with your email and name + $mail->addAddress($to) ; // Add a recipient // Email subject and body $mail->Subject = "New Contact Form Submission: $subject"; diff --git a/home.html b/home.html index d74304a7..f07c8f14 100644 --- a/home.html +++ b/home.html @@ -243,7 +243,7 @@

Starter Plan (Small)

-

$0 / month

+

$9 / month