...
This commit is contained in:
parent
1c712d0781
commit
a82d14c168
6 changed files with 213 additions and 26 deletions
|
|
@ -16,7 +16,26 @@ require __DIR__ . '/partials/header.php';
|
|||
<p>Saison: <strong><?php echo htmlspecialchars($currentSeason['name']); ?></strong></p>
|
||||
<?php if ($rounds): ?>
|
||||
<?php foreach ($rounds as $round): ?>
|
||||
<?php
|
||||
$summary = $roundSummaries[$round['id']] ?? ['winnings' => [], 'notes' => []];
|
||||
$winnings = $summary['winnings'];
|
||||
?>
|
||||
<h3><a href="/index.php?page=ranking&round_id=<?php echo htmlspecialchars($round['id']); ?>"><?php echo htmlspecialchars($round['name']); ?></a></h3>
|
||||
<?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; ?>
|
||||
<?php if (!empty($round['report'])): ?>
|
||||
<p><?php echo nl2br(htmlspecialchars(Round::reportToText($round['report']))); ?></p>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue