This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.php
302 lines (258 loc) · 8.54 KB
/
product.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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<?php
require($_SERVER['DOCUMENT_ROOT'] . "/athome/product/link.php");
$idpiece = $_GET['id'];
$error = false;
if (!isset($_GET['id'])){
$error = true;
header('Location: error.php');
}
$current = pieceModel::getPiece($idpiece);
//var_dump($current);
if(!isset($current->price)){
$error = true;
header('Location: error.php');
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ATHome - [MEUBLE]</title>
<link rel="stylesheet" href="css/style.css"/>
<link rel="icon" type="image/png" href="res/icons/logo.ico" />
<script type="text/javascript" src="res/vendors/jquery.min.js">
</script>
</head>
<body class="page-product">
<?php include('res/parts/nav.php'); ?>
<div class="slider">
<div class="popup">
<div class="overlay"></div>
<div class="inner">
<img src="res/img/architecture-2558994_1920.jpg"/>
</div>
</div>
<div class="overlay">
<div class="inner">
<h2 class="slogan"></h2>
</div>
<img class="previous" src="res/icons/ic_keyboard_arrow_left_white_24px.svg"/>
<img class="next" src="res/icons/ic_keyboard_arrow_right_white_24px.svg"/>
<img class="zoom" src="res/icons/ic_search_white_24px.svg"/>
<div class="pagination">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
</div>
<main class="block-main">
<div class="inner">
<!-- Price title and add -->
<div class="row">
<div class="inner">
<div class="card">
<div class="inner">
<div class="item title">
<h2><?php echo($current->label); ?></h2>
<h3><?php echo($current->brand . " " . $current->ref); ?></h3>
</div>
<div class="item price">
<div class="price">
<h1><?php echo($current->price); ?><span>€</span></h1>
</div>
</div>
<div class="item add">
<?php
$add = new Button("Ajouter", '');
$add->click = '';
echo($add->getOutput());
?>
</div>
</div>
</div>
</div>
</div>
<div class="row comment-descr" style="display: none;">
<div class="inner">
<!-- Tabs comment & descr -->
<div class="systeme_onglets">
<div class="onglets">
<span class="onglet_0 onglet" id="onglet_quoi" onclick="javascript:change_onglet('quoi');">Quoi</span>
<span class="onglet_0 onglet" id="onglet_qui" onclick="javascript:change_onglet('qui');">Qui</span>
<span class="onglet_0 onglet" id="onglet_pourquoi" onclick="javascript:change_onglet('pourquoi');">Pourquoi</span>
</div>
<div class="contenu_onglets">
<div class="contenu_onglet" id="contenu_onglet_quoi">
<h1 class="h1">Quoi?</h1>
Un simple système d'onglet utilisant les technologies:<br />
<ul class="ul">
<li>(X)html</li>
<li>CSS</li>
<li>Javascript</li>
</ul>
</div>
<div class="contenu_onglet" id="contenu_onglet_qui">
<h1 class="h1">Qui?</h1>
C'est un script réalisé par Ybouane,<br />
Webmaster du site <a href="http://www.supportduweb.com/">http://www.supportduweb.com/</a>
</div>
<div class="contenu_onglet" id="contenu_onglet_pourquoi">
<h1 class="h1">Pourquoi?</h1>
Pour simplifier la navigation et la diviser en parties
</div>
</div>
</div>
<!-- <div class="content-tab">
<ul class="tabs">
<li class="tab">
<div class="inner">
<p>Description</p>
</div>
</li>
<div class="separator"></div>
<li class="tab">
<div class="inner">
<p>Avis client (2)</p>
</div>
</li>
</ul>
</div>-->
<ul class="list-comment">
<li class="comment-item">
<div class="comment">
<div class="profile">
</div>
<div class="inner">
<div class="head">
<h3 class="name">Marie Crack</h3>
<p class="date">le 17/05/2018</p>
<div class="stars-avis">
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_half_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_border_black_24px.svg"/>
</div>
</div>
<div class="descr">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ac lacinia leo, in lobortis quam. Nulla sed volutpat erat. Phasellus porta laoreet lectus id lobortis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ut erat porta, congue mauris vitae, venenatis nisi.</p>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="inner">
<div class="add-note">
<div class="inner">
<form>
<legend>AJOUTER UN AVIS</legend>
<div class="avis">
<textarea id="note" type="text" onclick="note.value='';" >Votre commentaire...</textarea>
<div class="stars">
<p class="note_name"> Note :</p>
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_half_black_24px.svg"/>
<img class="star" src="res/icons/ic_star_border_black_24px.svg"/>
</div>
</div>
<?php
$addnote = new Button('Ajouter', '');
$addnote->setID('bt_add_note');
echo($addnote->getOutput());
?>
</form>
</div>
</div>
<!--
<div class="services">
<div class="inner">
<h3>services disponibles</h3>
<div class="list">
<div class="row">
<div class="item">
<img src="res/icons/ic_directions_car_white_24px.svg"/>
<p>Livraison</p>
</div>
<div class="item">
<img src="res/icons/ic_directions_car_white_24px.svg"/>
<p>Livraison</p>
</div>
</div>
<div class="row">
<div class="item">
<img src="res/icons/ic_directions_car_white_24px.svg"/>
<p>Livraison</p>
</div>
<div class="item">
<img src="res/icons/ic_directions_car_white_24px.svg"/>
<p>Livraison</p>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</div>
<div class="row_suggestions">
<div class="inner">
<div class="suggestions">
<div class="titre">
<h3 class="titre_suggestions">PRODUITS SIMILAIRES</h3>
</div>
<div class="produits-similaires">
<ul class="liste-produits">
<li class="produit">
<?php
$sugg1 = new Box('', "res/img/canapé-lit-mural.jpg");
$sugg1->link = "/product.php?style=asiatique";
echo($sugg1->getOutput());
?>
<p class="title">Canapé lit mural</p>
<p class="price">175 €</p>
</li>
<li class="produit">
<?php
$sugg1 = new Box('', "res/img/chaise gain de place.jpg");
$sugg1->link = "/product.php?type=chaise";
echo($sugg1->getOutput());
?>
<p class="title">Chaises empilables</p>
<p class="price">25 €</p>
</li>
<li class="produit">
<?php
$sugg1 = new Box('', "res/img/table-basse-chaises.jpg");
$sugg1->link = "/product.php?type=table";
echo($sugg1->getOutput());
?>
<p class="title">Table avec chaises emboitables</p>
<p class="price">175 €</p>
</li>
<li class="produit">
<?php
$sugg1 = new Box('', "res/img/table-placard.jpg");
$sugg1->link = "/product.php?type=table";
echo($sugg1->getOutput());
?>
<p class="title">Table murale rangeable</p>
<p class="price">35 €</p>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
<?php include('res/parts/footer.php'); ?>
<script type="text/javascript" src="script/script.js"></script>
</body>
</html>