-
Notifications
You must be signed in to change notification settings - Fork 1
/
restaurant.php
525 lines (444 loc) · 12.6 KB
/
restaurant.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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Recipe Hunt</title>
<meta name="keywords" content="footer, address, phone, icons" />
<link rel="icon" href="logo.png">
<link rel="stylesheet" href="css/demo.css">
<link href='https://fonts.googleapis.com/css?family=Dancing Script ' rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Kite One ' rel="stylesheet">
<link rel="stylesheet" href="css/footer-distributed-with-address-and-phones.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Bellefair ' rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Fresca ' rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Salsa ' rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Acme ' rel="stylesheet">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
.bgimg{
}
.bgimg img{ position: absolute;
left: 0;
top: 0;
width: 100%;
height:30%;
z-index: 1;
opacity: .2;
}
body {
padding: 10px;
margin: 10px;
background: #f7f7f7;
/* Old browsers */
background: -moz-linear-gradient(45deg, #f7f7f7 0%,
<div class = "header"> #EAE0D5 100%);
/*
</div>FF3.6-15 */
background: -webkit-linear-gradient(45deg, #f7f7f7 0%, #EAE0D5 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(45deg, #f7f7f7 0%, #EAE0D5 100%);
}
.footer-distributed{
background-color: #292c2f;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
box-sizing: border-box;
width: 100%;
text-align: left;
font: bold 16px sans-serif;
padding: 35px 30px;
margin-top: 10px;
}
.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
display: inline-block;
vertical-align: top;
}
/* Footer left */
.footer-distributed .footer-left{
width: 30%;
}
/* The company logo */
.footer-distributed h3{
color: #ffffff;
font: normal 36px 'Cookie', cursive;
margin: 0;
}
.footer-distributed h3 span{
color: #5383d3;
}
/* Footer links */
.footer-distributed .footer-links{
color: #ffffff;
margin: 20px 0 12px;
padding: 0;
}
.footer-distributed .footer-links a{
display:inline-block;
line-height: 1.8;
text-decoration: none;
color: inherit;
}
.footer-distributed .footer-company-name{
color: #8f9296;
font-size: 14px;
font-weight: normal;
margin: 0;
}
/* Footer Center */
.footer-distributed .footer-center{
width: 35%;
}
.footer-distributed .footer-center i{
background-color: #33383b;
color: #ffffff;
font-size: 25px;
width: 38px;
height: 38px;
border-radius: 50%;
text-align: center;
line-height: 42px;
margin: 10px 15px;
vertical-align: middle;
}
.footer-distributed .footer-center i.fa-envelope{
font-size: 17px;
line-height: 38px;
}
.footer-distributed .footer-center p{
display: inline-block;
color: #ffffff;
vertical-align: middle;
margin:0;
}
.footer-distributed .footer-center p span{
display:block;
font-weight: normal;
font-size:20px;
line-height:2;
}
.footer-distributed .footer-center p a{
color: #5383d3;
text-decoration: none;;
}
/* Footer Right */
.footer-distributed .footer-right{
width: 20%;
}
.footer-distributed .footer-company-about{
line-height: 20px;
color: #92999f;
font-size: 25px;
font-weight: normal;
margin: 0;
}
.footer-distributed .footer-company-about span{
display: block;
color: #000000;
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
}
.footer-distributed .footer-icons{
margin-top: 35px;
}
.footer-distributed .footer-icons a{
display: inline-block;
width: 35px;
height: 35px;
cursor: pointer;
background-color: #33383b;
border-radius: 2px;
font-size: 20px;
color: #ffffff;
text-align: center;
line-height: 35px;
margin-right: 3px;
margin-bottom: 5px;
}
/* If you don't want the footer to be responsive, remove these media queries */
@media (max-width: 880px) {
.footer-distributed{
font: bold 14px sans-serif;
}
.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
display: block;
width: 100%;
margin-bottom: 10px;
text-align: center;
}
.footer-distributed .footer-center i{
margin-left: 0;
}
}
.footer-distributed {
background-color: lightgray;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
box-sizing: border-box;
width: 100%;
text-align: left;
font: bold 16px sans-serif;
padding: 35px 30px;
margin-top: 10px;
}
.footer-distributed .footer-links {
color: black;
margin: 20px 0 12px;
padding: 0;
position: relative;
left: -101px;
top: -114px;
font-size: 25px;
font-family: Dancing Script;
}
.i1
{
background-color: #33383b;
color: #ffffff;
font-size: 25px;
width: 38px;
height: 38px;
border-radius: 50%;
text-align: center;
line-height: 42px;
margin: 10px 15px;
vertical-align: middle;
}
.add
{
font-family: kite one;
font-size: 35px;
position: relative;
top: -39px;
left: 64px;
font-size: large;
}
.l1
{
position: relative;
top: -43px;
left: 169px;
/* color: blue; */
}
a:-webkit-any-link {
color: -webkit-link;
cursor: auto;
}
.e1
{
position: relative;
top: -59px;
}
.dn
{
position: relative;
top: -100px;
left: 62px;
font-size: 21px;
}
.p1
{
color: black;
font-family: Kite One;
position: relative;
top: 10px;
}
.r1
{
position: relative;
top: 1px;
}
.footer-distributed {
background-color: lightgray;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
box-sizing: border-box;
width: 100%;
text-align: left;
font: bold 16px sans-serif;
padding: 35px 30px;
margin-top: 10px;
height: 333px;
}
.f1
{
font-family:Acme;
font-size:19px;
}
.navbar-brand {
float: left;
height: 50px;
padding: 15px 15px;
font-size: 20px;
line-height: 20px;
}
.f2
{
font-size:20px;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid whitesmoke;
}
</style>
</head>
<body>
<center><img src="logo.png" ></center>
<div class="bgimg">
<img src="http://healthyeatingforfamilies.com/wp-content/uploads/2014/09/15-healthy-ingredeints-iStock_000008217571Small.jpg">
<br><br><br>
</div>
<nav class="navbar navbar-inverse bg-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand t1"><span class="f2"> Recipe Hunt</span></a>
</div>
<ul class="nav navbar-nav">
<li class="f1"><a href="index.php"><span class="glyphicon glyphicon-home"></span> Home</a></li>
<li class="f1"><a href='recipe.php' >Show all recipes</a></li>
</ul>
<ul class="nav navbar-nav ">
<li class="f1"><a href='add.php' >Add New Recipe</a></li>
<li class="f1"><a href="feedback.php">Feedback</a></li>
<li class="f1"><a href="recent.php">Recently Added</a></li>
<li class="active f1"><a href="restaurant.php">Restaurants</a></li>
</ul>
</nav>
<div class="bgimg">
<img src="http://healthyeatingforfamilies.com/wp-content/uploads/2014/09/15-healthy-ingredeints-iStock_000008217571Small.jpg">
</div>
<?php
include('conn.php');
if(isset($_REQUEST['submit'])){
?>
<style>
.help{visibility: hidden;}
</style>
<?php
$hug = $_REQUEST['recipe'];
$puppy = "select * from restaurant where res_name='$hug'";
$hurt = $conn->query($puppy);
if($hurt){
$fest=$hurt->fetch_object();
$tr = $fest->res_id;
$pup = "select * from receipe where res_id=$tr";
$hur = $conn->query($pup);
if($hur){
?><h2 align="center" style="color:blue;font-size: 60px;font-family:Bellefair;">Recipes available for selected source</h2><p align="center" style="color:black;font-size: 20px;font-family:Fresca;">Here is the list of recipes for selected source</p> <?php
while($fe=$hur->fetch_object()){
?></h2><center><img src="<?php echo $fe->imagesrc;?>" align="center" width="30%" height="30%" class="img-rounded"></center><br><div class="one" align="center"><h3 style="color:red;font-weight:bold;font-family:Kite one;"><?php
echo $fe->r_name;
echo "<br />";
echo "<br />";
?></h4><h4 style="color:green;font-weight: bold;font-size: 20px;font-family:Fresca;"><?php
echo "INGREDIENTS ";?></h4><p style="color:black;font-size: 20px;font-family:Salsa;"><?php
$str = $fe->ing;
echo wordwrap($str,100,"<br>\n");
echo "<br />";
echo "<br />";
?></p><h4 style="color:green;font-weight: bold;font-size: 20px;font-family:Fresca;"><?php
$str = $fe->STEPS;
echo "INSTRUCTIONS TO PREPARE";?></h4><p style="color:black;font-size: 20px;font-family:Salsa;"><?php
echo wordwrap($str,100,"<br>\n");
echo "<br />";
echo "<br />";
?></p>
<h4 style="color:green;font-weight: bold;font-weight: bold;font-size: 20px;font-family:Fresca;"><?php
$str = $fe->STEPS;
echo "SOURCE OF RECIPE";?></h4><p style="color:black;font-size: 20px;font-family:Salsa;"><?php
$wet = "select * from restaurant where res_id=$fe->res_id";
$team = $conn->query($wet);
if($team){
$tag = $team->fetch_object();
$rt = $tag->res_name;
echo wordwrap($rt,100,"<br>\n");
}
?></p>
</div><hr><?php
}
}else{echo "2";}
}else{echo "1";}
}
?>
<?php
include('conn.php');
$w = "select * from restaurant";
$res = $conn->query($w);
if($res){
?><div class="help"><table class="table">
<caption><h2 style="color:blue;font-size:60px;font-family:Bellefair;" align="center" >Sources Available</h2><p align="center" style="color:black;font-size:20px;font-family:Fresca;">Below is displayed the list of sources available.<br>Select the source whose recipe you want to know about by clicking the radio button and done.</p></caption>
<form method="POST" action=""><?php
while($fet=$res->fetch_object()){
?>
<tr>
<td width="20%" align="right">
<input type="radio" name="recipe" value="<?php echo $fet->res_name; ?>"></td>
<td width="80%" style="color:red;font-size:20px;font-family:Salsa;"><?php echo $fet->res_name; ?></td>
</tr>
<?php
}
?>
<tr><td align="center" colspan="2" style="color:red;font-size:20px;font-family:Salsa;" >Once selected click here
<input id="ten" class="btn btn-success" type="submit" name="submit" value="Done"></td></tr>
</form></table></div><?php
}
?>
<footer class="footer-distributed">
<div class="footer-left">
<div class="row"><span class="hidden-xs">
<h3><span></span> <img src="logo.png" style="
width: 300px;
position: relative;
top: -45px;
"></span></h3>
</span>
</div>
</div>
<div class="footer-center">
<div>
<i class="fa fa-phone"></i>
<p><span class="p1">Adarsh Misra: 9537524200</span><br>
</div>
<div>
<i class="fa fa-phone"></i>
<p><span class="p1">Nishi Doshi: 9687781018</span><br>
</div>
<div>
<i class="fa fa-phone"></i>
<p><span class="p1">Rohan Dhanwani: 8460435249</span></br>
</div>
<div>
<i class="fa fa-phone"></i>
<p><span class="p1 r1">Roshani R: 7433053793</span></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<i class="fa fa-map-marker i1"></i>
<span class="add"><span class="t1">Dhirubhai Ambani</span><span class="t2">Institute of Information</span><span class="t3">and Communication</span><span class="t4">Technology,near Indroda</span><span>Circle,Gandhinagar,Gujarat</span></span>
<a href="https://www.google.co.in/maps/place/DA-IICT/@23.1885444,72.6268665,17z/data=!3m1!4b1!4m5!3m4!1s0x395c2a3ed70db7a9:0x5c6ef3f74fec0ece!8m2!3d23.1885395!4d72.6290552" target="_blank"><span class="l1" style="color: blue;">View Location</span></a>
<div>
<i class="fa fa-envelope i1 e1"></i>
<span class="dn">doshinishi1216@gmail.com</span>
</div>
</p>
</div>
</span>
</li></li></li></li>
</li></li>
</li></li>
<div><div><div>
</div>
</div>
</footer>
</body>
</html>