2026-10-17 17:21:33 +02:00
|
|
|
<?php
|
|
|
|
|
use App\Models\Round;
|
|
|
|
|
|
|
|
|
|
$pageTitle = 'Tippspiel 2027 - Startseite';
|
|
|
|
|
require __DIR__ . '/partials/header.php';
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<h1>Willkommen bei Tippspiel 2027</h1>
|
|
|
|
|
|
2026-10-21 20:22:20 +02:00
|
|
|
<?php if (!empty($message)): ?>
|
|
|
|
|
<div class="announcement"><?php echo nl2br(htmlspecialchars($message)); ?></div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2026-10-18 21:40:43 +02:00
|
|
|
<h2>Abgeschlossene Runden:</h2>
|
2026-10-17 17:21:33 +02:00
|
|
|
<?php if ($currentSeason): ?>
|
|
|
|
|
<p>Saison: <strong><?php echo htmlspecialchars($currentSeason['name']); ?></strong></p>
|
|
|
|
|
<?php if ($rounds): ?>
|
|
|
|
|
<?php foreach ($rounds as $round): ?>
|
2026-10-27 08:47:08 +01:00
|
|
|
<?php
|
|
|
|
|
$summary = $roundSummaries[$round['id']] ?? ['winnings' => [], 'notes' => []];
|
|
|
|
|
$winnings = $summary['winnings'];
|
|
|
|
|
?>
|
2026-10-18 21:40:43 +02:00
|
|
|
<h3><a href="/index.php?page=ranking&round_id=<?php echo htmlspecialchars($round['id']); ?>"><?php echo htmlspecialchars($round['name']); ?></a></h3>
|
2026-10-27 08:47:08 +01:00
|
|
|
<?php if ($winnings): ?>
|
|
|
|
|
<p class="round-winnings-title"><strong>Gewinne:</strong></p>
|
|
|
|
|
<ul class="round-winnings">
|
|
|
|
|
<?php foreach ($winnings as $win): ?>
|
|
|
|
|
<li>
|
|
|
|
|
<strong><?php echo htmlspecialchars($win['name']); ?></strong>:
|
|
|
|
|
<?php echo number_format($win['amount'], 2, ',', '.'); ?> €
|
|
|
|
|
<span class="win-type">(<?php echo htmlspecialchars($win['label']); ?>)</span>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php foreach ($summary['notes'] as $note): ?>
|
|
|
|
|
<p class="round-note"><?php echo htmlspecialchars($note); ?></p>
|
|
|
|
|
<?php endforeach; ?>
|
2026-10-17 17:21:33 +02:00
|
|
|
<?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'; ?>
|