-
Notifications
You must be signed in to change notification settings - Fork 5
/
bossy.php
216 lines (180 loc) · 7.86 KB
/
bossy.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
<?php
session_start();
include("functions/function.php");
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>SL Design</title>
<link rel="stylesheet" href="css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/m.css">
</head>
<body>
<nav class="navbar navbar-tabs nav-pills navbar-inverse">
<div class="container-fluid">
<div class="row">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse col-xm-12" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home<span class="sr-only">(current)</span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> Clothing<span class="caret"></span></a>
<ul class="dropdown-menu navbar-light">
<li><a href="#">Men</a></li>
<li><a href="#">Women</a></li>
<li><a href="#">Kids</a></li>
</ul>
</li>
<li><a href="men.php"> Men</a></li>
<li><a href="women.php"> Women</a></li> <li><a href="AboutUs.php"> About Us</a></li>
<li><a href="customers/myAccount.php"> My Account</a></li>
<li><a href="#"> Contact</a></li>
</ul>
<form class="navbar-form navbar-right" enctype="mutlipart/form-data">
<div class="form-group" method="get" action="index.php">
<input type="text" class="form-control" placeholder="Search" name="items">
</div>
<input type="submit" class="btn btn-primary" name="search" value="Search">
</form>
</div>
</div>
</div>
</nav><br>
<br><br>
<div id ="content2">
<?php
if(isset($_GET['search']))
{
$items=$_GET['items'];
$get_pro="select*from products where product_keywords like'%$items%'";
$run_pro=mysqli_query($con,$get_pro);
while($row_pro=mysqli_fetch_array($run_pro))
{
$pro_id=$row_pro['product_id'];
$pro_cat=$row_pro['product_cat'];
$pro_brand=$row_pro['product_brand'];
$pro_title=$row_pro['product_title'];
$pro_price=$row_pro['product_price'];
$pro_image=$row_pro['product_image'];
echo"<div id='single_product'>
<div class='c-btm'>
<div class='content-top1'>
<div class='container'>
<div class='col-md-3 col-md2 animated wow fadeInLeft' data-wow-delay='.5s' >
<div class='col-md1 simpleCart_shelfItem'>
<img class='img-responsive' src='admin_area/product_image/$pro_image'' width='180'height='180' alt='' />
<h3>$pro_title</h3>
<div class='price'>
<h5 class='item_price'>$pro_price</h5>
<button class='btn btn-danger'><a href='index.php?add_cart=$pro_id' class='item_add' style='color:black'>Add Cart</a></button>
<form action='details.php' method='GET' >
<input type='submit' name='details' value='More Details'/>
</form>
<div class='clearfix'> </div>
</div>
</div>
</div>
<div class='clearfix'> </div>
</div>
</div>
</div>
</div>"
;
}
}
else
{
$get_pro="select*from products where product_brand =1 order by RAND() LIMIT 0,7";
$run_pro=mysqli_query($con,$get_pro);
while($row_pro=mysqli_fetch_array($run_pro))
{
$pro_id=$row_pro['product_id'];
$pro_cat=$row_pro['product_cat'];
$pro_brand=$row_pro['product_brand'];
$pro_title=$row_pro['product_title'];
$pro_price=$row_pro['product_price'];
$pro_image=$row_pro['product_image'];
echo"<div id='single_product' height='auto'>
<h3>$pro_title</h3>
<img src='admin_area/product_image/$pro_image'' width='180'height='180' />
<h5>$pro_price</h5>
<button class='btn btn-danger'><a href='index.php?add_cart=$pro_id' class='item_add' style='color:black'>Add Cart</a></button>
<button class='btn btn-danger'><a href='details.php?pro_id=$pro_id' class='product_id' style='color:black'>view details</a></button>
</div>";}
}
?>
</div><br/><br/><br/><br/><br/><br/>
<div class="footer">
<?php
getIp();
cart();
?>
<br><br><br>
<div class="footer">
<div class="footer-bottom">
<div class="container-fluid">
<div class="row">
<div class="col-md-3 footer-bottom-cate" data-wow-delay=".5s">
<h4 style="color:white"></h4>
<ul>
<li><a href="index.php" style="color:white">Home</a></li>
<li><a href="login.php" style="color:white"><?php
if(!isset($_SESSION['User_Name']))
{
echo"<a href='checkout.php' style='color:white'>Login</a>";
}
else
{
echo"<a href='logout.php' style='color:white'>Logout</a>";
}
?> </a></li>
<li><a href="registration.php" style="color:white">Signup</a></li>
</ul>
</div>
<div class="col-md-3 footer-bottom-cate" data-wow-delay=".5s">
<h4 style="color:white">Categories</h4>
<ul>
<li><a href="men.php" style="color:white">Men</a></li>
<li><a href="women.php" style="color:white">Women</a></li>
<li><a href="kids.php" style="color:white">Kids</a></li>
</ul>
</div>
<div class="col-md-3 footer-bottom-cate animated wow fadeInRight" data-wow-delay=".5s">
<h4 style="color:white">Top Brands</h4>
<ul>
<li><a href="emerald.php" style="color:white">Emerald</a></li>
<li><a href="ebony.php" style="color:white">Ebony</a></li>
<li><a href="bossy.php" style="color:white">Bossy</a></li>
<li><a href="rough.php"style="color:white">Rough</a></li>
<li><a href="signature.php" style="color:white">Signature</a></li>
</ul>
</div>
<div class="col-lg-3 footer-bottom-cate cate-bottom animated wow fadeInRight" data-wow-delay=".5s">
<h4 style="color:white">Our Address</h4>
<ul>
<li style="color:white"><i class="glyphicon glyphicon-map-marker" aria-hidden="true"></i>Address : 04/3, Ramanathan Road, <span>Jaffna.</span></li>
<li style="color:white"><i class="glyphicon glyphicon-envelope" aria-hidden="true"></i>Email : <a href="mailto:info@example.com">info@example.com</a></li>
<li style="color:white"><i class="glyphicon glyphicon-earphone" aria-hidden="true"></i>Phone : +94212212503</li>
</ul>
</div>
<div class="clearfix"> </div>
<p class="footer-class animated wow fadeInUp animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInUp; text-align:center;color:white"> © 2016 csc UOJ</p>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>