-
Notifications
You must be signed in to change notification settings - Fork 4
/
checkout.php
172 lines (137 loc) · 4 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
<?php
session_start();
include("include/dbcon.php");
include("include/function.php");
include("include/md5salt.php");
setGetCookie();
?>
<!DOCTYPE html>
<html>
<head>
<title>AZONE - Kurunegala</title>
<!--Add CSS Files-->
<link rel="stylesheet" type="text/css" href="resources/css/styles.css">
<link rel="stylesheet" type="text/css" href="resources/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="resources/font-awesome/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,300,400,700,900" rel="stylesheet">
</head>
<body>
<!-- Start Top-->
<div class="top">
<!-- Start Container-->
<div class="container">
<div class="col-md-6 offer">
<a href="#" class="btn btn-primary btn-sm">
<?php
welcomeUser();
?>
</a>
<a href="#">
Cart Total Price : Rs<?php priceCart();?>, No of items : <?php countCart(); ?>
</a>
</div>
<div class="col-md-6">
<!-- Start Menu-->
<ul class="menu">
<?php
switchLoginLogout();
?>
</ul>
</div>
</div>
</div>
<!-- Navigation Bar Start-->
<div class="navbar navbar-default" id="navbar">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand home" href="index.php">
<img src="resources/img/logo.jpg" alt="logo" class="logo">
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation">
<span class="sr-only">Toggle Navigation</span>
<i class="fa fa-align-justify"></i>
</button>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#search">
<span class="sr-only">Toggle Search</span>
<i class="fa fa-search"></i>
</button>
</div>
<div class="navbar-collapse collapse" id="navigation">
<div class="padding-nav">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="store.php">Store</a>
</li>
<li>
<a href="cart.php">Cart</a>
</li>
<li>
<a href="customers/myaccount.php?myorders">My Account</a>
</li>
<li>
<a href="contact.php">Contact Us</a>
</li>
</ul>
</div>
<a class="btn btn-info navbar-btn right" href="cart.php">
<i class="fa fa-shopping-cart"></i>
<span><?php countCart(); ?> items in cart</span>
</a>
<div class="navbar-collapse collapse right">
<button type="button" class="btn btn-info navbar-btn" data-toggle="collapse" data-target="#search">
<span class="sr-only">Toggle Search</span>
<i class="fa fa-search"></i>
</button>
</div>
<div class="collapse clearfix" id="search">
<form class="navbar-form" method="get" action="result.php">
<div class="input-group">
<input class="form-control" type="text" placeholder="Search" name="user_query" required>
<span class="input-group-btn">
<button type="submit" value="Search" name="search" class="btn btn-info">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="content">
<div class="container">
<div class="col-md-12">
<ul class="breadcrumb">
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="register.php">Checkout</a>
</li>
</ul>
</div>
<div class="col-md-12" style="width: 100%; display: flex;">
<?php
if(!isset($_SESSION['cusEmail'])){
echo "<script>window.open('login.php','_self')</script>";
}else{
include("payment.php");
}
?>
</div>
</div>
</div>
<!--Footer Start-->
<?php
include("include/foot.php");
?>
<!--Add JavaScript Files-->
<script src="resources/js/jquery.min.js"></script>
<script src="resources/js/bootstrap.min.js"></script>
<!-- Google Recaptcha -->
<script src='https://www.google.com/recaptcha/api.js'></script>
</body>
</html>