48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
<?php
|
|
include_once 'events.inc.php';
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<!-- shared imports (common css, MaterializeCss) -->
|
|
<?php readfile('./shared/imports.php'); ?>
|
|
|
|
<!-- inits for the materializeCss -->
|
|
<script src="events.js"></script>
|
|
|
|
<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">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<!-- The sidenav -->
|
|
<?php require './events.sidenav.inc.php'; ?>
|
|
</header>
|
|
|
|
<?php if ($_SESSION['login']) { ?>
|
|
<main>
|
|
<h2 id="comingStarts">Eingeschriebene Starter</h2>
|
|
<?php Starter::htmlTableComingStarts(); ?>
|
|
|
|
<h2 id="eventList">Übersicht anstehender Events</h2>
|
|
<!-- Table with events-->
|
|
<?php echo(eventPlaner::getHtmlEventTable(eventPlaner::getComingWkEvents())); ?>
|
|
|
|
<h2 id="detailedEventList">Detailansicht kommender Wettkämpfe</h2>
|
|
<?php foreach (eventPlaner::getComingWkEvents() as $event) {
|
|
echo($event->asHtmlCard());
|
|
}?>
|
|
</main>
|
|
<?php } ?>
|
|
</body>
|
|
</html>
|