<?php include "../koneksi.php";



 ?>
<!DOCTYPE html>
<!-- Designined by CodingLab | www.youtube.com/codinglabyt -->
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="bootstrap.css">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link href="//db.onlinewebfonts.com/c/c472299a2eaf0a0122a0873deff37994?family=TeX+Gyre+Schola+Math" rel="stylesheet" type="text/css"/>
     <style>
@import url(//db.onlinewebfonts.com/c/c472299a2eaf0a0122a0873deff37994?family=TeX+Gyre+Schola+Math);
</style>
   </head>
<body style="font-size: 12px">
<table class="table" style="width:100%">
	<td width="30%">
	</td>
	<td width="50%"></td>
	<td width="20%" height="50px">
		<span style="font-family: TeX Gyre Schola Math; font-size: 16px; font-weight: bold;">Delivery Note</span>
	</td>
</table>
<table style="width:100%;">
<tr style="font-weight: bold" >
	<td width="70%"></td>
	<td width="30%" style="font-family: TeX Gyre Schola Math;  letter-spacing: 0.5px; word-spacing: 2px; -webkit-transform:scale(0.8,1.0);
    -moz-transform:scale(0.8, 1.0);
    -ms-transform:scale(0.8, 1.0);
    -o-transform:scale(0.8, 1.0);
    transform:scale(0.8,1.0);">
		Jl. Raya Surabaya-Malang Km.40.5<br>
		Desa Ngerong Kec. Gempol<br>
		Pasuruan Jawa Timur 67155<br>
		Indonesia<br>
		Tel: +62 5930 6880<br>
		Fax: +62 5930 6882
	</td>
</tr>
</table>
<table class="table" style="width:100%; margin-top: 30px;">
	<thead><tr><th></th></thead>
</table>

<?php 
        $data1 = mysqli_query ($koneksi, " select 
                              deliverytbl.Del_ID,
                              deliverytbl.DateKirim,
                              deliverytbl.DetailPO_ID,
                              detail_po.PO_ID,
                              po_tbl.No_PO,
                              po_tbl.TanggalPO,
                              po_tbl.CustomerID,
                              customer.CustomerName,
                              customer.CustomerNo,
                              customer.Alamat,
                              customer.Sales,
                              customer.TOD,
                              customer.Kota,
                              customer.HO_ID,
                              ho_tbl.HO_Customer,
                              ho_tbl.No_HO,
                              ho_tbl.Alamat_HO,
                              detail_po.ProductID,
                              product.Material,
                              product.ItemDescription,
                              product.SLoc,
                              product.QtyUnit,
                              deliverytbl.DetailEkspedisi_ID,
                              detailekspedisi.EkspedisiID,
                              ekspedisi.Ekspedisi,
                              detailekspedisi.Sopir,
                              detailekspedisi.NoPolisi,
                              detailekspedisi.NoHP,
                              deliverytbl.NoDN,   
                              deliverytbl.QtyKirim,
                              deliverytbl.Arrival_Time,
                              deliverytbl.SO_No,
                              deliverytbl.DateDoc,
                              deliverytbl.Expedisi,
                              deliverytbl.Cont,
                              deliverytbl.Seal    
                      from 
                      deliverytbl
                      INNER JOIN detail_po
                      ON deliverytbl.DetailPO_ID=detail_po.DetailPO_ID
                      INNER JOIN po_tbl
                      ON detail_po.PO_ID=po_tbl.PO_ID
                      INNER JOIN customer
                      ON po_tbl.CustomerID=customer.CustomerID
                      INNER JOIN product
                      ON detail_po.ProductID=product.ProductID
                      INNER JOIN detailekspedisi
                      ON deliverytbl.DetailEkspedisi_ID=detailekspedisi.DetailEkspedisi_ID
                      INNER JOIN ho_tbl
                      ON customer.HO_ID=ho_tbl.HO_ID
                      INNER JOIN ekspedisi
                      ON detailekspedisi.EkspedisiID=ekspedisi.EkspedisiID
                      WHERE Del_ID ='$_GET[id]'");
        
    	$row1 = mysqli_fetch_array ($data1)
      ?>

<table style="width:100%; font-family: TeX Gyre Schola Math; margin-top: 5px; letter-spacing: 0.6px; word-spacing: 1.5px;">
	<tr style="font-weight: bold; font-size: 14px;">
			<td width="22%">
				Document No.
			</td>
			<td width="22%">
				Document Date
			</td>
			<td width="22%">
				Delivery Date
			</td>
			<td width="22%">
				Arrival Time
			</td>
			<td width="12%">
				SO Number
			</td>
	</tr>
	<tr style="font-size: 14px;">
			<td width="22%">
				<?php echo $row1['NoDN']; ?>
			</td>
			<td width="22%">
				<?php echo date ("d.m.Y", strtotime($row1['DateDoc'])); ?>
			</td>
			<td width="22%">
				<?php echo date ("d.m.Y", strtotime($row1['DateKirim'])); ?>
			</td>
			<td width="22%">
				<?php echo $row1['Arrival_Time']; ?>
			</td>
			<td width="20%">
				<?php echo $row1['SO_No']; ?>
			</td>
	</tr>
</table>
<table class="table" style="width:100%; margin-top: 5px;">
	<thead><tr><th></th></thead>
</table>
<table style="margin-top: 5px; width:100%; height: 150px; font-family: TeX Gyre Schola Math; font-weight: bold; font-size: 10px; letter-spacing: 0.3px; word-spacing: 1px;">
	<tr><td valign="top">
<table style="width:100%;>
	<tr style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2)">
			<td width="10%">
				Customer:
			</td>
			<td>
				<?php echo $row1['No_HO']; ?>
			</td>
			<td width="40%"></td>
			<td width="9%">
				Ship to:
			</td>
			<td width="25%">
				<?php echo $row1['CustomerNo']; ?>
			</td>
			<td width="16%">
			</td>
	</tr>
	<tr >
			<td width="10%">
				
			</td>
			<td width="20%" colspan="2" >
				<?php echo $row1['HO_Customer']; ?>
			</td>
			<td width="9%"></td>
			<td width="20%" colspan="2">
				<?php echo $row1['CustomerName']; ?>
			</td>
			<td width="23%">
			</td>
	</tr>
	<tr>
			<td width="10%">
				
			</td>
			<td width="25%" valign="top" colspan="2">
				<?php echo $row1['Alamat_HO']; ?>
			</td>
			<td width="9%"></td>
			<td width="25%" valign="top" colspan="2">
				<?php echo $row1['Alamat']; ?>
			</td>
			<td width="20%">
			</td>
	</tr>
</table>
	</td></tr>
</table>
<table class="table" style="width:100%; margin-top: 5px;">
	<thead><tr><th></th></thead>
</table>
<table style="font-family: TeX Gyre Schola Math; font-size: 10px; letter-spacing: 0.5px; word-spacing: 1px;  margin-top: 5px;">
	<tr >
			<td width="18%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				Sales Person
			</td>
			<td width="20%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				: <?php echo $row1['Sales']; ?>
			</td>
			<td width="11%"></td>
			<td width="9%"></td>
			<td width="20%">
			</td>
			<td width="23%">
			</td>
	</tr>
	<tr>
			<td style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				Terms of delivery
			</td>
			<td style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				: <?php echo $row1['TOD']; ?>
			</td>
			<td></td>
			<td></td>
			<td>
			</td>
			<td>
			</td>
	</tr>
	<tr>
			<td>
			</td>
			<td>
				&ensp;<?php echo $row1['Kota']; ?>
			</td>
			<td></td>
			<td></td>
			<td>
			</td>
			<td>
			</td>
	</tr>
</table>
<?php if ($row1['CustomerID']==='1') { ?>
<table style="font-family: TeX Gyre Schola Math; font-size: 10px; letter-spacing: 0px; word-spacing: 1px; margin-top: 5px; margin-left: -18px;">
<tr>
	<td width="30%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				EKSPEDISI :
				<?php echo $row1['Expedisi']; ?>
	</td>
	<td width="70%"></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				NO CONTAINER :
				<?php echo $row1['Cont']; ?>
	</td>
	<td ></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				NO SEAL :
				<?php echo $row1['Seal']; ?>
	</td>
	<td ></td>
</tr>


<?php } else if ($row1['Cont'] !== NULL && $row1['Seal'] !== NULL) { ?>
<table style="font-family: TeX Gyre Schola Math; font-size: 10px; letter-spacing: 0px; word-spacing: 1px; margin-top: 5px; margin-left: -18px;">
<tr>
	<td width="30%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				EKSPEDISI :
				<?php echo $row1['Ekspedisi']; ?>
	</td>
	<td width="70%"></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				NO KENDARAAN :
				<?php echo $row1['Cont']; ?>
	</td>
	<td ></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				DRIVER :
				<?php echo $row1['Seal']; ?>
	</td>
	<td ></td>
</tr>

<?php } else { ?>	
<table style="font-family: TeX Gyre Schola Math; font-size: 10px; letter-spacing: 0px; word-spacing: 1px; margin-top: 5px; margin-left: -18px;">
<tr>
	<td width="30%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				EKSPEDISI :
				<?php echo $row1['Ekspedisi']; ?>
	</td>
	<td width="70%"></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				NO KENDARAAN :
				<?php echo $row1['NoPolisi']; ?>
	</td>
	<td ></td>
</tr>
<tr>
	<td  style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
				DRIVER :
				<?php echo $row1['Sopir']; ?> -
				<?php echo $row1['NoHP']; ?>
	</td>
	<td ></td>
</tr>
<?php } ?>
<tr >
	<td width="30%" style="-webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(0.8,1.2);">
		007/FORM-CORP/SOP0901/PL/REV.01			
	</td>
	<td width="70%"></td>
</tr>
</table>
<table class="table" style="width:100%; margin-top: 5px;">
	<thead><tr><th></th></thead>
</table>
<table style="width:100%; font-family: TeX Gyre Schola Math; margin-top: 5px; letter-spacing: 0.9px; word-spacing: 2px;">
	<tr style="font-weight: bold; font-size: 15px;" >
			<td width="10%">
				Item
			</td>
			<td width="10%">
				DG
			</td>
			<td width="35%">
				Material No.
			</td>
			<td width="20%">
				PO No.
			</td>
			<td width="12%">
				Batch No.
			</td>
			<td width="13%">
				Quantity
			</td>
	</tr>
	<tr style="font-weight: bold; font-size: 14px; letter-spacing: 0.9px; word-spacing: 2px;">
			<td ></td>
			<td >
				Trem
			</td>
			<td >
				Description
			</td>
			<td >
				PO Date
			</td>
			<td ></td>
			<td ></td>
	</tr>
</table>
<table class="table" style="width:100%; margin-top: 5px;">
	<thead><tr><th></th></thead>
</table>
<table style="width:100%; height: 150px">
	<tr><td valign="top">
<table style="width:100%; margin-top: 10px; font-family: TeX Gyre Schola Math; font-size: 9.5px; letter-spacing: 0.3px; word-spacing: 1px;">
	<tr style="">
			<td width="10%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				000010
			</td>
			<td width="10%">
			</td>
			<td width="35%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo $row1['Material']; ?>
			</td>
			<td width="20%" style=" padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo $row1['No_PO']; ?>
			</td>
			<td width="12%">
			</td>
			<td width="13%">
			</td>
	</tr>
	<tr>
			<td ></td>
			<td >
			</td>
			<td style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);" >
				<?php echo $row1['ItemDescription']; ?>
			</td>
			<td style=" padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);" >
				<?php echo date ("d.m.Y", strtotime($row1['TanggalPO'])); ?>
			</td>
			<td ></td>
			<td ></td>
	</tr>
	<?php 
	$data4 = mysqli_query ($koneksi, " SELECT 
									COUNT(stpj.STPJ_ID) AS jumlah,
									product.SLoc,
									product.QtyUnit,
									sum(stpj.Qty) as jml,
									DATE_FORMAT(plan.DatePlan, '%y%m') AS dateplan
					FROM stpj 
					INNER JOIN plan
					ON stpj.PlanID=plan.PlanID
					INNER JOIN product
					ON plan.ProductID=product.ProductID
					where stpj.Del_ID='$_GET[id]'
					GROUP BY DATE_FORMAT(plan.DatePlan, '%y%m'), plan.ProductID
					Order BY product.ProductID ,plan.DatePlan ASC");
	
	while($row4 = mysqli_fetch_array ($data4)):
	?>
	<tr>
			<td >
			</td>
			<td >
			</td>
			<td >
			</td>
			<td >
			</td>
			<td style=" padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);" >
				<?php echo $row4['dateplan']; ?>
			</td>
			<td style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo number_format($row4['jml']*$row4['QtyUnit'], 0, "","."); ?>&emsp;
				PCE
			</td>
	</tr>
<?php endwhile; ?>
</table>
<?php if ($row1['CustomerID']==='3' || $row1['CustomerID']==='6' || $row1['CustomerID']==='9') { ?>
<table style="width:100%; font-family: TeX Gyre Schola Math; font-size: 9.5px; letter-spacing: 0.3px; word-spacing: 1px; margin-top: 30px;"> 
	<tr>
			<td width="10%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				000020
			</td>
			<td width="10%">
			</td>
			<td width="35%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				568076
			</td>
			<td width="20%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo $row1['No_PO']; ?>
			</td>
			<td width="13%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php if($row1['CustomerID']==='3') { ?>
				GPL-KLN
				<?php } else if($row1['CustomerID']==='6') { ?>
				GPL-SGN
				<?php } else { ?>
				GPL-PDN
				<?php } ?>
			</td>
			<td width="12%" style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo $row1['QtyKirim'] ?>&emsp;
				PC
			</td>
	</tr>
	<tr>
			<td></td>
			<td>
			</td>
			<td style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				Nicktainer
			</td>
			<td style="padding-top: 2px; padding-bottom: 2px; -webkit-transform:scale(0.8,1.0); -moz-transform:scale(0.8, 1.0); -ms-transform:scale(0.8, 1.0); -o-transform:scale(0.8, 1.0); transform:scale(1,1.2);">
				<?php echo date ("d.m.Y", strtotime($row1['TanggalPO'])); ?>
			</td>
			<td></td>
			<td></td>
	</tr>
</table>
<?php } ?>
</td></tr>
</table>
<table class="table" style="width:100%; margin-top: 30px; ">
	<thead><tr><th></th></thead>
</table>
	<table class="table" style="width:100%; margin-top: 10px; ">
		<td width="3%"></td>
		<td width="45%">
		<?php if ($row1['CustomerID']==='3' || $row1['CustomerID']==='9') { ?>
		<?php
		$data3 = mysqli_query ($koneksi, " SELECT 
				stpj.STPJ_ID,
				product.SLoc,
				product.QtyUnit,
				stpj.NoLot,
				sum(stpj.Qty) AS qty
		FROM stpj 
		INNER JOIN plan
		ON stpj.PlanID=plan.PlanID
		INNER JOIN product
		ON plan.ProductID=product.ProductID
		where stpj.Del_ID='$_GET[id]'");

		$row3 = mysqli_fetch_array ($data3) ?>
	<table class="table" style="width:100%; font-family: TeX Gyre Schola Math; font-size: 9.5px; letter-spacing: 0.3px; word-spacing: 1px;">
		<thead>
		<tr >
			<th width="20%" style="text-align: left; padding-top: 2px; padding-bottom: 2px; " >
				UNLOADING :
			</th>
			<th width="15%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				<?php if($row1['CustomerID']==='3') { ?>
				SPS-3
				<?php } else { ?>
				SHINTA
				<?php } ?>
			</th>
			<th width="15%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
        		
			</th>
			<th width="20%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				ETA JAM
			</th>
			<th width="5%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				10:00:00
			</th>
		</tr>
	</thead>
	<thead>
		<tr>
			<th width="20%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				NO LOT
			</th>
			<th width="30%" colspan="2" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				PACKING
			</th>
			<th width="40%" colspan="2" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				QUANTITY
			</th>
		</tr>
	</thead>
		<?php
		$data2 = mysqli_query ($koneksi, " SELECT 
				stpj.STPJ_ID,
				product.SLoc,
				product.QtyUnit,
				stpj.NoLot,
				sum(stpj.Qty) AS qty
		FROM stpj 
		INNER JOIN plan
		ON stpj.PlanID=plan.PlanID
		INNER JOIN product
		ON plan.ProductID=product.ProductID
		where stpj.Del_ID='$_GET[id]'
		GROUP BY stpj.NoLot");

		while($row2 = mysqli_fetch_array ($data2)): ?>
		<tr>
			<td width="20%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				<?php echo $row2['NoLot']; ?>
			</td>
			<td width="10%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				<?php echo $row2['qty']; ?>
			</td>
			<td width="20%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
        <?php echo substr($row2['SLoc'], 0, 3); ?>
			</td>
			<td width="10%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				<?php echo number_format($row2['qty']*$row2['QtyUnit'], 0, "","."); ?>
			</td>
			<td width="5%" style="text-align: left; padding-top: 2px; padding-bottom: 2px;">
				PCS
			</td>
		</tr>
		<?php endwhile; ?>
	</table>
	<?php } ?>
	</td>
		<td width="15%"></td>
		<td width="35%" >
			<table class="table" style="width:100%; margin-top: 5px; font-family: TeX Gyre Schola Math; font-size: 9.5px; letter-spacing: 0.3px; word-spacing: 1px; font-size: 11px;">
		<tr>
			<td width="100%" colspan="3">
				RECEIVED BY
			</td>
		</tr>
		<tr>
			<td width="100%" colspan="3" >
				Please stamp, sign, print name  return copy
			</td>
		</tr>
		<tr>
			<td width="20%"></td>
			<td width="60%" height="30px" style="border-bottom: 1px solid black">
			</td>
			<td width="20%"></td>
		</tr>
	</table>
</td>
</body>
</html>