diff options
| author | Horus | 2016-12-02 20:10:29 +0100 |
|---|---|---|
| committer | Horus | 2016-12-02 20:10:29 +0100 |
| commit | 98ab1c8d95ae2fd4e07de366029a8cb224bcfe34 (patch) | |
| tree | 918855166c779e05c9986cef8d802ae661bc37f5 /intern.gospeladlershof.de | |
| parent | cbc20d51ce2db57837d47faf320396c75281c91f (diff) | |
| download | gospeladlershof.de-98ab1c8d95ae2fd4e07de366029a8cb224bcfe34.tar.gz | |
Bugfix
Diffstat (limited to 'intern.gospeladlershof.de')
| -rw-r--r-- | intern.gospeladlershof.de/chor.php | 12 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/code/chor/update.php | 4 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/header.php | 2 |
3 files changed, 14 insertions, 4 deletions
diff --git a/intern.gospeladlershof.de/chor.php b/intern.gospeladlershof.de/chor.php index ac73320..9c4cfdc 100644 --- a/intern.gospeladlershof.de/chor.php +++ b/intern.gospeladlershof.de/chor.php @@ -31,7 +31,9 @@ $nachricht = $stmt->fetch(PDO::FETCH_ASSOC); <div class="form-group"> <label class="col-md-4 control-label" for="nachricht">Chorbeschreibung</label> <div class="col-md-4"> - <input id="anfahrt" name="anfahrt" type="text" placeholder="Hier den Text einfügen, der auf der Startseite unter der Chorbeschreibung erscheinen soll." class="form-control input-md" required="" value="<?php echo htmlentities($nachricht["nachricht"]); ?>"> + <textarea onkeyup='auto_grow(this);' id="nachricht" name="nachricht" type="text" class="form-control input-md" required="" placeholder="Hier den Text einfügen, der auf der Startseite unter der Chorbeschreibung erscheinen soll."> +<?php echo htmlentities($nachricht["nachricht"]); ?></textarea> + </div> </div> </div> @@ -52,6 +54,14 @@ $nachricht = $stmt->fetch(PDO::FETCH_ASSOC); </div> <!-- /container --> +<script> +function auto_grow(element) { + element.style.height = "5px"; + element.style.height = (element.scrollHeight)+"px"; +} +var tx = document.getElementById("nachricht"); +auto_grow(tx); +</script> <?php require_once __DIR__ . '/footer.php'; ?> diff --git a/intern.gospeladlershof.de/code/chor/update.php b/intern.gospeladlershof.de/code/chor/update.php index a781835..f3ac83f 100644 --- a/intern.gospeladlershof.de/code/chor/update.php +++ b/intern.gospeladlershof.de/code/chor/update.php @@ -6,7 +6,7 @@ require_once __DIR__ . '/../session.php'; $db = get_db(); $id = $_REQUEST["id"]; -$nachricht = $_REQUEST["termin"]; +$nachricht = $_REQUEST["nachricht"]; try { $stmt = $db->prepare("UPDATE chor set nachricht =:nachricht WHERE id=:id;"); @@ -20,7 +20,7 @@ try { error_log($e->getMessage()); } -if ( empty($_SESSION) || is_null($_SESSON["error"]) ) { +if ( empty($_SESSION) || is_null($_SESSION["error"]) ) { $_SESSION["success"] = "Erfolgreich aktualisiert!"; } header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); diff --git a/intern.gospeladlershof.de/header.php b/intern.gospeladlershof.de/header.php index d7ec8dd..ad56e9d 100644 --- a/intern.gospeladlershof.de/header.php +++ b/intern.gospeladlershof.de/header.php @@ -69,7 +69,7 @@ if ( ! defined("LOGIN_SITE") || ! LOGIN_SITE ) { <li <?php echo $class_index; ?>><a href="/"><span class="glyphicon glyphicon-home"></span> Start</a></li> <li <?php echo $class_proben; ?>><a href="/proben.php"><span class="glyphicon glyphicon-th-list"></span> Termine</a></li> <li <?php echo $class_konzert; ?>><a href="/konzert.php"><span class="glyphicon glyphicon-music"></span> Konzert</a></li> - <li <?php echo $class_chor; ?>><a href="/chor.php"><span class="glyphicon glyphicon-commenting"></span> Chor</a></li> + <li <?php echo $class_chor; ?>><a href="/chor.php"><span class="glyphicon glyphicon-user"></span> Chor</a></li> <li><a href="/mailman/listinfo/chor/"><span class="glyphicon glyphicon-envelope"></span> E-Mail Verteiler</a></li> <li><a href="/mailman/private/chor/"><span class="glyphicon glyphicon-send"></span> E-Mail Archiv</a></li> <!--li class="dropdown"> |
