-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep2.html.php
66 lines (64 loc) · 2.08 KB
/
step2.html.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
<?php ob_start();
include 'step2.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Bevestiging</title>
<?php include 'header.php' ?>
</head>
<body>
<?php include 'menu.php' ?>
<div class="container">
<div class="row-fluid">
<div class="span12">
<h1>Bevestiging</h1>
<h2>Verzend adres</h2>
<address>
<strong><?= $naam ?></strong><br />
<?= $straat . " " . $huisnr ?><br />
<?= $postcode . " " . $stad ?><br />
</address>
<h2>Artikelen</h2>
<table class="table table-hover">
<thead>
<tr>
<th>Productnaam</th>
<th>Prijs</th>
<th>Aantal</th>
<th>Total prijs</th>
</tr>
</thead>
<tbody>
<?
$count = 0;
if($items != null && isset($items)) {
foreach ($items as $product) {
$count += (int)$product->quantity * (int)$product->price;
?>
<tr>
<td><?= $product->productName ?></td>
<td>€<?= (int)$product->price ?></td>
<td><?= $product->quantity ?></td>
<td>€<?= (int)$product->quantity * (int)$product->price ?></td>
</tr>
<?
}
}
?>
<tr>
<td colspan="2"></td>
<td><strong>Totaal</strong></td>
<td>€<?= $count ?></td>
</tr>
</tbody>
</table>
<a type="button" id="back_button" class="btn btn-danger btn-large" >
<i class="icon-backward icon-white"></i> Terug</a>
<a type="button" class="btn btn-success btn-large" href="thankyou.html.php">
<i class="icon-ok icon-white"></i> bevestig aankoop</a>
</div>
</div>
</div>
</body>
</html>