-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatus.php
55 lines (44 loc) · 1.33 KB
/
status.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/status.css">
</head>
<body>
<?php
if (isset($_GET['st'])) {
if ($_GET['st'] == "success") {
echo '
<div class="status-wrap">
<div class="status-logo">
<img src="images/logo.png" alt="Logo">
</div>
<div class="positive">
<h1>Order received!</h1>
<h3>Thank you for ordering at Big Grill. We value your meat.</h3>
<p>Your order can take up to 45 mins <br> Please make an account in order to track the status of delivery</p>
<button type="button" onclick="returnHome()" name="button">Return to Home</button>
</div>
</div>
';
} else {
echo '
<div class="negative">
<h1>Something went wrong...</h1>
<h3>Sorry. We could not receive your order at the moment <br>Please try again later</h3>
<button type="button" onclick="returnHome()" name="button">Return to Home</button>
</div>
';
}
}
?>
<!-- Include Header -->
<script type="text/javascript">
function returnHome(){
window.location="index.php";
}
</script>
<!-- Include Footer -->
</body>
</html>