echo '<td style="border:none">Tee Times (<span style="font-size:small;">pending</span>)</td>'; echo '<td style="border:none"><a href="' . $script_folder_href . 'contact_chairman.php?tournament=' . $currentTournaments[$i]->TournamentKey . '">Tournament Director</a></td>'; } } } echo '</tr>' . PHP_EOL; if ($currentTournaments[$i]->MatchPlay == 1) { echo '<tr><td style="border:none" colspan="6">' . PHP_EOL; ShowMatchResults($connection, $currentTournaments[$i]->TournamentKey); echo '</td></tr>' . PHP_EOL; } } } echo '</table>' . PHP_EOL; } ShowRecentlyCompletedTournaments($connection, $script_folder_href); $connection->close(); if (have_posts()) { while (have_posts()) { the_post(); ?> <h2 id="post-<?php the_ID(); ?> "> <?php the_title(); ?> </h2> <small><?php the_time('F jS, Y');
<?php require_once realpath($_SERVER["DOCUMENT_ROOT"]) . '/login.php'; require_once realpath($_SERVER["DOCUMENT_ROOT"]) . $script_folder . '/tournament_functions.php'; require_once realpath($_SERVER["DOCUMENT_ROOT"]) . $script_folder . '/results_functions.php'; require_once realpath($_SERVER["DOCUMENT_ROOT"]) . $wp_folder . '/wp-blog-header.php'; date_default_timezone_set('America/Los_Angeles'); $connection = new mysqli($db_hostname, $db_username, $db_password, $db_database); get_header(); echo ' <div id="content-container" class="entry-content">'; echo ' <div id="content" role="main">' . PHP_EOL; ShowRecentlyCompletedTournaments($connection, ''); $tournamentKey = $_GET['tournament']; if ($tournamentKey) { $t = GetTournament($connection, $tournamentKey); if (isset($t)) { $td = GetTournamentDetails($connection, $tournamentKey); if (!empty($td->ScoresFile)) { echo '<iframe src="https://' . $web_site . '/results/' . $td->ScoresFile . '" name="resultsframe" width="80%" height="500" style="border: none;display: block;margin-left:auto;margin-right:auto" />' . PHP_EOL; } else { die('No scores for tournament key ' . $tournamentKey); } } else { echo "Invalid tournament: " . $tournamentKey; } echo ' </div><!-- #content -->'; echo ' </div><!-- #content-container -->'; } get_footer();