Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2f349d8a8 | ||
|
|
56987f61a1 | ||
|
|
de6425d950 |
62
admin.php
Normal file
62
admin.php
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
require_once __DIR__ . '/db/config.php';
|
||||||
|
|
||||||
|
$pdo = db();
|
||||||
|
$stmt = $pdo->query('SELECT id, username, role, created_at FROM users');
|
||||||
|
$users = $stmt->fetchAll();
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Admin</title>
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="index.php"><img src="assets/pasted-20251210-201942-d2c32489.jpg" alt="<?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?> Logo" style="height: 40px;"></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="partnership.php">Partnership</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="admin.php">Admin</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div class="container" style="margin-top: 80px;">
|
||||||
|
<h1 class="mb-4">User Management</h1>
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-striped table-hover">
|
||||||
|
<thead class="table-dark">
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Username</th>
|
||||||
|
<th>Role</th>
|
||||||
|
<th>Created At</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($users as $user): ?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $user['id']; ?></td>
|
||||||
|
<td><?php echo htmlspecialchars($user['username']); ?></td>
|
||||||
|
<td><?php echo htmlspecialchars($user['role']); ?></td>
|
||||||
|
<td><?php echo $user['created_at']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Bootstrap JS -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
176
assets/css/custom.css
Normal file
176
assets/css/custom.css
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
/*
|
||||||
|
Global Styles
|
||||||
|
*/
|
||||||
|
body {
|
||||||
|
font-family: 'Lato', sans-serif;
|
||||||
|
color: #2c3e50; /* Midnight Blue */
|
||||||
|
background-color: #ecf0f1; /* Light Gray */
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-section {
|
||||||
|
padding: 6rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
height: 0.2rem;
|
||||||
|
max-width: 3.25rem;
|
||||||
|
margin: 1.5rem auto;
|
||||||
|
background-color: #18bc9c; /* Turquoise */
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-xl {
|
||||||
|
padding: 1.25rem 2.25rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border: none;
|
||||||
|
border-radius: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navigation */
|
||||||
|
#mainNav {
|
||||||
|
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
||||||
|
background-color: #fff;
|
||||||
|
transition: background-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainNav .navbar-brand {
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #2c3e50;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainNav .nav-link {
|
||||||
|
color: #2c3e50;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainNav .nav-link:hover, #mainNav .nav-link.active {
|
||||||
|
color: #18bc9c;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero-section {
|
||||||
|
padding: 10rem 0;
|
||||||
|
background-color: #2c3e50; /* Midnight Blue */
|
||||||
|
background-image: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
|
||||||
|
color: white;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-heading {
|
||||||
|
font-size: 2.8rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-subheading {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 300;
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-accent {
|
||||||
|
background-color: #18bc9c; /* Turquoise */
|
||||||
|
color: white;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-accent:hover {
|
||||||
|
background-color: #15a589;
|
||||||
|
color: white;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Why Us Section */
|
||||||
|
#why-us .fs-1 {
|
||||||
|
color: #2c3e50 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Offers Section */
|
||||||
|
.card {
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-featured {
|
||||||
|
border: 2px solid #18bc9c;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Products Section */
|
||||||
|
.product-placeholder {
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px dashed #bdc3c7;
|
||||||
|
color: #7f8c8d;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 150px;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
font-weight: 500;
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FAQ Section */
|
||||||
|
.accordion-item {
|
||||||
|
background-color: #fff;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
||||||
|
}
|
||||||
|
.accordion-button {
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
font-weight: 500;
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
}
|
||||||
|
.accordion-button:not(.collapsed) {
|
||||||
|
color: #18bc9c;
|
||||||
|
background-color: #ecf0f1;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
.accordion-button:focus {
|
||||||
|
box-shadow: 0 0 0 0.25rem rgba(24, 188, 156, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Contact Section */
|
||||||
|
#contact .form-control {
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
#contact .form-control:focus {
|
||||||
|
border-color: #18bc9c;
|
||||||
|
box-shadow: 0 0 0 0.25rem rgba(24, 188, 156, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background-color: #2c3e50;
|
||||||
|
border-color: #2c3e50;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-color: #1a252f;
|
||||||
|
border-color: #1a252f;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
footer.bg-light {
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
border-top: 1px solid #e9ecef;
|
||||||
|
}
|
||||||
54
assets/js/main.js
Normal file
54
assets/js/main.js
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
/*!
|
||||||
|
* Start Bootstrap - Agency v7.0.11 (https://startbootstrap.com/theme/agency)
|
||||||
|
* Copyright 2013-2022 Start Bootstrap
|
||||||
|
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-agency/blob/master/LICENSE)
|
||||||
|
*/
|
||||||
|
//
|
||||||
|
// Scripts
|
||||||
|
//
|
||||||
|
|
||||||
|
window.addEventListener('DOMContentLoaded', event => {
|
||||||
|
|
||||||
|
// Navbar shrink function
|
||||||
|
var navbarShrink = function () {
|
||||||
|
const navbarCollapsible = document.body.querySelector('#mainNav');
|
||||||
|
if (!navbarCollapsible) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (window.scrollY === 0) {
|
||||||
|
navbarCollapsible.classList.remove('navbar-shrink')
|
||||||
|
} else {
|
||||||
|
navbarCollapsible.classList.add('navbar-shrink')
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Shrink the navbar
|
||||||
|
navbarShrink();
|
||||||
|
|
||||||
|
// Shrink the navbar when page is scrolled
|
||||||
|
document.addEventListener('scroll', navbarShrink);
|
||||||
|
|
||||||
|
// Activate Bootstrap scrollspy on the main nav element
|
||||||
|
const mainNav = document.body.querySelector('#mainNav');
|
||||||
|
if (mainNav) {
|
||||||
|
new bootstrap.ScrollSpy(document.body, {
|
||||||
|
target: '#mainNav',
|
||||||
|
offset: 74,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// Collapse responsive navbar when toggler is visible
|
||||||
|
const navbarToggler = document.body.querySelector('.navbar-toggler');
|
||||||
|
const responsiveNavItems = [].slice.call(
|
||||||
|
document.querySelectorAll('#navbarResponsive .nav-link')
|
||||||
|
);
|
||||||
|
responsiveNavItems.map(function (responsiveNavItem) {
|
||||||
|
responsiveNavItem.addEventListener('click', () => {
|
||||||
|
if (window.getComputedStyle(navbarToggler).display !== 'none') {
|
||||||
|
navbarToggler.click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
BIN
assets/pasted-20251210-201942-d2c32489.jpg
Normal file
BIN
assets/pasted-20251210-201942-d2c32489.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 524 KiB |
431
index.php
431
index.php
@ -1,150 +1,321 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
session_start();
|
||||||
@ini_set('display_errors', '1');
|
|
||||||
@error_reporting(E_ALL);
|
|
||||||
@date_default_timezone_set('UTC');
|
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
require_once __DIR__ . '/mail/MailService.php';
|
||||||
$now = date('Y-m-d H:i:s');
|
|
||||||
|
$message_sent = false;
|
||||||
|
$error_message = '';
|
||||||
|
|
||||||
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||||
|
$name = strip_tags(trim($_POST["name"]));
|
||||||
|
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
|
||||||
|
$message = strip_tags(trim($_POST["message"]));
|
||||||
|
|
||||||
|
if (empty($name) || empty($message) || !filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
$error_message = "Please fill out all fields and provide a valid email address.";
|
||||||
|
} else {
|
||||||
|
$to = getenv('MAIL_TO') ?: 'admin@example.com'; // Fallback for local testing
|
||||||
|
$subject = "New Contact Form Submission from " . $name;
|
||||||
|
|
||||||
|
$email_body = "Name: {$name}<br>";
|
||||||
|
$email_body .= "Email: {$email}<br><br>";
|
||||||
|
$email_body .= "Message:<br>{$message}";
|
||||||
|
|
||||||
|
$text_body = "Name: {$name}\n";
|
||||||
|
$text_body .= "Email: {$email}\n\n";
|
||||||
|
$text_body .= "Message:\n{$message}";
|
||||||
|
|
||||||
|
$result = MailService::sendMail($to, $subject, $email_body, $text_body, ['reply_to' => $email]);
|
||||||
|
|
||||||
|
if (!empty($result['success'])) {
|
||||||
|
$message_sent = true;
|
||||||
|
} else {
|
||||||
|
$error_message = "Sorry, there was an error sending your message. Please try again later.";
|
||||||
|
// error_log("MailService Error: " . ($result['error'] ?? 'Unknown error'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>New Style</title>
|
<title><?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'Packaging Solutions'); ?></title>
|
||||||
<?php
|
<meta name="description" content="<?php echo htmlspecialchars($_SERVER['PROJECT_DESCRIPTION'] ?? 'Custom packaging for your business.'); ?>">
|
||||||
// Read project preview data from environment
|
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
<!-- Google Fonts -->
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|
||||||
?>
|
|
||||||
<?php if ($projectDescription): ?>
|
|
||||||
<!-- Meta description -->
|
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
|
||||||
<!-- Open Graph meta tags -->
|
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
||||||
<!-- Twitter meta tags -->
|
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($projectImageUrl): ?>
|
|
||||||
<!-- Open Graph image -->
|
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<!-- Twitter image -->
|
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- Bootstrap Icons -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
|
|
||||||
|
<!-- Custom CSS -->
|
||||||
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
<style>
|
<style>
|
||||||
:root {
|
.product-link {
|
||||||
--bg-color-start: #6a11cb;
|
text-decoration: none;
|
||||||
--bg-color-end: #2575fc;
|
color: inherit;
|
||||||
--text-color: #ffffff;
|
display: block;
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
|
||||||
color: var(--text-color);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
body::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
|
||||||
animation: bg-pan 20s linear infinite;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
@keyframes bg-pan {
|
.product-placeholder {
|
||||||
0% { background-position: 0% 0%; }
|
|
||||||
100% { background-position: 100% 100%; }
|
|
||||||
}
|
|
||||||
main {
|
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
text-align: center;
|
||||||
|
height: 100%;
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
.card {
|
.product-placeholder:hover {
|
||||||
background: var(--card-bg-color);
|
background-color: #f8f9fa;
|
||||||
border: 1px solid var(--card-border-color);
|
transform: translateY(-5px);
|
||||||
border-radius: 16px;
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||||
padding: 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.loader {
|
|
||||||
margin: 1.25rem auto 1.25rem;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
@keyframes spin {
|
|
||||||
from { transform: rotate(0deg); }
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
|
||||||
padding: 0; margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
white-space: nowrap; border: 0;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body data-bs-spy="scroll" data-bs-target="#mainNav" data-bs-offset="80">
|
||||||
<main>
|
|
||||||
<div class="card">
|
<!-- Navigation -->
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<div class="container">
|
||||||
<span class="sr-only">Loading…</span>
|
<a class="navbar-brand" href="#"><img src="assets/pasted-20251210-201942-d2c32489.jpg" alt="<?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?> Logo" style="height: 40px;"></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#why-us">Why Us</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#offers">Offers</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#products">Products</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#faq">FAQ</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#contact">Contact</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="partnership.php">Partnership</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="admin.php">Admin</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</nav>
|
||||||
<footer>
|
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<!-- Hero Section -->
|
||||||
|
<header class="hero-section text-white text-center">
|
||||||
|
<div class="container d-flex align-items-center flex-column">
|
||||||
|
<h1 class="hero-heading mb-3">Innovative Packaging, Perfectly Crafted</h1>
|
||||||
|
<p class="hero-subheading mb-4">From concept to creation, we deliver custom packaging solutions that protect your products and elevate your brand.</p>
|
||||||
|
<a href="order.php" class="btn btn-accent btn-lg">Place an order</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Why Us Section -->
|
||||||
|
<section id="why-us" class="page-section">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="text-center mt-0">Why Choose Us?</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-3 col-md-6 text-center">
|
||||||
|
<div class="mt-5">
|
||||||
|
<div class="mb-2"><i class="bi-gem fs-1 text-primary"></i></div>
|
||||||
|
<h3 class="h4 mb-2">Dynamic Design</h3>
|
||||||
|
<p class="text-muted mb-0">Use our tools to design your vision or work with our team for something unique.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-6 text-center">
|
||||||
|
<div class="mt-5">
|
||||||
|
<div class="mb-2"><i class="bi-rulers fs-1 text-primary"></i></div>
|
||||||
|
<h3 class="h4 mb-2">Precision Engineering</h3>
|
||||||
|
<p class="text-muted mb-0">Every fold, cut, and print is managed with state-of-the-art precision.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-6 text-center">
|
||||||
|
<div class="mt-5">
|
||||||
|
<div class="mb-2"><i class="bi-truck fs-1 text-primary"></i></div>
|
||||||
|
<h3 class="h4 mb-2">Reliable Delivery</h3>
|
||||||
|
<p class="text-muted mb-0">Instant lead times and transparent tracking, from our factory to your door.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-6 text-center">
|
||||||
|
<div class="mt-5">
|
||||||
|
<div class="mb-2"><i class="bi-headset fs-1 text-primary"></i></div>
|
||||||
|
<h3 class="h4 mb-2">Dedicated Support</h3>
|
||||||
|
<p class="text-muted mb-0">Our sales and support teams are here to ensure your success.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Offers Section -->
|
||||||
|
<section id="offers" class="page-section bg-light">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="text-center">Our Partnership Offers</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<p class="text-center text-muted mb-5">We also build websites for companies, with unique partnership models.</p>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-4 mb-4">
|
||||||
|
<div class="card h-100 shadow border-0">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h5 class="card-title text-center fw-bold">Option A: Freemium</h5>
|
||||||
|
<hr>
|
||||||
|
<p class="card-text text-center">50% de économies et 50% des bénéfices sur le chiffre d'affaire qui vient de notre réseau.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 mb-4">
|
||||||
|
<div class="card h-100 shadow border-0 card-featured">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h5 class="card-title text-center fw-bold">Option B: Performance</h5>
|
||||||
|
<hr>
|
||||||
|
<p class="card-text text-center">Dépenses=X, prix de l'abonnement 0,5% de X + variable sur la performance commerciale 40% sur le bénéfice généré.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 mb-4">
|
||||||
|
<div class="card h-100 shadow border-0">
|
||||||
|
<div class="card-body p-4">
|
||||||
|
<h5 class="card-title text-center fw-bold">Option C: Subscription</h5>
|
||||||
|
<hr>
|
||||||
|
<p class="card-text text-center">1,2% de X + variable sur la performance 30% sur le bénéfice généré.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Products Section -->
|
||||||
|
<section id="products" class="page-section">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="text-center">Our Products</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<p class="text-center text-muted">A glimpse into the customizable packaging solutions we offer. The full interactive catalog is coming soon.</p>
|
||||||
|
<div class="row g-4 mt-4">
|
||||||
|
<div class="col-md-3">
|
||||||
|
<a href="order.php?product=Carton" class="product-link">
|
||||||
|
<div class="product-placeholder">Carton</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<a href="order.php?product=Plastique" class="product-link">
|
||||||
|
<div class="product-placeholder">Plastique</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<a href="order.php?product=Print%20sur%20Carton" class="product-link">
|
||||||
|
<div class="product-placeholder">Print sur Carton</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3">
|
||||||
|
<a href="order.php?product=Étiquette" class="product-link">
|
||||||
|
<div class="product-placeholder">Étiquette</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- FAQ Section -->
|
||||||
|
<section id="faq" class="page-section bg-light">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="text-center">Frequently Asked Questions</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<div class="accordion accordion-flush" id="faqAccordion">
|
||||||
|
<div class="accordion-item">
|
||||||
|
<h2 class="accordion-header" id="flush-headingOne">
|
||||||
|
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
|
||||||
|
What is the minimum order quantity?
|
||||||
|
</button>
|
||||||
|
</h2>
|
||||||
|
<div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#faqAccordion">
|
||||||
|
<div class="accordion-body text-muted">Our minimum order quantity varies depending on the product complexity and material. Please contact us for a specific quote.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="accordion-item">
|
||||||
|
<h2 class="accordion-header" id="flush-headingTwo">
|
||||||
|
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
|
||||||
|
Can I upload my own artwork?
|
||||||
|
</button>
|
||||||
|
</h2>
|
||||||
|
<div id="flush-collapseTwo" class="accordion-collapse collapse" aria-labelledby="flush-headingTwo" data-bs-parent="#faqAccordion">
|
||||||
|
<div class="accordion-body text-muted">Yes! Our upcoming online design tool will allow you to upload artwork, position it on a 3D mockup, and see a live preview before you order.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="accordion-item">
|
||||||
|
<h2 class="accordion-header" id="flush-headingThree">
|
||||||
|
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
|
||||||
|
What are the lead times?
|
||||||
|
</button>
|
||||||
|
</h2>
|
||||||
|
<div id="flush-collapseThree" class="accordion-collapse collapse" aria-labelledby="flush-headingThree" data-bs-parent="#faqAccordion">
|
||||||
|
<div class="accordion-body text-muted">Lead times are calculated instantly based on your design, materials, and quantity. You will see an estimated delivery date before you finalize your order.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Contact Section -->
|
||||||
|
<section id="contact" class="page-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-8 text-center">
|
||||||
|
<h2 class="mt-0">Let's Get In Touch!</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<p class="text-muted mb-5">Ready to start your next project with us? Send us a messages and we will get back to you as soon as possible!</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row gx-5 justify-content-center">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<?php if ($message_sent): ?>
|
||||||
|
<div class="alert alert-success text-center" role="alert">
|
||||||
|
Thank you! Your message has been sent successfully.
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($error_message): ?>
|
||||||
|
<div class="alert alert-danger text-center" role="alert">
|
||||||
|
<?php echo htmlspecialchars($error_message); ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<form id="contactForm" method="POST" action="index.php#contact">
|
||||||
|
<!-- Name input-->
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="name" name="name" type="text" placeholder="Enter your name..." required />
|
||||||
|
<label for="name">Full name</label>
|
||||||
|
</div>
|
||||||
|
<!-- Email address input-->
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="email" name="email" type="email" placeholder="name@example.com" required />
|
||||||
|
<label for="email">Email address</label>
|
||||||
|
</div>
|
||||||
|
<!-- Message input-->
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<textarea class="form-control" id="message" name="message" type="text" placeholder="Enter your message here..." style="height: 10rem" required></textarea>
|
||||||
|
<label for="message">Message</label>
|
||||||
|
</div>
|
||||||
|
<!-- Submit Button-->
|
||||||
|
<div class="d-grid">
|
||||||
|
<button class="btn btn-primary btn-xl" id="submitButton" type="submit">Nous contactez</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="bg-light py-5">
|
||||||
|
<div class="container">
|
||||||
|
<div class="small text-center text-muted">Copyright © <?php echo date("Y"); ?> - <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?></div>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<!-- Bootstrap core JS-->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||||
|
<!-- Custom JS-->
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
class MailService
|
class MailService
|
||||||
{
|
{
|
||||||
// Universal mail sender (no attachments by design)
|
// Universal mail sender
|
||||||
public static function sendMail($to, string $subject, string $htmlBody, ?string $textBody = null, array $opts = [])
|
public static function sendMail($to, string $subject, string $htmlBody, ?string $textBody = null, array $opts = [], array $attachments = [])
|
||||||
{
|
{
|
||||||
$cfg = self::loadConfig();
|
$cfg = self::loadConfig();
|
||||||
|
|
||||||
@ -82,6 +82,13 @@ class MailService
|
|||||||
foreach ((array)($opts['cc'] ?? []) as $cc) { if (filter_var($cc, FILTER_VALIDATE_EMAIL)) $mail->addCC($cc); }
|
foreach ((array)($opts['cc'] ?? []) as $cc) { if (filter_var($cc, FILTER_VALIDATE_EMAIL)) $mail->addCC($cc); }
|
||||||
foreach ((array)($opts['bcc'] ?? []) as $bcc){ if (filter_var($bcc, FILTER_VALIDATE_EMAIL)) $mail->addBCC($bcc); }
|
foreach ((array)($opts['bcc'] ?? []) as $bcc){ if (filter_var($bcc, FILTER_VALIDATE_EMAIL)) $mail->addBCC($bcc); }
|
||||||
|
|
||||||
|
// Attachments
|
||||||
|
foreach ($attachments as $attachment) {
|
||||||
|
if (isset($attachment['tmp_name']) && isset($attachment['name']) && is_uploaded_file($attachment['tmp_name'])) {
|
||||||
|
$mail->addAttachment($attachment['tmp_name'], $attachment['name']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Optional DKIM
|
// Optional DKIM
|
||||||
if (!empty($cfg['dkim_domain']) && !empty($cfg['dkim_selector']) && !empty($cfg['dkim_private_key_path'])) {
|
if (!empty($cfg['dkim_domain']) && !empty($cfg['dkim_selector']) && !empty($cfg['dkim_private_key_path'])) {
|
||||||
$mail->DKIM_domain = $cfg['dkim_domain'];
|
$mail->DKIM_domain = $cfg['dkim_domain'];
|
||||||
|
|||||||
242
order.php
Normal file
242
order.php
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
require_once __DIR__ . '/mail/MailService.php';
|
||||||
|
|
||||||
|
$product = isset($_GET['product']) ? htmlspecialchars($_GET['product']) : 'Product';
|
||||||
|
$message_sent = false;
|
||||||
|
$error_message = '';
|
||||||
|
|
||||||
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||||
|
$client_name = strip_tags(trim($_POST["client_name"] ?? ''));
|
||||||
|
$phone_number = strip_tags(trim($_POST["phone_number"] ?? ''));
|
||||||
|
$delivery_address = strip_tags(trim($_POST["delivery_address"] ?? ''));
|
||||||
|
$model = strip_tags(trim($_POST["model"] ?? ''));
|
||||||
|
$dimensions = strip_tags(trim($_POST["dimensions"] ?? ''));
|
||||||
|
$thickness = strip_tags(trim($_POST["thickness"] ?? ''));
|
||||||
|
$quantity = strip_tags(trim($_POST["quantity"] ?? ''));
|
||||||
|
$notes = strip_tags(trim($_POST["notes"] ?? ''));
|
||||||
|
$delivery_date = strip_tags(trim($_POST["delivery_date"] ?? ''));
|
||||||
|
|
||||||
|
if (empty($client_name) || empty($phone_number) || empty($delivery_address) || empty($quantity) ) {
|
||||||
|
$error_message = "Please fill out all required fields.";
|
||||||
|
} else {
|
||||||
|
$to = getenv('MAIL_TO') ?: 'admin@example.com';
|
||||||
|
$subject = "New Order for " . $product;
|
||||||
|
|
||||||
|
if (isset($_POST['pro_forma_request']) && $_POST['pro_forma_request'] == '1') {
|
||||||
|
$pro_forma_email = strip_tags(trim($_POST['pro_forma_email'] ?? ''));
|
||||||
|
if (filter_var($pro_forma_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
$subject .= " (Pro-forma Invoice Request)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$email_body = "<h3>New Order Details:</h3>";
|
||||||
|
$email_body .= "<strong>Product:</strong> {$product}<br>";
|
||||||
|
$email_body .= "<strong>Client Name:</strong> {$client_name}<br>";
|
||||||
|
$email_body .= "<strong>Phone Number:</strong> {$phone_number}<br>";
|
||||||
|
$email_body .= "<strong>Delivery Address:</strong> {$delivery_address}<br>";
|
||||||
|
$email_body .= "<h4>📦 Carton Order Details</h4>";
|
||||||
|
$email_body .= "<strong>Model:</strong> {$model}<br>";
|
||||||
|
$email_body .= "<strong>Dimensions (cm):</strong> {$dimensions}<br>";
|
||||||
|
$email_body .= "<strong>Thickness:</strong> {$thickness}<br>";
|
||||||
|
$email_body .= "<strong>Quantity:</strong> {$quantity}<br>";
|
||||||
|
$email_body .= "<h4>🗒 Notes</h4>";
|
||||||
|
$email_body .= "<p>" . ($notes ?: 'N/A') . "</p>";
|
||||||
|
$email_body .= "<strong>📅 Delivery Preferred Date:</strong> {$delivery_date}<br>";
|
||||||
|
|
||||||
|
$text_body = "New Order Details:\n\n";
|
||||||
|
$text_body .= "Product: {$product}\n";
|
||||||
|
$text_body .= "Client Name: {$client_name}\n";
|
||||||
|
$text_body .= "Phone Number: {$phone_number}\n";
|
||||||
|
$text_body .= "Delivery Address: {$delivery_address}\n";
|
||||||
|
$text_body .= "--- Carton Order Details ---\n";
|
||||||
|
$text_body .= "Model: {$model}\n";
|
||||||
|
$text_body .= "Dimensions (cm): {$dimensions}\n";
|
||||||
|
$text_body .= "Thickness: {$thickness}\n";
|
||||||
|
$text_body .= "Quantity: {$quantity}\n";
|
||||||
|
$text_body .= "--- Notes ---\n";
|
||||||
|
$text_body .= ($notes ?: 'N/A') . "\n";
|
||||||
|
$text_body .= "Delivery Preferred Date: {$delivery_date}\n";
|
||||||
|
|
||||||
|
if (isset($pro_forma_email) && filter_var($pro_forma_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
$email_body .= "<hr><h4>Pro-forma Invoice Request</h4>";
|
||||||
|
$email_body .= "<p>Please send a pro-forma invoice to: <strong>{$pro_forma_email}</strong></p>";
|
||||||
|
$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'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Order <?php echo $product; ?> - <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'Packaging Solutions'); ?></title>
|
||||||
|
<meta name="description" content="Order <?php echo $product; ?>.">
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="index.php"><img src="assets/pasted-20251210-201942-d2c32489.jpg" alt="<?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?> Logo" style="height: 40px;"></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#why-us">Why Us</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#offers">Offers</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#products">Products</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#faq">FAQ</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php#contact">Contact</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="partnership.php">Partnership</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="admin.php">Admin</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<section class="page-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-8 text-center">
|
||||||
|
<h2 class="mt-0">Order: <?php echo $product; ?></h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<p class="text-muted mb-5">Fill out the form below to place your order.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row gx-5 justify-content-center">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<?php if ($message_sent): ?>
|
||||||
|
<div class="alert alert-success text-center" role="alert">
|
||||||
|
Thank you! Your order has been received. We will contact you shortly.
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ($error_message): ?>
|
||||||
|
<div class="alert alert-danger text-center" role="alert">
|
||||||
|
<?php echo htmlspecialchars($error_message); ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<form id="orderForm" method="POST" action="order.php?product=<?php echo urlencode($product); ?>" enctype="multipart/form-data">
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="client_name" name="client_name" type="text" placeholder="Enter your name..." required />
|
||||||
|
<label for="client_name">Client Name</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="phone_number" name="phone_number" type="tel" placeholder="Enter your phone number..." required />
|
||||||
|
<label for="phone_number">Phone Number</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<textarea class="form-control" id="delivery_address" name="delivery_address" placeholder="Enter your delivery address" style="height: 10rem;" required></textarea>
|
||||||
|
<label for="delivery_address">Delivery Address</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<fieldset class="mb-3">
|
||||||
|
<legend class="h5">📦 Carton Order Details</legend>
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="model" name="model" type="text" placeholder="Enter model" />
|
||||||
|
<label for="model">Model</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="dimensions" name="dimensions" type="text" placeholder="e.g., 30x20x10" />
|
||||||
|
<label for="dimensions">Dimensions (cm)</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="thickness" name="thickness" type="text" placeholder="e.g., 3mm" />
|
||||||
|
<label for="thickness">Thickness</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="quantity" name="quantity" type="number" placeholder="Enter quantity" required min="1" />
|
||||||
|
<label for="quantity">Quantity</label>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<textarea class="form-control" id="notes" name="notes" placeholder="Enter optional notes" style="height: 10rem;"></textarea>
|
||||||
|
<label for="notes">🗒 Notes (Optional)</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control" id="delivery_date" name="delivery_date" type="date" />
|
||||||
|
<label for="delivery_date">📅 Delivery Preferred Date</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="design_file" class="form-label">Drop your design (JPG, PNG)</label>
|
||||||
|
<input class="form-control" type="file" id="design_file" name="design_file" accept=".jpg,.jpeg,.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="d-grid">
|
||||||
|
<button class="btn btn-primary btn-xl" id="submitButton" type="submit">Place Order</button>
|
||||||
|
</div>
|
||||||
|
<div class="text-center mt-3">
|
||||||
|
<button class="btn btn-outline-secondary" id="proFormaButton" type="button">Recevoir une facture pro-format</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<footer class="bg-light py-5">
|
||||||
|
<div class="container">
|
||||||
|
<div class="small text-center text-muted">Copyright © <?php echo date("Y"); ?> - <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?></div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
|
<script>
|
||||||
|
document.getElementById('proFormaButton').addEventListener('click', function() {
|
||||||
|
const email = prompt('Please enter your email address to receive the pro-forma invoice:');
|
||||||
|
if (email) {
|
||||||
|
const form = document.getElementById('orderForm');
|
||||||
|
|
||||||
|
let proFormaEmailInput = form.querySelector('input[name="pro_forma_email"]');
|
||||||
|
if (!proFormaEmailInput) {
|
||||||
|
proFormaEmailInput = document.createElement('input');
|
||||||
|
proFormaEmailInput.type = 'hidden';
|
||||||
|
proFormaEmailInput.name = 'pro_forma_email';
|
||||||
|
form.appendChild(proFormaEmailInput);
|
||||||
|
}
|
||||||
|
proFormaEmailInput.value = email;
|
||||||
|
|
||||||
|
let proFormaRequestInput = form.querySelector('input[name="pro_forma_request"]');
|
||||||
|
if (!proFormaRequestInput) {
|
||||||
|
proFormaRequestInput = document.createElement('input');
|
||||||
|
proFormaRequestInput.type = 'hidden';
|
||||||
|
proFormaRequestInput.name = 'pro_forma_request';
|
||||||
|
form.appendChild(proFormaRequestInput);
|
||||||
|
}
|
||||||
|
proFormaRequestInput.value = '1';
|
||||||
|
|
||||||
|
form.submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
81
partnership.php
Normal file
81
partnership.php
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Partnership - <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'Packaging Solutions'); ?></title>
|
||||||
|
<meta name="description" content="Partnership opportunities and custom software development.">
|
||||||
|
|
||||||
|
<!-- Google Fonts -->
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- Bootstrap Icons -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
|
|
||||||
|
<!-- Custom CSS -->
|
||||||
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="index.php"><img src="assets/pasted-20251210-201942-d2c32489.jpg" alt="<?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?> Logo" style="height: 40px;"></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="partnership.php">Partnership</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="admin.php">Admin</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Page Content -->
|
||||||
|
<section class="page-section">
|
||||||
|
<div class="container">
|
||||||
|
<h2 class="text-center mt-5">Partnership Opportunities</h2>
|
||||||
|
<hr class="divider">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<p class="text-muted">We are open to partnership offers and collaborations. Let's work together to achieve mutual success.</p>
|
||||||
|
<p class="text-muted">In addition to our core services, we also specialize in building custom digital solutions for your business. We can create:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Custom tool websites</li>
|
||||||
|
<li>Management software (logiciel de gestion)</li>
|
||||||
|
<li>And much more!</li>
|
||||||
|
</ul>
|
||||||
|
<p class="text-muted">Contact us to discuss your project and how we can help you build the tools you need to succeed.</p>
|
||||||
|
<div class="text-center mt-4">
|
||||||
|
<a href="index.php#contact" class="btn btn-primary btn-xl">Contact Us</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="bg-light py-5 mt-5">
|
||||||
|
<div class="container">
|
||||||
|
<div class="small text-center text-muted">Copyright © <?php echo date("Y"); ?> - <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'PackagingCo'); ?></div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Bootstrap core JS-->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||||
|
<!-- Custom JS-->
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user