Link zu den Infozetteln prominenter plaziert
This commit is contained in:
@@ -18,26 +18,6 @@ setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
|||||||
if ($mysqlConn->connect_error) {
|
if ($mysqlConn->connect_error) {
|
||||||
$sqlMessage['error'] .= 'Datenbankverbindung fehlgeschlagen: ' . $mysqlConn->connect_error;
|
$sqlMessage['error'] .= 'Datenbankverbindung fehlgeschlagen: ' . $mysqlConn->connect_error;
|
||||||
}
|
}
|
||||||
// var_dump($_SESSION);
|
|
||||||
|
|
||||||
/// Stellt den cssCode mit den Variablendefinitionen bereit
|
|
||||||
function colorThemeCss($colorArray = ['backgroundColor'=>"#FFAE00", 'highlightColor'=>"#FF8100", 'buttonColor'=>"#291670"]){
|
|
||||||
$colorTypes = ["backgroundColor", "highlightColor", "buttonColor"];
|
|
||||||
$defaultColors =['backgroundColor'=> "#FFAE00", 'highlightColor'=>"#FF8100", 'buttonColor'=>"#291670"];
|
|
||||||
|
|
||||||
foreach($colorTypes as $key){
|
|
||||||
if( !preg_match("/^#(?:[0-9a-fA-F]{3}){1,2}$/", $key) ){
|
|
||||||
$colorThemeCss[$key] = $defaultColors[$key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$ret = ":root{";
|
|
||||||
|
|
||||||
foreach($colorArray as $key=>$value){
|
|
||||||
$ret .= "--".$key.": ".$value."; ";
|
|
||||||
}
|
|
||||||
$ret .= "}";
|
|
||||||
return $ret;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@@ -54,23 +34,8 @@ return $ret;
|
|||||||
<style>
|
<style>
|
||||||
<?php
|
<?php
|
||||||
$css = file_get_contents( $basePath."/pages/desktop/wkParticipo/wkParticipo.css");
|
$css = file_get_contents( $basePath."/pages/desktop/wkParticipo/wkParticipo.css");
|
||||||
if(!empty($_SESSION['login'])){
|
echo(colorThemeCss($_SESSION['user']['userConfig']['colors']));
|
||||||
try{
|
echo($css);
|
||||||
if(!empty($_SESSION['user']['userConfig'])){
|
|
||||||
var_dump($_SESSION);
|
|
||||||
#$config = json_decode($_SESSION['user']['userConfig'], true);
|
|
||||||
#$css = str_replace ( "#FFAE00", $config['color1'], $css );
|
|
||||||
#$css = str_replace ( "#ffae00", $config['color1'], $css );
|
|
||||||
#$css = str_replace ( "#FF8100", $config['color2'], $css );
|
|
||||||
#$css = str_replace ( "#ff8100", $config['color2'], $css );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception $e) {
|
|
||||||
echo 'Exception abgefangen: ', $e->getMessage(), "\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo(colorThemeCss($_SESSION['user']['userConfig']));
|
|
||||||
echo($css);
|
|
||||||
?>
|
?>
|
||||||
</style>
|
</style>
|
||||||
<?php PHPCount::AddHit("Wettkampfplaner (".htmlspecialchars($_SESSION['user']['username']).")");?>
|
<?php PHPCount::AddHit("Wettkampfplaner (".htmlspecialchars($_SESSION['user']['username']).")");?>
|
||||||
@@ -80,9 +45,9 @@ return $ret;
|
|||||||
|
|
||||||
<h1>Wettkampf­planung - Übersicht</h1>
|
<h1>Wettkampf­planung - Übersicht</h1>
|
||||||
|
|
||||||
|
|
||||||
<nav class="navBar">
|
<nav class="navBar">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="./infoZettel.php">Infozettel</a></li>
|
||||||
<li>
|
<li>
|
||||||
<a href ="./eventKalender.php">alle geplanten Wettkämpfe als Liste</a>
|
<a href ="./eventKalender.php">alle geplanten Wettkämpfe als Liste</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -140,7 +105,6 @@ return $ret;
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
foreach($wkEventData as $wkEvent){
|
foreach($wkEventData as $wkEvent){
|
||||||
// var_dump($wkEvent);
|
|
||||||
?>
|
?>
|
||||||
<div class="wkInfoCard">
|
<div class="wkInfoCard">
|
||||||
<time class="wkInfoCardDate" datetime="<?php echo( $wkEvent['date'] );?>">
|
<time class="wkInfoCardDate" datetime="<?php echo( $wkEvent['date'] );?>">
|
||||||
@@ -247,14 +211,11 @@ return $ret;
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// var_dump($wkEvents);
|
|
||||||
foreach( $wkEvents as $wk){
|
foreach( $wkEvents as $wk){
|
||||||
//print_r($wk);
|
|
||||||
$wkEvent = getWkEventData($mysqlConn, $wk['id'], array('outCharset'=>"UTF-8"));
|
$wkEvent = getWkEventData($mysqlConn, $wk['id'], array('outCharset'=>"UTF-8"));
|
||||||
?>
|
?>
|
||||||
<h3><?php echo( $wkEvent['Veranstaltung'] );?></h3>
|
<h3><?php echo( $wkEvent['Veranstaltung'] );?></h3>
|
||||||
<?php
|
<?php
|
||||||
//var_dump($wkEvent);
|
|
||||||
echo(
|
echo(
|
||||||
htmlWkEvent(
|
htmlWkEvent(
|
||||||
$wkEvent,
|
$wkEvent,
|
||||||
@@ -300,9 +261,6 @@ return $ret;
|
|||||||
<nav class="navBar">
|
<nav class="navBar">
|
||||||
<ul >
|
<ul >
|
||||||
<li><a href="./userInfo.php">Zur Benutzer­übersichts­seite</a></li>
|
<li><a href="./userInfo.php">Zur Benutzer­übersichts­seite</a></li>
|
||||||
<!-- Seit dem Umzug der Bilder auf lima-city ohne Funktion!
|
|
||||||
<li><a href="./galImgPicker.php">Bilder­auswahl</a></li>
|
|
||||||
-->
|
|
||||||
<li><a href="./infoZettel.php">Infozettel</a></li>
|
<li><a href="./infoZettel.php">Infozettel</a></li>
|
||||||
<li><a href="./horstWolfJudosport.php">Wurflexikon</a></li>
|
<li><a href="./horstWolfJudosport.php">Wurflexikon</a></li>
|
||||||
<li><a href="./logout.php">Abmelden</a></li>
|
<li><a href="./logout.php">Abmelden</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user