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.php115
1 files changed, 115 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/index.php b/intern.gospeladlershof.de/index.php
new file mode 100644
index 0000000..558596b
--- /dev/null
+++ b/intern.gospeladlershof.de/index.php
@@ -0,0 +1,115 @@
+<?php
+$title="Gospelchor Adlershof";
+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 ( ! empty($_SESSION) && ! is_null($_SESSION["error"]) ) {
+?>
+<div class="alert alert-danger" role="alert">
+<?php
+var_dump($_SESSION);
+ echo htmlentities($_SESSION["error"]);
+ unset($_SESSION["error"]);
+?>
+</div>
+<?php
+} else if ( ! empty($_SESSION) && ! is_null($_SESSION["success"]) ) {
+?>
+<div class="alert alert-success" role="alert">
+<?php
+ echo htmlentities($_SESSION["success"]);
+ unset($_SESSION["success"]);
+?>
+</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>
+
+ </div> <!-- /container -->
+
+<?php
+require_once __DIR__ . '/footer.php';
+?>