-
Notifications
You must be signed in to change notification settings - Fork 1
/
feedback.php
476 lines (393 loc) · 11 KB
/
feedback.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
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>Recipe Hunt</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<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=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">
<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">
<script>
function validateForm() {
var x = document.forms["feedback"]["email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length) {
alert("Not a valid e-mail address");
return false;
}
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="addStyle.css">
<style type="text/css">
.bgimg{
}
.bgimg img{ position: absolute;
left: 0;
top: 0;
width: 100%;
height:30%;
z-index: 1;
opacity: .2;
}
.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;
}
</style>
</head>
<body><center><img src="logo.png" ></center>
<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="active f1"><a href="feedback.php">Feedback</a></li>
<li class="f1"><a href="recent.php">Recently Added</a></li>
<li class="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">
<br><br><br>
</div>
<form action="" method="POST" name="feedback" onsubmit="return validateForm();"><center>
<table class="table" align="center">
<caption><h2 style="color:blue;font-size:60px;font-family:Bellefair;" align="center">Feedback Form</h2><p style="color:black;font-size:20px;font-family:fresca;" align="center">How do you find our site?<br>Let us know by filling the following feedback form.</p></caption>
<tr><td align="right" style="vertical-align:top;font-family:Salsa;">Name</td><td style="color:black;">
<textarea name="name" cols="100" rows="1" required></textarea></td></tr>
<tr><td align="right" style="vertical-align:top;font-family:Salsa;">Email Id</td><td style="color:black;">
<input type="email" name="email" cols="100" rows="1" required></td></tr>
<tr><td align="right" style="vertical-align:top;font-family:Salsa;">Few lines of feedback</td><td style="color:black;">
<textarea name="feedback" cols="100" rows="10" required></textarea></td></tr>
<tr><td colspan="2" align="center" style="vertical-align:top;font-family:Salsa;">Once you have finished filling the form click here.
<input type="submit" class="btn btn-success" value="Submit Feedback" name="submit"></td></tr>
</table> </center>
</form>
<?php
include('conn.php');
if(isset($_REQUEST['submit'])){
$var=$_REQUEST['feedback'];
$name=$_REQUEST['name'];
$em=$_REQUEST['email'];
$sq = "insert into feedback (feed, name,email) VALUES('$var','$name' , '$email')";
$re = $conn->query($sq);
if($re){
?>
<script type="text/javascript">
alert("Form submitted");
window.location="index.php";
</script>
<?php
}else{
?>
<script type="text/javascript">
alert("There was an error submitting form");
window.location="feedback.php"
</script>
<?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>