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) {
|
||||
$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>
|
||||
<html>
|
||||
@@ -54,23 +34,8 @@ return $ret;
|
||||
<style>
|
||||
<?php
|
||||
$css = file_get_contents( $basePath."/pages/desktop/wkParticipo/wkParticipo.css");
|
||||
if(!empty($_SESSION['login'])){
|
||||
try{
|
||||
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);
|
||||
echo(colorThemeCss($_SESSION['user']['userConfig']['colors']));
|
||||
echo($css);
|
||||
?>
|
||||
</style>
|
||||
<?php PHPCount::AddHit("Wettkampfplaner (".htmlspecialchars($_SESSION['user']['username']).")");?>
|
||||
@@ -80,9 +45,9 @@ return $ret;
|
||||
|
||||
<h1>Wettkampf­planung - Übersicht</h1>
|
||||
|
||||
|
||||
<nav class="navBar">
|
||||
<ul>
|
||||
<li><a href="./infoZettel.php">Infozettel</a></li>
|
||||
<li>
|
||||
<a href ="./eventKalender.php">alle geplanten Wettkämpfe als Liste</a>
|
||||
</li>
|
||||
@@ -140,7 +105,6 @@ return $ret;
|
||||
}
|
||||
else{
|
||||
foreach($wkEventData as $wkEvent){
|
||||
// var_dump($wkEvent);
|
||||
?>
|
||||
<div class="wkInfoCard">
|
||||
<time class="wkInfoCardDate" datetime="<?php echo( $wkEvent['date'] );?>">
|
||||
@@ -247,14 +211,11 @@ return $ret;
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
// var_dump($wkEvents);
|
||||
foreach( $wkEvents as $wk){
|
||||
//print_r($wk);
|
||||
$wkEvent = getWkEventData($mysqlConn, $wk['id'], array('outCharset'=>"UTF-8"));
|
||||
?>
|
||||
<h3><?php echo( $wkEvent['Veranstaltung'] );?></h3>
|
||||
<?php
|
||||
//var_dump($wkEvent);
|
||||
echo(
|
||||
htmlWkEvent(
|
||||
$wkEvent,
|
||||
@@ -300,9 +261,6 @@ return $ret;
|
||||
<nav class="navBar">
|
||||
<ul >
|
||||
<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="./horstWolfJudosport.php">Wurflexikon</a></li>
|
||||
<li><a href="./logout.php">Abmelden</a></li>
|
||||
|
||||
Reference in New Issue
Block a user