-
Notifications
You must be signed in to change notification settings - Fork 4
/
ordersucces.php
104 lines (97 loc) · 3.06 KB
/
ordersucces.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
<?php
session_start();
require ("function.php");// Including the db Connection
remove();
update();
?>
<html lang="en">
<head>
<title>E-Commerce</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<style>
.form1 {
position: relative;
z-index: 1;
background: #FFFFFF;
max-width: 950px;
height: 400px;
margin: 0 auto 5px;
padding: 15px;
text-align: center;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.box {
position: relative;
z-index: 1;
background: #FFFFFF;
max-width: 270px;
height: 400px;
margin: 0 auto 5px;
padding: 15px;
text-align: center;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
</style>
<body>
<nav class="navbar navbar-inverse" style="border-radius:0px;">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Logo</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="home.php">Home</a></li>
<li><a href="menu.php">Food Menu</a></li>
<li><a href="stores.php">Stores</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li style="top:7px;">
<form class="form-inline my-2 my-lg-0" method="get" action="results.php" enctype="multipart/form-data">
<input class="form-control" type="search" name="user_query" placeholder="Search" aria-label="Search">
<button class="btn btn-primary" name="search" type="submit">Search</button>
</form>
<li><?php
if(!isset($_SESSION['cust_email'])){
echo "<a href='login.php'><span class='glyphicon glyphicon-user'></span> Login</a>";
}
else
{
echo "<a href='logout.php'><span class='glyphicon glyphicon-user'></span> Logout</a>";
}
?></li>
<li><a href="cart.php"><span class="glyphicon glyphicon-shopping-cart"></span> Cart</a></li>
</ul>
</div>
</div>
</nav>
<br><br>
<?php
if(isset($_GET['cancel_id'])){
$cancel_id = $_GET['cancel_id'];
if($cancel_id == 1)
{
echo '<div class="container text-center">
<h1 style="color:green">Your Order has been Successfully Placed</h1>
</div> ';
}
else
{
echo '<div class="container text-center">
<h1 style="color:red">Your Order has been Cancelled</h1>
</div> ';
}
}
?>
</body>
</html>