-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasket.php
More file actions
56 lines (51 loc) · 1.99 KB
/
basket.php
File metadata and controls
56 lines (51 loc) · 1.99 KB
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
<?php require_once("scripts/model.php")?>
<?php require_once("scripts/php_login.php")?>
<?php require_once("header.php") ?>
<!-- PANIER -->
<div class="content">
<h1>Votre Pannier</h1>
<div class="basket">
<form method="post" action="">
<div class="rowtitle">
<span class="img">Image</span>
<span class="name">Nom du produit</span>
<span class="quantity">Quantité</span>
<span class="price">Prix</span>
<span class="del">Supprimer</span>
</div>
<?php
foreach ($basket as $key=> $values){
echo "<div class=\"product\">";
echo "<img src=\"".$pictures[$key]->getLink()."\">";
echo "<span class=\"".$articles[$key]->getName()."\">";
echo "<span class=\"".$values->getQuantity()."\">";
echo"<span class=\"".$articles[$key]->getPrice()."\">";
echo"<span class=\"del\" name=\"".$articles[$key]->getId()."\" id=\"delete\" >"; //" id=\"".$article[$key]->getDel()."\">";
}
?>
<div class="product">
<img src="">
<span class="name"></span>
<span class="quantity"><input type="text" name="quantity<!-- the id of the product in the json tab-->" value="<!--the current value of the product quantity-->"></span>
<span class="price"></span>
<span class="del"><img></span>
</div>
<input type="submit" value="recalculer" >
</form>
<div>
<div><a href="shop.php"></a></div>
<div>
<div>
<p>Total:</p>
<p><!--return of the function recalc which had the param quatity and price of each product--></p>
</div>
<a href="<!--it will email the BDE staff with the whole purchase order-->">Cornfirmer vos achats</a>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<?php require_once("footer.php") ?>
<!--success: function(input){
$newtab json
};-->