Wedstrijden van alleen M16 van Wildcatse



<?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>Uitslagen MU16 Wildcats</TITLE></HEADER>
<BODY>
<?
$plg_ID = 8591;  // Wildcats M16 
$cmp_ID = 2097;  
$org_ID = 1;  // van NBB
$wedstrijd = new Wedstrijd( $org_ID, $cmp_ID );
$wedstrijd->teamid( $plg_ID );
$wedstrijd->seizoen('2010-2011');  // hoeft niet, als je geen seizoen opgeeft, wordt het het huidig

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);

// alle wedstrijden tonen
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 "<TD>Shirts: " . $details['thuisteamshirt'] . ' - ' . $details['uitteamshirt'] ."</TD>";
	print "<TD>" . $details['loc_id'] ."</TD>";
	print "<TD>" . $details['locatie'] ."</TD>";
	print "<TD>" . $details['adres'] ."</TD>";
	print "<TD>" . $details['postcode'] ."</TD>";
	print "<TD>" . $details['plaats'] ."</TD>";

	print "</TR>\n";
}

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

?>
</BODY>
</HTML>