-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.php
executable file
·86 lines (85 loc) · 3.14 KB
/
index.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
<?php
session_start();
include("functions/functions.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Travel Bird : Home</title>
<link rel="stylesheet" href="styles/style.css" media="all">
<style>
.adminbtn {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 1px 2px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
cursor: pointer;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
float: right;
margin-top: 12px;
margin-left: 2px;
}
.adminbtn:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
</style>
</head>
<body>
<!--Main container starts-->
<div class="main_wrapper">
<!--Header starts-->
<?php include 'includes/header.php'; ?>
<!--Header ends-->
<!--Navbar starts-->
<?php include 'includes/navbar.php'; ?>
<!--Navbar ends-->
<!--Content starts-->
<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>
<?php
if (!isset($_SESSION['customer_email'])) {
echo "<a href='checkout.php' style='color: orange;'>User Login</a>";
} else {
echo "<a href='logout.php' style='color: orange;''>Logout</a>";
}
?>
<button class="adminbtn"><a style="text-decoration: none; color: #ffffff;"
href="admin_area/index.php">Admin Login</a></button>
</span>
</div>
<div id="packages_box">
<?php getPack(); ?>
<?php getCatPack(); ?>
<?php getTypePack(); ?>
</div>
</div>
</div>
<!--Content ends-->
<!--footer starts-->
<?php include "includes/footer.php";?>
<!--footer ends-->
</div>
<!--Main container ends-->
</body>
</html>