예제 #1
0
            }
            //end major loop
            echo '</div>';
        }
    } catch (Exception $e) {
        echo $e->getMessage();
    }
} else {
    try {
        $majors = $t->getAirports();
        if (!$majors) {
            echo 'No major airports available';
        } else {
            foreach ($majors as $major) {
                echo '<h4>' . $major->name . '</h4>';
                $positions = $t->getPositionsICAO($major->icao);
                if (!$positions) {
                    echo 'No positions available for that ICAO';
                } else {
                    foreach ($positions as $position) {
                        $vals = $t->getValidatedPosition($position->position_id);
                        if ($vals) {
                            echo '<div class="panel panel-warning">
											<div class="panel-heading">
												<h3 class="panel-title">' . $position->callsign . '</h3>
											</div>
											<div class="panel-body">
												<table class="table table-responsive table-condensed table-hover table-striped">
													<tr>
														<td><strong>Controller</strong></td>
														<td><strong>CID</strong></td>