summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/code/export.php
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/code/export.php
parenta9c07e798cc3c707f6d2516d602bea471c98cb04 (diff)
downloadgospeladlershof.de-d59054727b3f982502162b41ed0a49d868041035.tar.gz
Fügt Export-Funktion für die Probentermine hinzu.
Diffstat (limited to 'intern.gospeladlershof.de/code/export.php')
-rw-r--r--intern.gospeladlershof.de/code/export.php12
1 files changed, 12 insertions, 0 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";
+}