diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..5b5d9af --- /dev/null +++ b/admin.php @@ -0,0 +1,62 @@ +query('SELECT id, username, role, created_at FROM users'); +$users = $stmt->fetchAll(); + +?> + + + +
+| ID | +Username | +Role | +Created At | +
|---|---|---|---|
| + | + | + | + |
From concept to creation, we deliver custom packaging solutions that protect your products and elevate your brand.
- Request a Free Quote + Place an orderA glimpse into the customizable packaging solutions we offer. The full interactive catalog is coming soon.
" . ($notes ?: 'N/A') . "
"; + $email_body .= "📅 Delivery Preferred Date: {$delivery_date}Please send a pro-forma invoice to: {$pro_forma_email}
"; + $text_body .= "\n--- Pro-forma Invoice Request ---\n"; + $text_body .= "Please send a pro-forma invoice to: {$pro_forma_email}\n"; + } + + $attachments = []; + if (isset($_FILES['design_file']) && $_FILES['design_file']['error'] == UPLOAD_ERR_OK) { + $attachments[] = $_FILES['design_file']; + } + + $result = MailService::sendMail($to, $subject, $email_body, $text_body, [], $attachments); + + if (!empty($result['success'])) { + $message_sent = true; + } else { + $error_message = "Sorry, there was an error sending your order. Please try again later."; + error_log("MailService Error: " . ($result['error'] ?? 'Unknown error')); + } + } +} +?> + + + + + +Fill out the form below to place your order.
+We are open to partnership offers and collaborations. Let's work together to achieve mutual success.
+In addition to our core services, we also specialize in building custom digital solutions for your business. We can create:
+Contact us to discuss your project and how we can help you build the tools you need to succeed.
+