<table id="theater" class="stat sortable" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">Theater<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>
			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">Time<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>
			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">Wins<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>
			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">Losses<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>

			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">Ratio<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>
			<th><a href="#" class="sortheader" onclick="ts_resortTable(this);return false;">B.R.<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a></th>
		</tr>';
		
		#add <tr class="favorite">
		
		for ($i=0; $i<getArmyCount(); $i++)
		{
			$template .= '
			<tr>
				<td id="theater-'.$i.'">'.$TheaterData[$i]['name'].'</td>
				<td title="'.$TheaterData[$i]['time'].'" nowrap="nowrap">'.intToTime($TheaterData[$i]['time']).'</td>
				<td>'.$TheaterData[$i]['wins'].'</td>
				<td>'.$TheaterData[$i]['losses'].'</td>
				<td>'.round(getRatio($TheaterData[$i]['wins'], $TheaterData[$i]['losses']),2).'</td>
				<td>'.$TheaterData[$i]['br'].'</td>
			</tr>';
		}
		
		$template .= '
				
	</tbody></table>