summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'intern.gospeladlershof.de/index.php')
-rw-r--r--intern.gospeladlershof.de/index.php149
1 files changed, 149 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/index.php b/intern.gospeladlershof.de/index.php
new file mode 100644
index 0000000..ff19354
--- /dev/null
+++ b/intern.gospeladlershof.de/index.php
@@ -0,0 +1,149 @@
+<?php
+$title="Gospelchor Adlershof";
+$class_index = 'class="active"';
+$class_konzert= '';
+$class_proben= '';
+require_once __DIR__ . '/header.php';
+?>
+
+ <!-- Main component for a primary marketing message or call to action -->
+ <div class="jumbotron">
+ <h1>Willkommen</h1>
+ <p>
+ <a class="btn btn-lg btn-primary" href="/proben.php" role="button">Proben eintragen &raquo;</a>
+ <a class="btn btn-lg btn-primary" href="/konzert.php" role="button">Konzert eintragen &raquo;</a>
+ </p>
+ </div>
+
+<?php
+require_once __DIR__ . '/code/termine.php';
+$konzert = $konzert[0];
+
+if ( isset($_SESSION["error"]) && ! is_null($_SESSION["error"]) ) {
+?>
+<div class="alert alert-danger" role="alert">
+<?php
+ echo htmlentities($_SESSION["error"]);
+ unset($_SESSION["error"]);
+?>
+</div>
+<?php
+} else if ( isset($_SESSION["success"]) && ! is_null($_SESSION["success"]) ) {
+?>
+<div class="alert alert-success" role="alert">
+<?php
+ echo htmlentities($_SESSION["success"]);
+
+ if ( isset($_SESSION["dontdisplaydeploybutton"]) ) {
+ unset($_SESSION["dontdisplaydeploybutton"]);
+ } else {
+?>
+ <hr>
+ Um die Änderung zu veröffentlichen, klicke auf den Button "Webseite aktualisieren".
+<?php
+ }
+
+ unset($_SESSION["success"]);
+?>
+</div>
+<?php
+} else if ( isset($_REQUEST["deploy"]) ) {
+ /*
+ * Die Webseite wurde neu gebaut.
+ */
+ if ( "1" === $_REQUEST["deploy"] ) {
+?>
+ <div class="alert alert-success" role="alert">
+ Die Webseite wurde aktualisiert und veröffentlicht!
+ </div>
+<?php
+
+ } else {
+?>
+ <div class="alert alert-danger" role="alert">
+ Es trat ein Fehler beim Erstellen der Webseite auf.
+ </div>
+<?php
+ }
+}
+?>
+ <h3>Das nächste Konzert</h3>
+<div class="table-responsive">
+ <table class="table table-striped table-condensed">
+ <thead>
+ <tr>
+ <th>Termin</th>
+ <th>Uhrzeit</th>
+ <th>Beschreibung</th>
+ <th>Anfahrt</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <?php
+ echo htmlentities($konzert["termin"]);
+ ?>
+ </td>
+ <td>
+ <?php
+ echo htmlentities($konzert["uhrzeit"]);
+ ?>
+ </td>
+ <td>
+ <?php
+ echo str_replace("&lt;strong&gt;", "<strong>", str_replace("&lt;/strong&gt;", "</strong>", htmlentities($konzert["beschreibung"])));
+ ?>
+ </td>
+ <td>
+ <?php
+ echo htmlentities($konzert["anfahrt"]);
+ ?>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+
+ <h3>All unsere Probentermine:</h3>
+<div class="table-responsive">
+ <table class="table table-striped table-condensed">
+ <thead>
+ <tr>
+ <th>Termin</th>
+ <th>Uhrzeit</th>
+ <th>Aktualisieren</th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php
+ foreach($proben as $item) {
+ ?>
+ <!--div class="col-12-sm col-12-xs col-6-md col-6-lg">
+ Termin: <?php echo htmlentities($item["termin"]); ?>
+ </div>
+ <div class="col-12-sm col-12-xs col-6-md col-6-lg">
+ Uhrzeit: <?php echo htmlentities($item["uhrzeit"]); ?>
+ </div>
+ <hr-->
+ <tr>
+ <td><?php echo htmlentities($item["termin"]); ?></td>
+ <td><?php echo htmlentities($item["uhrzeit"]); ?></td>
+ <td><a href="update_proben.php?id=<?php echo htmlentities($item["id"]);?>" title="Den Eintrag ändern"><span class="glyphicon glyphicon-pencil"></span></a></td>
+ </tr>
+ <?php
+ }
+ ?>
+ </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>
+
+ </div> <!-- /container -->
+
+<?php
+require_once __DIR__ . '/footer.php';
+?>