<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="Author" content="Kikin Kusumah" />
<style type="text/css" media="all">	
#borderAll {
    border: 1px solid #000;	  	    
}
.p_spacing{
    margin-top:4px;
    margin-bottom:4px;
}
table.tablereport {	
    border: 1px solid #000;	
    border-collapse:collapse;
    margin:5px 0pt 10px;		
    font-size: 9pt;
	width:100%;
    /*width: 8.27in;	
    height:11.69in;*/
	/*width:11.69in;*/
}
table.tablereport thead tr th{		
    border: 1px solid #000;		
    font-size: 9pt;		
    padding: 4px;
    vertical-align:middle;
}	
table.tablereport tbody tr td {
    border: 1px solid #000;		
    font-size: 9pt;		
    padding: 4px;
    vertical-align:top;
}
table.tablereport tfoot tr td {
    border: 1px solid #000;		
    font-size: 9pt;		
    padding: 4px;
    vertical-align:top;
}
.borderall{
    border:1px #000 solid !important;
}
.noborder{
    border:1px #FFF solid !important;
}
.nobordertlr{
	border-top:hidden !important;
    border-left:hidden !important;
    border-right:hidden !important;    
	border-bottom:1px solid #000 !important;
}

.noborderlrb{
    border-left:hidden !important;
    border-right:hidden !important;
    border-bottom:hidden !important;
}
.nobordertr{
    border-top:hidden !important;
    border-right:hidden !important;
}
.nobordert{
    border-top:hidden !important;	
}
.noborderright{
    border-right:hidden !important;
}
.noborderbtm{
    border-bottom:hidden !important;
}
.noborderrb{
    border-right:hidden !important;
    border-bottom:hidden !important;
}	
</style>
<body <? if($_REQUEST['cetak'] == 1){?> onLoad="print()"<? }?>>
<h5 align="center"><?php echo strtoupper($title) ?></h5>
<h5>PERIODE <?php echo $_REQUEST['dtdari']." S.D ".$_REQUEST['dtsampai'] ?>
<br>KODE BARANG : <?=$KdBarang ?>
<br>NAMA BARANG : <?=$NmBarang ?>
</h5>
<table cellpadding="1" cellspacing="0" class="tablereport">
<thead>
<tr>
  <th width="50">No.</th>
  <th width="65">Transaction No.</th>
  <th width="63">Date</th>
  <th width="65">Qty. Receive</th>
  <th width="65">Qty. Product</th>
  <th width="65">Qty. Product BOM</th>
  <th width="65">Qty. Convertion/TOR</th>
  <th width="65">Line</th>
  <th width="65">PO</th>
  <th width="65">Balance</th>
</tr>
</thead>
<tbody>
<?php 
$no_urut=0; 
foreach ($rs as $r): 
$no_urut += 1;
?>
<tr>
  <td align="center"><?php echo $no_urut ?></td>
  <td><?php echo $r['trans_no'] ?></td>
  <td align="center"><?php echo $r['dmy'] ?></td>
  <td align="right"><?php echo $r['fqty_receive'] ?></td>
  <td align="right"><?php echo $r['fqty_product'] ?></td>
  <td align="right"><?php echo $r['fqty_bom'] ?></td>
  <td align="right"><?php echo $r['fqty_convert'] ?></td>
  <td align="center"><?php echo $r['line'] ?></td>
  <td align="center"><?php echo $r['po_no'] ?></td>
  <td align="right"><?php echo $r['saldo'] ?></td>
</tr>
<?php $i++; endforeach; ?>
</tbody>
</table>
</body>
</html>