 

<!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>
.cetak {
   
 border-style: dotted;
  width:400px;
  border-bottom: 6px solid red;
  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_barang as $label) : endforeach; ?> 
 

	<div class="cetak">
		<table width="100%" >
			<tr>
				<td style="text-align: center;"  ><span><u><?php echo $label->nama_barang; ?></u></span></td>
				 
			</tr>
			<tr>
			 
				<td style="text-align: center;" ><span>Harga Ecer @ Rp.<?php echo  nominal($label->harga_jual_ecer); ?></span></td>
			</tr>
			<tr>
			 
				<td style="text-align: center;" ><span>Harga Grosir @ Rp.<?php echo  nominal($label->harga_grosir); ?> Min. <?php  echo $label->min_grosir ;?></span></td>
			</tr>
			<tr>
			 
				<td style="text-align: center;" ><span>Harga Dos @ Rp.<?php echo  nominal($label->harga_jual_dos); ?></span></td>
			</tr>
			
			
			<tr>
				<td style="text-align: center;"><span style="font-size: 20px"><?php echo $data->nama_toko; ?></span></td>
				 
			</tr>
			<tr>
				<td style="text-align: center;" >Tgl. <?php echo tgl_indo(date('Y-m-d'));  ?></td>
				 
			</tr>
		</table>
	 
	</div>  	
</body>
</html>