-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathequipment-list.php
More file actions
44 lines (37 loc) · 1.02 KB
/
equipment-list.php
File metadata and controls
44 lines (37 loc) · 1.02 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
<?php
declare(strict_types=1);
require_once './inc/util.php';
?>
<!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 rel="stylesheet" href="./assets/style/main.css">
<title>Equipment</title>
</head>
<body>
<nav>
<a href="./index.php">Home</a>
<a href="./timesheet-set.html">Zeiterfassung</a>
<a href="./equipment-list.php">Equipment</a>
<a href="./reservation-set.html">Reservation</a>
<a href="./index.php">Home</a>
</nav>
<section class="object-list">
<?php
foreach (\NeueMedien\equipmentview::findAll() as $eID => $equipment) {
echo "<a class='object-tile' href=equipment-detail.php?pid=$eID>";
echo wrap_tag(
'div',
wrap_tag('h2', $equipment->Name) .
wrap_tag('p', "[{$equipment->Number}]") .
wrap_tag('p', "{$equipment->Type}")
);
echo "</a>";
}
?>
</section>
</body>
</html>