@ -9,17 +9,34 @@
?>
<?php
function displayTournamentOptions($action, $klein, $wochen) {
if($action == 'starttnmt') {
/*if($action === "starttnmt") {
if(is_numeric($_REQUEST['anzahl']) & & is_numeric($_REQUEST['minlevel']) & & is_numeric($_REQUEST['maxlevel'])
& & is_numeric($_REQUEST['grp_size']) & & is_numeric($_REQUEST['grp_proceed'])) {
include_once($_SERVER['DOCUMENT_ROOT'].'cronjob/generic_turnier.php');
if($action == 'checktnmt') {
if(is_numeric($_REQUEST['minlevel']) & & is_numeric($_REQUEST['maxlevel'])) {?>
< table width = "80%" >
< tr >
< th colspan = "2" style = "text-align: center" > Turnier wirklich starten?< / th >
< / tr >
< tr >
< td style = "text-align: center" >
< a href = " <?php echo 'http://ag04.animegame.eu/ag_crond/generic_turnier.php?fusion=' . $_POST [ 'fusion' ] . '&special=' .
$_POST['special'].'& minlevel='.$_POST['minlevel'].'& maxlevel='.$_POST['maxlevel'].'& gain='.$_POST['gain'].'& randomize='.
$_POST['randomize'].'&name='.$_POST['name'].'&anzahl='.$_POST['anzahl']; ?>"
target="_blank">Turnier starten!< / a >
< / td >
< td style = "text-align: center" >
< a href = " <?php echo $_SERVER [ 'PHP_SELF' ] . '?choose=tournament&action=tnmt' ; ?> " > Doch nicht</ a >
< / td >
< / tr >
< / table >
<?php
} else {
echo 'Keine gültige Eingabe< br > ';
echo '< a href = "'.$_SERVER['PHP_SELF'].'?choose=tournament" > Zurü ck< / a > ';
echo 'Keine gültige Eingabe von Min. oder Max. Level < br > ';
echo '< a href = "'.$_SERVER['PHP_SELF'].'?choose=tournamen t&action=tnm t"> Zurü ck< / a > ';
}
} else {*/
} elseif($action == 'tnmt') {
?>
< form method = "POST" >
< input type = "hidden" name = "choose" value = "tournament" >
< input type = "hidden" name = "action" value = "checktnmt" >
< table width = "80%" >
< tr >
< th colspan = "2" > < h1 style = "text-align: center" > Übersicht< / h1 > < / th >
@ -35,7 +52,18 @@ function displayTournamentOptions($action, $klein, $wochen) {
< / tr >
< tr >
< td > Anzahl< / td >
< td style = "text-align: center" > < input name = "anzahl" value = "" > < / td >
< td style = "text-align: center" > < select id = "input" name = "anzahl" >
< option value = "2" > 2< / option >
< option value = "4" > 4< / option >
< option value = "8" > 8< / option >
< option value = "16" > 16< / option >
< option value = "32" > 32< / option >
< option value = "64" > 64< / option >
< option value = "128" > 128< / option >
< option value = "256" > 256< / option >
< option value = "512" > 512< / option >
< / select >
< / tr >
< tr >
< td > Fusion erlaubt?< / td >
@ -47,7 +75,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
< / tr >
< tr >
< td > Spezialcharaktere erlaubt? (Kaio/Shichi)< / td >
< td style = "text-align: center" > < select id = "input" name = " fusion ">
< td style = "text-align: center" > < select id = "input" name = " special ">
< option value = "1" > ja< / option >
< option value = "0" > nein< / option >
< / select >
@ -78,7 +106,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
< / select >
< / td >
< / tr >
< tr >
<!-- <tr >
< td > Gruppenphase?< / td >
< td style = "text-align: center" > < select id = "input" name = "gruppenphase" >
< option value = "0" > nein< / option >
@ -93,16 +121,14 @@ function displayTournamentOptions($action, $klein, $wochen) {
< tr >
< td > Anzahl der Sieger die eine Gruppe verlassen< / td >
< td style = "text-align: center" > < input name = "grp_proceed" value = "0" > < / td >
< / tr >
< / tr > -->
< tr >
< td align = "center" colspan = "2" >
< a href = " <?php $_SERVER [ 'DOCUMENT_ROOT' ] . 'cronjob/generic_turnier.php' ?> "
target="_blank">Turnier starten!< / a >
< td align = "center" colspan = "2" > < input type = "submit" value = "starten" >
< / td >
< / tr >
< tr >
< td align = "center" colspan = "2" >
< a href = " <?php echo $_SERVER [ 'PHP_SELF' ] . '?choose=tournament' ; ?> " > Zurü ck</ a >
< td align = "center" colspan = "2" > < a
href=" <?php echo $_SERVER [ 'PHP_SELF' ] . '?choose=tournament' ; ?> ">Zurü ck</ a >
< / td >
< / tr >
< tr >
@ -111,6 +137,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
< / td >
< / tr >
< / table >
< / form >
<?php
} else if($action == 'fee') {
$qry = mysql_query('SELECT * FROM turnier_gebuehr;');
@ -137,58 +164,48 @@ function displayTournamentOptions($action, $klein, $wochen) {
}
?>
< form method = "get" >
< input type = "hidden" name = "choose" value = "tournament" >
< input type = "hidden" name = "action" value = "fee" >
< input type = "hidden" name = "choose" value = "tournament" > < input
type="hidden" name="action" value="fee">
< table width = "80%" >
< tr >
< th colspan = "2" > < h1 style = "text-align: center" > Übersicht< / h1 > < / th >
< / tr >
<?php if ( $change === TRUE ) { ?>
< tr >
< td colspan = "2" align = "center" >
Ä nderungen ü bernommen!
< / td >
< td colspan = "2" align = "center" > Ä nderungen ü bernommen!< / td >
< / tr >
<?php } ?>
< tr >
< td colspan = "2" align = "center" >
< b > Anfä ngerturnier< / b >
< td colspan = "2" align = "center" > < b > Anfä ngerturnier< / b >
< / td >
< / tr >
< tr >
< td align = "left" >
Anmeldegebü hr:
< / td >
< td >
< input type = "text" name = "klein" value = <?php echo $fee_klein ; ?> >
< td align = "left" > Anmeldegebü hr:< / td >
< td >< input type = "text" name = "klein" value = <?php echo $fee_klein ; ?> >
< / td >
< / tr >
< tr >
< td colspan = "2" align = "center" >
< b > Wochenturnier< / b >
< td colspan = "2" align = "center" > < b > Wochenturnier< / b >
< / td >
< / tr >
< tr >
< td align = "left" >
Anmeldegebü hr:
< / td >
< td >
< input type = "text" name = "wochen" value = <?php echo $fee_wochen ; ?> >
< td align = "left" > Anmeldegebü hr:< / td >
< td >< input type = "text" name = "wochen" value = <?php echo $fee_wochen ; ?> >
< / td >
< / tr >
< tr >
< td align = "center" colspan = "2" >
< input type = "submit" value = "ändern" >
< td align = "center" colspan = "2" > < input type = "submit"
value=" ä ndern">
< / td >
< / tr >
< tr >
< td align = "center" colspan = "2" >
< a href = "<?php echo $_SERVER [ 'PHP_SELF' ] . '?choose=tournament' ; ?> " > Zurü ck</ a >
< td align = "center" colspan = "2" > < a
href="<?php echo $_SERVER [ 'PHP_SELF' ] . '?choose=tournament' ; ?> ">Zurü ck</ a >
< / td >
< / tr >
< tr >
< td align = "center" colspan = "2" >
< a href = " <?php echo $_SERVER [ 'PHP_SELF' ]; ?> " > Zum Hauptmenu</ a >
< td align = "center" colspan = "2" > < a
href=" <?php echo $_SERVER [ 'PHP_SELF' ]; ?> ">Zum Hauptmenu</ a >
< / td >
< / tr >
< / table >
@ -198,18 +215,19 @@ function displayTournamentOptions($action, $klein, $wochen) {
?>
< table >
< tr >
< td >
< a href = " <?php $_SERVER [ 'PHP_SELF' ] ?> ?choose=tournament&action=starttnmt" > Turnier starten (in Arbeit)</ a >
< td > < a
href="<?php $_SERVER [ 'PHP_SELF' ] ?> ?choose=tournament& action=tnmt">Turnier
starten< / a >
< / td >
< / tr >
< tr >
< td >
< a href = " <?php $_SERVER [ 'PHP_SELF' ] ?> ?choose=tournament&action=fee" > Anmeldegebühren bearbeiten</ a >
< td > < a
href="<?php $_SERVER [ 'PHP_SELF' ] ?> ?choose=tournament& action=fee">
Anmeldegebühren bearbeiten< / a >
< / td >
< / tr >
< tr >
< td >
< a href = " <?php echo $_SERVER [ 'PHP_SELF' ]; ?> " > Zum Hauptmenu</ a >
< td >< a href = " <?php echo $_SERVER [ 'PHP_SELF' ]; ?> " > Zum Hauptmenu</ a >
< / td >
< / tr >
< / table >