-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
80 lines (75 loc) · 2.2 KB
/
index.php
File metadata and controls
80 lines (75 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
session_start();
if(!isset($_SESSION['type'])){
header('location: login.php');
}
include 'config.php';
include 'functions.php';
include 'header.php';
include 'nav.php';
userTypeGebruiker('Gebruiker');
?>
<link rel="stylesheet" href="/style.css">
<body>
<!-- Gebruiker index -->
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="jumbotron">
<h1>Hallo, <?php echo $_SESSION['name']; ?>!</h1>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-body" style="background-color: #f5f5f5;">
<?php
if(isset($_POST['number_plate']) && isset($_POST['note'])){
addNumberPlate(strtoupper($_POST['number_plate']), mysql_real_escape_string($_POST['note']));
}?>
<form method="post">
<div class="form-group">
<div class="alert alert-warning" role="alert" style="margin: 10px 0 10px 0;">Gebruiker is verantwoordelijk voor juiste invoer</div>
<h4 style="float:left; display:inline;">Nummerbord</h4>
<h4 style="float:right; display:inline;"><?php numberOfPlates($_SESSION['id']); ?> </h4>
<input type='text' class='form-control' name='number_plate' placeholder='Nummerbord' id='numberInput'style="margin: 0 0 10px 0;"/>
<input type='text' class='form-control' name='note' placeholder='Opmerking' id='noteInput'/>
</div>
<input type='submit' value='Voeg toe' class='btn btn-primary'/>
</form>
</div>
</div>
</div>
<div class='col-md-8'>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
Overzicht
</div>
<div class="table-responsive">
<table class="table table-striped table-hover table-responsive">
<thead>
<tr>
<th class="tableId">#</th>
<th class="tablePlate">Nummerbord</th>
<th class="tableNote">Opmerking</th>
<th class="tableDelete"></th>
</tr>
</thead>
<tbody>
<?php
GetPersonalNumberplates($_SESSION['id']);
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>