Wedstrijden van heren promotie divisie


<?php
include("class.nbb.php");
include("class.competitie.php");
include("class.wedstrijd.php");

/* org_ID is het organisatie ID uit de database van west
 * 0 - geen filter, bijv als je op club filter
 * 1 - NBB Landelijke competities
 * 2 - Rayon West
 * 3 - Rayon Oost
 * 4 - Rayon Zuid
 * 5 - Rayon Noord
 * 6 - Rayon Noord-Holland
 */

?>
<HTML>
<HEADER><TITLE>Test standen</TITLE></HEADER>
<BODY>
<?
$cmp_ID = 426;  // heren promotie divisie B2000
$org_ID = 1;  // van NBB
$wedstrijd = new Wedstrijd( $org_ID, $cmp_ID );
list($nr, $naam) = $wedstrijd->competitie();
print "<TABLE>\n";
print "<TR><TD colspan=6>$nr - $naam</TD></TR>\n";
$overzicht = $wedstrijd->overzicht();
//print_r($overzicht);
$wedstrijd_lijst = $wedstrijd->wedstrijden($cmp_ID);

// en de hele ranglijst aflopen
foreach ($wedstrijd_lijst as $id => $details ) {
	print "<TR>";
	print "<TD>" . $details['nummer'] ."</TD>";
	print "<TD>" . $details['datum'] ."</TD>";
	print "<TD>" . $details['tijd'] ."</TD>";
	print "<TD>" . $details['thuisclub'] . ' ' .$details['thuisteamafko'] ."</TD>";
	print "<TD>" . $details['uitclub'] . ' ' .$details['uitteamafko'] ."</TD>";
	print "<TD>" . $details['scorethuis'] . ' - ' . $details['scoreuit'] ."</TD>";

	print "</TR>\n";
}

print "</TABLE>\n\n";

?>
</BODY>
</HTML>