This repository was archived by the owner on Jul 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevisd.php
More file actions
43 lines (42 loc) · 1.4 KB
/
devisd.php
File metadata and controls
43 lines (42 loc) · 1.4 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
<?php
require_once(".classes/clients.php");
require_once(".classes/commandes.php");
require(".data/php/controle.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>----- Devis ------</title>
<link rel="stylesheet" type="text/css" href=".data/css/styles2.css">
</head>
<body>
<?php require(".data/php/menu_principal.php");?>
<div id="devis">
<img class="devis_png" src=".data/img/devis.png">
<div class="box">
<p>Nom : <?= $_SESSION["client"]->getNom();?> </p>
<p>Prénom : <?= $_SESSION["client"]->getPrenom();?></p>
<p>Adresse : <?= $_SESSION["client"]->getAdr();?></p>
<p>Planche choisis : <?= $_SESSION["commandes"]->getMat();?></p>
<p>Prix : <?= $_SESSION["commandes"]->getPrix($_POST);?></p>
<table border="1">
<?php foreach($_SESSION["commandes"]->getProduits() as $produits) : ?>
<tr>
<?php foreach($produits as $produit) : ?>
<td><?= $produit; ?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
</div>
<form action="recap" method="post" accept-charset="utf-8">
<input type="submit" value="Valider">
<input type="hidden" name="x" value="<?=$_POST['x'];?>">
<input type="hidden" name="y" value="<?=$_POST['y'];?>">
<input type="hidden" name="w" value="<?=$_POST['w'];?>">
<input type="hidden" name="h" value="<?=$_POST['h'];?>">
<button><a href="javascript:history.go(-1)">Retour</a></button>
</form>
</div>
</body>
</html>