<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th ><input type="checkbox" class="selectall"> All</th>
            <th>S.No</th>
            <th>Vehicle Name</th>
            <th>Vehicle Type</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        //\Zend\Debug\Debug::dump($vehiclenamelisting);
        if (count($vehiclenamelisting) > 0) {
            $i = 1;
            foreach ($vehiclenamelisting as $listing) {
                ?>
                <tr class="odd" id="main_markup">
                    <td class="sorting_1"><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
                    <td class="sorting_1"><?php echo $i; ?></td>
                    <td><?php echo $listing['name']; ?></td>
                    <td class=" "><?php echo $listing['vehicle_type_id']; ?></td>
                    <td class=" "><?php echo $listing['created_by']; ?></td>
                    <td class=" "><?php echo ($listing['status'] == '1' ? 'Active' : 'In-Active'); ?></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 href="<?php echo $this->url('vehiclename', array('action' => 'edit'), array('query' => array('id' => $listing['id']))); ?>" class="red pointer edit-form" title="Edit Cab" rel="<?php echo $listing['id']; ?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>  <a class="red" href="<?php echo $this->url('vehiclename', array('action' => 'delete'), array('query' => array('data' => $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>
</table>