Ki irgendwas gefixxed
This commit is contained in:
parent
906ca76332
commit
baf57fec49
@ -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; ?>
|
||||
<?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; ?>
|
||||
<?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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user