$$openfile index.html$$
$$pagetitle="%%gameservertypes%% Server Stats"$$$$include menu.include$$
$$loop row as server index as serverindex select * from servers$$
	$$loop row as servervariable index as variableindex select * from servervariables where serveridx='%%server.serveridx%%'$$
		$$%%lowercase(servervariable.variable)%%=servervariable.value$$
	$$endloop servervariable$$
	<title>CoD2 Server Stats</title>
	<br>
	<br>
	<table width=700px border=0 class=style2 align=center>
	  <tr>
		<th><b>SERVER</b>
		</th>
		</tr>	
		<td>
			<div align="center" height=27px>
				<b>$$colouredtext2html(sv_hostname)$$</b>
			</div>
		</td>
	</table>
  <br>
	<table cellspacing=0 border=0 width=700px align=center class=style2>		
	
		<tr align=left>
			<th>IP</th><td height=30px width=150px>$$server.hostname$$$$if (server.gameport !EQUALS "-1")$$:$$server.gameport$$$$endif$$</td>
			<th>Logfile Size</th><td height=30px width=150px>$$server.logfilesize$$</td>
		</tr>
		<tr align=left>
			<th>Rounds to Register</th><td height=30px width=150px>$$MinRoundsPerPlayer$$</td>
			<th>Minimum Per Round</th><td height=30px width=150px>$$MinPlayersInRound$$</td>
		</tr>
		$$include servervariables.include$$
	</table>
	<br>
$$endloop server$$

<tr>
	<td>
		<table align=center cellspacing=0 border=0>	
			<tr>
				<td valign=top>
					<table class=style4>
						<tr>
							<td>
								$$include mainpageweapons.include$$
								$$include mainpageclasses.include$$
							</td>
						</tr>
					</table>
				</td>
				<td valign=top>
					<table class=style4>
						<tr>
							<td>
								$$include mainpagemaps.include$$
								$$include mainpagegametypes.include$$
								$$include mainpagelocations.include$$
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</td>
</tr>
$$closefile$$
