<?php 
/*
 *
 * @copyright (c) 2010 animegame.eu
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
 *
 */

include_once('path.inc.php'); // get the path ;)
include_once(ROOT_PATH.'/include/tournament.inc.php');

?>


<SCRIPT language="JavaScript">
	function kampf(type_id){
		window.open("./turnier2.php?charm=1&type_id="+type_id,"","status=no,hotkeys=no,Height=600,Width=929,scrollbars=yes");
	}
</SCRIPT>

<table cellpadding="0" cellspacing="0" width="100%">
	<!-- MSTableType="layout" -->
	<tr>
		<th valign="top" colspan="3" align="center">Turnier Auswahl</th>
	</tr>
<?php
	$tournament_types = getTournamentTypes();
	foreach ($tournament_types as $tournament_type) {
?>
	<tr>
		<td valign="top" align="center">
			<a href='javascript:kampf("<?php echo $tournament_type['id']; ?>");'>
				<img border="0" src="<?php echo $tournament_type['icon']; ?>" title="Das Turnier ist einmal die Woche, Sonntags um 15 Uhr. (64 Spieler)" width="150" height="150" />
			</a>
		</td>
		<td align="center">Hier kommt noch info hin (to be programmed)</td>
	</tr>

<?php
	}
?>
</table>