-
Notifications
You must be signed in to change notification settings - Fork 21
/
checkout.php
executable file
·58 lines (58 loc) · 2.12 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
<?php
session_start();
include("functions/functions.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Travel Bird : Checkout</title>
<link rel="stylesheet" href="styles/style.css" media="all">
</head>
<body>
<!--Main container starts here-->
<div class="main_wrapper">
<!--Header starts here-->
<?php include 'includes/header.php'; ?>
<!--Header ends here-->
<!--Navbar starts here-->
<?php include 'includes/navbar.php'; ?>
<!--Navbar ends here-->
<!--Content starts here-->
<div class="content_wrapper">
<!--left-sidebar starts-->
<?php include "includes/left-sidebar.php"; ?>
<!--left-sidebar ends-->
<div id="content_area">
<?php cart(); ?>
<div id="shopping_cart">
<span style="float: right;font-size: 18px;padding: 5px;line-height: 40px;">
<?php
if (isset($_SESSION['customer_email'])) {
echo "<b>Welcome: </b>" . $_SESSION['customer_email'] . "<b style='color: yellow;'> Your</b>";
} else {
echo "<b>Welcome Guest:</b>";
}
?>
<b style="color: yellow;">Shopping Cart-</b> Total Items: <?php total_items(); ?> Total Price: <?php total_price(); ?> <a
href="cart.php" style="color: yellow;">Go to Cart</a></b></span>
</div>
<div id="packages_box">
<?php
if (!isset($_SESSION['customer_email'])) {
include("includes/customer_login.php");
} else {
include("includes/payment.php");
}
?>
</div>
</div>
</div>
<!--Content ends here-->
<!--footer starts-->
<?php include "includes/footer.php";?>
<!--footer ends-->
</div>
<!--Main container ends here-->
</body>
</html>