-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd.php
54 lines (48 loc) · 1.91 KB
/
add.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
<?php
require "includes/session.php";
require "includes/add-process.php";
?>
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
<title>Asset Management Systeem - Toevoegen</title>
</head>
<body>
<nav>
<div class="nav-container">
<h1 class="logo">Asset Management Systeem</h1>
<ul class="nav-links">
<li><a href="index.php">Assets</a></li>
<li><a href="includes/logout.php">Afmelden</a></li>
</ul>
</div>
</nav>
<div class="main-container">
<?php if ($_SERVER["REQUEST_METHOD"] === "POST"): ?>
<div class="status success">
<p>Uw asset '<?php echo htmlspecialchars($_POST["name"]); ?>' is succesvol toegevoegd aan de assets!</p>
</div>
<?php endif; ?>
<div class="button-container">
<a href="index.php" class="button"><i class="fa fa-arrow-left"></i>Terug</a>
</div>
<form method="post">
<div class="data-input">
<label for="name">Naam van het asset</label>
<input type="text" id="name" name="name" required>
</div>
<div class="data-input">
<label for="owner">Eigenaar</label>
<input type="text" id="owner" name="owner" required>
</div>
<div class="button-container">
<button class="button" type="submit"><i class="fa fa-plus"></i>Toevoegen</button>
</div>
</form>
</div>
</body>
</html>