Erster Durchstich mit updates
This commit is contained in:
parent
d3fd60b548
commit
3331f08091
60 changed files with 693 additions and 195 deletions
27
tippspiel/src/Views/home.php
Normal file
27
tippspiel/src/Views/home.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?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'; ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue