$$openfile roundlist.html$$
$$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 Round List</title>
<br>
<br>	
<table class=nameplate align=center>
<td width=298 height=50 background="images/nameplate2.jpg"><div align="center">ROUNDS</div></td>
</table>
		
	<table>
		<tr>
			<td>
				$$lastgametypeid=""$$
				$$loop row as round index as roundindex select * from view_rounds where serverindex = %%server.serveridx%% order by gametypeid,roundidx ASC$$
					$$if (lastgametypeid !EQUALS round.gametypeid)$$
						$$lastgametypeid=round.gametypeid$$
						</td>
						</tr>
						</table>
						<table class=style4 border=0>
						<tr>
						<td valign=top><img src="$$round.gametypeimage$$"><br><div align="center">$$round.gametyperealname$$</div></td>
						<td valign=top width=100%>
					$$endif$$
					<a href="round_$$round.roundidx$$.html">$$formatinteger("%05d",round.roundidx)$$</a>
				$$endloop round$$
				</td>
				</tr>
				</table>
			</td>
		</tr>
	</table>
$$endloop server$$
$$closefile$$
