print "<td>Not played</td>"; } } else { print "<td>TBA</td>"; } print "</tr>\n"; } } else { print "<tr><td colspan=\"3\" align=\"center\">No matches yet for the current season</td></tr>\n"; } ?> </table> <h2>Previous Seasons</h2> <a name="prev"></a> <?php $seasons = list_seasons(); if (count($seasons) == 0) { print <<<EOT <p>There are currently no past seasons to display. Please come back soon! </p> <p>Please <a href="javascript:history.back()">click here</a> to go back. </p> EOT; } else { print <<<EOT <table class="teamsb"> <tr> \t<th>Season Name</th> \t<th>Start Date</th>
\t<td>{$seas->display_name()}</td> \t<td>{$seas->display_start()}</td> \t<td>{$seas->display_end()}</td> \t<td><a href="seasleague.php?{$seas->urlof()}">Click</a></td> \t<td><a href="seasmatches.php?{$seas->urlof()}">Click</a></td> </tr> EOT; } print "</table>\n"; } ?> <h2>Individual League</h2> <p>This is the former Individual League, which ran until October 2012.</p> <?php $seasons = list_seasons('I'); if (count($seasons) == 0) { print <<<EOT <p>No previous seasons to display data for.</p> EOT; } else { print <<<EOT <table class="teamsb"> <tr> \t<th>Season Name</th> \t<th>Start Date</th> \t<th>End Date</th> \t<th>League table</th> </tr>