-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweddingCardView.php
More file actions
172 lines (143 loc) · 6.8 KB
/
weddingCardView.php
File metadata and controls
172 lines (143 loc) · 6.8 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
include "files/allFunction.php";
if(isset($_GET['weddingCardID']) AND !empty($_GET['weddingCardID']) AND is_numeric($_GET['weddingCardID']))
{
$run=$con->prepare("SELECT * FROM `wedding` WHERE id=?");
$run->bindParam(1,$_GET['weddingCardID'],PDO::PARAM_INT);
if($run->execute())
{
if($run->rowCount()>0)
{
$weddingData=$run->fetch(PDO::FETCH_ASSOC);
}
}
}
if(!is_array($weddingData))
{
header('location:index2.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Online Card Maker</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="./files/assets/img/DESIGNER'S.png" rel="icon">
<link href="./files/assets/img/DESIGNER_S__1_-removebg-preview.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Roboto:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="files/asset/vendor/aos/aos.css" rel="stylesheet">
<link href="files/asset/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="files/asset/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="files/asset/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="files/asset/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="files/asset/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="files/asset/css/style.css" rel="stylesheet">
<style>
/* Custom styles */
.card {
max-width: 400px;
margin: 0 auto;
margin-top: 50px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 5px;
outline: 2px solid rgba(0, 0, 0, 0.1);
background: white;
color: black;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.text-center {
text-align: center;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<?php include 'files/header.php'; ?>
<main id="main" style="margin-top:100px; margin-bottom: 100px">
<!-- ======= About Section ======= -->
<div class="container-fluid text-center">
<div class="container">
<div class="msgShow"></div>
<div class="row" >
<div class="col-md-12 printable-content" >
<div class="card" style="color: <?php echo $weddingData['fontColor']; ?>;
font-family: <?php echo $weddingData['fontStyle']; ?>;
font-size: <?php echo $weddingData['fontSize']; ?>;
background-image: url(files/upload/weddingCardImages/<?php echo $weddingData['background_img']; ?>);">
<h2 class="text-center" id="title" style="background-color: <?php echo $weddingData['title_bg_color']; ?>;
padding: 10px;">
<?php echo htmlspecialchars($weddingData['title']); ?>
</h2>
<hr>
<h4 class="text-center" id="names"><?php echo htmlspecialchars($weddingData['name']); ?></h4>
<p class="text-center" id="occasion"><?php echo htmlspecialchars($weddingData['occasion']); ?></p>
<p class="text-center" id="date">Date: <?php echo htmlspecialchars($weddingData['date']); ?></p>
<p class="text-center" id="time">Time: <?php echo htmlspecialchars($weddingData['time']); ?></p>
<p class="text-center" id="location">Location: <?php echo htmlspecialchars($weddingData['location']); ?></p>
<p class="text-center" id="message"><?php echo htmlspecialchars($weddingData['message']); ?></p>
<p class="text-center" id="rsvp">RSVP by <?php echo htmlspecialchars($weddingData['rsvp']); ?></p>
<p class="text-center" id="email">Email: <?php echo htmlspecialchars($weddingData['email']); ?></p>
</div>
</div>
</div>
</div>
</div><br>
<!-- End Pricing Section -->
<!-- ======= Frequently Asked Questions Section ======= -->
<!-- End Contact Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container">
<div class="copyright-wrap d-md-flex py-4">
<div class="me-md-auto text-center text-md-start">
<div class="copyright">
© Copyright <strong><span>Huzaifa Bin Afzal</span></strong>. All Rights Reserved
</div>
<div class="credits">
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/techie-free-skin-bootstrap-3/ -->
Designed by <a href="https://bootstrapmade.com/">Huzaifa Bin Afzal</a>
</div>
</div>
<div class="social-links text-center text-md-right pt-3 pt-md-0">
<a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
<a href="#" class="facebook"><i class="bx bxl-facebook"></i></a>
<a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
<a href="#" class="google-plus"><i class="bx bxl-skype"></i></a>
<a href="#" class="linkedin"><i class="bx bxl-linkedin"></i></a>
</div>
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<div id="preloader"></div>
<!-- Vendor JS Files -->
<script src="files/asset/vendor/purecounter/purecounter_vanilla.js"></script>
<script src="files/asset/vendor/aos/aos.js"></script>
<script src="files/asset/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="files/asset/vendor/glightbox/js/glightbox.min.js"></script>
<script src="files/asset/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="files/asset/vendor/swiper/swiper-bundle.min.js"></script>
<script src="files/asset/vendor/php-email-form/validate.js"></script>
<!-- Template Main JS File -->
<script src="files/asset/js/main.js"></script>
<script src="files/jquery-3.6.0.min.js"></script>
<script src="files/custom.js"></script>
</body>
</html>