-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·231 lines (226 loc) · 12.3 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?php require('top.php')?>
<!-- <div class="body__overlay"></div> -->
<!-- Start Slider Area -->
<div class="slider__container slider--one bg__cat--3">
<div class="slide__container slider__activation__wrap owl-carousel">
<!-- Start Single Slide -->
<div class="single__slide animation__style01 slider__fixed--height">
<div class="container">
<div class="row align-items__center">
<div class="col-md-7 col-sm-7 col-xs-12 col-lg-6">
<div class="slide">
<div class="slider__inner">
<h2>collection 2020</h2>
<h1>FRESH FRUITS</h1>
<div class="cr__btn">
<a href="#here">Shop Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-5 col-xs-12 col-md-5">
<div class="slide__thumb">
<img src="images/slider/fornt-img/1.png" alt="slider images">
</div>
</div>
</div>
</div>
</div>
<!-- End Single Slide -->
<!-- Start Single Slide -->
<div class="single__slide animation__style01 slider__fixed--height">
<div class="container">
<div class="row align-items__center">
<div class="col-md-7 col-sm-7 col-xs-12 col-lg-6">
<div class="slide">
<div class="slider__inner">
<h2>collection 2020</h2>
<h1>ORGANIC VEGETABLES</h1>
<div class="cr__btn">
<a href="#here">Shop Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-5 col-xs-12 col-md-5">
<div class="slide__thumb">
<img src="images/slider/fornt-img/2.png" alt="slider images" id="move">
</div>
</div>
</div>
</div>
</div>
<!-- End Single Slide -->
</div>
</div>
<!-- Start Slider Area -->
<!-- Start Category Area -->
<section class="htc__category__area ptb--100" id="here">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section__title--2 text-center">
<h2 class="title__line">New Arrivals</h2>
</div>
</div>
</div>
<div class="htc__product__container">
<div class="row">
<div class="product__list clearfix mt--30">
<?php
$get_product=get_product($con,4);
foreach($get_product as $list){
$rating = $list['Rating']
?>
<!-- Start Single Category -->
<div class="col-md-4 col-lg-3 col-sm-4 col-xs-12">
<div class="category">
<div class="ht__cat__thumb">
<a href="product.php?id=<?php echo $list['id']?>">
<img src="<?php echo PRODUCT_IMAGE_SITE_PATH.$list['image']?>" alt="product images">
</a>
</div>
<div class="fr__hover__info">
<ul class="product__action">
<li><a href="javascript:void(0)" onclick="wishlist_manage('<?php echo $list['id']?>','add')"><i class="icon-heart icons"></i></a></li>
<li><a href="javascript:void(0)" onclick="manage_cart('<?php echo $list['id']?>','add')"><i class="icon-handbag icons"></i></a></li>
</ul>
</div>
<div class="fr__product__inner">
<h4><a href="product.php?id=<?php echo $list['id']?>"><?php echo $list['name']?></a></h4>
<ul class="fr__pro__prize">
<li class="old__prize"><?php echo $list['mrp']?></li>
<li><?php echo $list['price']?></li>
</ul>
</div>
<h4>Rating: </h4>
<ul class="rating">
<?php
for ($i=0; $i < $rating; $i++) {
echo '<li><i class="icon-star icons"></i></li>';
}
for ($i=0; $i < 5-$rating; $i++) {
echo '<li class="old"><i class="icon-star icons"></i></li>';
} ?>
</div>
</div>
<!-- End Single Category -->
<?php } ?>
</div>
</div>
</div>
</div>
</section>
<!-- End Category Area -->
<!-- Start Prize Good Area -->
<section class="htc__good__sale bg__cat--3">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-12">
<div class="fr__prize__inner">
<h2>Lead a healthy life with Natural Organic</h2>
<h3>Cold processed Organic fruits</h3>
<a class="fr__btn" id="change" href="#">Read More</a>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-12">
<div class="prize__inner">
<div class="prize__thumb">
<img src="images/banner/big-img/1.png" alt="banner images">
</div>
<div class="banner__info">
<div class="pointer__tooltip pointer--3 align-left">
<div class="tooltip__box">
<h4>Apples</h4>
<p>A apple a day keeps the doctor away.Buy fresh apples</p>
</div>
</div>
<div class="pointer__tooltip pointer--4 align-top">
<div class="tooltip__box">
<h4>Watermelons</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--5 align-bottom">
<div class="tooltip__box">
<h4>Oranges</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--6 align-top">
<div class="tooltip__box">
<h4>Bananas</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--7 align-top">
<div class="tooltip__box">
<h4>Mangoes</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Prize Good Area -->
<!-- Start Product Area -->
<section class="ftr__product__area ptb--100">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section__title--2 text-center">
<h2 class="title__line">Best Seller</h2>
</div>
</div>
</div>
<div class="row">
<div class="product__list clearfix mt--30">
<?php
$get_product=get_product($con,4,'','','','','yes');
foreach($get_product as $list){
$rating = $list['Rating'];
?>
<!-- Start Single Category -->
<div class="col-md-4 col-lg-3 col-sm-4 col-xs-12">
<div class="category">
<div class="ht__cat__thumb">
<a href="product.php?id=<?php echo $list['id']?>">
<img src="<?php echo PRODUCT_IMAGE_SITE_PATH.$list['image']?>" alt="product images">
</a>
</div>
<div class="fr__hover__info">
<ul class="product__action">
<li><a href="javascript:void(0)" onclick="wishlist_manage('<?php echo $list['id']?>','add')"><i class="icon-heart icons"></i></a></li>
<li><a href="javascript:void(0)" onclick="manage_cart('<?php echo $list['id']?>','add')"><i class="icon-handbag icons"></i></a></li>
</ul>
</div>
<div class="fr__product__inner">
<h4><a href="product.php?id=<?php echo $list['id']?>"><?php echo $list['name']?></a></h4>
<ul class="fr__pro__prize">
<li class="old__prize"><?php echo $list['mrp']?></li>
<li><?php echo $list['price']?></li>
</ul>
</div>
</div>
<h4>Rating: </h4>
<ul class="rating">
<?php
for ($i=0; $i < $rating; $i++) {
echo '<li><i class="icon-star icons"></i></li>';
}
for ($i=0; $i < 5-$rating; $i++) {
echo '<li class="old"><i class="icon-star icons"></i></li>';
} ?>
</div>
<!-- End Single Category -->
<?php } ?>
</div>
</div>
</div>
</section>
<!-- End Product Area -->
<input type="hidden" id="qty" value="1"/>
<?php require('footer.php')?>