-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.php
More file actions
278 lines (238 loc) · 10.7 KB
/
index2.php
File metadata and controls
278 lines (238 loc) · 10.7 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<?php
include "files/allFunction.php";
if(!isset($_SESSION['userLogin']) AND empty($_SESSION['userLogin'][0]) AND empty($_SESSION['userLogin'][1]))
{
header('location:login.php');
}
$userData=getUser($_SESSION['userLogin'][0]);
$allWedding=getAllWedding();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Wedding Card</title>
<!-- plugins:css -->
<link rel="stylesheet" href="files/assets/vendors/mdi/css/materialdesignicons.min.css">
<link rel="stylesheet" href="files/assets/vendors/css/vendor.bundle.base.css">
<!-- endinject -->
<!-- Plugin css for this page -->
<link rel="stylesheet" href="files/assets/vendors/jvectormap/jquery-jvectormap.css">
<link rel="stylesheet" href="files/assets/vendors/flag-icon-css/css/flag-icon.min.css">
<link rel="stylesheet" href="files/assets/vendors/owl-carousel-2/owl.carousel.min.css">
<link rel="stylesheet" href="files/assets/vendors/owl-carousel-2/owl.theme.default.min.css">
<!-- End plugin css for this page -->
<!-- inject:css -->
<!-- endinject -->
<!-- Layout styles -->
<link rel="stylesheet" href="files/assets/css/style.css">
<!-- End layout styles -->
<link rel="shortcut icon" href="files/assets/images/favicon.png" />
<link rel="stylesheet" href="files/fontawesome/css/all.min.css">
</head><br />
<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;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown .dropdown-menu {
position: absolute;
top: 100%;
left: 0;
min-width: 160px;
padding: 0.5rem 0;
margin: 0;
font-size: 1rem;
color: #212529;
text-align: left;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
z-index: 1;
}
.dropdown .dropdown-item {
display: block;
padding: 0.5rem 1rem;
clear: both;
font-weight: 400;
color: #212529;
text-align: inherit;
white-space: nowrap;
background-color: transparent;
border: 0;
cursor: pointer;
}
.dropdown .dropdown-item:hover,
.dropdown .dropdown-item:focus {
color: #1b55e2;
text-decoration: none;
background-color: #f8f9fa;
}
</style>
<body>
<div class="container-scroller" style="background-color:white;">
<?php include "files/navbar.php"; ?>
<div class="container-fluid" style="background-color:white;">
<!-- partial:partials/_navbar.php -->
<nav class="navbar p-0 fixed-top d-flex flex-row" style="background-color:white;">
<div class="navbar-brand-wrapper d-flex d-lg-none align-items-center justify-content-center">
<a class="navbar-brand brand-logo-mini" href="index.php"><img src="files/assets/images/logo-mini.svg" alt="logo" /></a>
</div>
<div class="navbar-menu-wrapper flex-grow d-flex align-items-stretch">
<ul class="navbar-nav navbar-nav-right">
<li class="nav-item dropdown d-none d-lg-block">
<a class='nav-link btn btn-success create-new-button' href='logout.php'>Logout</a>
</li>
</ul>
</div>
</nav>
<!-- partial -->
<div class="main-panel" style="background-color:white;">
<div class="content-wrapper" style="background-color:white;">
<div class="page-header">
<h3 class="page-title"></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="weddingCard.php" class="btn btn-danger">Add Wedding Card</a></li>
</ol>
</nav>
</div>
<div class="row">
<?php
if(is_array($allWedding))
{
foreach ($allWedding as $key => $value)
{
?>
<div class="col-lg-6">
<div class="card" style="color: <?php echo $value['fontColor']; ?>;
font-family: <?php echo $value['fontStyle']; ?>;
font-size: <?php echo $value['fontSize']; ?>;
background-image: url(files/upload/weddingCardImages/<?php echo $value['background_img']; ?>);">
<h2 class="text-center" style="background-color: <?php echo $value['title_bg_color']; ?>;
padding: 10px;">
<?php echo htmlspecialchars($value['title']); ?>
</h2>
<hr>
<h4 class="text-center" id="names">
<?php echo htmlspecialchars($value['name']); ?>
</h4>
<p class="text-center" id="occasion">
<?php echo htmlspecialchars($value['occasion']); ?>
</p>
<p class="text-center" id="date">
Date: <?php echo htmlspecialchars($value['date']); ?>
</p>
<p class="text-center" id="time">
Time: <?php echo htmlspecialchars($value['time']); ?>
</p>
<p class="text-center" id="location">
Location: <?php echo htmlspecialchars($value['location']); ?>
</p>
<p class="text-center" id="message">
<?php echo htmlspecialchars($value['message']); ?>
</p>
<p class="text-center" id="rsvp">
RSVP by <?php echo htmlspecialchars($value['rsvp']); ?>
</p>
<p class="text-center" id="email">
Email: <?php echo htmlspecialchars($value['email']); ?>
</p>
<br>
<div class="btn-group" role="group" aria-label="Button group">
<a href="editWeddingCard.php?weddingCardID=<?php echo $value['id']; ?>" class="btn btn-success edit">View</a>
<button class="btn btn-danger deleteWedding" data-toggle="modal" data-target="#delete" weddingCardID="<?php echo $value['id']; ?>">Delete</button>
<div class="dropdown">
<button class="btn btn-info dropdown-toggle" type="button" id="shareDropdown" data-bs-toggle="dropdown" aria-expanded="false">
Share
</button>
<ul class="dropdown-menu" aria-labelledby="shareDropdown">
<li><a class="dropdown-item" href="https://www.facebook.com/sharer/sharer.php?u=YOUR_URL" target="_blank"><i class="fab fa-facebook"></i> Facebook</a></li>
<li><a class="dropdown-item" href="https://www.instagram.com/sharer.php?u=YOUR_URL" target="_blank"><i class="fab fa-instagram"></i> Instagram</a></li>
<li><a class="dropdown-item" href="https://api.whatsapp.com/send?text=YOUR_MESSAGE%20YOUR_URL" target="_blank"><i class="fab fa-whatsapp"></i> WhatsApp</a></li>
<li><a class="dropdown-item" href="https://twitter.com/intent/tweet?url=YOUR_URL" target="_blank"><i class="fab fa-twitter"></i> Twitter</a></li>
<li><a class="dropdown-item" href="#" onclick="copyLink(this)" link="weddingCardView.php?weddingCardID=<?php echo $value['id']; ?>"><i class="far fa-copy"></i> Copy Link</a></li>
</ul>
</div>
</div>
</div>
</div>
<?php
}
}
else
{
echo '<div style="margin-top:100px" class="alert alert-danger alert-dismissible fade show d-flex justify-content-center" role="alert">
Wedding Card Not Desgin......!
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>';
}
?>
</div>
</div>
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-labelledby="customModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" style="background-color:white;color: black;">
<div class="modal-header">
<h5 class="modal-title" id="customModalLabel">Delete Wedding Card</h5>
<button type="button" class="close btn btn-info" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Are you sure you want to delete wedding card.?</p>
</div>
<div class="msgShow"></div><br>
<div class="modal-footer">
<button type="button" class="btn btn-primary yesDeleteWedding">Yes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
<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/bootstrap.min.js"></script>
<script src="files/custom.js"></script>
</body>
</html>