-
Notifications
You must be signed in to change notification settings - Fork 1
/
details_produit.php
103 lines (94 loc) · 6.89 KB
/
details_produit.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
require 'connection.php';
include ("header/header.php");
$ref = $_REQUEST['categ'];
$sql = 'SELECT * FROM produit WHERE reference like "%' . $ref . '%"' ;
$table = $connection->query($sql);
$ligne = $table->fetch();
$photo = $ligne['photo'];
$titre = $ligne['designation'];
$prix = $ligne['prix'];
?>
<div class="container-fluid detail-container">
<div class="row">
<div class="col-md-4 col-xs-12 text-center">
<div class="photo">
<?php echo "<img src='img/$photo.jpg'>";?>
</div>
<div class="previ text-center">
<?php echo "<img src='img/$photo.jpg'>";
echo "<img src='img/$photo.jpg'>";
echo "<img src='img/$photo.jpg'>";
echo "<img src='img/$photo.jpg'>";?>
</div>
</div>
<div class="col-md-5 col-sm-12 col-xs-12 description">
<br/>
<h2 style="color: green;"><?php echo "<strong>". $titre . "</strong>" ;?>
</h2>
<p class="texte-description">
<h2>Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti aut perspiciatis sit nobis quidem eveniet commodi nisi dolor! Nostrum provident voluptates quos. Ab voluptates officiis nobis placeat illo consequatur suscipit! Lorem ipsum dolor sit amet consectetur </h2>
<h2>-adipisicing elit. Beatae at totam quibusdam cupiditate nobis esse quas odio. </h2>
<h2>-Natus aut a amet ad tenetur nobis sapiente, autem consectetur odit rem fuga?</h2><p>
</div>
<div class="col-md-3 col-sm-12">
<?php echo '<a href="addbag.php?ref='.$ref.'"> <button type="button" class="btn btn-success btn-lg btn-block bouton_produit" style="border-radius:45px;height:auto;width:100%;">';?><p> <?php echo $prix ; ?>€</p></button></a>
<div class="commentaire">
<div class="row">
<div class="col-3">
</div>
<div class="col-6">
<h2 class="com_titre text-center">Commentaires</h2>
</div>
<div class="col-3"></div>
</div>
<div class="com-deroul"> <hr/>
<div class="row"><div class="col-8">
<boutton type="button" class="btn btn-secondary" style="margin-left:10px; font-size:20px; background-color:silver; color:black;">Ajouter un commentaire<boutton>
</div></div>
<div class="commentaire_cont">
<div class="row">
<div class="col-md-4">
<img src="img/user.jpg" style="height:110px;">
</div>
<div class="col-md-4" style="border-left: 1px solid gray;">
<p>Nom <br/><span style="color:gray;">poster il y a ...<span> </p>
</div><div class="col-md-4"></div></div>
<p>locale_fi ter_matchesvnuiqvqivl qilbfd</p>
</div>
<div class="commentaire_cont">
<div class="row">
<div class="col-md-4">
<img src="img/user.jpg" style="height:110px;">
</div>
<div class="col-md-4 "style="border-left: 1px solid gray;">
<p>Nom <br/><span style="color:gray;">poster il y a ...<span> </p>
</div><div class="col-md-4"></div></div>
<p>locale_filter _matchesvnuiqvq ivlqilbfd</p>
</div>
<div class="commentaire_cont">
<div class="row">
<div class="col-md-4">
<img src="img/user.jpg" style="height:110px;">
</div>
<div class="col-md-4 "style="border-left: 1px solid gray;">
<p>Nom <br/><span style="color:gray;">poster il y a ...<span> </p>
</div><div class="col-md-4"></div></div>
<p>locale_filter_matchesvnuiqvqivlqilbfd Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed corrupti illo autem assumenda ullam magni iusto dolore nihil excepturi, debitis architecto provident neque eos quibusdam omnis! Enim perferendis impedit magnam?</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function openNav() {
document.getElementById("mySidenav").style.display = "block";
}
function closeNav() {
document.getElementById("mySidenav").style.display = "none";
}
</script>
<?php
include "footer.html";
?>