Example #1
0
        echo '<tr>' . PHP_EOL;
        echo '<td></td>' . PHP_EOL;
        // empty team number
        echo '<td>' . PHP_EOL;
        AddPlayerTable($t);
        RequestedTime($RequestedTime);
        echo '</table>' . PHP_EOL;
        echo '</td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
        echo '</table>' . PHP_EOL;
    } else {
        AddPlayerTable($t);
        AddPlayer($t, 1, $players, $Extra, $flightErrorList);
        AddPlayer($t, 2, $players, $Extra, $flightErrorList);
        AddPlayer($t, 3, $players, $Extra, $flightErrorList);
        AddPlayer($t, 4, $players, $Extra, $flightErrorList);
        RequestedTime($RequestedTime);
        echo '</table>' . PHP_EOL;
    }
    echo '<input type="hidden" name="tournament" value="' . $tournamentKey . '">' . PHP_EOL;
    echo '<input type="submit" value="Submit"> <br> <br>' . PHP_EOL;
    echo '</form>' . PHP_EOL;
} else {
    // Make the modifications
    UpdateSignup($connection, $signupKey, 'RequestedTime', $RequestedTime, 's');
    if ($t->TeamSize == 2 && $t->SCGAQualifier) {
        for ($i = 0; $i < count($players); ++$i) {
            UpdateSignupPlayer($connection, $signupKey, $players[$i]->GHIN, 'Extra', $Extra[$i], 's');
        }
    } else {
        if ($t->SrClubChampionship) {
Example #2
0
        insert_dolog("id={$id}<br>player={$r['player']}");
        printerror("DelPlayerSuccess", "player.php" . hReturnEcmsHashStrHref2(1));
    } else {
        printerror("DbError", "history.go(-1)");
    }
}
$enews = $_POST['enews'];
if (empty($enews)) {
    $enews = $_GET['enews'];
}
if ($enews) {
    hCheckEcmsRHash();
}
//增加播放器
if ($enews == "AddPlayer") {
    AddPlayer($_POST, $logininid, $loginin);
} elseif ($enews == "EditPlayer") {
    EditPlayer($_POST, $logininid, $loginin);
} elseif ($enews == "DelPlayer") {
    $id = $_GET['id'];
    DelPlayer($id, $logininid, $loginin);
}
$sql = $empire->query("select id,player,filename,bz from {$dbtbpre}enewsplayer order by id");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加播放器</title>
<link href="../adminstyle/<?php 
echo $loginadminstyleid;
Example #3
0
        echo '<td>' . PHP_EOL;
        AddPlayerTable($t);
        RequestedTime($RequestedTime);
        echo '</table>' . PHP_EOL;
        echo '</td>' . PHP_EOL;
        echo '</tr>' . PHP_EOL;
        echo '</table>' . PHP_EOL;
    } else {
        AddPlayerTable($t);
        AddPlayer($t, 1, $GHIN[0], $LastName[0], $Extra[0], $flightErrorList[0]);
        insert_error_line($errorList[0], 2);
        AddPlayer($t, 2, $GHIN[1], $LastName[1], $Extra[1], $flightErrorList[1]);
        insert_error_line($errorList[1], 2);
        AddPlayer($t, 3, $GHIN[2], $LastName[2], $Extra[2], $flightErrorList[2]);
        insert_error_line($errorList[2], 2);
        AddPlayer($t, 4, $GHIN[3], $LastName[3], $Extra[3], $flightErrorList[3]);
        insert_error_line($errorList[3], 2);
        RequestedTime($RequestedTime);
        echo '</table>' . PHP_EOL;
    }
    echo '<input type="hidden" name="tournament" value="' . $tournamentKey . '">' . PHP_EOL;
    echo '<input type="submit" value="Sign Up"> <br> <br>' . PHP_EOL;
    echo '<a href="signups.php?tournament=' . $tournamentKey . '">Current Signups</a>' . PHP_EOL;
    echo '</form>' . PHP_EOL;
    echo '</div><!-- #content -->' . PHP_EOL;
    echo '</div><!-- #content-container -->' . PHP_EOL;
} else {
    // make a single string of player names & GHIN number for the PayPal email
    //$players = "";
    $playerCount = 0;
    for ($i = 0; $i < count($GHIN); ++$i) {