Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/Application/Overboeking.php # src/Application/Transacties.php
This commit is contained in:
@ -1,25 +1,19 @@
|
||||
<?php include '__header.phtml'; ?>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>IBAN</th>
|
||||
<th>Saldo</th>
|
||||
<th>Rekeningtype</th>
|
||||
<th>Rente</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($rekeningen as $rekening) {
|
||||
?>
|
||||
<tr class="clickable" onclick="document.location.href = 'rekeningen/<?php echo $rekening['nr'] ?>'">
|
||||
<td><?php echo $rekening['iban']; ?></td>
|
||||
<td><?php echo "€" . $rekening['saldo']; ?></td>
|
||||
<td><?php echo $rekening['naam']; ?></td>
|
||||
<td><?php echo $rekening['rente']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
<h2 class="page-header">Mijn rekeningen<a class="btn btn-default pull-right" href="overboeking" role="button">Nieuwe overboeking</a></h2>
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
foreach ($rekeningen as $rekening) {
|
||||
?>
|
||||
<a class="clickable" onclick="document.location.href = 'rekeningen/<?php echo $rekening['nr'] ?>'"><div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h4><?php echo $rekening['naam']; ?><span class="pull-right big"><?php echo money_format('%(#1n', $rekening['saldo']); ?></span></h4>
|
||||
<p><?php echo $rekening['iban']; ?></p>
|
||||
</div>
|
||||
</div></a>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<?php include '__footer.phtml'; ?>
|
||||
|
@ -2,73 +2,39 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>InforBank - Inloggen</title>
|
||||
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
|
||||
<title>Inforbank</title>
|
||||
<link rel="stylesheet" href="<?= $base ?>/assets/css/login.css">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous" -->
|
||||
<base href="<?= $base ?>">
|
||||
</head>
|
||||
<style>
|
||||
.form-signin {
|
||||
max-width: 330px;
|
||||
padding: 15px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #ff6000;
|
||||
background-color: #2e652c;
|
||||
border-color: #2e6da4;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.form-control{
|
||||
margin: 5px 0;
|
||||
}
|
||||
body{
|
||||
color: #ff6000;
|
||||
}
|
||||
html, body{
|
||||
height: 100%;
|
||||
}
|
||||
.logo{
|
||||
display: block;
|
||||
}
|
||||
.full{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.formdiv{
|
||||
background-color: #AAAAAA;
|
||||
height: 100%;
|
||||
padding: 10% 0 0 70px;
|
||||
}
|
||||
.appinfodiv{
|
||||
background-color: #DDDDDD;
|
||||
height: 100%;
|
||||
padding: 10% 0 0 70px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="full">
|
||||
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 appinfodiv">
|
||||
<img class="logo" alt="logo" src="assets/logo.png"/>
|
||||
<h3>Welkom bij de InforBank</h1>
|
||||
Bij InforBank krijg je zelfs 10% rente op betaalrekeningen.<br/><br/>
|
||||
Je kunt bij InforBank ook online betalen.<br/><br/>
|
||||
BIC: INFONL2N
|
||||
<div class="col-md-6 appinfodiv">
|
||||
<div>
|
||||
<img class="logo" alt="logo" src="assets/logo.png"/>
|
||||
<h3>Welkom bij de InforBank</h1>
|
||||
Bij InforBank krijg je zelfs 10% rente op betaalrekeningen.<br/><br/>
|
||||
Je kunt bij InforBank ook online betalen.<br/><br/>
|
||||
BIC: INFONL2N
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 formdiv">
|
||||
<form class="form-signin" method="post">
|
||||
<h2 class="form-signin-heading">Inloggen</h2>
|
||||
<label for="inputUsername" class="sr-only">Rekeningnummer (alleen cijfers)</label>
|
||||
<input type="text" id="inputUsername" name="rekeningnr" class="form-control" placeholder="012456789"/>
|
||||
<div class="col-md-6 formdiv">
|
||||
<div class="loginmodal-container">
|
||||
<h1>Inloggen bij de Inforbank</h1><br>
|
||||
<?php if ($error) {
|
||||
?>
|
||||
<div class="alert alert-warning" role="alert">De ingevulde gegevens zijn incorrect. Probeer het opnieuw.</div><br/>
|
||||
<?php
|
||||
|
||||
<label for="inputPassword" class="sr-only">Pascode</label>
|
||||
<input type="password" id="inputPassword" name="pascode" class="form-control" placeholder="0000"/>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Inloggen</button>
|
||||
</form>
|
||||
</div>
|
||||
} ?>
|
||||
<form method="post" action="">
|
||||
<input type="text" name="rekeningnr" placeholder="Rekeningnummer (alleen cijfers)">
|
||||
<input type="password" name="pascode" placeholder="Pascode">
|
||||
<input type="submit" name="login" class="login loginmodal-submit" value="Login">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -3,43 +3,65 @@
|
||||
<?php
|
||||
if (!$rekening) {
|
||||
?>
|
||||
Fout: niet jouw eigen rekening.
|
||||
|
||||
<div class="alert alert-danger" role="alert"><b>Fout!</b> Dit is niet een aan jouw account gekoppelde rekening.</div>
|
||||
<?php
|
||||
|
||||
} else {
|
||||
?>
|
||||
<a href="overboeking">Nieuwe overboeking</a><br/><br/>
|
||||
Saldo: <?php echo $rekening['saldo']?><br/>
|
||||
|
||||
<h2 class="page-header">Transactieoverzicht<a class="btn btn-default pull-right" href="overboeking" role="button">Nieuwe overboeking</a></h2>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
IBAN/rekeningnummer<br/>
|
||||
<h4><?php echo $rekening['iban']?></h4>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">Rentetarief<br/>
|
||||
<h4><?php echo $rekening['rente']; ?>%</h4>
|
||||
</div>
|
||||
<div class="col-md-2">Saldo<br/>
|
||||
<h4><b><?php echo money_format('%(#1n', $rekening['saldo']); ?></b></h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Type</th>
|
||||
<th>Code</th>
|
||||
<th>Omschrijving</th>
|
||||
<th>IBAN</th>
|
||||
<th>Tegenrekening</th>
|
||||
<th>AF/BIJ</th>
|
||||
<th>Bedrag</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($transacties as $transactie) {
|
||||
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>";
|
||||
}
|
||||
?>
|
||||
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>" . money_format('%(#1n', $transactie['bedrag']) . "</td>\n";
|
||||
echo "</tr>";
|
||||
} ?>
|
||||
</table>
|
||||
<br/>
|
||||
<small>ba = betaalautomaat, bg = bankgiro/SEPA opdracht, id = Inforbank Direct Online Betalen (iDeal), sp = spoedbetaling</small>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user