Beispiel #1
0
        print $details['locatie'];
        ?>
 </br> <?php 
    }
}
?>
 
                </p>
                <p>
                <?php 
// Rolstoel basketbal
$plg_ID = 3892;
$cmp_ID = 1508;
$org_ID = 0;
// van NBB
$wedstrijd = new Wedstrijd($org_ID, $cmp_ID);
$wedstrijd->teamid($plg_ID);
$wedstrijd->seizoen();
// hoeft niet, als je geen seizoen opgeeft, wordt het het huidig
$wedstrijd->filter_schema(7);
list($nr, $naam) = $wedstrijd->competitie();
$overzicht = $wedstrijd->overzicht();
$wedstrijd_lijst = $wedstrijd->wedstrijden($cmp_ID);
// alle wedstrijden tonen
if (count($wedstrijd_lijst) <= 0) {
    $no_games++;
    //print "geen wedstrijden gepland.";
} else {
    print "<h2>{$naam}</h2>\n";
    foreach ($wedstrijd_lijst as $id => $details) {
        print $details['thuisclub'] . ' - ' . $details['thuisteamafko'];
        ?>
</h2>
        <?php 
        the_content();
        ?>

    <?php 
    }
} else {
    echo '<p> No content </p>';
}
$clb_ID = 132;
// B.A.S. basketball, ISS 3109
$org_ID = 5;
// rayon oost
$wedstrijd = new Wedstrijd($org_ID);
$wedstrijd->club(5112);
// ISS nr van BAS basketball
// bovenstaand kan ook met $wedstrijd->clubid( 132 );
$wedstrijd->alleen_club_gegevens();
$overzicht = $wedstrijd->overzicht();
#print_r($overzicht);
print "<TABLE>\n";
foreach ($overzicht as $cmp_ID => $data) {
    print "<TR><TD colspan='8' class='table-header'>" . $data['naam'] . "</TD></TR>\n";
    $wedstrijd_lijst = $data['wedstrijden'];
    foreach ($wedstrijd_lijst as $id => $details) {
        print "<TR class='redstuffall'>";
        //print "<TD>" . $details['nummer'] ."</TD>";
        print "<TD>" . $details['datum'] . "</TD>";
        print "<TD>" . $details['tijd'] . "</TD>";