Merge remote-tracking branch 'origin/frontendBackendFinal' into frontendBackendFinal

This commit is contained in:
Viktor Sergeev 2025-07-11 23:35:46 +02:00
commit 35fff7cc59
2 changed files with 4 additions and 14 deletions

View File

@ -8,12 +8,6 @@
<?php endif; ?>
</div>
<?php if (!isset($_SESSION['user_id'])): ?>
<div class="status-box" style="margin-bottom: 20px;">
<p>Bitte <a href="?controller=Auth&do=showLoginForm">melden Sie sich an</a>, um Tickets zu kaufen.</p>
</div>
<?php endif; ?>
<div class="event-container-inhalt">
<table>
<thead>
@ -24,9 +18,7 @@
<th>Bis</th>
<th>Preis</th>
<th>Tickets</th>
<?php if (isset($_SESSION['user_id'])): ?>
<th>Aktionen</th>
<?php endif; ?>
<th>Aktionen</th>
<?php if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']): ?>
<th>Admin</th>
<?php endif; ?>
@ -41,11 +33,9 @@
<td><?php echo date('d.m.Y', strtotime($event['end_date'])); ?></td>
<td><?php echo number_format($event['ticket_price'], 2, ',', '.'); ?></td>
<td><?php echo (int) $event['max_tickets']; ?></td>
<?php if (isset($_SESSION['user_id'])): ?>
<td>
<a href="?controller=Ticket&do=showBuyTicketForm&event_id=<?php echo $event['event_id']; ?>" class="admin-btn">Ticket kaufen</a>
</td>
<?php endif; ?>
<td>
<a href="?controller=Ticket&do=showBuyTicketForm&event_id=<?php echo $event['event_id']; ?>" class="admin-btn">Ticket kaufen</a>
</td>
<?php if (isset($_SESSION['is_admin']) && $_SESSION['is_admin']): ?>
<td>
<a href="?controller=Event&do=showUpdateEvent&event_id=<?php echo $event['event_id']; ?>" class="admin-btn">Bearbeiten</a>