Erster Durchstich mit updates
This commit is contained in:
parent
d3fd60b548
commit
3331f08091
60 changed files with 693 additions and 195 deletions
|
|
@ -1,40 +0,0 @@
|
|||
<?php
|
||||
$pageTitle = 'Spieltipp';
|
||||
require __DIR__ . '/../partials/header.php';
|
||||
?>
|
||||
|
||||
<h1>Spieltipp:</h1>
|
||||
|
||||
<p><strong><?php echo htmlspecialchars($game['team1'] . ' : ' . $game['team2']); ?></strong></p>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<p style="color: red;"><?php echo htmlspecialchars($error); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($locked): ?>
|
||||
<p style="color: red;">Die Runde hat bereits begonnen, der Tipp kann nicht mehr verändert werden.</p>
|
||||
<p><a href="/index.php?page=tipps#round-<?php echo (int)$round['id']; ?>">Zu den Tipps</a></p>
|
||||
<?php else: ?>
|
||||
<form method="post" action="/index.php?page=tipp_game&id=<?php echo (int)$game['id']; ?>" class="tipp-form">
|
||||
<p class="score">
|
||||
<input type="number" min="0" max="99" name="score1" required
|
||||
value="<?php echo htmlspecialchars((string)$formTipp['score1']); ?>">
|
||||
:
|
||||
<input type="number" min="0" max="99" name="score2" required
|
||||
value="<?php echo htmlspecialchars((string)$formTipp['score2']); ?>">
|
||||
<label style="margin-left: 1.5em;">
|
||||
Joker
|
||||
<input type="checkbox" name="joker" value="yes" <?php if ($formTipp['joker']) echo 'checked'; ?>>
|
||||
</label>
|
||||
</p>
|
||||
<p class="hint">Wird der Joker hier gesetzt, wird er bei den anderen Spielen dieser Runde entfernt.</p>
|
||||
<p><button type="submit">Ok</button></p>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<style>
|
||||
.tipp-form .score input[type="number"] { width: 3.5em; font-size: 1em; }
|
||||
.tipp-form .hint { color: #666; font-size: 0.8em; }
|
||||
</style>
|
||||
|
||||
<?php require __DIR__ . '/../partials/footer.php'; ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue