commit fe6f3de2ea9d4c881f0a01e65fcd50d346ae278f
parent bb5610b82609bab7845102007ea185ca85998643
Author: Gerco van Woudenbergh <[email protected]>
Date: Mon, 27 Mar 2023 20:37:26 +0200
nog meer ogin shit
Diffstat:
2 files changed, 42 insertions(+), 22 deletions(-)
diff --git a/crud_user.php b/crud_user.php
@@ -1,35 +1,55 @@
+<!DOCTYPE html>
<html lang="nl">
<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">
<title>User toevoegen</title>
+ <!-- Bootstrap CSS -->
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
</head>
<body>
- <h1>User toevoegen</h1>
+ <div class="container">
+ <h1>User toevoegen</h1>
- <form action="crud_user.php" method="post">
- <p>
- <b>Voornaam:</b> <input type="text" name="voornaam" id="voornaam" placeholder="Voornaam">
- <b>Achternaam:</b> <input type="text" name="achternaam" id="achternaam" placeholder="Achternaam">
- <b>Email</b> <input type="text" name="email" id="email" placeholder="Email">
- <b>Wachtwoord</b> <input type="password" name="password" id="password" placeholder="******">
- <br>
- <p>Please select the user permissions:</p>
- <input type="checkbox" id="Admin" name="permissions[]" value="1">
- <label for="html">Admin</label><br>
- <input type="checkbox" id="Administratief medewerker" name="permissions[]" value="2">
- <label for="Administratief medewerker">Administratief medewerker</label><br>
- <input type="checkbox" id="Wetenschappelijk medewerker" name="permissions[]" value="3">
- <label for="Wetenschappelijk medewerker">Wetenschappelijk medewerker</label>
+ <form action="crud_user.php" method="post">
+ <div class="mb-3">
+ <label for="voornaam" class="form-label"><b>Voornaam:</b></label>
+ <input type="text" class="form-control" name="voornaam" id="voornaam" placeholder="Voornaam">
+ </div>
+ <div class="mb-3">
+ <label for="achternaam" class="form-label"><b>Achternaam:</b></label>
+ <input type="text" class="form-control" name="achternaam" id="achternaam" placeholder="Achternaam">
+ </div>
+ <div class="mb-3">
+ <label for="email" class="form-label"><b>Email:</b></label>
+ <input type="text" class="form-control" name="email" id="email" placeholder="Email">
+ </div>
+ <div class="mb-3">
+ <label for="password" class="form-label"><b>Wachtwoord:</b></label>
+ <input type="password" class="form-control" name="password" id="password" placeholder="******">
+ </div>
+ <p>Please select the user permissions:</p>
+ <div class="mb-3 form-check">
+ <input type="checkbox" class="form-check-input" id="Admin" name="permissions[]" value="1">
+ <label class="form-check-label" for="Admin">Admin</label>
+ </div>
+ <div class="mb-3 form-check">
+ <input type="checkbox" class="form-check-input" id="Administratief medewerker" name="permissions[]" value="2">
+ <label class="form-check-label" for="Administratief medewerker">Administratief medewerker</label>
+ </div>
+ <div class="mb-3 form-check">
+ <input type="checkbox" class="form-check-input" id="Wetenschappelijk medewerker" name="permissions[]" value="3">
+ <label class="form-check-label" for="Wetenschappelijk medewerker">Wetenschappelijk medewerker</label>
+ </div>
+ <button type="submit" class="btn btn-primary" name="submit">Voeg toe</button>
+ </form>
+ </div>
- </p>
-
- <p><input type="submit" name="submit" value="Voeg toe"></p>
-
- </form>
- <?php
+ <!-- Bootstrap Bundle JS (including Popper) and jQuery -->
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
+ <?php
$servername = "86.92.67.21";
$username = "friedel";
$password = "hailiwa";
diff --git a/dashboard.php b/dashboard.php
@@ -18,7 +18,7 @@ $links = array();
if (in_array(1, $permission_levels)) {
// Admin links
$admin_links = array(
- array('url' => 'admin_page_1.php', 'title' => 'Admin Page 1'),
+ array('url' => 'localhost:8080/crud_user.php', 'title' => 'User toevoegen'),
array('url' => 'admin_page_2.php', 'title' => 'Admin Page 2'),
array('url' => 'admin_page_3.php', 'title' => 'Admin Page 3')
);