fixed event

This commit is contained in:
Max Schneider 2025-07-07 11:15:49 +02:00
parent 1691370db6
commit a50b48592b
2 changed files with 7 additions and 8 deletions

View File

@ -374,4 +374,6 @@ a {
.nav-links .links { .nav-links .links {
margin: 0 12px; margin: 0 12px;
} }
} }

View File

@ -1,11 +1,10 @@
<?php include dirname(__DIR__) . '/header.phtml'; ?>
<h2>Alle Ausstellungen</h2>
<?php if (!empty($events)): ?> <?php if (!empty($events)): ?>
<div class="inhalt"> <div class="inhalt">
<div class="event-container"> <div class="event-container">
<h1>Tickets</h1> <h2>Alle Ausstellungen</h2>
<div class="event-container-inhalt"> <div class="event-container-inhalt">
<table> <table>
<thead> <thead>
@ -21,9 +20,9 @@
<?php foreach ($events as $event): ?> <?php foreach ($events as $event): ?>
<tr> <tr>
<td><?php echo htmlspecialchars($event['name']); ?></td> <td><?php echo htmlspecialchars($event['name']); ?></td>
<td><?php echo nl2br(htmlspecialchars($event['beschreibung'])); ?></td> <td><?php echo nl2br(htmlspecialchars($event['description'])); ?></td>
<td><?php echo date('d.m.Y', strtotime($event['datum_von'])); ?></td> <td><?php echo date('d.m.Y', strtotime($event['start_date'])); ?></td>
<td><?php echo date('d.m.Y', strtotime($event['datum_bis'])); ?></td> <td><?php echo date('d.m.Y', strtotime($event['end_date'])); ?></td>
<td><?php echo (int) $event['max_tickets']; ?></td> <td><?php echo (int) $event['max_tickets']; ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
@ -35,5 +34,3 @@
</div> </div>
</div> </div>
</div> </div>
<?php include dirname(__DIR__) . '/footer.phtml'; ?>