-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
209 lines (181 loc) · 9.72 KB
/
home.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
<section id="slider"><!--slider-->
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="slider-carousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#slider-carousel" data-slide-to="0" class="active"></li>
<li data-target="#slider-carousel" data-slide-to="1"></li>
<li data-target="#slider-carousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<div class="col-sm-6">
<h1><span>E</span>-COFFEE</h1>
<h2>WINTER SALE</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
</div>
<div class="col-sm-6">
<img src="images/home/61wue5TFfTL._AC_SL1500_.jpg" class="girl img-responsive" alt="" />
</div>
</div>
<div class="item">
<div class="col-sm-6">
<h1><span>E</span>-COFFEE</h1>
<h2>DONNEZ UNE SECONDE VIE À VOS CAPSULES</h2>
<p>Avec notre programme de recyclage, nos capsules peuvent se transformer en nouveaux produits. Avec vous, notre histoire continue. </p>
</div>
<div class="col-sm-6">
<img src="images/home/rangee-capsules.jpg" class="girl img-responsive" alt="" />
</div>
</div>
<div class="item">
<div class="col-sm-6">
<h1><span>E</span>-COFFEE</h1>
<h2>Free Ecommerce Template</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
</div>
<div class="col-sm-6">
<img src="images/home/Nespresso-Citiz-2.jpg" class="girl img-responsive" alt="" />
</div>
</div>
</div>
<a href="#slider-carousel" class="left control-carousel hidden-xs" data-slide="prev">
<i class="fa fa-angle-left"></i>
</a>
<a href="#slider-carousel" class="right control-carousel hidden-xs" data-slide="next">
<i class="fa fa-angle-right"></i>
</a>
</div>
</div>
</div>
</div>
</section><!--/slider-->
<section>
<div class="container">
<div class="row">
<div class="col-sm-3">
<?php include 'sidebar.php'; ?>
</div>
<div class="col-sm-9 padding-right">
<div class="features_items"><!--features_items-->
<h2 class="title text-center">Features Items</h2>
<?php
$query = "SELECT * FROM `tblpromopro` pr , `tblproduct` p , `tblcategory` c
WHERE pr.`PROID`=p.`PROID` AND p.`CATEGID` = c.`CATEGID` AND PROQTY>0 ";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
foreach ($cur as $result) {
?>
<form method="POST" action="cart/controller.php?action=add">
<input type="hidden" name="PROPRICE" value="<?php echo $result->PROPRICE; ?>">
<input type="hidden" id="PROQTY" name="PROQTY" value="<?php echo $result->PROQTY; ?>">
<input type="hidden" name="PROID" value="<?php echo $result->PROID; ?>">
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
<img src="<?php echo web_root.'admin/products/'. $result->IMAGES; ?>" alt="" />
<h2>€ <?php echo $result->PRODISPRICE; ?></h2>
<p><?php echo $result->PRODESC; ?></p>
<button type="submit" name="btnorder" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</button>
</div>
<div class="product-overlay">
<div class="overlay-content">
<h2>€ <?php echo $result->PRODISPRICE; ?></h2>
<p><?php echo $result->PRODESC; ?></p>
<button type="submit" name="btnorder" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</button>
</div>
</div>
</div>
<div class="choose">
<ul class="nav nav-pills nav-justified">
<li>
<?php
if (isset($_SESSION['CUSID'])){
echo ' <a href="'.web_root. 'customer/controller.php?action=addwish&proid='.$result->PROID.'" title="Add to wishlist"><i class="fa fa-plus-square"></i>Add to wishlist</a></a>
';
}else{
echo '<a href="#" title="Add to wishlist" class="proid" data-target="#smyModal" data-toggle="modal" data-id="'. $result->PROID.'"><i class="fa fa-plus-square"></i>Add to wishlist</a></a>
';
}
?>
</li>
</ul>
</div>
</div>
</div>
</form>
<?php } ?>
</div><!--features_items-->
<div class="recommended_items"><!--recommended_items-->
<h2 class="title text-center">recommended items</h2>
<div id="recommended-item-carousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<?php
$query = "SELECT * FROM `tblpromopro` pr , `tblproduct` p , `tblcategory` c
WHERE pr.`PROID`=p.`PROID` AND p.`CATEGID` = c.`CATEGID` AND PROQTY>0 limit 3 ";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
foreach ($cur as $result) {
?>
<form method="POST" action="cart/controller.php?action=add">
<input type="hidden" name="PROPRICE" value="<?php echo $result->PROPRICE; ?>">
<input type="hidden" id="PROQTY" name="PROQTY" value="<?php echo $result->PROQTY; ?>">
<input type="hidden" name="PROID" value="<?php echo $result->PROID; ?>">
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
<img src="<?php echo web_root.'admin/products/'. $result->IMAGES; ?>" alt="" />
<h2>€ <?php echo $result->PRODISPRICE; ?></h2>
<p><?php echo $result->PRODESC; ?></p>
<button type="submit" name="btnorder" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</button>
</div>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
<div class="item">
<?php
$query = "SELECT * FROM `tblpromopro` pr , `tblproduct` p , `tblcategory` c
WHERE pr.`PROID`=p.`PROID` AND p.`CATEGID` = c.`CATEGID` AND PROQTY>0 limit 3,6";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
foreach ($cur as $result) {
?>
<form method="POST" action="cart/controller.php?action=add">
<input type="hidden" name="PROPRICE" value="<?php echo $result->PROPRICE; ?>">
<input type="hidden" id="PROQTY" name="PROQTY" value="<?php echo $result->PROQTY; ?>">
<input type="hidden" name="PROID" value="<?php echo $result->PROID; ?>">
<div class="col-sm-4">
<div class="product-image-wrapper">
<div class="single-products">
<div class="productinfo text-center">
<img src="<?php echo web_root.'admin/products/'. $result->IMAGES; ?>" alt="" />
<h2>€ <?php echo $result->PRODISPRICE; ?></h2>
<p><?php echo $result->PRODESC; ?></p>
<button type="submit" name="btnorder" class="btn btn-default add-to-cart"><i class="fa fa-shopping-cart"></i>Add to cart</button>
</div>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
<a class="left recommended-item-control" href="#recommended-item-carousel" data-slide="prev">
<i class="fa fa-angle-left"></i>
</a>
<a class="right recommended-item-control" href="#recommended-item-carousel" data-slide="next">
<i class="fa fa-angle-right"></i>
</a>
</div>
</div><!--/recommended_items-->
</div>
</div>
</div>
</section>