undefined / confirmation.php
srampytlik's picture
Manual changes saved
39f69e5 verified
Raw History Blame Contribute Delete
3.03 kB
<?php
// Start session
session_start();
// Get posted data
$packagePrice = $_POST['packagePrice'] ?? 0;
$additionalPhotos = $_POST['additionalPhotos'] ?? 0;
$comments = $_POST['comments'] ?? '';
$photoSelection = $_POST['photoSelection'] ?? '';
// Calculate total
$additionalPrice = $additionalPhotos * 50;
$totalPrice = $packagePrice + $additionalPrice;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Potvrzení - Vánoční fotografie</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-12">
<div class="max-w-2xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6 md:p-8">
<div class="text-center mb-8">
<i data-feather="check-circle" class="w-16 h-16 text-green-500 mx-auto mb-4"></i>
<h1 class="text-2xl md:text-3xl font-bold text-gray-800 mb-2">Váš výběr byl přijat.</h1>
<p class="text-gray-600">Díky za Vaši objednávku!</p>
</div>
<div class="border-t border-b border-gray-200 py-6 mb-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Shrnutí objednávky</h2>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Vybraný balíček:</span>
<span class="font-medium">
<?php echo $photoSelection === 'option1' ? 'Základní balíček (200 Kč)' : 'Prémiový balíček (400 Kč)'; ?>
</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Další fotografie:</span>
<span class="font-medium"><?php echo $additionalPhotos; ?> (<?php echo $additionalPrice; ?> Kč)</span>
</div>
<div class="flex justify-between font-bold text-lg mt-4 pt-4 border-t border-gray-200">
<span>Celkem:</span>
<span><?php echo $totalPrice; ?> Kč</span>
</div>
</div>
<?php if (!empty($comments)): ?>
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Speciální požadavky:</h3>
<p class="text-gray-700"><?php echo htmlspecialchars($comments); ?></p>
</div>
<?php endif; ?>
<div class="text-center">
<a href="index.php" class="inline-flex items-center px-4 py-2 bg-primary hover:bg-primary-600 text-white font-medium rounded-md">
<i data-feather="chevron-left" class="w-4 h-4 mr-2"></i>
Zpět na výběr
</a>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>