<style type="text/css">
.sn_wap {
    border: 1px solid #ccc;
    height: 200px;
    overflow-y: auto;
    padding: 3px;
	margin-top:10px;
	margin-bottom:10px;
}
</style>

<div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title">Select Serial Numbers</h4>
            <p>ITEM : <?php echo $product_dis_name ?></p>
            </div>
<div class="form-group">
 <div class="col-md-12">   
  <div class="sn_wap">         
             <table width="100%" border="0" class="serial_no_tbl">
 <?php //echo 'qty:'.$qty ?>
 <?php //echo 'test'; ?>
 <?php
 $i=0;
 $sn_count=0;
 $mod_purchase=new Purchases_Model();
// print_r($sn_list[0]);
  foreach ($sn_list as $row_1){  
  if($row_1->pis_number){
	  
	  //check issued and not sold serial number
	 $avalable=$mod_purchase->check_avalable_sn_for_sale($product_id,$row_1->pis_number);
$avalable=1;
if($avalable){	  
  $i++;
  $sn_count++;
  
  ?>
  <tr>
    <td style=" width:30px"><?php echo sprintf('%02d', $i); ?>. </td>
    <td> <label for="cb_<?php echo $row_1->pis_number ?>"><?php echo $row_1->pis_number;?></label></td>
  </tr>
  <?php 
  }
}
  }?>

</table>
</div>
</div>
</div>