<?php
if (isset($_COOKIE["name"]))
{
	$name = $_COOKIE["name"];
}
else
header("Location: login.html");
?>
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1"/>
		<title>League of Intrepid Explorers</title>
		<script src="ajax.js"></script>
		<script src="main.js"></script>
		<link rel="stylesheet" href="main.css"/>
	</head>
	<body onload="load()">
		<div class="row wrap">
			<div id="col1" class="col">
				<div id="hello">
					Hello <?=$name?>!
				</div>
				<div id="messages"></div>
				<div class="row">
					<input type="text" id="input"></input>
					<button onclick="post()" type="submit" id="submit">Enter</button>
				</div>
			</div>
			<div id="col2" class="col">
				<header>League of Intrepid Explorers</header>
				<img id="image" src="horse.png"/>
				<div id="announcements"></div>
			</div>
			<div id="col3" class="col">
				<table>
					<thead>
						<tr>
							<th id="phead">Players</th>
							<th id="ghead">Last Login</th>
						</tr>
					</thead>
					<tbody id="users"></tbody>
				</table>
			</div>
		</div>
	</body>
</html>