Example #1
0
    echo "</tr>";
}
?>
                  
                            </tbody></table>
                        </div>

                        <div id="partijen" class="tab-pane">
                            <h3>Uitslagen ronde <?php 
echo $roundSelect["ronde"] . " <i>(" . date("d-m-Y", strtotime($roundSelect["datum"]));
?>
)</i></h3> 
                            <table class="table table-striped table-hover">
                                <thead><tr><th>Witspeler</th><th></th><th>Zwartspeler</th><th>Uitslag</th></tr></thead>
                                <?php 
foreach ($competitie->getMatches($roundSelect["ronde"]) as $match) {
    $playerWhite = new player($settings, $match["speler_wit"]);
    $playerWhite->getDetails();
    $playerBlack = new player($settings, $match["speler_zwart"]);
    $playerBlack->getDetails();
    $uitslag;
    switch ($match["uitslag"]) {
        case "1":
            $uitslag = "1 - 0";
            break;
        case "2":
            $uitslag = "&#189;-&#189;";
            break;
        case "3":
            $uitslag = "0 - 1";
            break;
Example #2
0
?>
                    </ul>
                </div>
                <div class="col-md-10">
                <?php 
$player = new player($settings, $_GET["spelerId"]);
$player->getDetails();
?>
                    <h2>Partijen: <?php 
echo "<a href=\"competitieSpeler.php?seizoen=" . $_GET["seizoen"] . "&competitie=" . $_GET["competitie"] . "&spelerId=" . $player->id . "\">" . $player->name . "</a>";
?>
</h2>
                    <table class="table table-striped table-hover">
                        <thead><tr><th>Datum</th><th>Witspeler</th><th></th><th>Zwartspeler</th><th>Uitslag</th></tr></thead>
                        <?php 
foreach ($competitie->getMatches(null, $_GET["spelerId"]) as $match) {
    // print_r($match);
    $playerWhite = new player($settings, $match["speler_wit"]);
    $playerWhite->getDetails();
    $playerBlack = new player($settings, $match["speler_zwart"]);
    $playerBlack->getDetails();
    $uitslag;
    switch ($match["uitslag"]) {
        case "1":
            $uitslag = "1 - 0";
            break;
        case "2":
            $uitslag = "&#189;-&#189;";
            break;
        case "3":
            $uitslag = "0 - 1";
Example #3
0
echo $_GET["ronde"];
?>
">
        <input type="hidden" name="updateScores" value="1">
        <div class="row">
            <div class="col-md-12 hidden-print">
                <div class="pull-right btn-group">
                    <input type="submit" value="Opslaan" class="btn btn-success">
                    <input type="reset" class="btn btn-warning">
                </div>
                <h2>Partijen</h2>
                <table class="table tdMiddle">
                    <thead><tr><th>Witspeler</th><th><th>Zwartspeler</th><th>Uitslag</th><th style='text-align:center'>Reglementair</th><th style='text-align:center'>Geen Rapportage</th><th></th></tr></thead>
                    <?php 
if ($_GET['ronde']) {
    foreach ($competitie->getMatches($_GET["ronde"], null) as $match) {
        // print_r($match);
        $playerWhite = new player($settings, $match["speler_wit"]);
        $playerWhite->getDetails();
        $playerBlack = new player($settings, $match["speler_zwart"]);
        $playerBlack->getDetails();
        $uitslag;
        $results = array(1 => "1 - 0", 2 => "&#189;-&#189;", 3 => "0 - 1");
        echo "<tr><td>" . $playerWhite->name . " (" . $match["rating_wit"] . ")</td><td>-</td><td>" . $playerBlack->name . " (" . $match["rating_zwart"] . ")</td>";
        echo "<td>";
        echo '<select class="form-control" name="R' . $match["id"] . '">';
        foreach ($results as $result => $line) {
            $selected = "";
            if ($result == $match["uitslag"]) {
                $selected = "SELECTED";
            }