print "<p align=\"center\"><b>Scores Entered... Updating teams</b></p>\n\n"; print "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=./rank_team_scores.php?game_type={$getType}&eventId={$getEvent}\">\n\n"; } print "<p align=\"center\">Redirecting...</p>\n\n"; print "<p align=\"center\"><a href=\"./score_entry.php?getEvent={$getEvent}&getGame={$getGame}&getType={$getType}&entryType={$entryType}\">Click here to return to game</a></p>\n\n"; print_footer(); } elseif ($_GET["getEvent"] != "" && $_GET["getGame"] != "" && $_GET["getType"] != "") { $getEvent = $_GET["getEvent"]; $getGame = $_GET["getGame"]; $getType = $_GET["getType"]; print_header("Admin", "Score Entry"); verify_event_pm($getEvent); $gameInfo = fetch_game_info($getEvent, $getType); $hex_array = fetch_hex_array($gameInfo[game_pack_sets], $gameInfo[game_format]); $soft_hex_array = fetch_soft_hex_array($gameInfo[game_pack_sets], $gameInfo[game_format]); $rgm_array = fetch_rgm_array($gameInfo[game_pack_sets], $gameInfo[game_format]); /* $gameInfo[title] $gameInfo[game_pack_sets] $gameInfo[game_title] $gameInfo[game_format] $gameInfo[format_num] */ $fetch_game = mysql_query("SELECT * FROM `web_games` WHERE event='{$getEvent}' AND id='{$getGame}' LIMIT 1"); if (mysql_num_rows($fetch_game) == "0") { show_error("Failed to load game"); print_footer(); exit; } else { $gameRow = mysql_fetch_assoc($fetch_game); }
print "\t <td bgcolor=\"#f6f6f6\" height=\"20\" align=\"center\" class=\"small\" colspan=\"4\">Game Played on {$game_time} at LQ {$gameInfo['center']}</td>\n"; print "\t </tr>\n"; print "\t</table></td>\n"; print " </tr>\n"; print "</table>\n\n"; print_footer(); } elseif ($_GET["getEvent"] != "" && $_GET["getType"] != "" && isset($_COOKIE[lqc_scores_session])) { $eventId = $_GET["getEvent"]; $game_type = $_GET["getType"]; $event_pack_sets = fetch_pack_sets($eventId, $game_type); $game_title = fetch_game_title($eventId, $game_type); $game_format = fetch_game_format($eventId, $game_type); $format_num = fetch_format_num($game_format, $event_pack_sets); $num_f = round($event_pack_sets / $format_num); $hex_array = fetch_hex_array($event_pack_sets, $game_format); $rgm_array = fetch_rgm_array($event_pack_sets, $game_format); print_header($eventId, "{$game_title} Schedule"); verify_session(); verify_event_pm($eventId); //$fetch_games = mysql_query("SELECT * FROM `web_games` WHERE event='$eventId' AND type='$game_type' ORDER BY `time`, `id` ASC"); $fetch_games = mysql_query("SELECT * FROM `web_games` WHERE event='{$eventId}' AND type='{$game_type}' ORDER BY `id` ASC"); print "<table width=\"480\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\" bgcolor=\"#dadada\">\n"; print " <tr bgcolor=\"#f0f0f0\">\n"; print "\t <td width=\"240\" align=\"center\"><b>Script Actions</b></td>\n"; print "\t <td width=\"240\" align=\"center\"><b>Printing Options</b></td>\n"; print " </tr>\n"; print " <tr bgcolor=\"#ffffff\">\n"; print "\t <td width=\"240\" align=\"center\">"; if (mysql_num_rows($fetch_games) == "0") { print "<a href=\"./schedule.php?game_type={$game_type}&eventId={$eventId}&generate=schedule\">Generate Schedule</a><br>"; }