|
|
@@ -44,6 +44,7 @@ $openPreorders = array_values(array_filter($backorderReservations, function($r)
|
|
|
}));
|
|
|
$openBackorders = count($openPreorders);
|
|
|
|
|
|
+$bodyClass = 'admin-page';
|
|
|
include __DIR__ . '/../includes/header.php';
|
|
|
?>
|
|
|
|
|
|
@@ -92,40 +93,42 @@ if (empty($openReservationsList)):
|
|
|
?>
|
|
|
<p>Keine offenen Reservierungen vorhanden.</p>
|
|
|
<?php else: ?>
|
|
|
- <table>
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Bestellnummer</th>
|
|
|
- <th>Kunde</th>
|
|
|
- <th>Erstellt</th>
|
|
|
- <th>Status</th>
|
|
|
- <th>Aktionen</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <?php foreach ($openReservationsList as $reservation): ?>
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table>
|
|
|
+ <thead>
|
|
|
<tr>
|
|
|
- <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
- <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
- <td><?php echo formatDate($reservation['created']); ?></td>
|
|
|
- <td>
|
|
|
- <?php
|
|
|
- if ($reservation['picked_up']) {
|
|
|
- echo '<span class="status status-picked">Abgeholt</span>';
|
|
|
- } elseif ($reservation['status'] === 'expired') {
|
|
|
- echo '<span class="status status-expired">Abgelaufen</span>';
|
|
|
- } else {
|
|
|
- echo '<span class="status status-open">Offen</span>';
|
|
|
- }
|
|
|
- ?>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <a href="reservations.php?order_number=<?php echo urlencode($reservation['id']); ?>" class="btn btn-small">Details</a>
|
|
|
- </td>
|
|
|
+ <th>Bestellnummer</th>
|
|
|
+ <th>Kunde</th>
|
|
|
+ <th>Erstellt</th>
|
|
|
+ <th>Status</th>
|
|
|
+ <th>Aktionen</th>
|
|
|
</tr>
|
|
|
- <?php endforeach; ?>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php foreach ($openReservationsList as $reservation): ?>
|
|
|
+ <tr>
|
|
|
+ <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
+ <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
+ <td><?php echo formatDate($reservation['created']); ?></td>
|
|
|
+ <td>
|
|
|
+ <?php
|
|
|
+ if ($reservation['picked_up']) {
|
|
|
+ echo '<span class="status status-picked">Abgeholt</span>';
|
|
|
+ } elseif ($reservation['status'] === 'expired') {
|
|
|
+ echo '<span class="status status-expired">Abgelaufen</span>';
|
|
|
+ } else {
|
|
|
+ echo '<span class="status status-open">Offen</span>';
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a href="reservations.php?order_number=<?php echo urlencode($reservation['id']); ?>" class="btn btn-small">Details</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
<?php endif; ?>
|
|
|
|
|
|
<h3 style="margin-top: 2rem;">Offene Vorbestellungen</h3>
|
|
|
@@ -135,38 +138,40 @@ if (empty($openPreordersList)):
|
|
|
?>
|
|
|
<p>Keine offenen Vorbestellungen vorhanden.</p>
|
|
|
<?php else: ?>
|
|
|
- <table>
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Bestellnummer</th>
|
|
|
- <th>Kunde</th>
|
|
|
- <th>Erstellt</th>
|
|
|
- <th>Status</th>
|
|
|
- <th>Aktionen</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <?php foreach ($openPreordersList as $reservation): ?>
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table>
|
|
|
+ <thead>
|
|
|
<tr>
|
|
|
- <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
- <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
- <td><?php echo formatDate($reservation['created']); ?></td>
|
|
|
- <td>
|
|
|
- <?php
|
|
|
- if (isset($reservation['backorder_status']) && $reservation['backorder_status'] === 'notified') {
|
|
|
- echo '<span class="status status-notified">Informiert</span>';
|
|
|
- } else {
|
|
|
- echo '<span class="status status-open">Offen</span>';
|
|
|
- }
|
|
|
- ?>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <a href="backorders.php?order_number=<?php echo urlencode($reservation['id']); ?>" class="btn btn-small">Details</a>
|
|
|
- </td>
|
|
|
+ <th>Bestellnummer</th>
|
|
|
+ <th>Kunde</th>
|
|
|
+ <th>Erstellt</th>
|
|
|
+ <th>Status</th>
|
|
|
+ <th>Aktionen</th>
|
|
|
</tr>
|
|
|
- <?php endforeach; ?>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <?php foreach ($openPreordersList as $reservation): ?>
|
|
|
+ <tr>
|
|
|
+ <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
|
|
|
+ <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
|
|
|
+ <td><?php echo formatDate($reservation['created']); ?></td>
|
|
|
+ <td>
|
|
|
+ <?php
|
|
|
+ if (isset($reservation['backorder_status']) && $reservation['backorder_status'] === 'notified') {
|
|
|
+ echo '<span class="status status-notified">Informiert</span>';
|
|
|
+ } else {
|
|
|
+ echo '<span class="status status-open">Offen</span>';
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <a href="backorders.php?order_number=<?php echo urlencode($reservation['id']); ?>" class="btn btn-small">Details</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php include __DIR__ . '/../includes/footer.php'; ?>
|