 

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Cetak Label Barang</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/cetak/css/bootstrap.min.css">
  <script src="<?php echo base_url();?>assets/cetak/js/jquery.min.js"></script>
  <script src="<?php echo base_url();?>assets/cetak/js/bootstrap.min.js"></script>
  <link href="<?php echo base_url();?>assets/cetak/font-awesome/css/font-awesome.css" rel="stylesheet" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/cetak/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<script defer src="<?php echo base_url();?>assets/cetak/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
 <style>
      .box{
        width:400px;
        height:200px;
        margin-top: 17px;
        display: inline-block;
        margin-left: 10px;
        border-style: dotted;

        border-bottom: 10px solid blue;
        background-color: lightgrey;
      }
    </style>
<style>
.cetak {
  
 border-style: dotted;
  width:400px;
  border-bottom: 6px solid blue;
  background-color: lightgrey;
}
 
@media print {
input.noPrint { display: none; }
}
@page
        {
            size: auto;   /* auto is the initial value */
            margin: 0mm;  /* this affects the margin in the printer settings */
        }
span{
  font-size: 30px;
  text-align: center;
}
</style>
</head>
<body onload="window.print();loaded();">
 
 
<?php //window.print();loaded();
 foreach($kontak as $data) : endforeach; ?> 

 <?php //window.print();loaded();

 foreach($label_list as $label) : endforeach; ?> 
 

	   <?php $no=1; foreach($label_list as $rows) :

                $id_barang= $rows->id_barang;
                      $this->db->where('id',$id_barang);
                      $query = $this->db->get('tb_barang');
                      $row = $query->row();
                      $barcode_ecer = $row->barcode_ecer;
                      $nama_barang = $row->nama_barang; 
                      $harga_jual_ecer = $row->harga_jual_ecer; 
                        $barcode_ecer = $row->barcode_ecer;
                      $nama_barang = $row->nama_barang; 
                      $harga_jual_ecer = $row->harga_jual_ecer; 
                       $harga_jual_dos = $row->harga_jual_dos; 
                         $harga_grosir = $row->harga_grosir_lv1; 
                           $min_grosir = $row->min_grosir_lv1;
                      //
                $jumlah_samping= $rows->jumlah_samping; 
                $jumlah_baris= $rows->jumlah_baris;       
                 ?> 
                  <?php $kode=$barcode_ecer; ?>
<div class="box">
  
  <table width="100%" >
                    <tr>
                      <td style="text-align: center;"  ><span><u><strong>Ecer@ Rp.<?php echo nominal($harga_jual_ecer); ?></strong></u></span></td>
                       
                    </tr>
                    <tr>
                     
                      <td style="text-align: center;" ><span style="font-size: 25px; "><strong><?php echo $nama_barang; ?></strong></span></td>
                    </tr>
                    
                    <tr>

                      <td style="text-align: center;" ><span>Grosir Lv1 Rp.<?php echo nominal($harga_grosir); ?> Min. <?php echo $min_grosir; ?></span></td>
                    </tr>
                    <tr>
                      <td style="text-align: center;"  ><span>Dos Rp. <?php echo nominal($harga_jual_dos); ?></span></td>

                    </tr>
                    
                    <tr>
                      <td style="text-align: center;" >Tgl. <?php echo tgl_indo(date('Y-m-d'));  ?></td>
                       
                    </tr>
                     <tr>
                      <td style="text-align: center;" > <?PHP echo $data->nama_toko; ?> </td>
                       
                    </tr>
                  </table>
</div>


                <?php $no++; endforeach; ?>
</body>
</html>