1
0

De kleurtjes

This commit is contained in:
Daniel Boutros
2017-03-30 15:22:51 +02:00
parent ffe56bcf9b
commit fff00893aa
2 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,14 @@
<?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;
}
@ -14,7 +22,8 @@
<?php
foreach ($rekeningen as $rekening) {
?>
<tr onclick="DoNav('transacties.phtml');">
<tr onmouseover="ChangeColor(this, true);"
onmouseout="ChangeColor(this, false);" onclick="DoNav('transacties.phtml');">
<td><?php echo $rekening['iban']; ?></td>
<td><?php echo $rekening['saldo']; ?></td>
<td><?php echo "&euro;" . $rekening['nr']; ?></td>