-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheid-list.php
More file actions
256 lines (212 loc) · 9.75 KB
/
eid-list.php
File metadata and controls
256 lines (212 loc) · 9.75 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
<?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]);
$allEid=getAllEid();
?>
<!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>Eid 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>
.card {
width: 350px;
margin: 0 auto;
margin-top: 50px;
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
background-color: white;
color: black;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.card-header {
text-align: center;
background-color: #f8f9fa;
}
.card-body {
text-align: center;
}
.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="eidCardCreate.php" class="btn btn-danger">Add Eid Card</a></li>
</ol>
</nav>
</div>
<div class="row">
<?php
if(is_array($allEid))
{
foreach ($allEid as $key => $value)
{
?>
<div class="col-md-6 printable-content">
<div class="card" style="color: <?php echo $value['font_color']; ?> !important;
font-family: <?php echo $value['font_style']; ?> !important;
font-size: <?php echo $value['font_size']; ?>;
background-image: url('files/upload/eidCardBgImages/<?php echo $value['background_img']; ?>'); background-size:cover;">
<div class="card-header" id="title" style=" background-color:<?php if(!empty($value['title_bg_color'])){ echo $value['title_bg_color']; } ?>">
<h3><?php echo htmlspecialchars($value['title']); ?></h3>
</div>
<div class="card-body">
<img src="<?php if(!empty($value['add_img'])){ echo "files/upload/eidCardAddImages/".$value['add_img']; }else{ echo "files/edi.jpg"; } ?>" id="uploadImage" alt="Eid Image" width="200"><br><br>
<p class="message"><?php echo htmlspecialchars($value['message']); ?></p><br>
<div class="btn-group" role="group" aria-label="Button group">
<a href="editEidCard.php?editEidCardID=<?php echo $value['id']; ?>" class="btn btn-success edit">View</a>
<button class="btn btn-danger deleteEidCard" data-toggle="modal" data-target="#deleteEid" eidCardID="<?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="eidCardView.php?eidCardID=<?php echo $value['id']; ?>"><i class="far fa-copy"></i> Copy Link</a></li>
</ul>
</div>
</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">
Eid 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="deleteEid" tabindex="-1" role="dialog" 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 Eid 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 eid card.?</p>
</div>
<div class="msgShow"></div><br>
<div class="modal-footer">
<button type="button" class="btn btn-primary yesDeleteEid">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>