summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/update_proben.php
blob: d16b8c60d3dd0559b3c60dfbe9cb1d85c5edb534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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>

<div class="checkbox">
	<label>
		<input type="checkbox" name="einsteiger" value="einsteiger"> Einsteigertermin?
	</label>
</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';
?>