alte Infozettel hinzugefügt
This commit is contained in:
69
infoZettelOrg/webInterface/infoZettel.php
Normal file
69
infoZettelOrg/webInterface/infoZettel.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
require_once('./local/wkParticipoConf.php.inc');
|
||||
require_once('./local/db.php.inc');
|
||||
require_once('./lib/wkParticipoLib.php.inc');
|
||||
// Authentifizierung checken und evtl auf die Loginseite weiterleiten
|
||||
require_once('./auth.php');
|
||||
|
||||
require_once($wkParticipoConf['basePath']."/ressourcen/phpLib/parsedown/Parsedown.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;
|
||||
}
|
||||
|
||||
$fileList = glob($wkParticipoConf['basePath']."/infoZettel/*.md");
|
||||
sort($fileList);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>Infozettel der Judoka des CWSV</title>
|
||||
<meta name="description" content="Onlineversion der Handzettel für die Judoka des Chemnitzer WSV">
|
||||
|
||||
<link rel="icon" href="/ressourcen/graphiken/icons/cwsv.ico" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php echo $login_status; ?>
|
||||
|
||||
<h1>Infozettel</h1>
|
||||
|
||||
<style>
|
||||
.navBar{
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
}
|
||||
.infoZettel{
|
||||
width: 100%;
|
||||
background-color: #FFAE00;
|
||||
box-shadow: 0 1px 2px 0 rgba(0,0,0,.5);
|
||||
}
|
||||
} </style>
|
||||
<div class="navBar">
|
||||
<a class="touchLink" href=".">
|
||||
<div>zurück zum Wettkampfplaner</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
foreach($fileList as $file){
|
||||
echo("<div class=\"infoZettel\">" . Parsedown::instance()->text( file_get_contents($file) ) . "</div><hr />");
|
||||
}
|
||||
?>
|
||||
<!--Beginn der Einbindung des Counters-->
|
||||
<?php
|
||||
$chCounter_page_title = "Wettkampfplaner -- Infozettel";
|
||||
$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>
|
||||
|
||||
Reference in New Issue
Block a user