Exemple #1
0
    }
}
$compRounds = $competitie->getRounds();
$compDate;
if (is_array($compRounds)) {
    foreach ($compRounds as $round) {
        if ($round["ronde"] == $_GET["ronde"]) {
            $compData = date("d/m/Y", strtotime($round["datum"]));
        }
    }
}
//Processing PGN
if ($init->repository->get_data("pgnText") && $init->repository->get_data("matchId")) {
    include_once '../../includes/class.match.php';
    $pgnMatch = new match($settings, $init->errorClass, $init->notificationClass, $init->repository->get_data("matchId"));
    $pgnMatch->setPGN($init->repository->get_data("pgnText"), $init->repository->get_data("matchId"), $init->repository->get_data("pgnId"));
}
if ($init->repository->get_data("pgnRemove")) {
    include_once '../../includes/class.match.php';
    $pgnMatch = new match($settings, $init->errorClass, $init->notificationClass, $init->repository->get_data("matchId"));
    $pgnMatch->removePGN($init->repository->get_data("pgnRemove"));
}
?>
<link href="../css/select2.css" rel="stylesheet"/>
<script src="../js/select2.min.js"></script>
<script src="../js/jquery.maskedinput.js"></script>
<script>
    $(function() {
        $( "#date" ).datepicker({dateFormat: "dd/mm/yy" });
        $( "#date" ).mask("99/99/9999");
        $("#playerWhite,#playerBlack").select2({