
<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%">Message</th>
            <th width="20%">Message Type</th>
            <th width="35%">Message Sku</th>
            <th width="25%">Variables</th>      
            <th width="35%">Text Limit</th>
            <th>Status</th>
            <th width="10%">Action</th>
        </tr>
    </thead>
    <tbody>
        
        <?php if($smslist){
                $i=1;
        foreach($smslist 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['message'];?></td>
            <td><?php echo $listing['msg_type'];?></td>
            <td><?php echo $listing['msg_sku'];?></td>
            <td><?php echo $listing['variables'];?></td>
            <td><?php echo $listing['text_limit'];?></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-sms'),
                ['query'=>['id'=>$listing['id']]]);?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a> 
            <a class="red" href="#" 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>
  <div id="voucherModal" class="modal fade" role="dialog">
  <div class="modal-dialog widthpersent50">
    <!-- Modal content-->
    <div class="modal-content voucherModal"></div>
  </div>
</div>     