-
Notifications
You must be signed in to change notification settings - Fork 0
/
sp.php
executable file
·135 lines (130 loc) · 4.79 KB
/
sp.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
<?php
session_start();
include 'controller/c_u_shopall.php';?>
<!DOCTYPE html>
<html lang="en">
<?php include'script_user.php';?>
<body>
<div class="site-wrap">
<?php include 'links.php';?>
<div class="bg-light py-3">
<div class="container">
<div class="row">
<div class="col-md-12 mb-0"><a href="index.php">Home</a> <span class="mx-2 mb-0">/</span> <strong class="text-black">Store</strong></div>
</div>
</div>
</div>
<div class="site-section">
<div class="container">
<form>
<div class="row">
<div class="col-lg-12" style="margin-bottom: 5%;">
<h3 class="mb-3 text-uppercase text-black" style="width: 15%; margin-left: 20%; float: left;">Search: </h3>
<input type="text" name="text" class="form-control" style="width: 30%; float: left;margin-right: 3%"/>
<input type="Submit" name="search" class="btn btn-primary btn-lg btn-block" style="width: 10%;"/>
</div>
</div>
</form>
<div class="row">
<?php
if(isset($_REQUEST['search']))
{
if(empty($val))
{
?>
<h3>Product Not Found</h3>
<?php
}
else
{
foreach ($val as $value) {
?>
<div class="col-sm-6 col-lg-4 text-center item mb-4">
<div>
<a href="shop-single.php?sid=<?php echo $value->p_id; ?>">
<img src="admin/productimg/<?php echo $value->image; ?>" height="200px" width="200px"alt="Image" /></a>
<h3 cl ass="text-dark"><a href="shop-single.php?sid=<?php echo $value->p_id; ?>">
<?php echo $value->p_name; ?></a></h3>
<p class="price">Rs/-<?php echo $value->p_price; ?></p>
</div>
</div>
<?php
}
}
}
else
{
if(empty($sel))
{
?>
<h3>Product is Empty</h3>
<?php
}
else
{
foreach ($sel as $value) {
?>
<div class="col-sm-6 col-lg-4 text-center item mb-4">
<div>
<a href="shop-single.php?sid=<?php echo $value->p_id; ?>">
<img src="admin/productimg/<?php echo $value->image; ?>" height="200px" width="200px"alt="Image" /></a>
<h3 cl ass="text-dark"><a href="shop-single.php?sid=<?php echo $value->p_id; ?>">
<?php echo $value->p_name; ?></a></h3>
<p class="price">Rs/-<?php echo $value->p_price; ?></p>
</div>
</div>
<?php
}
}
}
?>
</div>
<div class="row mt-5">
<div class="col-md-12 text-center">
<div class="site-block-27">
<ul>
<li><a href="#"><</a></li>
<li class="active"><span>1</span></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="site-section bg-secondary bg-image" style="background-image: url('images/bg_2.jpg');">
<div class="container">
<div class="row align-items-stretch">
<div class="col-lg-6 mb-5 mb-lg-0">
<a href="#" class="banner-1 h-100 d-flex" style="background-image: url('images/bg_1.jpg');">
<div class="banner-1-inner align-self-center">
<h2>Pharma Products</h2>
</div>
</a>
</div>
<div class="col-lg-6 mb-5 mb-lg-0">
<a href="#" class="banner-1 h-100 d-flex" style="background-image: url('images/bg_2.jpg');">
<div class="banner-1-inner ml-auto align-self-center">
<h2>Rated by Experts</h2>
</div>
</a>
</div>
</div>
</div>
</div>
<?php include'footer_user.php';?>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/main.js"></script>
</body>
</html>