1
0

Several small fixes + removed unnecessary files

This commit is contained in:
2017-04-03 16:26:17 +02:00
parent 4bde697558
commit 8552933a52
11 changed files with 99 additions and 158 deletions

View File

@ -1,13 +1,3 @@
<?php
//De functie money_format bestaat alleen op systemen met strfmon, dus niet op Windows
//Om een foutmelding tijdens het testen te voorkomen definiëren we deze functie
//als money_format niet bestaat
if(!function_exists("money_format")){
function money_format($format, $value){
return "€ " . $value;
}
}
?>
<!DOCTYPE html>
<html>
<head>
@ -37,8 +27,9 @@ if(!function_exists("money_format")){
<div class="container">
<ul class="nv">
<li><a href="rekeningen">Rekeningen</a></li>
<li><a href="berichten">Berichten<?php if($header['klant']['ongelezen'] > 0){?>
<span class="circle"><?php echo$header['klant']['ongelezen'];?></span><?php }?></a></li>
<li><a href="berichten">Berichten<?php if ($header['klant']['ongelezen'] > 0) {
?><span class="circle"><?php echo$header['klant']['ongelezen']; ?></span><?php
}?></a></li>
</ul>
</div>
</div>

View File

@ -6,10 +6,13 @@
?>
<div class="panel panel-default">
<div class="panel-heading">
<?php if(!$bericht['gelezen']){?>
<span class="label label-info">Nieuw bericht</span>
<?php } ?>
<h3 class="panel-title"><?php echo $bericht['datum'];?></h3>
<?php if (!$bericht['gelezen']) {
?>
<span class="label label-info">Nieuw bericht</span><br/><br/>
<?php
} ?>
<h3 class="panel-title"><?php echo $bericht['datum']; ?></h3>
<small>Afzender: </small><?php echo $bericht['afzender']; ?></div>
<div class="panel-body">
<?php echo $bericht['bericht']; ?>
@ -17,6 +20,13 @@
</div>
<?php
} ?>
}
if (count($berichten) === 0) {
?>U heeft geen berichten.<?php
}
?>
<?php include '__footer.phtml'; ?>

View File

@ -1,59 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>InforBank - Inloggen</title>
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/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" -->
</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;
}
.footer{
text-align: center;
}
table {
align:center
}
</style>
<body>
<div class="jumbotron">
<div class="container">
<h1>InforBank</h1>
</div>
</div>
<div class="container">
<table style="width:50%" align="center" style="margin: 0px auto;">
<tr>
<th>Transactienummer</th>
<th>Naam Debiteur/Crediteur</th>
<th>Aan-/Afschrijving</th>
<th>Bedrag</th>
<th>Datum</th>
</tr>
</table>
</div>
<footer class="footer">
&copy 2017 Alle rechten voorbehouden
</footer>
<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>

View File

@ -14,6 +14,11 @@
<?php
}
if (count($rekeningen) === 0) {
?>U heeft geen rekeningen.<?php
}
?>
<?php include '__footer.phtml'; ?>

View File

@ -6,16 +6,21 @@ if (!$rekening) {
<div class="alert alert-danger" role="alert"><b>Fout!</b> Dit is niet een aan jouw account gekoppelde rekening.</div>
<?php
} else {
if ($geslaagd) {
?>
<div class="alert alert-info" role="alert">De transactie is geslaagd</div>
<?php
}
?>
} ?>
<h2 class="page-header">Transactieoverzicht
<a class="btn btn-default pull-right" href="overboeking" role="button">Nieuwe overboeking</a>
<a class="btn btn-default pull-right" href="statistieken/<?= $rekening['nr'] ?>" role="button">Statistieken</a></h2>
<div class="btn-group pull-right" role="group">
<a class="btn btn-default" href="statistieken/<?= $rekening['nr'] ?>" role="button">Statistieken</a>
<a class="btn btn-default" href="overboeking" role="button">Nieuwe overboeking</a>
</div>
</h2>
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
@ -63,12 +68,12 @@ if (!$rekening) {
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
}
?>
<?php include '__footer.phtml'; ?>