renamed: md/downloads.md -> md/download.md renamed: yaml/downloads.subNav.yaml -> yaml/download.subNav.yaml modified: yaml/extras.subNav.yaml - kleinere Rechtschreibekorrektur modified: md/index.md - überflüßige Datei entfernt deleted: md/kontakt.md~ - das Zitat wieder zurück in den Header geholt modified: pandocTemplate/cwsvJudo.html5.pandocTemplate - muss nocheinmal überprüft werden: warum funktioniert die Jahresansicht der News nicht? modified: phpLib/cwsvJudo/newsLib.php modified: phpLib/cwsvJudo/newsTableHtml.php - Überwachen der alten Adressen für eine korrekte Umleitung new file: redirecting/pagesDesktop/redirecter.php new file: redirecting/pagesDesktop/redirects.json new file: redirecting/pagesMobile/redirecter.php new file: redirecting/pagesMobile/redirects.json - ein zu frühes melden im Wettkampfplaner verhindern! modified: wkParticipo/eventKalender.php modified: wkParticipo/lib/wkParticipoLib.inc.php modified: wkParticipo/showWkEvent.php
81 lines
2.3 KiB
PHP
81 lines
2.3 KiB
PHP
<?php
|
|
require_once('./local/wkParticipoConf.php.inc');
|
|
require_once('./authLogin.php');
|
|
require_once('./local/db.php.inc');
|
|
require_once('./lib/wkParticipoLib.inc.php');
|
|
|
|
$sqlMessage = array();
|
|
|
|
$mysqlConn = @new mysqli($db_server, $db_user, $db_password, $db_name);
|
|
if ($mysqlConn->connect_error) {
|
|
$sqlMessage['error'] .= 'Datenbankverbindung fehlgeschlagen: ' . $mysqlConn->connect_error;
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>Wettkampfplanung der Judoka des CWSV</title>
|
|
<link rel="stylesheet" href="./style.css">
|
|
<link rel="stylesheet" href="wkParticipo.css">
|
|
</head>
|
|
<body>
|
|
<?php echo $login_status;?>
|
|
<?php echo htmlRetMessage($sqlMessage);?>
|
|
|
|
<h1>Wettkampfplanung - Kalender</h1>
|
|
|
|
<style>
|
|
.navBar{
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
</style>
|
|
<div class="navBar">
|
|
<a class="touchLink" href="./index.php">
|
|
<div>Zur Übersicht zurück</div>
|
|
</a>
|
|
<a class="touchLink" href="http://cwsvjudo.bplaced.net/pages/desktop/wkParticipo/calendar.php">
|
|
<div>die geplanten Wettkämpfe als iCal</div>
|
|
</a>
|
|
<a class="touchLink" href="https://www.google.com/calendar/render?cid=http://cwsvjudo.bplaced.net/pages/desktop/wkParticipo/calendar.php">
|
|
<div>alle geplanten Wettkämpfe in den Google Kalender übernehmen</div>
|
|
</a>
|
|
</div>
|
|
|
|
<h2 id="wettkaempfen">Anstehende Wettkämpfe</h2>
|
|
<?php
|
|
$wkEvents = getCommingWkEvents($mysqlConn);
|
|
|
|
if( empty($wkEvents) ){
|
|
?>
|
|
<p>Momentan befinden sich anscheinend keine Wettkämpfe in Planung!</p>
|
|
<?php
|
|
}
|
|
else{
|
|
foreach( $wkEvents as $wk){
|
|
$wkEvent = getWkEventData($mysqlConn, $wk['id']);
|
|
echo htmlWkEvent($wkEvent, getStarterForEvent($mysqlConn, $wkEvent['id']), getFahrtenForEvent($mysqlConn, $wkEvent['id']));
|
|
?>
|
|
<hr />
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
|
|
<!--Beginn der Einbindung des Counters-->
|
|
<?php
|
|
$chCounter_page_title = "Wettkampfplaner -- Eventkalender";
|
|
$chCounter_page_url = $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI] . "?user=".$_SESSION['user']['username'];
|
|
$chCounter_visible=0;
|
|
// include( $_SERVER['DOCUMENT_ROOT'].'/expCounter/counter.php');
|
|
?>
|
|
</body>
|
|
</html>
|