1
0
This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
informaticaD4P-2017/templates/transacties.phtml

47 lines
1.1 KiB
PHTML
Raw Normal View History

2017-03-29 14:47:24 +00:00
<?php include '__header.phtml'; ?>
2017-03-30 17:04:14 +00:00
<?php
if (!$rekening) {
?>
2017-03-29 14:47:24 +00:00
Fout: niet jouw eigen rekening.
<?php
2017-03-30 17:04:14 +00:00
} else {
?>
<a href="overboeking">Nieuwe overboeking</a><br/><br/>
2017-03-29 14:47:24 +00:00
Saldo: <?php echo $rekening['saldo']?><br/>
2017-03-31 15:22:57 +00:00
<table class="table">
<tr>
<th>Datum</th>
<th>Type</th>
<th>Omschrijving</th>
<th>IBAN</th>
<th>AF/BIJ</th>
<th>Bedrag</th>
</tr>
2017-03-30 17:04:14 +00:00
<?php
foreach ($transacties as $transactie) {
2017-03-31 15:22:57 +00:00
if(!isset($transactie['omschrijving'])){
$transactie['omschrijving'] = "";
}
echo "<tr>";
echo "<td></td>";
echo "<td>" . $transactie['type'] . "</td>\n";
echo "<td>" . $transactie['omschrijving'] . "</td>\n";
if($transactie['van'] === $rekening['iban']){
echo "<td>" . $transactie['naar'] . "</td>\n";
echo "<td>AF</td>\n";
}else{
echo "<td>" . $transactie['van'] . "</td>\n";
echo "<td>BIJ</td>\n";
}
echo "<td>€" . $transactie['bedrag'] . "</td>\n";
echo "</tr>";
2017-03-30 17:04:14 +00:00
} ?>
2017-03-31 15:22:57 +00:00
</table>
2017-03-29 14:47:24 +00:00
<?php
2017-03-30 17:04:14 +00:00
2017-03-29 14:47:24 +00:00
}
?>
<?php include '__footer.phtml'; ?>