summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/update_proben.php
diff options
context:
space:
mode:
Diffstat (limited to 'intern.gospeladlershof.de/update_proben.php')
-rw-r--r--intern.gospeladlershof.de/update_proben.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/intern.gospeladlershof.de/update_proben.php b/intern.gospeladlershof.de/update_proben.php
index d16b8c6..bddb778 100644
--- a/intern.gospeladlershof.de/update_proben.php
+++ b/intern.gospeladlershof.de/update_proben.php
@@ -7,7 +7,7 @@ require_once __DIR__ . '/header.php';
require_once __DIR__ . '/code/db.php';
$db = get_db();
-$stmt = $db->prepare("SELECT id, termin, uhrzeit FROM proben WHERE id = ?");
+$stmt = $db->prepare("SELECT id, termin, uhrzeit, einsteiger FROM proben WHERE id = ?");
$stmt->execute( array($_REQUEST["id"]) );
$termin = $stmt->fetch(PDO::FETCH_ASSOC);
@@ -33,14 +33,14 @@ $termin = $stmt->fetch(PDO::FETCH_ASSOC);
<label class="col-md-4 control-label" for="uhrzeit">Uhrzeit</label>
<div class="col-md-4">
<input id="uhrzeit" name="uhrzeit" type="text" placeholder="18:30 - 20:00 Uhr" class="form-control input-md" required="" value="<?php echo htmlentities($termin["uhrzeit"]); ?>">
-
- </div>
-</div>
-<div class="checkbox">
- <label>
- <input type="checkbox" name="einsteiger" value="einsteiger"> Einsteigertermin?
+ <div class="checkbox">
+ <label class="col-md-4 control-label" for="checkbox">
+ <input type="checkbox" name="einsteiger" value="1" <?php if ($termin['einsteiger'] === "1")echo "checked";?>> Einsteigertermin?
</label>
+ </div>
+
+ </div>
</div>
<!-- Button (Double) -->