28 lines
974 B
PHP
28 lines
974 B
PHP
|
|
<?php
|
||
|
|
use App\Models\Round;
|
||
|
|
|
||
|
|
$pageTitle = 'Tippspiel 2027 - Startseite';
|
||
|
|
require __DIR__ . '/partials/header.php';
|
||
|
|
?>
|
||
|
|
|
||
|
|
<h1>Willkommen bei Tippspiel 2027</h1>
|
||
|
|
|
||
|
|
<h2>Rundenübersicht</h2>
|
||
|
|
<?php if ($currentSeason): ?>
|
||
|
|
<p>Saison: <strong><?php echo htmlspecialchars($currentSeason['name']); ?></strong></p>
|
||
|
|
<?php if ($rounds): ?>
|
||
|
|
<?php foreach ($rounds as $round): ?>
|
||
|
|
<h3><a href="/index.php?page=round&id=<?php echo htmlspecialchars($round['id']); ?>"><?php echo htmlspecialchars($round['name']); ?></a></h3>
|
||
|
|
<?php if (!empty($round['report'])): ?>
|
||
|
|
<p><?php echo nl2br(htmlspecialchars(Round::reportToText($round['report']))); ?></p>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
<?php else: ?>
|
||
|
|
<p>Noch keine abgeschlossenen Runden in der aktuellen Saison.</p>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php else: ?>
|
||
|
|
<p>Keine Saison gefunden.</p>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<?php require __DIR__ . '/partials/footer.php'; ?>
|