Sauerlandpokal

[insert_php]
$filePrefix = ‘files/ergebnisse/2017/sauerland/2017_’;
$fileMiddleT = ‘_T_K’;
$fileMiddleM = ‘_M_K’;
$header = array(‘Datum’, ‘Veranstalter’, ‘K1’, ‘K2’, ‘K3’, ‘K4’, ‘K5’, ‘K6’, ‘Gesamt’, ‘Mädchen’);
$dates = array();
$clubs = array();

array_push($dates,’02.04.2017′);
array_push($clubs,’MSC Werl’);

array_push($dates,’02.04.2017′);
array_push($clubs,’MSC Werl’);

array_push($dates,’18.06.2017′);
array_push($clubs,’MSC Süd Sauerland’);

array_push($dates,’16.07.2017′);
array_push($clubs,’AMC Bad Berleburg’);

array_push($dates,’24.09.2017′);
array_push($clubs,’MSF Cobbenrode’);

array_push($dates,’15.10.2017′);
array_push($clubs,’MSC Schmallenberg’);

array_push($dates,’22.10.2017′);
array_push($clubs,’MSC Oeventrop’);
[/insert_php]

Tageswertung

[insert_php]

for($i=0;$i‘.$header[$i].’

‘;
}
[/insert_php]

[insert_php]
$offset = 0;

for($i=0;$i‘.”\r\n”;

for ($j=0;$j‘;
if($j==0) echo $dates[$i];
if($j==1) echo $clubs[$i];
$currentFileName = $filePrefix.’L’.($i+1-$offset).$fileMiddleT.($j-1).’.pdf’;
$currentFileName = str_replace(array(‘K7′,’K8’), array(‘ALLE’,’MAEDCHEN’),$currentFileName);
echo ‘‘;
if($j>1 && is_file($currentFileName) && $clubs[$i] != “”){
echo ‘
‘;
echo $header[$j].’
‘;
}
echo ‘

‘.”\r\n”;
}

echo ‘

‘.”\r\n”;
}

[/insert_php]

Meisterschaftswertung

[insert_php]

$header = array(‘Datum’, ‘Veranstalter’, ‘K1’, ‘K2’, ‘K3’, ‘K4’, ‘K5’, ‘K6’, ‘Mannschaft’, ”);
for($i=0;$i‘.$header[$i].’

‘;
}
[/insert_php]

[insert_php]
$offset = 0;

for($i=0;$i‘.”\r\n”;

for ($j=0;$j‘;
if($j==0) echo $dates[$i];
if($j==1) echo $clubs[$i];
$currentFileName = $filePrefix.’L’.($i+1-$offset).$fileMiddleM.($j-1).’.pdf’;
$currentFileName = str_replace(‘K7’, ‘MANNSCHAFTEN’,$currentFileName);
echo ‘‘;
if($j>1 && is_file($currentFileName) && $clubs[$i] != “”){
echo $header[$j];
}
echo ‘

‘.”\r\n”;
}

echo ‘

‘.”\r\n”;
}

[/insert_php]

[insert_php]

for($i=0;$i<6;$i++){ echo '

‘;
}
[/insert_php]

[insert_php]

for($i=0;$i<6;$i++){ echo '

‘;
}
[/insert_php]

Gesamtwertung ‘;
if(is_file($filePrefix.’G_K’.($i+1).’.pdf’))
echo ‘K’.($i+1).’‘;
echo ‘
[insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_G_ALLE.pdf’)) echo “Gesamt“; [/insert_php] [insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_G_MAEDCHEN.pdf’)) echo “Mädchen“; [/insert_php]
[insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_G_MANNSCHAFTEN.pdf’)) echo “Mannschaft“; [/insert_php]
HSK-Wertung ‘;
if(is_file($filePrefix.’G_K’.($i+1).’.pdf’))
echo ‘K’.($i+1).’‘;
echo ‘
[insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_K_ALLE.pdf’)) echo “Gesamt“; [/insert_php] [insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_K_MAEDCHEN.pdf’)) echo “Mädchen“; [/insert_php]
[insert_php] if(is_file(‘files/ergebnisse/2017/sauerland/2017_K_MANNSCHAFTEN.pdf’)) echo “Mannschaft“; [/insert_php]