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.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/update_proben.php b/intern.gospeladlershof.de/update_proben.php
new file mode 100644
index 0000000..03aa880
--- /dev/null
+++ b/intern.gospeladlershof.de/update_proben.php
@@ -0,0 +1,58 @@
+<?php
+$title = "Aktualisiere";
+require_once __DIR__ . '/header.php';
+?>
+<?php
+
+require_once __DIR__ . '/code/db.php';
+
+$db = get_db();
+$stmt = $db->prepare("SELECT id, termin, uhrzeit FROM proben WHERE id = ?");
+$stmt->execute( array($_REQUEST["id"]) );
+
+$termin = $stmt->fetch(PDO::FETCH_ASSOC);
+?>
+
+<form class="form-horizontal" method="POST" action="/code/proben/update.php">
+<fieldset>
+
+<!-- Form Name -->
+<legend class="text-center"><h1>Proben</h1></legend>
+
+<!-- Text input-->
+<div class="form-group">
+ <label class="col-md-4 control-label" for="termin">Termin</label>
+ <div class="col-md-4 date datepicker">
+ <input id="termin" name="termin" type="text" placeholder="01.01.1970" class="form-control input-md" required="" value="<?php echo htmlentities($termin["termin"]); ?>">
+ <span class="help-block">Bitte klicken, es öffnet sich ein Datepicker.</span>
+ </div>
+</div>
+
+<!-- Text input-->
+<div class="form-group">
+ <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>
+
+<!-- Button (Double) -->
+<div class="form-group">
+ <label class="col-md-4 control-label" for="save"></label>
+ <div class="col-md-8">
+ <button id="save" name="save" class="btn btn-success">Speichern</button>
+ <a href="/"><button type="button" id="Abbrechen" name="Abbrechen" class="btn btn-danger">Abbrechen</button></a>
+ </div>
+</div>
+<input type="hidden" value="<?php echo htmlentities($termin["id"]); ?>" name="id">
+
+</fieldset>
+</form>
+
+
+ </div> <!-- /container -->
+
+<?php
+require_once __DIR__ . '/footer.php';
+?>