<h3>Deactivated Company Groups</h3>
<form method="POST">
		<?php if($records->num_rows()>0) { ?>
<div class="row">
	<div class="col-md-7">
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
				data-page-navigation=".pagination" data-page-size="5"
					class="table table-condensed table-responsive table-bordered footable" >
			<thead>
				<tr>
					<th width="12%" style="text-align:center">SLNo.</th>
					<th width="70%">Name</th>
					<th width="18%" style="text-align:center">Enable</th>
				</tr>
			</thead>
			<tbody>
				<?php $i=1;
               		foreach( $records->result() as $rec){ ?>
             	<tr>
               		<td><center><?php echo $i++; ?></center></td>
                	<td><?php echo $rec->companyGroupName; ?></td>
                 	<td>
                   		<center>
                   		<a href="<?php echo site_url();?>index.php/CompanyGroup/Companygroup/active/<?php echo $companyGroupMasterId= $rec->companyGroupMasterId; ?>">
                			<button type="button" class="btn btn-sm btn-success">
                          		<i class="fa fa-check" aria-hidden="true"></i> 
                          	</button> 
                  		</a>
                		</center>         
             		</td>
          		</tr>
           		<?php }}else { ?> <span style="color:red"> No Data!!!! </span><?php } ?>
          	</tbody>
         	<tfoot>
             	<tr>
               		<td colspan="3">
                     	<div class="pagination pagination-centered hide-if-no-paging"></div>
                   	</td>
             	</tr>
           	</tfoot>
     	</table>
	</div>
</div>

<div class="row">
	<div class="col-md-7">
		<a href="<?php echo site_url();?>index.php/CompanyGroup/Companygroup/index/">               
			<button type="button" class="btn btn-danger">
				<i class="fa fa-ban" aria-hidden="true"></i> Cancel 
			</button>
		</a>
	</div>
</div>
</form>
            
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript">
        $(function() {
                $('.footable').footable();
        });
</script>


