-
Notifications
You must be signed in to change notification settings - Fork 0
/
products.php
101 lines (73 loc) · 2.25 KB
/
products.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
<?php
include './connect.php';
include './components/header.php';
?>
<!--EN PLUS-->
<section id="PRODUCT">
<h3 class="product-title">Tous les produits</h3>
<div class="product-and-filter">
<div class="filter">
<h2>Filtre</h2>
<ul>
<li>Vetement</li>
<li>Chaussures</li>
<li>Bijoux</li>
<li>Cosmetiques</li>
</ul>
</div>
<div class="all-product">
<div class="product-container">
<?php
$result = mysqli_query($connection, "Select * from `produits`");
if ($result) {
while ($row = mysqli_fetch_assoc($result)) {
echo '<div class="product ">
<div class="product-img">
<img src=' . 'imagedoc/' . $row['image1'] . ' alt="" class="front-img" />
<img src=' . 'imagedoc/' . $row['image2'] . ' alt="" class="rear-img" />
<div class="product-img-icons">
<i class="fa-regular fa-heart"></i>
<i class="fa-solid fa-magnifying-glass"></i>
<a href="detail.php?detail_id=' . $row['id_produit'] . '"><i class="fa-regular fa-eye"> </i></a>
<i class="fa-solid fa-basket-shopping"></i>
</div>
</div>
<div class="product-infos">
<h5 class="product-infos-title">' . $row['nom'] . '</h5>
<h6 class="product-infos-subname">' . $row['description'] . '</h6>
<div class="product-icons">
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-regular fa-star"></i>
<i class="fa-regular fa-star"></i>
</div>
<div class="product-price">
<p class="product-promo">' . $row['prix'] . ' FCFA</p>
<p class="product-real-price">35000 FCFA</p>
</div>
</div>
</div>';
}
}
?>
</div>
<!-- image preview modal -->
<div id="preview-modal-overlay">
<div id="preview-box">
<span id="modal-close-btn">
<i class="fa-solid fa-xmark"></i>
</span>
<img src="" alt="" />
<p class="principetext"></p>
</div>
</div>
</div>
</div>
</section>
<!--FOOTER-->
<?php
include './components/footer.php';
?>
</body>
</html>