Transactietabel
This commit is contained in:
parent
dea9ff308f
commit
497bf5ce24
@ -10,13 +10,35 @@ Fout: niet jouw eigen rekening.
|
|||||||
?>
|
?>
|
||||||
<a href="overboeking">Nieuwe overboeking</a><br/><br/>
|
<a href="overboeking">Nieuwe overboeking</a><br/><br/>
|
||||||
Saldo: <?php echo $rekening['saldo']?><br/>
|
Saldo: <?php echo $rekening['saldo']?><br/>
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<th>Datum</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Omschrijving</th>
|
||||||
|
<th>IBAN</th>
|
||||||
|
<th>AF/BIJ</th>
|
||||||
|
<th>Bedrag</th>
|
||||||
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
foreach ($transacties as $transactie) {
|
foreach ($transacties as $transactie) {
|
||||||
echo "<pre>";
|
if(!isset($transactie['omschrijving'])){
|
||||||
echo json_encode($transactie);
|
$transactie['omschrijving'] = "";
|
||||||
echo "<br/></pre>";
|
}
|
||||||
|
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>";
|
||||||
} ?>
|
} ?>
|
||||||
|
</table>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user