1
0
This commit is contained in:
Christiaan Goossens 2017-03-30 19:00:44 +02:00
parent 316124aa26
commit 929f1773c7

View File

@ -1,18 +1,5 @@
<?php include '__header.phtml'; ?> <?php include '__header.phtml'; ?>
<script>
function ChangeColor(tableRow, highLight) {
if (highLight) {
tableRow.style.backgroundColor = '#0094ff';
}
else {
tableRow.style.backgroundColor = 'white';
}
}
function DoNav(theUrl) {
document.location.href = theUrl;
}
</script>
<table class="table"> <table class="table">
<tr> <tr>
<th>IBAN</th> <th>IBAN</th>
@ -22,8 +9,7 @@
<?php <?php
foreach ($rekeningen as $rekening) { foreach ($rekeningen as $rekening) {
?> ?>
<tr onmouseover="ChangeColor(this, true);" <tr onclick="document.location.href = 'rekeningen/<?php echo $rekening['nr'] ?>'">
onmouseout="ChangeColor(this, false);" onclick="DoNav('transacties.phtml');">
<td><?php echo $rekening['iban']; ?></td> <td><?php echo $rekening['iban']; ?></td>
<td><?php echo $rekening['saldo']; ?></td> <td><?php echo $rekening['saldo']; ?></td>
<td><?php echo "&euro;" . $rekening['nr']; ?></td> <td><?php echo "&euro;" . $rekening['nr']; ?></td>