-
Notifications
You must be signed in to change notification settings - Fork 0
/
leveringstijdveranderen.php
113 lines (76 loc) · 2.46 KB
/
leveringstijdveranderen.php
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
session_start();
$verzekeringsnummer = $_SESSION["Verzekeringsnummer"];
$patientnaam = $_SESSION["Naam"];
include 'db_connect.php';
$queryverzekeringsnummer = "SELECT *
FROM `patient`
WHERE `verzekeringsnummer` = '".$verzekeringsnummer."';";
$resultverzekeringsnummer = mysqli_query($connection, $queryverzekeringsnummer);
$querylevertijd = "SELECT *
FROM `order`";
$resultlevertijd = mysqli_query($connection, $querylevertijd);
$querypatientnaam = "SELECT *
FROM `patient`
WHERE `naam` = '".$patientnaam."';";
$resultpatientnaam = mysqli_query($connection, $querypatientnaam);
$queryorderid = "SELECT o.idOrder, o.levertijd, o.leverdatum
FROM `order` as o, `patient` as p
WHERE p.Verzekeringsnummer = '".$verzekeringsnummer."' and p.Verzekeringsnummer = o.patient";
$resultorderid = mysqli_query($connection, $queryorderid);
$timezone = date_default_timezone_set('Europe/Amsterdam');
$date = date('H:i:s');
if ($date > '13:30:00' )
{
header("location:telaat.php");
}
else
{
}
?>
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1 style="text-align: center;">Leveringstijd aanpassen</h1>
<table width="300" border="1" cellpadding="1" cellspacing="1" align="center" >
<tr>
<th>orderID</th>
<th>Verzkeringsnummer</th>
<th>Naam</th>
<th>levertijd</th>
<th>leverdatum</th>
</tr>
<?php
while( $row = mysqli_fetch_assoc($resultorderid) )
{
echo "<tr>
<td><br>".$row["idOrder"]."</td>
<td>".$verzekeringsnummer."</td>
<td>".$patientnaam."</td>
<td>".$row["levertijd"]."</td>
<td>".$row["leverdatum"]."</td>
<td>
<a href='leveringstijdveranderen2.php?levertijd=".$row["levertijd"]."&leverdatum=".$row["leverdatum"]."&orderid=".$row["idOrder"]."'/>
<img src='icons/drop.png' alt='levertijd aanpassen'>
</a>
</td>
<br><br>
</tr>";
}
mysqli_close($connection);
?>
</table>
<div style="text-align:center;">
<br>
<button onclick="location.href='./apothekerhome.php'" type="button" style="width: 20%;" class="button" > Terug </button>
<br>
</div>
</body>
<br>
<br><br>
<footer>
<?php include 'footer.php'; ?>
</footer>
</html>