-
Notifications
You must be signed in to change notification settings - Fork 1
/
editer.php
108 lines (91 loc) · 2.97 KB
/
editer.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
<?php
session_start();
require_once "functions/index.function.php";
$b=[];
if ($_GET['idEdit']){
foreach ($_SESSION['commandes'] as $c){
if ($c['id'] == $_GET['idEdit']){
$b=$c;
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/squall.css">
<title>Squall Gourmet</title>
</head>
<body>
<div class="jumbotron jumbotron-fluid">
<h3 class="display-4 text-center">
<img width="7%" src="assets/img/squall.ico" alt="">
<span id="squalltitle">
Squall Gourmet
</span>
</h3>
<hr>
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1">
<h5 class="display-5">Edit Command </h5>
<hr>
<form method="post" action="modifierpanier.php" >
<input name=squall value="<?=$b['id']."-".$b['prix']?>" id="libelle" type="hidden">
<div class="form-group">
<label> Produit</label>
<!-- -->
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">Libelle</div>
</div>
<input value="<?= $b['libelle'] ?>" id="produit" name="idProduit" class="form-control" readonly>
</div>
<!--
<select id="produit" name="idProduit" class="form-control" >
<option value="0">-Select-</option>
</select>
-->
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label>Prix</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">$</div>
</div>
<input id="prix" name="prix" class="form-control" readonly>
</div>
</div>
<div class="form-group col-md-6">
<label>Quantité</label>
<input id="quantite" min="1" name="quantite" type="number" class="form-control" >
</div>
</div>
<div class="form-group">
<label>Total</label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">$</div>
</div>
<input id="total" name="total" class="form-control" readonly>
</div>
</div>
<hr>
<div class="form-group">
<button name="submit" id="submit" type="submit" class="btn btn-dark"> Modifier</button>
<a href="index.php" ><button type="button" class="btn btn-outline-dark ml-2"> Retour</button></a>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/squall.js"></script>
</body>
</html>