blob: 7cfccac7e0dfa6e97554716a9757025538eade8e (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<?php
$title = "Neues Konzert";
$class_konzert = 'class="active"';
$class_index= '';
$class_proben= '';
$class_chor= '';
$class_video= '';
require_once __DIR__ . '/header.php';
?>
<form class="form-horizontal" method="POST" action="/code/konzert/insert.php">
<fieldset>
<!-- Form Name -->
<legend class="text-center"><h1>Konzert</h1></legend>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="termin">Termin</label>
<div class="col-md-4 ddate ddatepicker">
<input id="termin" name="termin" type="text" placeholder="01.01.1970" class="form-control input-md" required="">
<!--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="19:00 Uhr" class="form-control input-md" required="" value="19:00 Uhr">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="beschreibung">Beschreibung</label>
<div class="col-md-4">
<textarea id="beschreibung" name="beschreibung" type="text" class="form-control input-md" required="" placeholder="Unser nächstes Konzert wird am **%%DATE%%** in der Verklärungskirche Adlershof stattfinden.">
Unser nächstes Konzert wird am **%%DATE%%** in der Verklärungskirche Adlershof stattfinden.</textarea>
<span class="help-block">"%%DATE%%" ist ein Platzhalter und wird automatisch durch den Termin ersetzt.</span>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="anfahrt">Anfahrt</label>
<div class="col-md-4">
<input id="anfahrt" name="anfahrt" type="text" placeholder="Arndtstraße 11-15, 12489 Berlin" class="form-control input-md" required="" value="Arndtstraße 11-15, 12489 Berlin">
</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>
</fieldset>
</form>
</div> <!-- /container -->
<?php
require_once __DIR__ . '/footer.php';
?>
<script>
/*
$(document).ready(function(){
$('.datepicker input').on('changeDate', function(e){
val = $('textarea#beschreibung').val();
val = val.replace("**%%DATE%%**", '<strong>' + $("#termin").val() + '</strong>');
$('textarea#beschreibung').val(val);
});
});
*/
</script>
|