-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathorder_success.php
More file actions
52 lines (47 loc) · 2.23 KB
/
order_success.php
File metadata and controls
52 lines (47 loc) · 2.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<?php
session_start();
include("conn_db.php");
if(!isset($_SESSION["cid"]) || !isset($_GET["orh"])){
header("location: restricted.php");
exit(1);
}
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>Successfully 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-success mt-auto">
<i class="mt-4 bi bi-cart-check text-success h1 display-1"></i>
<h4 class="mt-2 fw-normal text-bold">Your order has been placed.</h4>
<?php
//generate order reference code
$orh_id = $_GET["orh"];
$orh_query = "SELECT orh_refcode FROM order_header WHERE orh_id = {$orh_id} LIMIT 0,1;";
$orh_arr = $mysqli -> query($orh_query) -> fetch_array();
$orh_refcode = $orh_arr["orh_refcode"];
?>
<h5 class="mb-3 fw-normal text-bold">Order #<?php echo $orh_refcode;?></h5>
<p class="mb-3 fw-normal text-bold text-wrap">We'll notify the shop in a few moments. <br/>You can check status in order history menu.</p>
<a class="btn btn-outline-secondary btn-sm" href="index.php">Return to home</a>
<a class="btn btn-success btn-sm" href="cust_order_history.php">Go to order history page</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>