-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreport.php
57 lines (52 loc) · 1.97 KB
/
report.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
<?php include 'partials/header.php'; ?>
<?php
include("partials/PDO/Db.class.php");
$db = new Db();
$invoices = $db->query("SELECT * FROM invoices");
?>
<!-- .report -->
<div class="report">
<!-- .report__head -->
<header class="report__head">
<h1 class="report__title">Relatório de Pagamentos</h1>
</header>
<!-- /.report__head -->
<!-- .report__body -->
<div class="report__body">
<!-- .report-table -->
<table class="report-table">
<thead>
<tr>
<th>ID</th>
<th>Data</th>
<th>Data Expiry</th>
<th>Valor em Bitcoin</th>
<th>Valor em BRL</th>
<th>Nota</th>
<th>Confirmações</th>
<th>Endereço BTC</th>
</tr>
</thead>
<tbody>
<?php foreach ($invoices as $key) : ?>
<tr>
<td><?php echo $key["invoice_id"]; ?></td>
<td><?php echo $key["invoice_date"]; ?></td>
<td><?php echo $key["invoice_date_expiry"]; ?></td>
<td><?php echo $key["invoice_btc_value"]; ?> BTC</td>
<td><?php echo $key["invoice_fiat"]; ?> <?php echo $key["invoice_fiat_value"]; ?></td>
<td></td>
<td></td>
<td>
<a href="invoice.php?id=<?php echo $key["invoice_id"]; ?>"><?php echo $key["invoice_address"]; ?></a>
</td>
</tr>
<?php endForeach; ?>
</tbody>
</table>
<!-- /.report-table -->
</div>
<!-- /.report__body -->
</div>
<!-- /.report -->
<?php include 'partials/footer.php'; ?>