-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathafgerond.php
64 lines (53 loc) · 1.96 KB
/
afgerond.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
<?php
include_once("database.php");
$sql = "SELECT * FROM afgerond";
$stmt = $conn->prepare($sql);
$stmt->execute();
$result = $stmt->fetchAll();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
<link rel="stylesheet" href="afgerond.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<title>ToDo</title>
</head>
<body style="background-color:#1E1E1E;">
<?php if (count($result) > 0): ?>
<div class="tableDiv">
<table>
<thead>
<i onclick="homePage()" class="fa-solid fa-arrow-left"></i>
<tr>
<th style="font-family: 'Inter';">Taak:</th>
<th style="font-family: 'Inter';">Omschrijving:</th>
<th style="font-family: 'Inter';">Afgerond op:</th>
</tr>
</thead>
<tbody>
<?php foreach ($result as $row): ?>
<tr>
<td style="font-family:'Inter';">
<?= $row['TaakNaam'] ?>
</td>
<td style="font-family:'Inter';">
<?= $row['TaakOmschrijving'] ?>
</td>
<td style="font-family:'Inter';">
<?= $row['afgerondOp'] ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php else: ?>
<p class="no-tasks">No tasks found.</p>
<?php endif; ?>
</body>
<script src="afgerond.js"></script>
</html>