$addCSS = ""; } $counter++; $tournamentObj->objTeam->select($teamID); $dispTeamName = $tournamentObj->getPlayerName(); if ($dispTeamName == "") { $dispTeamName = "<i>Empty Spot</i>"; } $dispTeamRecord = $tournamentObj->objTournamentPool->getTeamRecord($teamID); $dispPools .= "<tr><td class='tinyFont" . $addCSS . "' valign='top' style='width: 65%'>" . $counter . ". " . $dispTeamName . "</td><td class='tinyFont" . $addCSS . "' style='width: 35%' valign='top'>" . $dispTeamRecord . "</td></tr>"; } $dispPoolLetter++; $dispPools .= "<tr><td colspan='2' class='tinyFont'><br></td></tr>"; } echo "\n\t\t\t\t\n\t\t\t\t<span class='tournamentProfileTitle'>POOLS</span>\n\t\t\t\t<div class='dashedBox main' style='height: 400px; overflow-y: auto; padding: 5px'>\n\t\t\t\t\t<table class='formTable' style='margin-left: 3px; margin-top: 3px; width: 95%; border-spacing: 0px'>\n\t\t\t\t\t\t" . $dispPools . "\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/poolmatches.php?tID=" . $tID . "' target='_blank'>View Matches</a>\n\t\t\t\t</p>\n\t\t\t\t\n\t\t\t"; } if ($tournamentInfo['seedtype'] != 3) { echo "\n\t\t\t<span class='tournamentProfileTitle'>MATCHES</span>\n\t\t\t<div class='dashedBox main' style='height: 400px; overflow-y: auto; padding: 5px'>\n\t\t\t\n\t\t\t\t<b>Select Round:</b> <select id='roundSelect' class='textBox'>" . $roundoptions . "</select>\n\t\t\t\t<div class='loadingSpiral' id='loadingSpiral'>\n\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<div id='matchDiv'>\n\t\t\t\t\n\t\t\t\t\t"; include "include/listmatches.php"; echo "\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/bracket.php?tID=" . $tID . "' target='_blank'>View Bracket</a>\n\t\t\t</p>\n\t\t\t\n\t\t\t"; if ($tournamentObj->checkForPools()) { echo "\n\t\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/poolmatches.php?tID=" . $tID . "' target='_blank'>View Pool Matches</a>\n\t\t\t\t\t</p>\n\t\t\t\t"; } if ($tournamentObj->memberCanJoin($memberInfo['member_id'])) { $tConsoleObj = new ConsoleOption($mysqli); $joinTournamentLink = $tConsoleObj->getConsoleLinkByName("Join a Tournament", false); echo "\n\t\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t\t<a href='" . $joinTournamentLink . "&tID=" . $tID . "'>Join Tournament</a>\n\t\t\t\t\t</p>\n\t\t\t\t"; } } echo "\t\n\t\t</div>\n\t\n\t</div>\n\t\n\t<script type='text/javascript'>\n\t\n\t\t\$(document).ready(function() {\n\t\n\t\t\t\$('#roundSelect').change(function() {\n\t\n\t\t\t\t\$('#roundNumSpan').html(\$('#roundSelect').val());\n\t\n\t\t\t\t\$('#matchDiv').hide();\n\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\$.post('" . $MAIN_ROOT . "tournaments/include/listmatches.php', { tID: " . $tID . ", roundSelected: \$('#roundSelect').val() }, function(data) {\n\t\t\t\t\t\$('#matchDiv').html(data);\n\t\t\t\t\t\n\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\$('#matchDiv').fadeIn(250);\n\t\t\t\t});\n\t\n\t\t\t});\n\t\t\t\n\t\t});\n\t\n\t\n\t</script>\n\t\n"; include $prevFolder . "themes/" . $THEME . "/_footer.php";