|
|
@ -6,11 +6,10 @@
|
|
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
|
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
print_r($_GET);
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
function displayTournamentOptions($action) {
|
|
|
|
function displayTournamentOptions($action, $klein, $wochen) {
|
|
|
|
|
|
|
|
if($action == 'starttnmt') {
|
|
|
|
/*if($action === "starttnmt") {
|
|
|
|
/*if($action === "starttnmt") {
|
|
|
|
if(is_numeric($_REQUEST['anzahl']) && is_numeric($_REQUEST['minlevel']) && is_numeric($_REQUEST['maxlevel'])
|
|
|
|
if(is_numeric($_REQUEST['anzahl']) && is_numeric($_REQUEST['minlevel']) && is_numeric($_REQUEST['maxlevel'])
|
|
|
|
&& is_numeric($_REQUEST['grp_size']) && is_numeric($_REQUEST['grp_proceed'])) {
|
|
|
|
&& is_numeric($_REQUEST['grp_size']) && is_numeric($_REQUEST['grp_proceed'])) {
|
|
|
@ -21,9 +20,6 @@ function displayTournamentOptions($action) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {*/
|
|
|
|
} else {*/
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<!-- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET" onSubmit="start();">
|
|
|
|
|
|
|
|
<input type="hidden" name="choose" value="tournament"> <input
|
|
|
|
|
|
|
|
type="hidden" name="action" value="starttnmt"> -->
|
|
|
|
|
|
|
|
<table width="80%">
|
|
|
|
<table width="80%">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2"><h1 style="text-align: center">Übersicht</h1></th>
|
|
|
|
<th colspan="2"><h1 style="text-align: center">Übersicht</h1></th>
|
|
|
@ -99,14 +95,14 @@ function displayTournamentOptions($action) {
|
|
|
|
<td style="text-align: center"><input name="grp_proceed" value="0"></td>
|
|
|
|
<td style="text-align: center"><input name="grp_proceed" value="0"></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" colspan="2"><a href="include/tournament.inc.php"
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
target="_blank">Turnier starten!</a></td>
|
|
|
|
<a href="<?php $_SERVER['DOCUMENT_ROOT'].'cronjob/generic_turnier.php'?>"
|
|
|
|
<!-- <td align="center" colspan="2"><input type="submit" value="start" />
|
|
|
|
target="_blank">Turnier starten!</a>
|
|
|
|
<?php $_SERVER['DOCUMENT_ROOT'].'cronjob/generic_turnier.php'?>
|
|
|
|
</td>
|
|
|
|
</td> -->
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td><br>
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF'].'?choose=tournament'; ?>">Zurück</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -114,10 +110,110 @@ function displayTournamentOptions($action) {
|
|
|
|
href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
|
|
|
|
href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
} else if($action == 'fee') {
|
|
|
|
|
|
|
|
$qry = mysql_query('SELECT * FROM turnier_gebuehr;');
|
|
|
|
|
|
|
|
while ($fee = mysql_fetch_assoc($qry)) {
|
|
|
|
|
|
|
|
if($fee['art'] == 'wochen') {
|
|
|
|
|
|
|
|
$fee_wochen = $fee['gebuehr'];
|
|
|
|
|
|
|
|
} else if($fee['art'] == 'klein') {
|
|
|
|
|
|
|
|
$fee_klein = $fee['gebuehr'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$change = FALSE;
|
|
|
|
|
|
|
|
if($klein !== NULL || $wochen !== null) {
|
|
|
|
|
|
|
|
if($klein !== NULL && $klein != $fee_klein) {
|
|
|
|
|
|
|
|
$change = TRUE;
|
|
|
|
|
|
|
|
mysql_query('UPDATE turnier_gebuehr SET gebuehr = '.$klein.' WHERE art = \'klein\'');
|
|
|
|
|
|
|
|
$fee_klein = $klein;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($wochen !== NULL && $wochen != $fee_wochen) {
|
|
|
|
|
|
|
|
$change = TRUE;
|
|
|
|
|
|
|
|
mysql_query('UPDATE turnier_gebuehr SET gebuehr = '.$wochen.' WHERE art = \'wochen\'');
|
|
|
|
|
|
|
|
$fee_wochen = $wochen;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="get">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td align="center" colspan="2">
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Zum Hauptmenu</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
<!-- </form> -->
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php $_SERVER['PHP_SELF'] ?>?choose=tournament&action=starttnmt">Turnier starten (in Arbeit)</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|