-
Notifications
You must be signed in to change notification settings - Fork 1
/
ajouter.php
88 lines (76 loc) · 2.6 KB
/
ajouter.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
<?php
session_start();
require_once "functions/index.function.php";
$produits=getProduits();
?>
<!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>
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1">
<h5 class="display-5">Order Food Item </h5>
<hr>
<form method="post" action="panier.php" >
<input name="libelle" id="libelle" type="hidden">
<div class="form-group">
<label> Produit</label>
<select id="produit" name="idProduit" class="form-control" >
<option value="0">-Select-</option>
<?php foreach ($produits as $p) { ?>
<option value="<?=$p['id_produit'].'-'.$p['prix']?>" > <?=$p['libelle']?> </option>
<?php } ?>
</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>
<div class="form-group">
<button name="submit" id="submit" type="submit" class="btn btn-primary"> Ajouter</button>
<a href="index.php" ><button type="button" class="btn btn-outline-warning ml-2"> Retour</button></a>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/myScript.js"></script>
</body>
</html>