diff --git a/src/bootstrap.php b/src/bootstrap.php index b753261..61f7fa9 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -21,6 +21,9 @@ session_start(); // Get the Slim framework settings $settings = require __DIR__ . '/settings.php'; +// Set Locale +setlocale(LC_MONETARY, 'nl_NL.UTF-8'); + // Create the Slim application object with the settings /** * ============== diff --git a/templates/transacties.phtml b/templates/transacties.phtml index 852c0e3..b902d07 100644 --- a/templates/transacties.phtml +++ b/templates/transacties.phtml @@ -3,42 +3,58 @@ + Fout: niet jouw eigen rekening. -Nieuwe overboeking

-Saldo:
+ + +
+
+
+
+ IBAN/rekeningnummer
+

+
+
Saldo
+

+
+
+ +
+
- + "; - echo ""; - echo "\n"; - echo "\n"; - if($transactie['van'] === $rekening['iban']){ - echo "\n"; - echo "\n"; - }else{ - echo "\n"; - echo "\n"; - } - echo "\n"; - echo ""; -} -?> + if (!isset($transactie['omschrijving'])) { + $transactie['omschrijving'] = ""; + } + echo ""; + echo ""; + echo "\n"; + echo "\n"; + + if ($transactie['van'] === $rekening['iban']) { + echo "\n"; + echo "\n"; + } else { + echo "\n"; + echo "\n"; + } + + echo "\n"; + echo ""; + } ?>
Datum Type OmschrijvingIBANTegenrekening AF/BIJ Bedrag
" . $transactie['type'] . "" . $transactie['omschrijving'] . "" . $transactie['naar'] . "AF" . $transactie['van'] . "BIJ€" . $transactie['bedrag'] . "
" . $transactie['type'] . "" . $transactie['omschrijving'] . "" . $transactie['naar'] . "AF" . $transactie['van'] . "BIJ" . money_format('%(#1n', $transactie['bedrag']) . "