-
Notifications
You must be signed in to change notification settings - Fork 0
/
wedstrijden.php
73 lines (59 loc) · 2.2 KB
/
wedstrijden.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
Template Name: Wedstrijden
*/
get_header(); ?>
<article class="post page"> <?php
if(have_posts()) :
while(have_posts()) : the_post(); ?>
<?php
if (has_children() OR $post->post_parent > 0) { ?>
<nav class="site-subnav children-links clearfix">
<span class="parent-link"><a href="<?php print get_the_permalink(get_top_ancestor_id()); ?>"><?php print get_the_title(get_top_ancestor_id()); ?></a></span>
<ul id="positionfix-subnav">
<?php
$args = array(
'child_of' => get_top_ancestor_id(),
'title_li' => ''
);
wp_list_pages($args); ?>
</ul>
</nav>
<?php } ?>
<?php the_post_thumbnail(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile;
else :
echo '<p> No content </p>';
endif;
$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>";
print "<TD>" . $details['thuisclub'] . ' ' .$details['thuisteamafko'] ."</TD>";
print "<TD>" . $details['uitclub'] . ' ' .$details['uitteamafko'] ."</TD>";
print "<TD>" . $details['scorethuis'] . ' - ' . $details['scoreuit'] ."</TD>";
print "<TD>" . $details['locatie'] ."</TD>";
print "<TD>" . $details['plaats'] ."</TD>";
print "</TR>\n";
}
print "<tr class='blank_row'><td colspan='3'></td></tr>";
}
print "</TABLE>\n\n";
?> </div> <?php
get_footer();
?>