added addStarter function to Event
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include_once("events.inc.php");
|
||||
include_once 'events.inc.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@@ -9,7 +9,7 @@ include_once("events.inc.php");
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<!-- shared imports (common css, MaterializeCss) -->
|
||||
<?php readfile("./shared/imports.php");?>
|
||||
<?php readfile('./shared/imports.php'); ?>
|
||||
|
||||
<!-- inits for the materializeCss -->
|
||||
<script>
|
||||
@@ -52,8 +52,8 @@ include_once("events.inc.php");
|
||||
});
|
||||
</script>
|
||||
|
||||
<title><?php echo($meta['title']);?></title>
|
||||
<meta name="description" content="<?php echo($meta['description']);?>" />
|
||||
<title><?php echo($meta['title']); ?></title>
|
||||
<meta name="description" content="<?php echo($meta['description']); ?>" />
|
||||
|
||||
<link rel="icon" href="<?echo($config['ressourceUrl']);?>/graphiken/icons/cwsv.ico" />
|
||||
<link rel="apple-touch-icon" href="<?echo($config['baseUrl']);?>/apple-touch-icon.png">
|
||||
@@ -63,17 +63,36 @@ include_once("events.inc.php");
|
||||
<body>
|
||||
<header>
|
||||
<!-- The sidenav -->
|
||||
<?php require("./events.sidenav.inc.php");?>
|
||||
<?php require './events.sidenav.inc.php'; ?>
|
||||
</header>
|
||||
|
||||
<?php if($_SESSION['login']){ ?>
|
||||
<?php if ($_SESSION['login']) { ?>
|
||||
<main>
|
||||
<?php
|
||||
$eventList = participo::getEventStarter();
|
||||
$htmlTable = null;
|
||||
if ($eventList) {
|
||||
$htmlTable = '<table>'
|
||||
. '<thead><tr><th>Datum</th><th>Veranstaltung</th><th>Starter</th></tr></thead>'
|
||||
. '<tbody>';
|
||||
foreach ($eventList as $event) {
|
||||
$htmlTable .= '<tr><td>' . $event['eventDate'] . '</td><td>' . $event['eventName'] . '</td><td>' . $event['userName'] . ', ' . $event['userFirstname'] . '</td></tr>';
|
||||
}
|
||||
$htmlTable .= '</tbody></table>';
|
||||
echo('<h2 id="commingStarts">Aktuelle Einschreibungen</h2>');
|
||||
echo($htmlTable);
|
||||
} else {
|
||||
echo($eventList ? $htmlTable : '<div>Keine Meldungen zu bevorstehenden Events');
|
||||
}
|
||||
?>
|
||||
<h2 id="eventList">Übersicht anstehender Events</h2>
|
||||
<!-- Table with events-->
|
||||
<?php echo( eventPlaner::getHtmlEventTable(eventPlaner::getCommingWkEvents()) );?>
|
||||
<?php echo(eventPlaner::getHtmlEventTable(eventPlaner::getCommingWkEvents())); ?>
|
||||
|
||||
<h2 id="detailedEventList">Detailansicht kommender Wettkämpfe</h2>
|
||||
<?php foreach( eventPlaner::getCommingWkEvents() as $event ) echo($event->asHtmlCard());?>
|
||||
<?php foreach (eventPlaner::getCommingWkEvents() as $event) {
|
||||
echo($event->asHtmlCard());
|
||||
}?>
|
||||
</main>
|
||||
<?php } ?>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user