Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
session_start();
require 'config.php';
include_once "class/class.php";
functions::editLiggingen();
if (!isset($_SESSION['admin_logged_in'])) {
header('Location: admin_login.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Ligging Management</title>
</head>
<body>
<div class="location-management">
<h1>Locatie Management</h1>
<form action="ligging_management.php" method="POST" class="location-form">
<div class="location-table">
<?php functions::showAllLiggingen(); ?>
</div>
<div class="form-group">
<input type="text" name="new_location" placeholder="Nieuwe locatie naam">
<input type="text" name="new_description" placeholder="Beschrijving van de locatie">
</div>
<div class="button-group">
<button type="submit" name="add">Toevoegen</button>
<button type="submit" name="edit">Bewerken</button>
<button type="button" onclick="window.location.href='admin.php'">Ga naar Admin Pagina</button>
</div>
</form>
</div>
</body>
</html>