<?php
session_start();
unset($_SESSION["tourny"]);
unset($_SESSION["userId"]);
unset($_SESSION['nick']);
$_SESSION['nick'] = "[email protected]";
$_SESSION["user"] = "guest";
$_SESSION["userId"] = $_GET["userID"];
$_SESSION["tourny"] = $_GET["tourny"];
?>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="keywords" lang="en-us" content="javascript, tournament, sheet, foosball">
<meta name="keywords" lang="en" content="javascript, tournament, sheet, foosball">
<title>tournament brackets</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<script language="javascript">
var FRAME_BIG = 190;
var FRAME_SMALL = 80;
var GLOBALS = new Array();
var DEFAULTS = new Array();
var INPUTS = new Array();
DEFAULTS["teams"] = 8;
DEFAULTS["sets"] = 1;
DEFAULTS["groups"] = 1;
DEFAULTS["modeVal"] = "dko.html";
DEFAULTS["modeTxt"] = "Double Elimination";
DEFAULTS["title"] = "Tournament Name";
DEFAULTS["shuffleLooser"] = true;
var FILL_FROM_GRP = false;
var LOAD = true;
var USE_AJAX = true;
</script>
</head>
<frameset rows="70,*" id="frames">
<!-- <frame name="config" src="pages/config_read.html" scrolling=no noresize /> -->
<frame name="config" src="pages/config_read.html" scrolling=no noresize />
<frame name="bottom" src="modes/ko_readonly.html?8&1" noresize />
</frameset>
<head>
<link rel='stylesheet' id="style_bottom" href='../styles/default/main.css' type='text/css' />
<link rel='stylesheet' href='../styles/common.css' type='text/css' />
<script type='text/javascript' src='../scripts/autocomplete.js'></script>
<script type='text/javascript' src='scripts/cookie.js'></script>
<script type='text/javascript' src='scripts/layout.js'></script>
<script type='text/javascript' src='scripts/data.js'></script>
<script type='text/javascript' src='scripts/input.js'></script>
<script type='text/javascript' src='scripts/match_read.js'></script>
<script type='text/javascript' src='scripts/table.js'></script>
</head>
<body onload="showConfig(); checkLoad(); checkOptions(); testAjax();" >
<div id="titleSection">
<table width="100%" height="56">
<tr>
<td>
<img src="../../images/logo.png" />
</td>
<td width="100%">
<span id="titletext"></span>
</td>
<td><input type="button" onclick="showConfig();" value="Config"></td>
</tr>
</table>
</div>
<div id="cookieSection" height="166" align="center">
<table height="100%">
<tr>
<td width="100%" colspan="4" ailgn="center">
Copy the cookie into a text file to save several tournaments permanently.<br>To load, simply copy the cookie back!
</td>
</tr>
<tr>
<td width="100%" colspan="4">
<textarea id="cookieInput" rows="5" cols="100"></textarea>
</td>
</tr>
<tr>
<td>
<input type="button" value="Clear" onclick="setCookie();"/>
</td>
<td>
<input type="button" value="Back" onclick="showConfig();"/>
</td>
<td width="100%">
</td>
</tr>
</table>
</div>
<div id="loadingSection" height="100" align="center">
<table align="center" height="100%">
<tr>
<td ailgn="center" class="loadingText">
Loading Tournament... <br>
<img src="../images/loader.gif" />
</td>
</tr>
</table>
</div>
<div id="configSection">
<table id="configTable">
<tr>
<td>
<table class="menuGroup">
<tr>
<td>Type:</td>
<td colspan="3">
<select id="Mode" onchange="checkOptions();" readonly>
<option value="ko_readonly.html" SELECTED>Single Elimination</option>
<option value="dko.html">Double Elimination</option>
<option value="swiss.html">POOL PLAY ??? </option>
<option value="grp.html">Round Robbin</option>
</select>
</td>
</tr>
<tr>
<td>Teams: </td>
<td><input type="text" id="teams" size="2" MAXLENGTH="2" value="8" readonly></td>
</tr>
<tr id="groupOptions">
<td>Group: </td>
<td><input type="text" id="groups" size="2" MAXLENGTH="2" value="1" readonly></td>
</tr>
<tr>
<td>Size: </td>
<td><input type="text" id="sets" size="2" MAXLENGTH="1" value="1" readonly></td>
</tr>
<!--
<tr id="loserOptions">
<td>Losing Round</td>
<td><input type="checkbox" id="shuffle"/></td>
</tr>
<tr valign="top" heigth="100%">
<td><input type="button" value="Make Bracket" onclick="changeTeams()"></td>
<td><input type="button" value="CSV Export" onclick="csv()""></td>
</tr>
-->
</table>
</td>
<td valign="top">
<table class="menuGroup">
<tr>
<td width="100%" align="center">
Title: <input type="text" id="title" size="32" value="My Tournament Name" onchange="updateTitle();" readonly>
<!-- <input type="button" value="End Config" onclick="showTitle();"> -->
</td>
</tr>
<tr>
<td align="center"><input type="button" id="load" value="Load Bracket" onclick="callLoad()" DISABLED></td>
<input type="hidden" id="complete" CHECKED/>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="dimmer"> </div>
<div id="seperator">
Single Elimation
</div>
<script>
init("Single KO");
createKoTable(getTeamCount(), getSets());
</script>
<div id="seperator">
Thrid place
</div>
<script>
//createThirdPlace(getTeamCount(), getSets());
//load();
//createFooter2();
</script>
</body>
</html>