updates
This commit is contained in:
parent
565c5c43f9
commit
ab2311587c
12 changed files with 241 additions and 27 deletions
|
|
@ -89,6 +89,7 @@ $reminderParam = ($excludeReminders ?? false) ? '&hide_reminders=1' : '';
|
|||
<table class="mail-details">
|
||||
<tr><th>Datum</th><td><?php echo date('d.m.Y', strtotime($viewMail['send_date'])); ?></td></tr>
|
||||
<tr><th>Versender</th><td><?php echo htmlspecialchars($viewMail['sender_name']); ?></td></tr>
|
||||
<tr><th>Saison</th><td><?php echo !empty($viewMail['season_name']) ? htmlspecialchars($viewMail['season_name']) : '-'; ?></td></tr>
|
||||
<tr><th>Empfänger</th><td class="recipients"><?php echo htmlspecialchars(str_replace(',', ', ', $viewMail['recipients'])); ?></td></tr>
|
||||
<tr><th>Nachricht</th><td><?php echo nl2br(htmlspecialchars(html_entity_decode(strip_tags(Round::reportToText($viewMail['message'])), ENT_QUOTES, 'UTF-8'))); ?></td></tr>
|
||||
</table>
|
||||
|
|
@ -109,6 +110,7 @@ $reminderParam = ($excludeReminders ?? false) ? '&hide_reminders=1' : '';
|
|||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Thema</th>
|
||||
<th>Saison</th>
|
||||
<th>Versender</th>
|
||||
<th>Empfänger</th>
|
||||
</tr>
|
||||
|
|
@ -118,12 +120,13 @@ $reminderParam = ($excludeReminders ?? false) ? '&hide_reminders=1' : '';
|
|||
<tr>
|
||||
<td><?php echo date('d.m.Y', strtotime($mail['send_date'])); ?></td>
|
||||
<td><a href="/index.php?page=admin_roundmails&id=<?php echo (int)$mail['id']; ?><?php if ($currentPage > 1) echo '&p=' . $currentPage; ?><?php echo $reminderParam; ?>"><?php echo htmlspecialchars($mail['topic']); ?></a></td>
|
||||
<td><?php echo !empty($mail['season_name']) ? htmlspecialchars($mail['season_name']) : '-'; ?></td>
|
||||
<td><?php echo htmlspecialchars($mail['sender_name']); ?></td>
|
||||
<td><?php echo $mail['recipients'] === '' ? 0 : count(explode(',', $mail['recipients'])); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php if (empty($mails)): ?>
|
||||
<tr><td colspan="4">Noch keine Mails versendet.</td></tr>
|
||||
<tr><td colspan="5">Noch keine Mails versendet.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -24,19 +24,16 @@ require __DIR__ . '/../partials/header.php';
|
|||
<?php endif; ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name" value="<?php echo htmlspecialchars($formValues['name']); ?>" required>
|
||||
<label for="name">Name:</label><input type="text" id="name" name="name" value="<?php echo htmlspecialchars($formValues['name']); ?>" style="width: 240px;" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="rounds">Runden:</label>
|
||||
<input type="number" min="1" id="rounds" name="rounds" value="<?php echo htmlspecialchars($formValues['rounds']); ?>" required>
|
||||
<label for="rounds">Runden:</label><input type="text" id="rounds" name="rounds" value="<?php echo htmlspecialchars($formValues['rounds']); ?>" style="width: 100px;" required>
|
||||
<?php if ($editSeason): ?>
|
||||
<small>(Runden werden nur beim Anlegen erzeugt; eine Änderung legt keine Runden an oder löscht welche.)</small>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="max_identical_jokertipps">Max. gleiche Joker:</label>
|
||||
<input type="number" min="0" id="max_identical_jokertipps" name="max_identical_jokertipps" value="<?php echo htmlspecialchars($formValues['max_identical_jokertipps']); ?>" required>
|
||||
<label for="max_identical_jokertipps">Max. gleiche Joker:</label><input type="text" id="max_identical_jokertipps" name="max_identical_jokertipps" value="<?php echo htmlspecialchars($formValues['max_identical_jokertipps']); ?>" style="width: 100px;" required>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
|
@ -44,7 +41,7 @@ require __DIR__ . '/../partials/header.php';
|
|||
$quotaInput = function ($name, $label, $unit, $amount = null) use ($q) {
|
||||
echo '<div class="form-group">';
|
||||
echo '<label for="quota_' . $name . '">' . htmlspecialchars($label) . ':</label>';
|
||||
echo '<input type="number" step="0.01" min="0" id="quota_' . $name . '" name="quotas[' . $name . ']" value="'
|
||||
echo '<input type="text" id="quota_' . $name . '" name="quotas[' . $name . ']" value="'
|
||||
. htmlspecialchars((string)($q[$name] ?? '')) . '" style="width: 100px;" required> ' . $unit;
|
||||
if ($amount !== null) {
|
||||
echo ' = ' . number_format($amount, 2, ',', '.') . ' €';
|
||||
|
|
@ -60,6 +57,11 @@ require __DIR__ . '/../partials/header.php';
|
|||
Beträge berechnet aus den gespeicherten Quoten.</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<h2>Jackpot (4-Spiele Treffer)</h2>
|
||||
<div class="form-group">
|
||||
<label for="jackpot">Jackpot:</label><input type="text" id="jackpot" name="jackpot" value="<?php echo htmlspecialchars((string)(int)$formValues['jackpot']); ?>" style="width: 100px;" required> €
|
||||
</div>
|
||||
|
||||
<h2>Spielquoten</h2>
|
||||
<?php
|
||||
$placementSum = 0;
|
||||
|
|
@ -130,7 +132,7 @@ require __DIR__ . '/../partials/header.php';
|
|||
|
||||
<style>
|
||||
.season-centered { text-align: center; }
|
||||
.season-centered form { display: inline-block; text-align: left; }
|
||||
.season-centered form { display: block; max-width: 480px; margin: 0 auto; text-align: left; }
|
||||
.season-centered form h2 { text-align: center; }
|
||||
.season-centered table { margin: 1em auto 0; text-align: left; }
|
||||
/* From users.php, for consistency */
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ $exactExamples = ['1:0', '2:1', '2:2', '3:1', '3:2', '4:2', '5:3'];
|
|||
<a href="#punkte">Punkte</a>
|
||||
<a href="#rangliste">Rangliste</a>
|
||||
<a href="#tagessieg">Tagessieg</a>
|
||||
<a href="#jackpot">Jackpot</a>
|
||||
<a href="#gewinne">Gewinne</a>
|
||||
<a href="#app">Als App installieren</a>
|
||||
</nav>
|
||||
|
|
@ -127,7 +128,16 @@ Dasselbe Ergebnis darfst du pro Saison höchstens
|
|||
<li>Hat niemand ein exaktes Ergebnis getroffen, gibt es keinen Tagessieger. Der Betrag <strong>wandert in die nächste Runde</strong>, in der es einen Tagessieger gibt.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="gewinne">6. Gewinne</h2>
|
||||
<h2 id="jackpot">6. Jackpot</h2>
|
||||
<ul>
|
||||
<li>Der aktuelle Jackpot dieser Saison beträgt <strong><?php echo rtrim(rtrim(number_format($jackpot, 2, ',', '.'), '0'), ','); ?> €</strong><?php if ($jackpotStatus['won']): ?> und wurde bereits von <?php echo htmlspecialchars(implode(', ', $jackpotStatus['winners'])); ?> abgeräumt<?php endif; ?>.</li>
|
||||
<li>Er speist sich <strong>nicht</strong> aus dem Pott, sondern wird separat vorgehalten.</li>
|
||||
<li>Er wird <strong>maximal einmal pro Saison</strong> ausgeschüttet, wenn ein Spieler <strong>alle Spiele exakt richtig</strong> tippt.</li>
|
||||
<li>Schaffen das in derselben Runde mehrere Spieler, teilen sie sich den Jackpot.</li>
|
||||
<li>In der Rangliste wird der Gewinn in der Spalte <span style="font-size:1.2em;">💰</span> <strong>Jackpot</strong> ausgewiesen. Er fließt auch in die <a href="/index.php?page=money_ranking">Geldrangliste</a> und die Kontoliste ein.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="gewinne">7. Gewinne</h2>
|
||||
<ul>
|
||||
<li>Alle Einsätze bilden den Pott. Ein Teil geht an die Tagessiege, der Rest an die Plätze 1 bis <?php echo Quota::PLACES; ?> der Endabrechnung.
|
||||
Die aktuellen Beträge stehen unter <a href="/index.php?page=info_quotas">Quoten</a>.</li>
|
||||
|
|
@ -137,7 +147,7 @@ Dasselbe Ergebnis darfst du pro Saison höchstens
|
|||
<li>Was du bisher gewonnen hast, zeigt die <a href="/index.php?page=money_ranking">Geldrangliste</a>. Damit dein Gewinn überwiesen werden kann, trage deine Bankverbindung unter <em>Einstellungen</em> ein.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="app">7. Als App installieren</h2>
|
||||
<h2 id="app">8. Als App installieren</h2>
|
||||
<p>Das Tippspiel kannst du dir wie eine App auf den Startbildschirm deines Smartphones legen. Sie öffnet sich dann im Vollbild mit eigenem Symbol – ohne Adressleiste des Browsers. Der eigentliche Inhalt ist identisch mit der Webseite, und es funktioniert weiterhin nur mit Internetverbindung.</p>
|
||||
|
||||
<h3>Android (Chrome)</h3>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,16 @@ $euro = fn($amount) => number_format($amount, 2, ',', '.') . ' €';
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<div class="quota-section">
|
||||
<h3>Jackpot</h3>
|
||||
<table class="info-table">
|
||||
<tr><th>Jackpot (4-Spiele Treffer)</th><td><?php echo $euro($jackpot); ?></td></tr>
|
||||
<?php if ($jackpotStatus['won']): ?>
|
||||
<tr><th>Gewonnen von</th><td><?php echo htmlspecialchars(implode(', ', $jackpotStatus['winners'])); ?></td></tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="quota-section">
|
||||
<h3>Spielquoten</h3>
|
||||
<table class="info-table">
|
||||
|
|
|
|||
|
|
@ -70,6 +70,10 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
font-size: 2rem; /* Größe verdoppeln */
|
||||
vertical-align: middle;
|
||||
}
|
||||
.jackpot-icon {
|
||||
font-size: 1.6rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#round_id {
|
||||
font-size: inherit; /* Schriftgröße an die Umgebung anpassen */
|
||||
}
|
||||
|
|
@ -116,6 +120,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
.legend.legend-footer .legend-color { width: 12px; height: 12px; }
|
||||
.legend.legend-footer .joker-icon { width: 1.1em; height: 1.1em; }
|
||||
.legend.legend-footer .daily-winner-icon { font-size: 1em; }
|
||||
.legend.legend-footer .jackpot-icon { font-size: 1em; }
|
||||
|
||||
/* Rundenpunkte als Link mit Aufschlüsselungs-Popup */
|
||||
.round-points-link {
|
||||
|
|
@ -223,6 +228,18 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<span class="rotated-label">Joker</span>
|
||||
</th>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($roundCompleted): ?>
|
||||
<th class="rotated-header"><span class="rotated-label">Preisgeld Tagessieg</span></th>
|
||||
<?php endif; ?>
|
||||
<?php if ($roundHasJackpot): ?>
|
||||
<th class="game-header" title="Jackpot">
|
||||
<span class="jackpot-icon">💰</span>
|
||||
<span class="rotated-label">Jackpot</span>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($isFinalRound): ?>
|
||||
<th class="rotated-header"><span class="rotated-label">Preisgeld Platzierung</span></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -280,6 +297,15 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($roundCompleted): ?>
|
||||
<td class="text-center"><?php echo $entry['payout'] > 0 ? number_format($entry['payout'], 2, ',', '.') . ' €' : ''; ?></td>
|
||||
<?php endif; ?>
|
||||
<?php if ($roundHasJackpot): ?>
|
||||
<td class="text-center"><?php echo $entry['jackpot_payout'] > 0 ? '<span class="jackpot-icon">💰</span> ' . number_format($entry['jackpot_payout'], 2, ',', '.') . ' €' : ''; ?></td>
|
||||
<?php endif; ?>
|
||||
<?php if ($isFinalRound): ?>
|
||||
<td class="text-center"><?php echo $entry['ranking_payout'] > 0 ? number_format($entry['ranking_payout'], 2, ',', '.') . ' €' : ''; ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
@ -295,6 +321,15 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<td class="text-center"><?php echo ((int)$game['score2'] > -1) ? (int)$game['score2'] : ''; ?></td>
|
||||
<td></td>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($roundCompleted): ?>
|
||||
<td></td>
|
||||
<?php endif; ?>
|
||||
<?php if ($roundHasJackpot): ?>
|
||||
<td></td>
|
||||
<?php endif; ?>
|
||||
<?php if ($isFinalRound): ?>
|
||||
<td></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
|
@ -304,6 +339,9 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
|
||||
<div class="legend legend-footer">
|
||||
<div class="legend-item"><span class="daily-winner-icon">🏆</span> Tagessieger</div>
|
||||
<?php if ($roundHasJackpot): ?>
|
||||
<div class="legend-item"><span class="jackpot-icon">💰</span> Jackpot</div>
|
||||
<?php endif; ?>
|
||||
<div class="legend-item"><img src="/img/joker.png" alt="Joker" class="joker-icon"> Joker gesetzt</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: var(--col-tendenz);"></div> Richtige Tendenz</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: var(--col-exact);"></div> Richtiges Ergebnis</div>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ $teamLogo = function ($name) {
|
|||
|
||||
<h1>Spieltipp:</h1>
|
||||
|
||||
<div>Bereits verwendete Joker: <?php echo htmlspecialchars($jokerUsage); ?></div>
|
||||
<div>Maximale Anzahl gleicher Joker: <?php echo $maxIdenticalJokertipps; ?></div>
|
||||
|
||||
<p><strong>
|
||||
<span class="team-cell"><?php $l1 = $teamLogo($game['team1']); if ($l1): ?><img src="<?php echo htmlspecialchars($l1); ?>" alt="" class="team-logo"><?php endif; ?><?php echo htmlspecialchars($game['team1']); ?></span>
|
||||
:
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ $teamLogo = function ($name) {
|
|||
|
||||
<h2><?php echo htmlspecialchars($round['name']); ?></h2>
|
||||
|
||||
<div>Bereits verwendete Joker: <?php echo htmlspecialchars($jokerUsage); ?></div>
|
||||
<div>Maximale Anzahl gleicher Joker: <?php echo $maxIdenticalJokertipps; ?></div>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p style="color: red;"><?php echo htmlspecialchars($error); ?></p>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue