-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactUs.php
355 lines (287 loc) · 14.5 KB
/
contactUs.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
<?php
session_start();
//disallows any and all access to this page UNLESS you sign in
include("connect.php");
include("functions.php");
// if (!isset($_SESSION['id'])) {
// header("Location:login.php");
// }
if (isset($_POST['SubmitButton'])) {
$name = $_POST['UserName'];
$email = $_POST['UserEmail'];
$subject = $_POST['subject'];
$text = $_POST['text'];
$sql = "insert into `contact_us` (name,email,subject,text) values('$name','$email','$subject','$text')";
$result = mysqli_query($con, $sql);
if ($result) {
echo "<script> alert('Thank you for your inquiry, we aim to respond with 24 hours!'); window.location = 'contactUs.php'</script>";
} else {
die(mysqli_errno($con));
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Contact Us</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/contactus.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
<script src="https://kit.fontawesome.com/c035b66456.js" crossorigin="anonymous"></script>
<script src="js/scripts.js"></script>
<!-- This is the line you need -->
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<style>
</style>
</head>
<body>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
<div class="navbar">
<a href="index.php"><img src="images/Logo.png" class="logo"></a>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="basicWeb.php">Games</a></li>
<li><a href="aboutUs.php">About Us</a></li>
<li><a href="contactUs.php">Contact Us</a></li>
<?php
if (isset($_SESSION["id"])) {
echo "<li><a href='logout.php'>Log Out</a></li>";
} else {
echo "<li><a href='login.php'>Log In</a></li>";
}
?>
<?php
if (isset($_SESSION["id"])) {
echo '<li><a href="basket.php"><i class="fa-solid fa-basket-shopping"></i> </a></li>';
} else {
echo '<li><a href="login.php"><i class="fa-solid fa-basket-shopping"></i> </a></li>';
}
?>
</ul>
</div>
<!--start of the infomation on the contact us page-->
<div class="contactBox">
<!-- contact us -->
<div class="detailsBox">
<form class="addingInputs" method="post">
<h1 style="text-align:center">How can we help you?</h1>
<input type="text-box" class="formInput" placeholder="Enter Name" name="UserName" autocomplete="off">
<input type="email" class="formInput" placeholder="Enter Email" name="UserEmail" autocomplete="off">
<label>What do you need help with?</label></br>
<select name="subject">
<option value="Where is my order?">Choose option</option>
<option value="Where is my order?">Where is my order?</option>
<option value="Delivery Enquiry">Delivery Enquiry</option>
<option value="Order Query">Order Query</option>
<option value="Return Query">Return Query</option>
<option value="Account/Techincal Query">Account/Techincal Query</option>
<option value="Store Query">Store Query</option>
<option value="Other">Other</option>
</select>
<textarea class="formInput" name="text" placeholder="Write something.." style="height:200px"></textarea>
<button type="submit" class="submitButton" name="SubmitButton">Submit</button>
</form>
</div>
<!-- end of contact us -->
<!-- frequently asked questions -->
<div class="detailsBox">
<h1 style="text-align:center">Frequently Asked Questions</h1>
<button class="accordion">Delivery</button>
<div class="panel">
<table id="customers">
<tr>
<th>Delivery Type</th>
<th>Delivery Time</th>
<th>Cost</th>
</tr>
<tr>
<td>Standard Orders</td>
<td>3-5 Working days</td>
<td>£2.99</td>
</tr>
<tr>
<td>Premium Orders</td>
<td>2-4 Working days/td>
<td>£3.99</td>
</tr>
<tr>
<td>Next Day Delivery</td>
<td>Next working day</td>
<td>£4.99</td>
</tr>
</table>
</div>
<button class="accordion">Order & Payments</button>
<div class="panel">
<ul class="b">
<li>Visa MasterCard/Maestro or solo Debit/Credit cards</li>
<li>PayPal</li>
<li>Klarna</li>
</ul>
</div>
<button class="accordion">Return Policy</button>
<div class="panel">
<ul class="b">
<li>We dont offer refunds unless there is an exceptional circumstance such as you recieve the product in a faulty condition.</li>
</ul>
</div>
</div>
</div>
<!-- Leave a comment -->
<div class="contactBoxComment">
<?php
if (isset($_POST['CommentButton'])) {
$name = $_POST['commentName'];
$comment = $_POST['comment'];
$sql = "insert into `comments` (name,comment, date) values('$name','$comment', CURRENT_TIME())";
$result = mysqli_query($con, $sql);
if ($result) {
echo "<script> alert('Comment was succesful'); window.location = 'contactUs.php'</script>";
} else {
die(mysqli_errno($con));
}
}
?>
<div class="detailsBoxComment">
<form class="addingInputs" method="post">
<h1 style="text-align:center">Please Leave a Comment</h1>
<input type="text-box" class="formInput" placeholder="Enter Name" name="commentName" autocomplete="off">
<textarea type="text-box" class="formInput" name="comment" placeholder="Write something.." style="height:100px"></textarea>
<button type="submit" class="submitButton" name="CommentButton">Comment</button>
</form>
<?php
$sql = "Select * from `comments`";
$result = mysqli_query($con, $sql);
if ($result) {
while ($row = mysqli_fetch_assoc($result)) {
$name = $row['name'];
$date = $row['date'];
$comment = $row['comment'];
echo '
<div class="comment__container comment__container--response">
<p class="comment_author">' . $name . '<span> || ' . $date . ' </span></p>
<div class="comment__bubble">
<span class="comment__arrow">
<p class="comment_color">' . $comment . '</p>
</span>
<p></p>
</div>
</div>
';
}
}
?>
</div>
<div class="detailsBoxComment">
<h1 style="text-align:center">Fun Facts That You Didnt Know?</h1>
<button class="accordion">1.The dragon Paarthurnax in The Elder Scrolls V: Skyrim is voiced by the same man who voices Nintendo’s Mario.</button>
<div class="panel">
<table id="customers">
<h4>That’s right, both the leader of the Greybeards with the deep husky voice and Nintendo’s
most iconic character with his high-pitched Italian accent is voiced by Charles Martinet.
Some other notable people behind some of Skyrim’s voices include Lynda Carter (Miss World USA 1972),
Christopher Plummer (Charles F. Muntz from Pixar’s UP), and Michael Hogan (Colonel Saul Tigh from Battlestar Galactica).</h4>
</table>
</div>
<button class="accordion">2.Gears of War 2 was featured in AMC’s The Walking Dead.</button>
<div class="panel">
<h4>During a flashback in the final episode of season ten of
The Walking Dead, the season’s antagonist, Negan, can be seen playing Gears of War 2.While Negan is supposedly playing multiplayer with a
couple of other players, keen-eyed viewers figured out that the gameplay footage was from a point in the game’s campaign, specifically Act 2.</h4>
</div>
<button class="accordion">3.Left 4 Dead 2 was so popular that an expansion was released 11 years after the original launch date.</button>
<div class="panel">
<ul class="b">
<h4>As far as zombie survival games go, Left 4 Dead 2 found a formula for exciting yet refreshing gameplay that’s
incredibly hard to beat.
Combine that with surprisingly good graphics for its time, and this is why ten years from launch, it still had enough
of a dedicated following to warrant an expansion.
Valve, the producers of the game, were initially planning to create a next-gen sequel
but instead decided to make The Last Stand Expansion to what is commonly referred to as “the game that refuses to die.”</h4>
</ul>
</div>
<button class="accordion">4.Rockstar Games hired real-life gang members to voice background characters in Grand Theft Auto V.</button>
<div class="panel">
<ul class="b">
<h4>In an attempt to add as much authenticity as possible to a game set in a fictional criminal underworld, the
producers decided to shy away from “goofy LA actors,” who added little more than two dimensions to the characters they voiced.
Quite a lot of the background characters are gangsters belonging to Latino and Black gangs, so Rockstar Games got a guy to go around
and hire genuine gangsters to voice the part.Many who saw their scripts threw them on the floor, as they weren’t “real”
enough, and they recorded their own version instead!</h4>
</ul>
</div>
<button class="accordion">5.Half-Life was listed as the Best-Selling First-Person Shooter of All Time (PC) in the 2008 gamer’s edition of the Guinness Book of World Records.</button>
<div class="panel">
<ul class="b">
<h4>Not only did Half-Life completely redefine the PC first-person shooter genre, but it also had an incredibly mind-bending sci-fi story to back it up!
It’s no wonder that by 2008 it ended up selling more than 9.3 million copies at retail alone, being described by IGN at the time as the best shooter since the first Doom game.
Many game critics and reviewers gave it a full ten out of ten, with PC Gamer awarding it the title of Best PC Game Ever in 1999, 2001, and 2005.</h4>
</ul>
</div>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
</div>
</div>
<!--end of the infomation on the contact us page-->
<!---Footer--->
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col">
<h4>find us</h4>
<ul>
<li>Store location:</li>
<li>59-61 Station St, Birmingham B5 4DY</li>
</ul>
</div>
<div class="footer-col">
<h4>follow us</h4>
<div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
</div>
</div>
<div class="footer-col">
<h4>help</h4>
<ul>
<li><a href="/aboutUs.php">about us</a></li>
<li><a href="/contactUs.php">Contact Us</a></li>
<br>
<li>Games4U.org</li>
<li>DISCLAIMER: We do not own these pictures, they belong to their own sources, respectivly.</li>
</ul>
</div>
</div>
</div>
</footer>
<!-- end of footer -->
</html>