You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
agng/ag/turnier_auswahl.php

55 lines
1.6 KiB

14 years ago
<?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');
14 years ago
?>
14 years ago
<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");
14 years ago
}
</SCRIPT>
<table cellpadding="0" cellspacing="0" width="100%">
<!-- MSTableType="layout" -->
<tr>
<th valign="top" colspan="3" align="center">Turnier Auswahl</th>
</tr>
<?php
$day_translation = array('Sonntags', 'Montags', 'Dienstags', 'Mittwochs', 'Donnerstags', 'Freitags', 'Samstags', 'Sonntags');
$tournament_types = getTournamentTypes();
foreach ($tournament_types as $tournament_type) {
$info = 'Das Turnier ist';
if ( $tournament_type['day_of_week'] !== NULL ) {
$info .= ' einmal die Woche, '.$day_translation[$tournament_type['day_of_week']];
} else if ( $tournament_type['day_of_month'] !== NULL ) {
$info .= ' immer am '.$tournament_type['day_of_month'].'. jeden Monats';
} else {
continue;
}
$info .= ',<br>um '.$tournament_type['hour_of_day'].' Uhr ('.$tournament_type['competitors'].' Spieler).';
?>
14 years ago
<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="<?php echo join(' ', explode('<br>', $info)); ?>" width="150" height="150" />
14 years ago
</a>
</td>
<td align="center"><?php echo $info; ?></td>
14 years ago
</tr>
<?php
}
?>
14 years ago
</table>