Esempio n. 1
0
						<th>Cyclist Name</th>
						<th>Doper</th>
						<th>Doper Description</th>
						<th>Official DQ</th>
						<th>Ban Length</th>
					</tr>
					<?php 
$tour_year = $GLOBALS['year'];
$results = $database->getTourResults($tour_year);
$result_count = count($results);
for ($i = 0; $i < $result_count; $i++) {
    $cyclist_id = $results[$i]['result_cyclist_id'];
    $place = $results[$i]['result_place'];
    $name = $database->getCyclistName($cyclist_id);
    $doper = $database->checkIfDoper($cyclist_id);
    $doper_description = $database->getDoperDescription($cyclist_id);
    if ($results[$i]['result_cyclist_dq'] === "1") {
        $dq = "Yes";
        dqCount();
    }
    $ban_length = $database->getBanLength($cyclist_id);
    if ($ban_length != "Non-Doper" && $ban_length != "0 months") {
        banCount();
    }
    if ($doper != "No") {
        echo "<tr class=\"doper\">";
    } else {
        echo "<tr>";
    }
    echo "<td>" . $place . "</td>";
    echo "<td>" . $name . "</td>";