-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.php
283 lines (246 loc) · 11.5 KB
/
details.php
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
279
280
281
282
283
<?php
$data = $_GET['data'];
$sql5="SELECT * from startup_tbl where start_id='$data' ";
$result5=$conn->query($sql5);
while ($row5 = $result5->fetch_assoc()) {
$start_id=$row5['start_id'];
$account_id=$row5['account_id'];
$start_name=$row5['start_name'];
$start_descr=$row5['start_descr'];
$start_cat =$row5['start_category'];
$start_profile=$row5['start_profile'];
}
$sql1="SELECT * from account where id='$account_id' ";
$result1=$conn->query($sql1);
while ($row1 = $result1->fetch_assoc()) {
$account_id=$row1['id'];
$full_name=$row1['full_names'];
$profile=$row1['profile'];
}
?>
<?php
//Starting Query...
if(ISSET($_POST['new_appointment'])){
$start_id = $_POST['start_id'];
$inv_name = $_POST['inv_name'];
$email = $_POST['email'];
$tel = $_POST['tel'];
$appt_time = $_POST['appt_time'];
$appt_date = $_POST['appt_date'];
$det = $_POST['det'];
$sql=" INSERT INTO `appointment`(`inv_names`, `inv_email`, `inv_tel`, `startup_id`, `sched_date`, `details`)
VALUES ('$inv_name','$email','$tel','$start_id','$appt_date $appt_time','$det') ";
if ($conn->query($sql)===TRUE){
echo '<script language="javascript">
alert(" Successfully Booked Appointment ");
window.location.href = "index.php?detail&data='.$start_id.' ";
</script>';
}else{
echo '<script language="javascript">
alert(" Something Went Wrong ");
window.location.href = "index.php?detail&data='.$start_id.' ";
</script>';
}
}
?>
<!-- bradcam_area -->
<div class="bradcam_area bradcam_bg_3">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="bradcam_text">
<h3><?php echo $start_name; ?></h3>
</div>
</div>
</div>
</div>
</div>
<!--/ bradcam_area -->
<!--================Blog Area =================-->
<section class="blog_area single-post-area section-padding">
<div class="container">
<div class="row">
<div class="col-lg-8 posts-list">
<div class="single-post">
<div class="feature-img">
<img class="img-fluid" src="account/start_icon/<?php echo $start_profile ?>" style="height:500px;width:700px;" alt="">
</div>
<div class="blog_details">
<h2>
<?php echo $start_name; ?>
</h2>
<ul class="blog-info-link mt-3 mb-4">
<li><a href="#"><i class="fa fa-user"></i> <?php echo $full_name; ?></a></li>
<li><a href="#"><i class="fa fa-list"></i> <?php echo $start_cat; ?> </a></li>
</ul>
<p class="excert">
<?php echo $start_descr; ?>
</p>
</div>
</div>
<div class="navigation-top">
<div class="d-sm-flex justify-content-between text-center">
<p class="like-info"><span class="align-middle"><i class="fa fa-heart"></i></span> Lily and 4
people like this</p>
<div class="col-sm-4 text-center my-2 my-sm-0">
<!-- <p class="comment-count"><span class="align-middle"><i class="fa fa-comment"></i></span> 06 Comments</p> -->
</div>
<ul class="social-icons">
<li><a href="#"><i class="fa fa-facebook-f"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-dribbble"></i></a></li>
<li><a href="#"><i class="fa fa-behance"></i></a></li>
</ul>
</div>
</div>
<div class="blog-author">
<div class="media align-items-center">
<img src="account/start_up_profile_data/<?php echo $profile; ?>" alt="">
<div class="media-body">
<a href="#">
<h4><?php echo $full_name; ?></h4>
</a>
<p>Second divided from form fish beast made. Every of seas all gathered use saying you're, he
our dominion twon Second divided from</p>
</div>
</div>
</div>
<div class="comment-form">
<h4>Book Appointment</h4>
<form class="form-contact comment_form" action="index.php?detail" method="POST">
<div class="row">
<div class="col-12">
<div class="form-group">
<textarea class="form-control w-100" name="det" id="det" cols="30" rows="9"
placeholder="Give details "></textarea>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="start_id" id="start_id" type="hidden" value="<?php echo $start_id; ?>" >
<input class="form-control" name="inv_name" id="inv_name" type="text" placeholder="Name">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="email" id="email" type="email" placeholder="Email">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="tel" id="tel" type="number" placeholder="Phone Number">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input class="form-control" name="appt_time" id="appt_time" type="time" placeholder="Email">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input class="form-control" name="appt_date" id="appt_date" type="date" >
</div>
</div>
</div>
<div class="form-group">
<button type="submit" name="new_appointment" class="button button-contactForm btn_1 boxed-btn">Book Appointment</button>
</div>
</form>
</div>
</div>
<div class="col-lg-4">
<div class="blog_right_sidebar">
<aside class="single_sidebar_widget search_widget">
<form action="#">
<div class="form-group">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder='Search Keyword'
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Search Keyword'">
<div class="input-group-append">
<button class="btn" type="button"><i class="ti-search"></i></button>
</div>
</div>
</div>
<button class="button rounded-0 primary-bg text-white w-100 btn_1 boxed-btn"
type="submit">Search</button>
</form>
</aside>
<aside class="single_sidebar_widget post_category_widget">
<h4 class="widget_title">Category</h4>
<ul class="list cat-list">
<li>
<a href="#" class="d-flex">
<p>Resaurant food</p>
<p>(37)</p>
</a>
</li>
<li>
<a href="#" class="d-flex">
<p>Travel news</p>
<p>(10)</p>
</a>
</li>
<li>
<a href="#" class="d-flex">
<p>Modern technology</p>
<p>(03)</p>
</a>
</li>
<li>
<a href="#" class="d-flex">
<p>Product</p>
<p>(11)</p>
</a>
</li>
<li>
<a href="#" class="d-flex">
<p>Inspiration</p>
<p>(21)</p>
</a>
</li>
<li>
<a href="#" class="d-flex">
<p>Health Care</p>
<p>(21)</p>
</a>
</li>
</ul>
</aside>
<aside class="single_sidebar_widget popular_post_widget">
<h3 class="widget_title">Recent Startup</h3>
<?php
$sql5="SELECT * from startup_tbl LIMIT 4 ";
$result5=$conn->query($sql5);
while ($row5 = $result5->fetch_assoc()) {
$start_id=$row5['start_id'];
?>
<div class="media post_item">
<img src="account/start_icon/<?php echo $row5['start_profile']; ?>" style="width: 80px; height: 80px;" alt="post">
<div class="media-body">
<a href="index.php?detail&data=<?php echo $row5['start_id']; ?>">
<h3> <?php echo $row5['start_name']; ?> </h3>
</a>
<p><?php echo $row5['created_date']; ?></p>
</div>
</div>
<?php
}
?>
</aside>
<aside class="single_sidebar_widget newsletter_widget">
<h4 class="widget_title">Newsletter</h4>
<form action="#">
<div class="form-group">
<input type="email" class="form-control" onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email'" placeholder='Enter email' required>
</div>
<button class="button rounded-0 primary-bg text-white w-100 btn_1 boxed-btn"
type="submit">Subscribe</button>
</form>
</aside>
</div>
</div>
</div>
</div>
</section>
<!--================ Blog Area end =================-->