
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
                 <th> <label class="pos-rel"><input type="checkbox" class="selectall" /><span class="lbl"></span> All</label></th>
                  <th>S.No</th>
                  <th>City Name</th>
                  <th>State Name</th>
                  <th>Country Name</th>
                  <th>Airport/Railway Station Name</th>
                  <th>Meeting Point</th>
                  <th>Created By</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
    </thead>
    <tbody>



        <?php

        if($airportlisting){
                $i=1;
        foreach($airportlisting as $listing){ ?>
        <tr>
            <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['id']; ?>" class="check" />
                            <span class="lbl"></span> </label>
            </td>

            <td><?php echo $i;?></td>
            <td><?php echo $listing['city_name']; ?></td>
            <td><?php echo $listing['state_name']; ?></td>
            <td><?php echo $listing['country_name']; ?></td>
            <td><?php echo $listing['airport_railway_name']; ?></td>
            <td><?php echo $listing['meeting_point']; ?></td>
            <td><?php echo $listing['created_by']; ?></td>

                <td><div id="changestatus1"  class="<?php if($listing['status']==1){ echo "aprovestatus";} else{echo "unaprovestatus"; } ?>  iconsize" name="ChangeStatus"> </div></td>

            <td>

        <div class="hidden-sm hidden-xs action-buttons"> <!--<a class="blue" href="#"> <i class="ace-icon fa fa-search-plus bigger-130"></i> </a>--> <a class="red " title="Edit" href="<?php echo $this->url('airport-master', array('action'=>'edit-airport'),['query'=>['id'=>$listing['id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
                    <a class="red" href="<?php echo $this->url('airport-master', array('action'=>'delete'),['query'=>['id'=>$listing['id']]]);?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a> </div></td>
        </tr>
        <?php $i++;} }else{?>
                <tr><td colspan="7" style="text-align: center;">No Records Found</td></tr>
        <?php }?>


    </tbody>
    <thead>
        <tr>
                 <th> <label class="pos-rel"><input type="checkbox" class="selectall" /><span class="lbl"></span> All</label></th>
                  <th>S. No</th>

                  <th>City Name</th>
                  <th>State Name</th>
                  <th>Country Name</th>

                  <th>Airport/Railway Station Name</th>

                  <th>Created By</th>
                  <th>Status</th>
                  <th>Action</th>
                </tr>
    </thead>
</table>
