-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuccess.php
299 lines (240 loc) · 9.66 KB
/
success.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?php include 'includes/db_connection.php';
$conn = OpenCon();
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Thank You</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.png"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/themify/themify-icons.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/elegant-font/html-css/style.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/slick/slick.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/lightbox2/css/lightbox.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
</head>
<!-- simplecart script start for normal header -->
<script src="js/simpleCart.js">
</script>
<script>
simpleCart({
cartColumns: [
{ view: function(item, column){
return "<li class='header-cart-item'><div class='header-cart-item-img'><img src='"+item.get('thumb')+"' alt='IMG'></div><div class='header-cart-item-txt'><a href='#' class='header-cart-item-name'>" +item.get('name')+"</a><span class='header-cart-item-info'>"+item.get('quantity')+" x RM"+item.get('price')+"</span></div></li>";
}, attr: 'custom' },
]
});
</script>
<script>
simpleCart.currency({
code: "MYR",
name: "Malaysia ringgit",
symbol: "RM",
delimiter: ",",
decimal: ".",
after: false,
accuracy: 2
});
</script>
<script>
simpleCart({
checkout: {
type: "PayPal" ,
email: "[email protected]" ,
// use paypal sandbox, default is false
sandbox: true ,
// http method for form, "POST" or "GET", default is "POST"
method: "GET" ,
// url to return to on successful checkout, default is null
//success: "success.php" ,
// url to return to on cancelled checkout, default is null
cancel: "cart.php"
}
});
</script>
<!-- simplecart script end -->
<body class="animsition">
<!-- header fixed -->
<div class="wrap_header fixed-header2 trans-0-4">
<!-- Logo -->
<a href="index.php" class="logo2">
<img src="images/icons/logo2.png" alt="IMG-LOGO">
</a>
</div>
<!-- Header -->
<header class="header2">
<!-- Header desktop -->
<div class="container-menu-header-v2 p-t-26">
<div class="topbar2">
<div class="topbar-social">
<a href="#" class="topbar-social-item fa fa-facebook"></a>
<a href="#" class="topbar-social-item fa fa-instagram"></a>
<a href="#" class="topbar-social-item fa fa-pinterest-p"></a>
<a href="#" class="topbar-social-item fa fa-snapchat-ghost"></a>
<a href="#" class="topbar-social-item fa fa-youtube-play"></a>
</div>
<!-- Logo2 -->
<a href="index.php" class="logo2">
<img src="images/icons/logo2.png" alt="IMG-LOGO">
</a>
<div class="topbar-child2">
<span class="topbar-email">
<?php if(isset($_SESSION["loginuser"])){echo $_SESSION["loginuser"];}?>
</span>
<!-- -->
<ul class="main_menu">
<li>
<img src="images/icons/icon-header-01.png" class="header-icon1" alt="ICON">
<ul class="sub_menu">
<?php if(isset($_SESSION["loginuser"])){
echo "<li><a href='logout.php'>Logout</a></li>";}
else {echo'<li><a href="login.php">Login</a></li>
<li><a href="signup.php">Sign up</a></li>';}?>
</ul>
</li></ul>
<span class="linedivide1"></span>
<div class="header-wrapicon2 m-r-13">
<img src="images/icons/icon-header-02.png" class="header-icon1 js-show-header-dropdown" alt="ICON">
<span class="header-icons-noti simpleCart_quantity"></span>
<!-- Header cart noti -->
<div class="header-cart header-dropdown ">
<div class="header-cart-total ">
<ul class='header-cart-wrapitem simpleCart_items'>
</ul>
</div>
<div class="header-cart-total ">
SubTotal <p class="simpleCart_total"></p>
</div>
<div class="header-cart-buttons">
<div class="header-cart-wrapbtn">
<!-- Button -->
<a href="cart.php" class="flex-c-m size1 bg1 bo-rad-20 hov1 s-text1 trans-0-4">
View Cart
</a>
</div>
<div class="header-cart-wrapbtn">
<!-- Button -->
<a href="#" class="flex-c-m size1 bg1 bo-rad-20 hov1 s-text1 trans-0-4 simpleCart_checkout">
Check Out
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrap_header">
<!-- Menu -->
<div class="wrap_menu">
<nav class="menu">
<ul class="main_menu">
<li>
<a href="index.php">Home</a>
</li>
<li class ="sale-noti">
<a href="about.php">About</a>
</li>
<li>
<a href="fastfood.php">Fast Food</a>
</li>
<li>
<a href="localcuisine.php">Local Cuisine</a>
</li>
<li>
<a href="cart.php">Cart</a>
</li>
<li>
<a href="contact.php">Contact</a>
</li>
</ul>
</nav>
</div>
<!-- Header Icon -->
<div class="header-icons">
</div>
</div>
</div>
</header>
<!-- Title Page -->
<section class="bg-title-page p-t-40 p-b-50 flex-col-c-m" style="background-image: url(images/bg.jpg);">
<h2 class="l-text2 t-center">
Thank You
</h2>
</section>
<!-- content page -->
<section class="bgwhite p-t-66 p-b-38">
<div class="container">
<div class="row">
<h1>Payment Sucess</h1>
<h2>Thank you for your purchase , your delivery detail will be send to your email<h2>
<a href="index.php"> click here to continue </a>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="t-center s-text8 p-t-20">
Copyright © 2018. All rights reserved. | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>
</div>
</div>
</footer>
<!-- Back to top -->
<div class="btn-back-to-top bg0-hov" id="myBtn">
<span class="symbol-btn-back-to-top">
<i class="fa fa-angle-double-up" aria-hidden="true"></i>
</span>
</div>
<!-- Container Selection -->
<div id="dropDownSelect1"></div>
<div id="dropDownSelect2"></div>
<!--===============================================================================================-->
<script type="text/javascript" src="vendor/jquery/jquery-3.2.1.min.js"></script>
<!--===============================================================================================-->
<script type="text/javascript" src="vendor/animsition/js/animsition.min.js"></script>
<!--===============================================================================================-->
<script type="text/javascript" src="vendor/bootstrap/js/popper.js"></script>
<script type="text/javascript" src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<script type="text/javascript" src="vendor/select2/select2.min.js"></script>
<script type="text/javascript">
$(".selection-1").select2({
minimumResultsForSearch: 20,
dropdownParent: $('#dropDownSelect1')
});
$(".selection-2").select2({
minimumResultsForSearch: 20,
dropdownParent: $('#dropDownSelect2')
});
</script>
<!--===============================================================================================-->
<script src="js/main.js"></script>
</body>
</html>