-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.php
More file actions
454 lines (437 loc) · 14.3 KB
/
about.php
File metadata and controls
454 lines (437 loc) · 14.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
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
<?php
require_once "config.php";
$feedback = $rating = "";
$feedback_err = $rating_err = "";
if ($_SERVER['REQUEST_METHOD'] == "POST"){
// Check for feedback
if(empty(trim($_POST['feedback']))){
$feedback_err = "Feedback cannot be blank";
echo "<p class='echocss'>Feedback cannot be blank.</p>";
}
elseif(strlen(trim($_POST['feedback'])) < 2){
$feedback_err = "Feedback cannot be less than 2 characters";
echo "<p class='echocss'>Feedback cannot be less than 2 characters.</p>";
}
else{
$feedback = $_POST['feedback'];
// Check for rating
if(empty(trim($_POST['rating']))){
$rating_err = "Rating cannot be blank";
echo "<p class='echocss'>Rating cannot be blank.</p>";
}
else{
$rating = $_POST['rating'];
}
}
// If there were no errors, go ahead and insert into the database
if(empty($feedback_err) && empty($rating_err))
{
$sql = "INSERT INTO feedback (feedback, rating) VALUES (?, ?)";
$stmt = mysqli_prepare($conn, $sql);
if ($stmt)
{
mysqli_stmt_bind_param($stmt, "ss", $param_feedback, $param_rating);
// Set these parameters
$param_feedback = $feedback;
$param_rating = $rating;
// Try to execute the query
if (mysqli_stmt_execute($stmt))
{
echo "<p class='echocss2'>Your feedback successfully submited!.</p>";
header("location: successful3.php");
}
else{
echo "<p class='echocss2'>Something went wrong... your feedback can not submited!</p>";
}
}
mysqli_stmt_close($stmt);
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us</title>
<link rel="shortcut icon" type="image/x-icon" href="img/NLJ.png">
<style>
.echocss{
margin-left: 70em;
margin-top: 240px;
position: absolute;
color: red;
}
.echocss2{
margin-left: 76em;
margin-top: 520px;
position: absolute;
color: green;
}
html{
background-image :url('img/contact.jpg');
background-size: cover;
height:100%;
}
body{
background:url('img/contact.jpg') no-repeat;
background-size: cover;
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: rgb(48, 46, 46);
}
.container{
display: flex;
flex-direction: column;
align-items: center;
padding: 25px;
}
hr{
width: 80%;
}
h2{
font-size: 20px;
}
.contact-items{
display: flex;
margin: 30px auto;
flex-wrap: wrap;
align-items: center;
}
.customer-care,.write-us,.sales-market{
display: flex;
flex-direction: column;
align-items: center;
width: 28%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 250px;
background-color: #fff;
}
.customer-care{
height: 250px;
box-shadow: 0 15px 15px #00FF00;
border: 1px solid #00FF00;
}
.write-us{
height: 250px;
box-shadow: 0 15px 15px #800000;
border: 1px solid #800000;
}
.sales-market{
height: 250px;
box-shadow: 0 15px 15px purple;
border: 1px solid purple;
}
p{
font-size: 15px;
}
button{
padding: 8px 16px;
font-size: 17px;
border-radius: 25px;
border: none;
margin: 15px auto;
cursor: pointer;
color: rgb(255, 255, 255);
}
button:hover{
color: gray;
}
#cust-care{
background: #00FF00;
box-shadow: 0 0 5px black;
}
#write{
background: #800000;
box-shadow: 0 0 5px black;
}
#sales{
background: purple;
box-shadow: 0 0 5px black;
}
a{
font-size: 16px;
}
.customer-care a{
color: green;
text-shadow: 0 0 2px rgba(73, 129, 80, 0.637);
}
.sales-market a{
color: blue;
text-shadow: 0 0 2px rgba(76, 62, 158, 0.637);
}
#message {
display:none;
background: #E5E7E9;
color: #000;
position: absolute;
padding: 20px;
margin-top: 310px;
box-shadow: 5px 5px 4px 5px #888888;
}
#message p {
font-size: 15px;
}
#message2 {
display:none;
background: #E5E7E9;
color: #000;
position: absolute;
padding: 20px;
margin-top: -40px;
margin-right: 58px;
margin-left: 40px;
height: 290px;
box-shadow: 5px 5px 4px 5px #888888;
}
#message2 p {
font-size: 15px;
}
.feedback-input{
height: 260px;
width: 400px;
font-size:20px;
margin-right: -100px;
}
.button-blue{
font-family: 'Montserrat', Arial, Helvetica, sans-serif;
float:left;
width: 100%;
border: #fbfbfb solid 4px;
cursor:pointer;
background-color: #3498db;
color:white;
font-size:24px;
padding-top:22px;
padding-bottom:22px;
transition: all 0.3s;
margin-top: 55px;
font-weight:700;
}
.button-blue:hover{
background-color: rgba(0,0,0,0);
color: #0493bd;
}
.home{
margin-top: 10px;
margin-left: 10px;
margin-bottom: -60px;
}
/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
.echocss{
margin-left: 2em;
margin-top: 1080px;
position: absolute;
color: red;
}
.customer-care,.sales-market{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
}
.write-us{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
height: 300px;
}
#message2 {
display:none;
background: #E5E7E9;
color: #000;
position: absolute;
padding: 20px;
margin-top: -40px;
margin-right: 13px;
margin-left: 1px;
height: 290px;
box-shadow: 5px 5px 4px 5px #888888;
}
.feedback-input{
height: 260px;
width: 350px;
font-size:20px;
margin-right: -100px;
}
}
/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 700px) {
.echocss{
margin-left: 2em;
margin-top: 1080px;
position: absolute;
color: red;
}
.customer-care,.sales-market{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
}
.write-us{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
height: 300px;
}
#message2 {
display:none;
background: #E5E7E9;
color: #000;
position: absolute;
padding: 20px;
margin-top: -40px;
margin-right: 13px;
margin-left: 1px;
height: 290px;
box-shadow: 5px 5px 4px 5px #888888;
}
.feedback-input{
height: 260px;
width: 350px;
font-size:20px;
margin-right: -100px;
}
}
/* On screens that are less than 1156px wide, make the sidebar into a topbar */
@media screen and (max-width: 1156px) {
.echocss{
margin-left: 2em;
margin-top: 1080px;
position: absolute;
color: red;
}
.customer-care,.sales-market{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
}
.write-us{
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
margin: 30px auto;
padding: 35px 15px;
border-radius: 15px;
min-width: 350px;
height: 300px;
}
#message2 {
display:none;
background: #E5E7E9;
color: #000;
position: absolute;
padding: 20px;
margin-top: -40px;
margin-right: 13px;
margin-left: 1px;
height: 290px;
box-shadow: 5px 5px 4px 5px #888888;
}
.feedback-input{
height: 260px;
width: 350px;
font-size:20px;
margin-right: -100px;
}
}
</style>
</head>
<body>
<div class="home">
<a href="index.php"><img src="https://img.icons8.com/material-rounded/48/000000/home.png"/></a>
</div>
<div class="container">
<h1 style="color: #fff;">About Us</h1>
<hr>
<h2 style="color: #fff;">Want to know about us? then read here.</h2>
<div class="contact-items">
<div class="customer-care">
<h3>Frequently asked Questions</h3>
<p>We will improve our site daily by reading your questions and try to make this portal friendly for all. So if you have any question then feel free to write here, we will definetly give, your relevant and unique questions answers. And please first see previous question answer, because there is a chance that someone already asked your question.</p>
<div id="message">
<p class="optional">We are still working on this page, we will soon launch this page. <br>Upto then please use our contact us page for your questions.</p>
</div>
<button id="cust-care">Ask Questions</button>
</div>
<div class="write-us">
<h3 style="margin-top: -20px;">Our Thoughts</h3>
<p> We are observing many peoples who are just complete there graduation, peoples after 5 years of there graduation and peoples who are at age of leaving job but still want to do something because of their passion, because of fear of lonelyness after their job and because of money problems. So at the end of our observation we are at the conclusion of that in this century everyone want do something or everyone had to do something for their family. But many peoples not able to find a perfect job for their skills. Also there are many business, big firms, companies, industries and organizations who are not getting perfect candidates for there vacant post. So we came with a solution where all the recruiters get a skilled candidates and all hard working candidates get good valuation of their work.</p>
<!-- <a href="./contact-form.html"> <button id="write">Write</button></a> u-->
</div>
<div class="sales-market">
<h3>Feedback</h3>
<p>Give your anonymous and valuable feedback here!</p>
<button id="sales">Feedback box</button>
<div id="message2">
<form action="" method="POST">
<label for="exampleInputNumber" style="margin-bottom: 200px;">Rating</label>
<select style="margin-right: 50px; margin-bottom: 10px;" name="rating"><option></option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select><img style="width: 24px; margin-left: -50px; margin-bottom: -5px;" src="https://img.icons8.com/color/48/000000/christmas-star.png"/>
<textarea name="feedback" class="feedback-input" placeholder="Feedback"></textarea>
<button type="submit" class="button-blue">SUBMIT</button>
</form>
</div>
<?php
//sql query to find average cost of food items in food table
$sql = "SELECT AVG(rating) FROM feedback";
$result = $conn->query($sql);
//display data on web page
while($row = mysqli_fetch_array($result)){
$rt = $row['AVG(rating)'];
echo "Rating :".sprintf("%.1f", $rt);
echo "<br />";
}
//close the connection
$conn->close();
?>
<img style="width: 24px; margin-left: 100px; margin-top: -23px;" src="https://img.icons8.com/color/48/000000/christmas-star.png"/>
</div>
</div>
</div>
<script>
var myInput = document.getElementById("cust-care");
var userInput = document.getElementById("sales");
// When the user clicks on the password field, show the message box
myInput.onfocus = function() {
document.getElementById("message").style.display = "block";
}
// When the user clicks outside of the password field, hide the message box
myInput.onblur = function() {
document.getElementById("message").style.display = "none";
}
userInput.onfocus = function() {
document.getElementById("message2").style.display = "block";
}
</script>
</body>
</html>