forked from pawel-zawadzki/ibd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzamowienia.historia.php
45 lines (35 loc) · 980 Bytes
/
zamowienia.historia.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
<?php
include 'header.php';
use Ibd\Zamowienia;
$zamowienia = new Zamowienia();
$lista_zamowien = $zamowienia->pobierzZamowienia();
//var_dump($lista_zamowien);
?>
<h1>Historia zamowień</h1>
<table class="table table-striped table-condensed" id="zamowienia">
<thead>
<tr>
<th> </th>
<th>Nr zamówienia</th>
<th>Data zamówienia</th>
<th>Status</th>
<th>Suma PLN</th>
<th>Liczba książek</th>
<th> </th>
</tr>
</thead>
<?php foreach ($lista_zamowien as $lz): ?>
<tbody>
<tr>
<td></td>
<td><?= $lz['id'] ?></td>
<td><?= $lz['data_dodania']?></td>
<td><?= $lz['status']?></td>
<td><?= $lz['suma'] ?></td>
<td><?= $lz['liczba_ksiazek'] ?></td>
<td></td>
</tr>
</tbody>
<?php endforeach; ?>
</table>
<?php include 'footer.php'; ?>