
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>ID</th>
            <th width="20%">Name</th>
            <th width="20%">Type</th>
            <th width="35%">Img</th>
            <th width="35%">Header Text</th>      
            <th width="35%">Footer Text</th>
            <th>Status</th>
            <th width="10%">Action</th>
        </tr>
    </thead>
    <tbody>
        
        
        
        <?php if($mailList){
           // echo'<pre>';print_r($mailList);die();
                $i=1;
        foreach($mailList as $listing){ ?>
        <tr>
            <td class="center"><label class="pos-rel">
                        <input type="checkbox" rel="<?php echo $listing['id']; ?>" class="ace list-checkbox check" />
                            <span class="lbl"></span> </label>
                    </td>
            <td><?php echo $i;?></td>
           
            <td><?php echo $listing['name'];?></td>
            <td><?php echo $listing['type'];?></td>
            <td><?php echo $listing['img'];?></td>
            <td><?php echo $listing['header_text'];?></td>
            <td><?php echo $listing['footer_text'];?></td>
           
            <?php if($listing['is_active']==1)
             { ?>
                <td><div id="changestatus1" class="aprovestatus iconsize" name="ChangeStatus"> </div></td>
            <?php } else{ ?>
                
             <td><div id="changestatus1" class="unaprovestatus iconsize" name="ChangeStatus"> </div></td>
            <?php } ?>
            <td>
    <div class="hidden-sm hidden-xs action-buttons43"> 
        <a class="red " title="Edit" href="<?php echo $this->url('templatesettings', array('action'=>'edit-mail'),
                ['query'=>['id'=>$listing['id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a> 
            
                
                    
    <a class="red" href="javascript:void(0);"  onclick="getDescView('<?php echo $listing['id']; ?>')" title="View Template"> 
        <i class="ace-icon fa fa-eye 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>
  <div id="voucherModal" class="modal fade" role="dialog">
  <div class="modal-dialog widthpersent50">
    <!-- Modal content-->
    <div class="modal-content voucherModal"></div>
  </div>
</div>     