<!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>
<br />

<table cellpadding="1" cellspacing="0" class="tablereport">
<thead>
<tr>
  <th width="26">No.</th>
  <th width="79">Item Code</th>
  <th width="260">Item Name</th>
  <th width="41">UOM</th>
  <th>Begin Stock</th>
  <th>Part Issue</th>
  <th>FC * Product</th>
  <th>Adjust Scrap</th>
  <th>End Stock</th>
  <th>Stock Opname</th>
</tr>
</thead>
	<tbody>
		<?php if(count($rs['rows']) == 0){?>
			<tr>
				<td colspan="10">
					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><?=$row->Fqty_beg?></td>
					<td><?=$row->Fqty_in?></td>
                    <td><?=$row->Fqty_out?></td>
                    <td><?=$row->Fqty_sc?></td>
                    <td><?=$row->Fqty_end?></td>
                    <td><?=$row->Fqty_opn?></td>
                 </tr>
		
		<?php } }?>
			
     </tbody>
</table>

</body>
</html>