Esempio n. 1
0
 function extern($data)
 {
     include 'class.external.php';
     $class = new externalCompetition();
     if ($data->method == "GET") {
         switch ($data->subaction) {
             case "matches":
                 return $class->getMatches($data->data->season, $data->data->team, $data->data->details);
                 break;
             case "topScorers":
                 return $class->getTopscorers($data->data->season, $data->data->team);
                 break;
             default:
                 return;
         }
     }
 }
Esempio n. 2
0
        } else {
            echo '<tr><td>' . $individualMatch["tegenstanderNaam"] . '</td><td>' . $individualMatch["tegenstanderElo"] . '</td><td>-</td><td>' . $player->name . '</td><td>' . $individualMatch["spelerElo"] . '</td><td style="text-align:center">' . round(1 - $individualMatch["score"], 1) . ' - ' . round($individualMatch["score"], 1) . '</td></tr>';
        }
    }
    echo '</table>';
    echo '</div>';
    echo '</div>';
    echo '</div>';
}
?>
            </div>
        </div>
        <div class="col-md-4">
            <h2>Topscorers</h2>
            <table class="table table-striped">
                <thead><tr><th>Speler</th><th>Score</th><th>Partijen</th></tr></thead>
                <?php 
foreach ($external->getTopscorers($_GET["seizoen"], $_GET["team"]) as $speler) {
    $player = new player($settings, $speler["spelerId"]);
    $player->getDetails();
    echo "<tr><td>" . $player->name . "</td><td>" . $speler["score"] . "</td><td>" . $speler["partijen"] . "</td></tr>";
}
?>

            </table>
        </div>
    </div>
    </body>
</html>