-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathorder_failed.php
More file actions
59 lines (54 loc) · 2.29 KB
/
order_failed.php
File metadata and controls
59 lines (54 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<?php
session_start();
include("conn_db.php");
include('head.php');
?>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/login.css" rel="stylesheet">
<title>Failed to place an order | EATERIO</title>
</head>
<body class="d-flex flex-column h-100">
<?php include('nav_header.php')?>
<div class="mt-5"></div>
<div class="container form-signin text-center reg-fail mt-auto">
<?php
if(isset($_GET["err"])){
$error_code = $_GET["err"];
$err_type = 1;
$display_msg = "Error Code: {$error_code}";
}else if(isset($_GET["pmt_err"])){
$err_type = 2;
$display_msg = "Message: ".ucfirst($_GET["pmt_err"]);
}
?>
<i class="mt-4 bi bi-exclamation-circle text-danger h1 display-2"></i>
<h3 class="mt-2 mb-3 fw-normal text-bold">Unable to place your order</h3>
<p class="mb-3 fw-normal text-bold">
<?php
switch($err_type){
case 1: echo "Sorry, the system has encountered with this error"; break;
case 2: echo "There is a problem with your payment"; break;
default: echo "There is an error in our system.";
}
?>
<br/>
<code><?php echo $display_msg;?></code>
</p>
<a class="btn btn-danger btn-sm w-50" href="index.php">Return to Home</a>
</div>
<footer
class="footer d-flex flex-wrap justify-content-between align-items-center px-5 py-3 mt-auto bg-secondary text-light">
<span class="smaller-font">© 2021 SeriousEater Group<br /><span class="xsmall-font">Paphana Y. Sirada C.
Thanakit L.</span></span>
<ul class="nav justify-content-end list-unstyled d-flex">
<li class="ms-3"><a class="text-light" target="_blank" href="https://github.com/waterthatfrozen/EATERIO"><i
class="bi bi-github"></i></a></li>
</ul>
</footer>
</body>
</html>