-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
166 lines (112 loc) · 4.13 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
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
<?php
session_start();
include("includes/db.php");
include("functions/functions.php");
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sliet store</title>
<link rel="stylesheet" href="styles/style.css" media="all" />
</head>
<body>
<!--main container starts-->
<div class="main_wrapper">
<!--header starts here-->
<div class="header_wrapper">
<a href="index.php" style="text-decoration:none;"><h1 style="color:#F00; padding:10px; font-size:65px; border:solid black; text-align:center; font-style:normal; ">Worldmela.com<h1></a>
</div>
<!--header ends-->
<!--navagation bar start-->
<div id="navbar">
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="all_products.php">All Products</a></li>
<?php
if(isset($_SESSION['customer_email'])){
echo"<li><a href='customer/my_account.php'>My Account</a></li>";
}
else {
echo "<a href='checkout.php' style='color:#white;'>Login</a>";
}
?>
<?php
if(isset($_SESSION['customer_email'])){
echo"<span style='display:none'> <li><a href='../user_register.php'>Sign Up</a></li></span>";
}
else {
echo " <li><a href='customer_register.php'>Sign Up</a></li>";
}
?>
<li><a href="cart.php">Shopping Cart</a></li>
<li><a href="contact.php">Contact Us</a></li>
</ul>
<div id="form">
<form method="get" action="results.php" enctype="multipart/form-data">
<input type="text" name="user query" placeholder="search a product"/>
<input type="submit" name="search" value="search"/>
</form>
</div>
</div>
<!--navagation bar ends-->
<div class="content_wrapper">
<!-- leftside_war start-->
<div id="left_sidebar">
<div id="sidebar_title" align="center">Categories </div>
<ul id="cats">
<?php getCats(); ?>
</ul>
<div id="sidebar_title" align="center">Brands</div>
<ul id="cats">
<?php getBrands(); ?>
</ul>
</div>
<!--left_sidebae ends-->
<!--right content start-->
<div id="right_content">
<?php
cart();
?>
<div id="headline">
<div id="headline_content">
<?php
if(!isset($_SESSION['customer_email'])){
echo "<b>Welcome Gust!</b>";
}
else{
echo "<span style='color:yellow'><b>Welcome:</span>".$_SESSION['customer_email']."</b>";
}
?>
<b style="color:yellow">Shoping Cart</b>
<span> - Total Items: <?php items() ?> - Total Price: <?php total_price(); ?> - <a href="cart.php" style="color:#FF0;">Go to cart</a>
<?php
if(!isset($_SESSION['customer_email'])){
echo "<a href='checkout.php' style='color:#FF3;'>Login</a>";
}
else {
echo "<a href='logout.php' style='color:#FF3;'>Logout</a>";
}
?> </span>
</div>
</div>
<div id="product_box">
<?php
getPro();
getCatPro();
getbrandPro();
?>
</div>
</div>
</div>
<!--right content ends-->
<!--footer starts-->
<div class="footer">
<h1 style="color:#FFF; padding-top:30px; text-align:center;">©2018-By www.worldmela.com</h1>
<h2 style="color:#FFF; padding-bottom:10px; text-align:right; margin-right:10px;"><b>Developed By Ajay Kumar</b></h2>
</div>
<!--footer ends-->
</div>
<!--main container end-->
</body>
</html>