Prechádzať zdrojové kódy

removing email and Gültig bis from adminview

Medowar 2 mesiacov pred
rodič
commit
27f3a912d2
2 zmenil súbory, kde vykonal 2 pridanie a 7 odobranie
  1. 1 2
      admin/backorders.php
  2. 1 5
      admin/reservations.php

+ 1 - 2
admin/backorders.php

@@ -163,7 +163,6 @@ include __DIR__ . '/../includes/header.php';
                 <tr>
                     <th>Bestellnummer</th>
                     <th>Kunde</th>
-                    <th>E-Mail</th>
                     <th>Artikel</th>
                     <th>Erstellt</th>
                     <th>Status</th>
@@ -175,7 +174,6 @@ include __DIR__ . '/../includes/header.php';
                 <tr>
                     <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
                     <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
-                    <td><?php echo htmlspecialchars($reservation['customer_email']); ?></td>
                     <td>
                         <?php
                         $itemCount = 0;
@@ -252,6 +250,7 @@ function showDetails(reservationId) {
         <p><strong>Kunde:</strong> ${reservation.customer_name}</p>
         <p><strong>E-Mail:</strong> ${reservation.customer_email}</p>
         <p><strong>Erstellt:</strong> ${reservation.created}</p>
+        <p><strong>Gültig bis:</strong> ${reservation.expires}</p>
         <p><strong>Status:</strong> <span class="status ${statusClass}">${statusText}</span></p>
         ${itemsHtml}
     `;

+ 1 - 5
admin/reservations.php

@@ -22,7 +22,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['mark_picked_up'])) {
 }
 
 $reservations = getReservations();
-$filter = isset($_GET['filter']) ? sanitize($_GET['filter']) : 'all';
+$filter = isset($_GET['filter']) ? sanitize($_GET['filter']) : 'open';
 $searchOrderNumber = isset($_GET['order_number']) ? sanitize($_GET['order_number']) : '';
 
 // Exclude backorders
@@ -107,10 +107,8 @@ include __DIR__ . '/../includes/header.php';
                 <tr>
                     <th>Bestellnummer</th>
                     <th>Kunde</th>
-                    <th>E-Mail</th>
                     <th>Artikel</th>
                     <th>Erstellt</th>
-                    <th>Gültig bis</th>
                     <th>Status</th>
                     <th>Aktionen</th>
                 </tr>
@@ -120,7 +118,6 @@ include __DIR__ . '/../includes/header.php';
                 <tr>
                     <td><strong><?php echo htmlspecialchars($reservation['id']); ?></strong></td>
                     <td><?php echo htmlspecialchars($reservation['customer_name']); ?></td>
-                    <td><?php echo htmlspecialchars($reservation['customer_email']); ?></td>
                     <td>
                         <?php
                         $itemCount = 0;
@@ -131,7 +128,6 @@ include __DIR__ . '/../includes/header.php';
                         ?>
                     </td>
                     <td><?php echo formatDate($reservation['created']); ?></td>
-                    <td><?php echo formatDate($reservation['expires']); ?></td>
                     <td>
                         <?php
                         if ($reservation['picked_up']) {