<div class="cc_hubadm_content">
    <div class="cc_hubadm_box cc_hubadm_full">
    <div class="cc_hubadm_boxtitle">Airports List</div>
 <table class="cc_hubadm_tablea">
    <tr>
        <th>ICAO</th>
        <th>Name</th>
        <th>Country</th>
        <th>Fuel Cost</th>
        <th>Lat</th>
        <th>Lng</th>
        <th>Is Hub?</th>
        <th>Edit</th>
        </tr>
     <?php foreach($airports as $apt) { ?>
     <tr>
     <td><?php echo $apt->icao; ?></td>
     <td><?php echo $apt->name; ?></td>
     <td><?php echo $apt->country; ?></td>
     <td><?php if($apt->fuelprice == '0') { echo "Live"; } else { echo $apt->fuelprice; } ?></td>
     <td><?php echo $apt->lat; ?></td>
     <td><?php echo $apt->lng; ?></td>
     <td><?php if($apt->hub == '0') { echo "NO"; } else { echo "YES"; } ?></td>
     <td><a href="<?php echo SITE_URL ?>/<?php echo $mloc ?>.php/HubOps/airportform/<?php echo trim($apt->icao) ?>" class="cc_hubadm_greenbutt">Edit</a></td>
     </tr>
     <?php } ?>
    </table>
</div>