-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
220 lines (148 loc) · 8.07 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
<?php
$active='Home';
include('includes/header.php');
?>
<div class="container" id="slider"><!-- container Begin -->
<div class="col-md-12"><!-- col-md-12 Begin -->
<div class="carousel slide" id="myCarousel" data-ride="carousel"><!-- carousel slide Begin -->
<ol class="carousel-indicators"><!-- carousel-indicators Begin -->
<li class="active" data-target="#myCarousel" data-slide-to="0"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol><!-- carousel-indicators Finish -->
<div class="carousel-inner"><!-- carousel-inner Begin -->
<?php
$get_slides = "select * from slider LIMIT 0,1";
$run_slides = mysqli_query($con,$get_slides);
while($row_slides=mysqli_fetch_array($run_slides)){
$slide_name = $row_slides['slide_name'];
$slide_image = $row_slides['slide_image'];
echo "
<div class='item active'>
<img src='admin-dashboard/slides_images/$slide_image'>
</div>
";
}
$get_slides = "select * from slider LIMIT 1,3";
$run_slides = mysqli_query($con,$get_slides);
while($row_slides=mysqli_fetch_array($run_slides)){
$slide_name = $row_slides['slide_name'];
$slide_image = $row_slides['slide_image'];
echo "
<div class='item'>
<img src='admin-dashboard/slides_images/$slide_image'>
</div>
";
}
?>
</div><!-- carousel-inner Finish -->
<a href="#myCarousel" class="left carousel-control" data-slide="prev"><!-- left carousel-control Begin -->
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a><!-- left carousel-control Finish -->
<a href="#myCarousel" class="right carousel-control" data-slide="next"><!-- left carousel-control Begin -->
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a><!-- left carousel-control Finish -->
</div><!-- carousel slide Finish -->
</div><!-- col-md-12 Finish -->
</div><!-- container Finish -->
<div class="container">
<h2>Our Features</h2>
<div class="card-deck row">
<div class="card bg-primary col-md-3 shadow">
<div class="card-body text-center">
<p class="card-text"><h3><b>Ease of Use</b></h3></p><br>
<p class="card-text">Creating shopping categories</p><br>
<p class="card-text">Adding filters</p>
<p class="card-text">Incorporating comparison capabilities</p>
</div>
</div>
<div class="card bg-warning col-md-3 shadow">
<div class="card-body text-center">
<p class="card-text"><h4><b>Site Speed</b></h4></p>
<p class="card-text">Site speed is an indicator of an easy to use website and draws a lot of parallels with the ability to convert visitors. Online sellers literally have seconds to make a sale as shrinking attention spans influences e-commerce purchasing behavior.</p>
</div>
</div>
<div class="card bg-success col-md-3">
<div class="card-body text-center">
<p class="card-text"><h4><b>Mobile Friendly</b></h4></p>
<p class="card-text">People spend more than half their time on mobile phones (compared to computers), a trend that also applies to online shopping. If you still think that optimizing for mobile is optional—don’t. Google will penalize sites that aren’t optimized for mobile.</p>
</div>
</div>
<div class="card bg-danger col-md-3">
<div class="card-body text-center">
<p class="card-text"><h4><b>Related Items</b></h4></p>
<p class="card-text">As an online entrepreneur, your primary motivation for starting an e-commerce store might have something to do with earning money. Even if it’s #2 or #3 on your list of motivations, earning money is still important to keeping your business afloat.</p>
</div>
</div>
</div>
</div>
</div><!-- advantages ends -->
<div id="hot">
<div class="container">
<div class="col-md-12">
<h2> Latest Products</h2>
</div>
</div>
</div>
<!-- Hot div ends-->
<div id="content" class="container"><!-- container Begin -->
<div class="row" style="margin:10px;">
<?php
global $con;
$getproduct = "select * from products order by 1 desc limit 0,8";
$runproduct = mysqli_query($con,$getproduct);
while($rowproduct = mysqli_fetch_array($runproduct))
{
$product_title = $rowproduct['product_title'];
$product_price = $rowproduct['product_price'];
$product_keywords = $rowproduct['product_keywords'];
$product_id = $rowproduct['product_id'];
$product_img1 = $rowproduct['product_img1'];
$product_img2 = $rowproduct['product_img2'];
$pro_id = $rowproduct['product_id'];
$product_color = $rowproduct['product_color'];
$product_company = $rowproduct['product_company'];
echo "
<div class='col-md-3 col-sm-6'>
<div class='product-grid4'>
<div class='product-image4'>
<a href='#''>
<img class='pic-1' src='admin-dashboard/product_images/$product_img1'>
<img class='pic-2' src='admin-dashboard/product_images/$product_img2'>
</a>
<ul class='social'>
<li><a href='details.php?pro_id=$pro_id' data-tip='Add to Cart'><i class='fa fa-shopping-cart'></i></a></li>
</ul>
<span class='product-new-label'>New</span>
<span class='product-discount-label'>-10%</span>
</div>
<div class='product-content'>
<h3 class='title'><a href='#'>$product_title</a></h3>
<div class='price'>
Rs. $product_price
<span>10%</span>
</div>
<a class='add-to-cart' href='details.php?pro_id=$pro_id'>ADD TO CART</a>
</div>
</div>
</div>
";
}
?>
<br>
<br><br>
</div>
</div>
<?php
include("footer.php");
?>
<script src="js/jquery-331.min.js">
</script>
<script src="js/bootstrap-337.min.js">
</script>
</body>
</head>
</html>