Compare commits

...

2 commits

Author SHA1 Message Date
4e0bd86ae1 Added min value for add copies 2025-10-17 18:04:42 +02:00
aeee6843ff Added loanID to loan tables 2025-10-17 17:58:42 +02:00

View file

@ -72,7 +72,7 @@ $lateLoans = getLateLoans($pdo);
<br>
<label>Anzahl
<br>
<input type="number" name="amount" value="1" required>
<input type="number" name="amount" min="1" value="1" required>
</label>
<br>
<br>
@ -207,6 +207,7 @@ $lateLoans = getLateLoans($pdo);
<td>
<h2>Verliehene Bücher</h2>
<table>
<th>ID</th>
<th>Vorname</th>
<th>Nachname</th>
<th>Klasse/Funktion</th>
@ -216,6 +217,7 @@ $lateLoans = getLateLoans($pdo);
<th>Rückgabe fällig</th>
<?php foreach ($activeLoans as $loan): ?>
<tr>
<td>#<?= htmlspecialchars($loan['loanID']) ?></td>
<td><?= htmlspecialchars($loan['firstName']) ?></td>
<td><?= htmlspecialchars($loan['lastName']) ?></td>
<td><?= htmlspecialchars($loan['borrowerRole']) ?></td>
@ -230,6 +232,7 @@ $lateLoans = getLateLoans($pdo);
<td>
<h2>Versäumte Rückgaben</h2>
<table>
<th>ID</th>
<th>Vorname</th>
<th>Nachname</th>
<th>Klasse/Funktion</th>
@ -239,6 +242,7 @@ $lateLoans = getLateLoans($pdo);
<th>Rückgabe fällig</th>
<?php foreach ($lateLoans as $lateLoan): ?>
<tr>
<td>#<?= htmlspecialchars($lateLoan['loanID']) ?></td>
<td><?= htmlspecialchars($lateLoan['firstName']) ?></td>
<td><?= htmlspecialchars($lateLoan['lastName']) ?></td>
<td><?= htmlspecialchars($lateLoan['borrowerRole']) ?></td>