File size: 3,034 Bytes
aac65db
4dbf21e
 
 
 
 
 
 
 
 
 
 
 
aac65db
 
 
 
 
 
57b33e8
aac65db
 
 
4dbf21e
aac65db
4dbf21e
 
 
39f69e5
57b33e8
4dbf21e
 
 
57b33e8
4dbf21e
 
57b33e8
4dbf21e
57b33e8
4dbf21e
 
 
 
57b33e8
4dbf21e
 
 
 
57b33e8
4dbf21e
 
 
 
 
 
57b33e8
4dbf21e
 
 
 
 
 
 
57b33e8
4dbf21e
aac65db
 
 
4dbf21e
aac65db
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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>