<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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:1120px;
    /*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>
</head>

<body>

<h3><?=$this->title?></h3>
<h4>Periode : <?=$dtdari." s.d. ".$dtsampai?></h4>
<br />

<table cellpadding="1" cellspacing="0" class="tablereport">
<thead>
<tr>
  <th rowspan="2" width="26">No.</th>
  <th rowspan="2" width="79">Kode Barang</th>
  <th rowspan="2" width="260">Nama Barang</th>
  <th rowspan="2" width="41">Satuan</th>
  <th colspan="2">Stok WIP</th>
</tr>
<tr>  
  <th>Warehouse</th>
  <th>Production</th>
</tr>
</thead>
	<tbody>
		<?php if(count($rs['rows']) == 0){?>
			<tr>
				<td colspan="6">
					No records found.
				</td>
			</tr>
		<?php 	} else {
		$no = 1;	
		foreach($rs['rows'] as $row){
		?>					
	            <tr>
					<td align="center"><?=$no++?></td>
					<td><?=$row->KdBarang?></td>
					<td><?=$row->NmBarang?></td>
                    <td><?=$row->Sat?></td>
                    <td align="right"><?=$row->Fqty_wh?></td>
                    <td align="right"><?=$row->Fqty_pr?></td>
                 </tr>
		
		<?php } }?>
			
     </tbody>
</table>

</body>
</html>