summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/update_proben.php
diff options
context:
space:
mode:
authorhorus2017-04-27 22:40:55 +0200
committerhorus2017-04-27 22:40:55 +0200
commit48923f74f8c52a05f2cc2ad9f62a1047e1308c97 (patch)
tree28eb3b72421051d9b1d5adbf697119b60594a6a8 /intern.gospeladlershof.de/update_proben.php
parentf5dd67f91fe90110132f3a728ecf15d8c579405a (diff)
downloadgospeladlershof.de-48923f74f8c52a05f2cc2ad9f62a1047e1308c97.tar.gz
Der Code, damit der Einsteigertermin in der Datenbank eingetragen wird.
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) -->