Commit d22d9d93 authored by uoure's avatar uoure
Browse files

Delete admin.php

parent 4eb2c674
<!DOCTYPE HTML>
<?php
if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != "z10" || $_SERVER['PHP_AUTH_PW'] != "kruemel") {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
echo "Passwort oder Benutzername falsch";
exit;
}
?>
<head>
<title>Admin Bereich</title>
<script src="/adminScripts.js"></script>
</head>
<body onload="onLoad();">
<h2>Administration</h2>
<p>Wähle einen Ausschank aus, um die Reservierungen zu laden</p>
<select id="reservationDate" onchange="loadReservations()"></select>
<button onclick="loadReservations()">Aktualisieren</button>
<input type="checkbox" id="withEnded" onclick="loadReservations()">
<label>mit beendete</label><br>
<table>
<thead>
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Start</th>
<th>Ende</th>
<th>Tisch</th>
<th>Beenden</th>
</tr>
</thead>
<tbody id="reservations">
</tbody>
</table>
<h2>Alte Einträge Löschen</h2>
<button onclick="deleteOldData();">Löschen</button><br><br>
<h2>Neue Veranstaltung erstellen</h2>
<table>
<tr>
<td><label>Eventbezeichnung</label></td>
<td><input type="text" id="createName"></td>
</tr><tr>
<td><label>Datum</label></td>
<td><input type="date" id="createDate"></td>
</tr><tr>
<td><label>Öffnung</label></td>
<td><input type="time" id="createStartTime"></td>
</tr><tr>
<td><label>Schließung</label></td>
<td><input type="time" id="createEndTime"></td>
</tr><tr>
<td><label>Anzahl der Tische</label></td>
<td><input type="number" id="createTables"></td>
</tr><tr>
<td><input type="submit" onclick="createNewEvent();" value="erstellen"></td>
</tr>
</table>
<a href="/index.php"><h3>Zurück zur Anmeldeseite</h3></a>
</body>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment