<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <title>Print Barcodes | Stock Manager Advance</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/bootstrap/css/bootstrap.min.css">
      <link rel="stylesheet" href="<?php echo asset_url(); ?>plugins/font-awesome/css/font-awesome.min.css">
      </head>
  <style>

.table.barcodes td {

   border-top: 0px;

   padding: 0px;

}

.table.barcodes .table-barcode {

    width: 100%;

}

.table.barcodes .table-barcode td {

    padding: 2px!important;

}

.bold {

    font-weight: 900;

}

.table-barcode tr{ line-height: 0.5; }



table{ line-height: 1.5; margin-bottom: 0px;  margin-left: 0mm;}



img{height: 29px;
    width:100px;
float:center;
}

      body{
          font-size:14px;
          text-align:center;
          color:#000;
          background:#FFF;
          
      }
          
          body:before,body:after{display:none;}.tab-wrapper{max-width:1000px;margin:0 auto;}.table td{text-align:center;}h4{margin:5px;padding:0;}@media print {.table td{border-color:#F9F9F9!important;}.tab-wrapper{width:auto!important;}h3{margin-top:0;}.container p,.pagination,.well{display:none;}hr{page-break-after:always;}}

	  
.is_box{
	width:98px;
	/*background-color:#CCF;*/
	margin-left:4%;
	float:left;
	margin-bottom:2px;
      	<?php //if($this->session->userdata('ss_warehouse_id')==10){?>

	<?php //}else {?>
        margin-top:15px;
        	<?php //}?>
        font-weight: bold;
        margin-right:13px;
        height:52px;
}

img{

}

body {
 font-size: 14px !important;
/* font-weight: bold;*/
line-height: 1.1 !important;
font-family:sans-serif !important;
/*text-transform: uppercase;*/

}
.img_div{
    	
    	
}
.img_div{
    height: 25px!important; 
}
.price_div{

font-size: 10px;
font-weight:normal;

}
.space{
clear: both;
    height: 2px;
    width: 100%;
}
.well {

  margin-bottom: 10px !important;

}
.p_name{
   font-size: 10px;
font-weight: normal;
text-align: center !important;
text-transform:capitalize;
}
      </style>
   </head>
   <body>
      <div class="tab-wrapper">
         <div class="well">
            <span style="margin-top:15px; display: block;">
               <div class="btn-group">
                  <a class="btn btn-primary" href="#" onclick="window.print(); return false;"><i class="fa fa-print"></i> Print</a>
                  <a class="btn btn-danger" onclick="javascript:window.close()"><i class="fa fa-times"></i> Close</a>
               </div>
            </span>
         </div>
         
         
  
  <!-- start code-->
  <?php
//   echo "<div class=\"is_box\">";
//print_r($po_middle_data);	
$mod_pro=new Product_Models();
//print_r($po_header);
$supp_code='';
$supp_code=" ".$po_header[0]->supp_code;
foreach ($po_middle_data as $po_middle) { 
 //echo "<div class=\"is_box\">";	
        // $card_ref_number=$sale_des['card_ref_number'];
          //echo "";
         $qty=$po_middle->quantity;
		 //get product price by id
		 
		 $product_des=$mod_pro->get_product_by_id($po_middle->product_id);
		 $product_price=$product_des->product_price;
		  for($k=0; $k<$qty; $k++){
	 ?>
     <!-- item start -->
     <div class="is_box">
      
     
       <div class="price_div">
	  Rs. <?php echo number_format($product_price, 0, '', '');?>
      </div>
      
	  <img src="<?php echo base_url().'products/gen_barcode/'.$po_middle->product_code.'/25'; ?>" alt='code' />	
	  
	   <div class="p_name">
	 <?php echo substr($po_middle->product_name, 0,10).$supp_code;?>
      </div> 
	 
	  <!-- <div class="p_name">
	       <div class="space">&nbsp</div> 
	       <?php echo substr($po_middle->product_name, 0,10).$supp_code;?> </div>-->
           </div>
           <!-- end item start -->
           
     <?php
		  }
	 }
	 ?>
  <!-- end code -->
         
       
         
      </div>
   </body>
</html>