-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.php
181 lines (155 loc) · 7.56 KB
/
checkout.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
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Checkout</title>
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="navbar.css">
<link rel="stylesheet" type="text/css" href="footer.css">
<link rel="stylesheet" type="text/css" href="co.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
<a class="navbar-brand mr-auto mr-lg-0 fas fa-coffee" href="index.php" style="padding-right: 20px;font-size: 30px;"><span style="padding-left: 20px;">Cup o' Joe</span></a>
<button class="navbar-toggler p-0 border-0" type="button" data-toggle="offcanvas">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse offcanvas-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link dep" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link dep" href="news.php">News</a>
</li>
<li class="nav-item">
<a class="nav-link dep" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link dep" href="#">Contact Us</a>
</li>
<?php
session_start();
ob_start();
if(isset($_SESSION['username'])){
if($_SESSION['pdetails']=="orderdetails"){
echo '<li class="nav-item">
<a class="nav-link dep" href="#">Welcome '.$_SESSION["username"].'</a>
</li>';
echo '<li class="nav-item">
<a class="nav-link dep" href="logout.php">Logout</a>
</li>';
$oid=$_SESSION['oid'];
}else{
header('location:odetails.php');
}
}else{
header('location:login.php');
} ?>
</ul>
</div>
</nav>
<div id="tan">
<h1 id="tan1">Thank you for the order!</h1>
</div>
<div class="container" style="text-align: center;padding-top: 50px;padding-top: 140px;
padding-bottom: 140px;">
<h1 id="sasu" style="color: brown;font-weight: 600;padding-bottom: 45px;font-size: 50px;">Your order is on its way</h1>
<p id="saku" style="font-size: 25px;padding-bottom: 26px;">Delivery of healthy food is the best solution for bussiness people. Who wants to eat right,look healthy and work productively all day</p>
<a href="news.php" class="btn" style="background-color: brown;color: white;padding: 15px;
font-weight: 600;border-radius: 20px;">View how we deliver the order</a>
</div>
<div style="padding-bottom: 100px;">
<div class="container row1">
<div class="col-xl-6 col-sm-12" style="background-color: #D7DBDB;margin-bottom: 10px;padding: 50px;">
<h2 style="letter-spacing: -3px;">SUMMARY:</h2>
<p style="padding-top: 25px;font-size: 21px;">Order Id: <span><?php echo $oid ?></span></p>
<p style="font-size: 21px;">Order Date: <span><?php
$q="select odate,total,address from orderhistory where id='$oid'";
$qq=mysqli_query($con,$q);
$qq=mysqli_fetch_assoc($qq);
$qq1=$qq['odate'];
$qq2=$qq['total'];
$qq3=$qq['address'];
echo $qq1;
?>
</span></p>
<p style="font-size: 21px;">Order Total: <span><?php echo $qq2; ?></span></p>
</div>
<div class="col-xl-6 col-sm-12" style="background-color: #D7DBDB;margin-bottom: 10px;padding: 50px;">
<h2 style="letter-spacing: -3px;">SHIPPING ADDRESS: </h2>
<p style="padding-top: 25px;font-size: 21px;"><?php echo $qq3; ?></p>
<p></p>
</div>
</div>
</div>
<div id="baru" class="container" style="padding-left: 90px;">
<hr style="padding-bottom: 30px;">
<table id="hina" style="width: 70%;font-size:21px;padding-bottom: 30px;">
<tr>
<td><strong>Subtotal (<span><?php echo $_SESSION["oquantity"]; ?></span> items):</strong></td>
<td><strong><?php echo $_SESSION["sum"]; ?></strong></td>
</tr>
<tr>
<td><strong>Shipping Charges:</strong></td>
<td><strong>0</strong></td>
</tr>
<tr>
<td><strong>Discount:</strong></td>
<td><strong>0</strong></td>
</tr>
<tr>
<td style="padding-top: 40px;"><strong>Order Total:</strong></td>
<td style="padding-top: 40px;"><strong><?php echo $_SESSION["sum"]; ?></strong></td>
</tr>
</table>
<hr style="padding-bottom: 100px;margin-top: 46px;">
</div>
<div class="container row1" style="margin-bottom: 100px;">
<div class="col-xl-6 col-sm-12" style="margin-bottom: 80px;">
<div class="container">
<h1><strong id="jira" style="letter-spacing: -1px;">Contact Us:</strong></h1>
<p id="ert" style="font-size: 20px;padding-top: 20px;">We prepare healthy, ready-to-eat coffee and delivers them to your door.</p>
<br>
<p class="ert1 fas fa-envelope" style="font-size: 20px;"><span style="padding-left: 20px;">[email protected]</span></p><br>
<p class="ert1 fas fa-phone-alt" style="font-size: 20px;"><span style="padding-left: 20px;">+91-9465239120</span></p><br>
<p class="ert1 fas fa-map-marked-alt" style="font-size: 20px;"><span style="padding-left: 20px;">Mumbai,India</span></p><br><br><br>
<a href="news.php" class="btn" style="background-color: brown;color: white;padding: 15px;
font-weight: 600;border-radius: 10px;">GET IT NOW</a>
</div>
</div>
<div class="container col-xl-6 col-sm-11" style="text-align: center;">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d68251.21649837494!2d72.82472277574841!3d18.977068115484123!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7d1c73a0d5cad%3A0xc70a25a7209c733c!2sGateway%20Of%20India%20Mumbai!5e0!3m2!1sen!2sin!4v1602568949267!5m2!1sen!2sin" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
</div>
<?php include "footer.php";?>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
<script>
$(function () {
'use strict'
$('[data-toggle="offcanvas"]').on('click', function () {
$('.offcanvas-collapse').toggleClass('open')
})
})
</script>
<script>
function responseveIframe() {
$('iframe').height(
$('iframe').attr("height") / $('iframe').attr("width") * $('iframe').width()
);
}
responseveIframe();
$(window).resize(function() {
responseveIframe();
});
</script>
</html>