'no' or $_SESSION['usr'] <> '') {
include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/database.php");
global $Toernooi;
$Toernooi = "";
$HeaderText = "Laddercompetitie maandag";
include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/pageheader.php");
// include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/menu_comp.php");
} else {
?>
';
//echo "Info";
//echo "Inschrijven";
//echo "Deelnemers";
//if ($playday == "maandag") {
// echo 'Naar maandag';
//}else{
// echo 'Naar Maandag';
//}
// Historie alle jaren vanaf 2003. Eerste vijf jaar niet gegroupeerd, de rest wel.
echo 'Historie»';
echo '';
$playyear = intval($playdate->format('Y'));
//die ("yr: $playyear");
for ($i = $playyear; $i >= 2003; $i -= 5) {
for ($j = 0; $j <= 4; $j++) {
if (($j) % 5 == 0 and $i <> ($playyear)){
//echo '- '. ($i - $j) . ' t/m ' . ($i - $j - 4) . '»';
echo '
- '. ($i - $j) . ' t/m ' . ($i - $j - 4) . '»';
echo '
';
}
$filename = 'laddercompetitie__\'' . substr(($i - $j),2,2) .'-\'' . substr(($i - $j+1),2,2) . '_'. $playday . '.htm';
// $filename = 'laddercompetitie_' . $playday . '_supercompetitie_' . ($i - $j) . '.htm';
echo $filename;
if (file_exists($filename)) {
// echo '- ' . ($i - $j) . '
';
echo '- ' . ($i - $j) . '
';
//echo '- ' . ($i - $j) . '
';
}
if (($j-4) % 5 == 0 and $i <> ($playyear)){echo '
';}
}
}
echo '
';
echo 'Supercompetitie';
// Speeldagen
for ($i = 1; $i <= $playtimes; $i++) {
//if ( $i==$playtimes){
// $session = "slotdrive";
// $sestext = "Finale: ";
//} else {
$session = str_pad($i,2,"0",STR_PAD_LEFT);
$sestext = ""; //$i . ": ";
//}
$filename = 'laddercompetitie_' . $playday . '_sessie_' . $session . '.htm';
$playdatef = $playdate->format('d-m');
// $playedcolor = '#FFD038'; // 'lightgreen';
if (file_exists($filename)) {
$d1=new DateTime(date("Y-m-d",filemtime($filename)));
$d2 = new DateTime('now');
$interval=$d2->diff($d1);
$interval = $interval->days;
if ($interval < 100){
$nieuwinzomer = true;
$playedcolor = '#E8E8E8'; // grijs
//echo "";
echo "";
} else {
if ($nieuwinzomer) {$playedcolor = 'hsl(120,60%,90%)';} // yellow#FFD038}
//echo '' . $sestext . $playdatef . '';
echo "";
}
} else {
echo '' . $sestext . $playdatef . '';
}
// echo '' . $sestext . $playdatef . '';
// echo '';
// echo $sestext . ' ' . $playdatef . '';
$playdate->modify('+7 days');
}
echo '';
?>
|