95 lines
3.2 KiB
PHP
95 lines
3.2 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>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
var elems = document.querySelectorAll('.sidenav');
|
|
var instances = M.Sidenav.init(elems, {
|
|
// specify options here
|
|
});
|
|
});
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
var elems = document.querySelectorAll('.modal');
|
|
var instances = M.Modal.init(elems, {
|
|
// specify options here
|
|
});
|
|
});
|
|
|
|
// Open the given modal
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
// So far we assume the first given fragment (the stuff behind the #) is the modalId
|
|
var eventId = window.location.hash.substr(1);
|
|
var Modalelem = document.querySelector('#event-modal-'+eventId);
|
|
var instance = M.Modal.init(Modalelem);
|
|
instance.open();
|
|
});
|
|
</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>
|
|
<!-- cwsvJudoApps SideNav -->
|
|
<div>
|
|
<nav class="indigo darken-4">
|
|
<div class="nav-wrapper">
|
|
<div class="col s12">
|
|
<a href="http://cwsvjudo.bplaced.net/" class="breadcrumb">cwsvJudo-Apps</a>
|
|
<a href="http://cwsvjudo.bplaced.net/participo/events" class="breadcrumb"><?php echo($meta['title']);?></a>
|
|
</div>
|
|
</div>
|
|
|
|
<a class="right top-nav sidenav-trigger waves-effect waves-light hide-on-large-only" href="#" data-target="nav-mobile">
|
|
<i class="material-icons">menu</i>
|
|
</a>
|
|
</nav>
|
|
|
|
<ul class="sidenav sidenav-fixed sidenav-close" id="nav-mobile">
|
|
<li class="logo">
|
|
<a style="height:auto;" class="brand-logo" id="logo-container" href="/participo/">
|
|
<img alt="cwsvJudoApps" style="max-width:100%;height:12vh;" class="responsive-img" src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png" />
|
|
</a>
|
|
</li>
|
|
<?php require_once("sidenav/loginStatus.php");?><!-- brings its own li -->
|
|
<li class="bold">
|
|
<a class="waves-effect waves-teal right-align" href="#eventList">Liste anstehender Events<i class="material-icons">format_list_bulleted</i></a>
|
|
</li>
|
|
<li class="bold">
|
|
<a class="waves-effect waves-teal right-align" href="#detailedEventList">Details anstehender Events<i class="material-icons">view_list</i></a>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</header>
|
|
|
|
<?php if($_SESSION['login']){ ?>
|
|
<main>
|
|
<h1 id="eventList">Übersicht anstehender Events</h1>
|
|
<!-- Table with events-->
|
|
<?php echo( eventPlaner::getHtmlEventTable(eventPlaner::getCommingWkEvents()) );?>
|
|
|
|
<h1 id="detailedEventList">Detailansicht kommender Wettkämpfe</h1>
|
|
<?php foreach( eventPlaner::getCommingWkEvents() as $event ) echo($event->asHtmlCard());?>
|
|
</main>
|
|
<?php } ?>
|
|
</body>
|
|
</html>
|