-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookingdetails.php
More file actions
211 lines (194 loc) · 11.3 KB
/
bookingdetails.php
File metadata and controls
211 lines (194 loc) · 11.3 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
<?php
include("admin/config/dbcon.php");
$qry = "SELECT * FROM `pooja` WHERE poojaid='$_GET[id]'";
$result = $con->query($qry);
$row = $result->fetch_assoc();
?>
<html>
<?php include("includes/header.php") ?>
<?php include("includes/navbar.php") ?>
<head>
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.2.0/mdb.min.css" rel="stylesheet" />
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" /> -->
<style>
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link,
.btn-color {
--mdb-nav-pills-link-active-bg: red;
--mdb-nav-pills-link-active-color: white;
background-color: var(--mdb-nav-pills-link-active-bg);
color: var(--mdb-nav-pills-link-active-color);
}
.btn-color:hover {
color: var(--mdb-nav-pills-link-active-bg);
}
.btn-light {
--mdb-btn-bg: #FBFBFA;
--mdb-btn-color: #4f4f4f;
--mdb-btn-box-shadow: 0 4px 9px -4px #fbfbfb;
--mdb-btn-hover-bg: red;
--mdb-btn-hover-color: #4f4f4f;
--mdb-btn-focus-bg: #eee;
--mdb-btn-focus-color: #4f4f4f;
--mdb-btn-active-bg: #e2e2e2;
--mdb-btn-active-color: #4f4f4f;
box-shadow: -5px 2px 15px #888888;
}
.btn-light:hover {
color: white;
}
</style>
</head>
<body>
<div class="container mt-5 mb-5">
<div class="row d-flex justify-content-center">
<div class="col-md-10">
<div class="card" style="height:100%;">
<div class="row">
<div class="col-md-6">
<div class="images p-3">
<div class="text-center p-4">
<img id="main-image" src="<?php echo 'admin/img/' . $row['poojaimg'] ?>"
alt="<?= $row['poojaimg'] ?>" width="350" />
</div>
</div>
</div>
<div class="col-md-6">
<div class="product p-4">
<div class="mt-4 mb-3"> <span
class="text-uppercase text-muted brand">Purohit</span><br><br>
Name : <span class="text-uppercase"><strong>
<?= $row['poojatitle'] ?>
</strong><span><br><br>
Duration : <span class="text-uppercase"><strong>
<?= $row['approxtime'] ?>
</strong></span><br><br>
Price : <span class="text-uppercase"><strong> <svg
xmlns="http://www.w3.org/2000/svg" width="15px" height="15px"
viewBox="0 0 320 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
<path
d="M0 64C0 46.3 14.3 32 32 32H96h16H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H231.8c9.6 14.4 16.7 30.6 20.7 48H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H252.4c-13.2 58.3-61.9 103.2-122.2 110.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256h80c32.8 0 61-19.7 73.3-48H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H185.3C173 115.7 144.8 96 112 96H96 32C14.3 96 0 81.7 0 64z" />
</svg>
<?= $row['pprice'] ?>
</strong></span><br><br>
</div>
<?php if(isset( $_SESSION['auth'])): ?>
<button type="button" class="btn btn-color" id="modal" data-mdb-toggle="modal"
data-mdb-target="#exampleModal" value="<?= $row['poojaid'] ?>">
Book Now
</button>
<?php else: ?>
<p>Please <a href="login.php" style="color:#f00">Login</a> to continue....</p>
<?php endif; ?>
</div>
<div class="mt-5">
<a class="btn text-white btn-lg btn-floating" style="background-color: #d12e11;; p-1"
href="https://www.instagram.com/" role="button">
<i class="fab fa-instagram"></i>
</a>
<a class="btn text-white btn-lg btn-floating" style="background-color: #d12e11;; p-1"
href="https://twitter.com/?lang=en" role="button">
<i class="fab fa-twitter"></i>
</a>
<a class="btn text-white btn-lg btn-floating" style="background-color: #d12e11;; p-1"
href="https://www.facebook.com/campaign/landing.php?campaign_id=14884913640&extra_1=s%7Cc%7C550525804944%7Cb%7Cfacebook%20%27%7C&placement=&creative=550525804944&keyword=facebook%20%27&partner_id=googlesem&extra_2=campaignid%3D14884913640%26adgroupid%3D128696220912%26matchtype%3Db%26network%3Dg%26source%3Dnotmobile%26search_or_content%3Ds%26device%3Dc%26devicemodel%3D%26adposition%3D%26target%3D%26targetid%3Dkwd-327195741349%26loc_physical_ms%3D9050486%26loc_interest_ms%3D%26feeditemid%3D%26param1%3D%26param2%3D&gclid=Cj0KCQiAgOefBhDgARIsAMhqXA4e2WMuIoXxvQ4VamMozKaagXezxjybGX8wsKe9FKE1Umf4N-B5SE0aAtMhEALw_wcB"
role="button">
<i class="fab fa-facebook"></i>
</a>
<a class="btn text-white btn-lg btn-floating" style="background-color: #d12e11;; p-1"
href="https://in.pinterest.com/" role="button">
<i class="fab fa-pinterest"></i>
</a>
</div>
</div>
<div class="modal top fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel"
aria-hidden="true" data-mdb-backdrop="static" data-mdb-keyboard="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Purohit</h5>
<button type="button" class="btn-close" data-mdb-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body"></div>
</div>
</div>
</div>
<!-- Pills navs -->
<div class="mx-1">
<ul class="nav nav-pills ml-4 mb-3" id="ex1" role="tablist">
<li class="nav-item" role="presentation">
<a class="nav-link active" id="ex1-tab-1" data-mdb-toggle="pill" href="#ex1-pills-1"
role="tab" aria-controls="ex1-pills-1" aria-selected="true">Description</a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link" id="ex1-tab-2" data-mdb-toggle="pill" href="#ex1-pills-2"
role="tab" aria-controls="ex1-pills-2" aria-selected="false">Benefits</a>
</li>
<li class="nav-item" role="presentation">
<a class="nav-link" id="ex1-tab-3" data-mdb-toggle="pill" href="#ex1-pills-3"
role="tab" aria-controls="ex1-pills-3" aria-selected="false">Pooja
Requirements</a>
</li>
</ul>
<!-- Pills navs -->
<!-- Pills content -->
<div class="tab-content ml-5" id="ex1-content">
<div class="tab-pane fade show active p-4" id="ex1-pills-1" role="tabpanel"
aria-labelledby="ex1-tab-1">
<?= $row['pdesc'] ?>
</div>
<div class="tab-pane fade p-4" id="ex1-pills-2" role="tabpanel"
aria-labelledby="ex1-tab-2">
<?php echo $row['benefit']; ?>
</div>
<div class="tab-pane fade p-4" id="ex1-pills-3" role="tabpanel"
aria-labelledby="ex1-tab-3">
Puja Requriment :
<?php
echo "<a href='admin/pdfs/$row[poojareq]' download>download</a>";
?>
</div>
</div>
<!-- Pills content -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MDB -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.2.0/mdb.min.js"></script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
<?php
include("includes/footer.php");
include("includes/scripts.php");
?>
<script>
$(document).ready(function () {
$("#modal").click(function () {
var id = $(this).val();
// alert(id);
$.ajax({
method: 'POST',
url: 'pan.php',
data: {
pooja_id: id
},
success: function (result) {
// console.log(result);
$('.modal-body').html(result);
}
});
// $("#exampleModal").modal("toogle");
});
});
</script>
</html>