<!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" />
<link href="<?=getCss()?>cetak.css" rel="stylesheet" type="text/css" />
</head>

<body>

<h3><?=$this->title?></h3>
<br />

<table cellpadding="0" cellspacing="0" border="1" width="100%" >
	<thead>
		<tr>
			<th>No.</th>
            <th>Company</th>
            <th>Incoming No.</th>
            <th>Incoming Date</th>
			<th>Type</th>
			<th>PO No.</th>
            <th>Shipper</th>
            <th>DO Shipper No.</th>
            <th>Item Code</th>
            <th>Item Description</th>
            <th>UOM</th>
            <th>LOT</th>
            <th>Qty.</th>
		</tr>
	</thead>	
	<tbody>	
		<?php if(count($rs['rows']) == 0){?>
			<tr>
				<td colspan="13">
					No records found.
				</td>
			</tr>
		<?php 	} else {
		$no = 1;	
		foreach($rs['rows'] as $r){
		?>					
	            <tr>
					<td align="center"><?=$no++?></td>
					<td><?=$r->company?></td>
                    <td><?=$r->matin_no?></td>
					<td><?=$r->Fmatin_date?></td>
                    <td><?=$r->matin_name?></td>
                    <td><?=$r->po_no?></td>
                    <td><?=$r->NmPrshn?></td>              
                    <td><?=$r->supl_do?></td>
                    <td><?=$r->mat_id?></td>
                    <td><?=$r->NmBarang?></td>
                    <td><?=$r->Sat?></td>
                    <td><?=$r->lot_no?></td>
                    <td align="right"><?=$r->Fqty?></td>
                 </tr>
		
		<?php } }?>
			
     </tbody>
</table>

</body>
</html>