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);
|
$lateLoans = getLateLoans($pdo);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<title>Bücherei Verwaltung</title>
|
<title>Bücherei Verwaltung</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Bücherei Verwaltung</h1>
|
<h1>Bücherei Verwaltung</h1>
|
||||||
<br>
|
<br>
|
||||||
|
|
@ -156,7 +158,8 @@
|
||||||
<br>
|
<br>
|
||||||
<label>Rückgabedatum
|
<label>Rückgabedatum
|
||||||
<br>
|
<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>
|
</label>
|
||||||
<input type="hidden" name="submissionType" value="loan">
|
<input type="hidden" name="submissionType" value="loan">
|
||||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||||
|
|
@ -204,7 +207,13 @@
|
||||||
<td>
|
<td>
|
||||||
<h2>Verliehene Bücher</h2>
|
<h2>Verliehene Bücher</h2>
|
||||||
<table>
|
<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): ?>
|
<?php foreach ($activeLoans as $loan): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= htmlspecialchars($loan['firstName']) ?></td>
|
<td><?= htmlspecialchars($loan['firstName']) ?></td>
|
||||||
|
|
@ -221,7 +230,13 @@
|
||||||
<td>
|
<td>
|
||||||
<h2>Versäumte Rückgaben</h2>
|
<h2>Versäumte Rückgaben</h2>
|
||||||
<table>
|
<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): ?>
|
<?php foreach ($lateLoans as $lateLoan): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= htmlspecialchars($lateLoan['firstName']) ?></td>
|
<td><?= htmlspecialchars($lateLoan['firstName']) ?></td>
|
||||||
|
|
@ -241,7 +256,8 @@
|
||||||
<h2>Datenbank durchsuchen</h2>
|
<h2>Datenbank durchsuchen</h2>
|
||||||
<form id="sqlSelectInputForm">
|
<form id="sqlSelectInputForm">
|
||||||
<label>
|
<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>
|
</label>
|
||||||
<input type="hidden" name="submissionType" value="selectRequest">
|
<input type="hidden" name="submissionType" value="selectRequest">
|
||||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||||
|
|
@ -257,4 +273,5 @@
|
||||||
|
|
||||||
<?php include "script.php" ?>
|
<?php include "script.php" ?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue