fixed formatting
This commit is contained in:
parent
91bb969d66
commit
6ba55c000b
3 changed files with 448 additions and 431 deletions
25
index.php
25
index.php
|
|
@ -17,11 +17,13 @@
|
|||
$lateLoans = getLateLoans($pdo);
|
||||
|
||||
?>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Bücherei Verwaltung</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Bücherei Verwaltung</h1>
|
||||
<br>
|
||||
|
|
@ -156,7 +158,8 @@
|
|||
<br>
|
||||
<label>Rückgabedatum
|
||||
<br>
|
||||
<input type="date" name="dueDate" value="<?=date_add(date_create(date('Y-m-d')), date_interval_create_from_date_string('14 days'))->format('Y-m-d');?>">
|
||||
<input type="date" name="dueDate"
|
||||
value="<?= date_add(date_create(date('Y-m-d')), date_interval_create_from_date_string('14 days'))->format('Y-m-d'); ?>">
|
||||
</label>
|
||||
<input type="hidden" name="submissionType" value="loan">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
|
|
@ -204,7 +207,13 @@
|
|||
<td>
|
||||
<h2>Verliehene Bücher</h2>
|
||||
<table>
|
||||
<th>Vorname</th><th>Nachname</th><th>Klasse/Funktion</th><th>Buch</th><th>Exemplar</th><th>Ausleihdatum</th><th>Rückgabe fällig</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Klasse/Funktion</th>
|
||||
<th>Buch</th>
|
||||
<th>Exemplar</th>
|
||||
<th>Ausleihdatum</th>
|
||||
<th>Rückgabe fällig</th>
|
||||
<?php foreach ($activeLoans as $loan): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($loan['firstName']) ?></td>
|
||||
|
|
@ -221,7 +230,13 @@
|
|||
<td>
|
||||
<h2>Versäumte Rückgaben</h2>
|
||||
<table>
|
||||
<th>Vorname</th><th>Nachname</th><th>Klasse/Funktion</th><th>Buch</th><th>Exemplar</th><th>Ausleihdatum</th><th>Rückgabe fällig</th>
|
||||
<th>Vorname</th>
|
||||
<th>Nachname</th>
|
||||
<th>Klasse/Funktion</th>
|
||||
<th>Buch</th>
|
||||
<th>Exemplar</th>
|
||||
<th>Ausleihdatum</th>
|
||||
<th>Rückgabe fällig</th>
|
||||
<?php foreach ($lateLoans as $lateLoan): ?>
|
||||
<tr>
|
||||
<td><?= htmlspecialchars($lateLoan['firstName']) ?></td>
|
||||
|
|
@ -241,7 +256,8 @@
|
|||
<h2>Datenbank durchsuchen</h2>
|
||||
<form id="sqlSelectInputForm">
|
||||
<label>
|
||||
SELECT <input style="width: 500px;" type="text" name="sqlSelectTextarea" placeholder="* FROM books WHERE bookID = 5" required></input>
|
||||
SELECT <input style="width: 500px;" type="text" name="sqlSelectTextarea"
|
||||
placeholder="* FROM books WHERE bookID = 5" required></input>
|
||||
</label>
|
||||
<input type="hidden" name="submissionType" value="selectRequest">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
|
|
@ -257,4 +273,5 @@
|
|||
|
||||
<?php include "script.php" ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue