summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de
diff options
context:
space:
mode:
authorHorus2016-09-27 23:06:21 +0200
committerHorus2016-09-27 23:06:21 +0200
commitd59054727b3f982502162b41ed0a49d868041035 (patch)
treec4f62b3db5464a574870d38a21311d700a76db7a /intern.gospeladlershof.de
parenta9c07e798cc3c707f6d2516d602bea471c98cb04 (diff)
downloadgospeladlershof.de-d59054727b3f982502162b41ed0a49d868041035.tar.gz
Fügt Export-Funktion für die Probentermine hinzu.
Diffstat (limited to 'intern.gospeladlershof.de')
-rw-r--r--intern.gospeladlershof.de/code/export.php12
-rw-r--r--intern.gospeladlershof.de/index.php7
2 files changed, 16 insertions, 3 deletions
diff --git a/intern.gospeladlershof.de/code/export.php b/intern.gospeladlershof.de/code/export.php
new file mode 100644
index 0000000..6c1e3f1
--- /dev/null
+++ b/intern.gospeladlershof.de/code/export.php
@@ -0,0 +1,12 @@
+<?php
+
+require_once __DIR__ . '/termine.php';
+$konzert = $konzert[0];
+
+header("Content-Type: text/plain; Charset=UTF-8");
+header("Content-Disposition: attachment; filename=\"Probentermine ".date("j.n.Y", time()).".txt\"");
+
+echo "Gospelchor Adlershof - Probentermine (Stand ". date("j.n.Y", time()) .") \n\n";
+foreach($proben as $item) {
+ echo $item["termin"] . ": " . $item["uhrzeit"] . "\n";
+}
diff --git a/intern.gospeladlershof.de/index.php b/intern.gospeladlershof.de/index.php
index ded0435..ff19354 100644
--- a/intern.gospeladlershof.de/index.php
+++ b/intern.gospeladlershof.de/index.php
@@ -38,8 +38,8 @@ if ( isset($_SESSION["error"]) && ! is_null($_SESSION["error"]) ) {
unset($_SESSION["dontdisplaydeploybutton"]);
} else {
?>
- <hr>
- Um die Änderung zu veröffentlichen, klicke auf den Button "Webseite aktualisieren".
+ <hr>
+ Um die Änderung zu veröffentlichen, klicke auf den Button "Webseite aktualisieren".
<?php
}
@@ -137,7 +137,8 @@ if ( isset($_SESSION["error"]) && ! is_null($_SESSION["error"]) ) {
</tbody>
</table>
</div>
-
+<a href="/code/export.php" class="btn btn-primary"><span class="glyphicon glyphicon-export"></span> Download als Textdatei</a>
+<hr>
<p>Mit Klick auf den Button wird die Webseite <a href="//www.gospeladlershof.de/">https://www.gospeladlershof.de</a> aktualisiert.</p>
<a href="/code/deploy.php" class="btn btn-success"><span class="glyphicon glyphicon-refresh"></span> Webseite aktualisieren</a>