<style>
	#table{
		margin-top: 0px;
		margin-left: 20px;
	}

	@media print {
	  #printPageButton {
	    display: none;
	  }
	}
</style>

<!DOCTYPE html>
<html>
<head>
	<title>Cetak BA</title>
</head>
<body>
	<div id="table">
	<table align="center">
		<tr align="center">
			<td style="padding: 10px" colspan="5"><img width="330"></td>
			<td width="500" style="padding: 10px">
				<p>
					FR-PPIC - 31/1 -<br>
					BERITA ACARA<br><br>
					<b><?php echo $berita_acara->nama_vendor ?></b><br>
					<b style="font-size: 24px"><?php echo $berita_acara->id_ba ?></b>
				</p>
			</td>
		</tr>
		<tr>
			<td colspan="6" style="padding: 10px">
				Nomor Polisi : <b style="padding-right: 40px"><?php echo $berita_acara->no_pol ?></b>
				Nomor Sertifikat : <b style="padding-right: 40px"><?php echo $berita_acara->no_sertifikat ?></b>
				Tanggal : <b style="padding-right: 40px"><?php echo date("d/m/Y", strtotime($berita_acara->tgl_input)); ?></b>
			</td>
		</tr>
        <tr>
        	<td>&nbsp;</td>
        </tr>
		<tr>
			<td align="center" colspan="3"><h3>GEO COLL DEPT</h3></td>
			<td align="center" colspan="3"><h3>PPIC DEPT</h3></td>
		</tr>
		<tr>
		</tr>
		<tr>
			<td style="padding: 10px" colspan="3">Jam Datang : <b><?php echo $berita_acara->jam_datang_coll ?></b></td>
			<td style="padding: 10px" colspan="3">Jam Ditransfer : <b><?php echo date("d/m/Y H:i:s", strtotime($berita_acara->jam_serah_qc)); ?></b></td>
		</tr>
		<tr>
			<td style="padding: 10px" colspan="3">Volume : <b><?php echo number_format($berita_acara->vol_coll) ?></b></td>
			<td style="padding: 10px" colspan="3">Nomor Tanki : <b><?php echo $berita_acara->no_iso ?></b></td>
		</tr>
		<tr>
			<td style="padding: 10px" colspan="3">Jam Diserahkan : <b><?php echo $berita_acara->jam_diserahkan_coll ?></b></td>
			<td style="padding: 10px" colspan="3">Volume PPIC : <b><?php echo number_format($berita_acara->vol_ppic) ?></b></td>
		</tr>
		<tr>
			<td style="padding: 10px" colspan="3">Nomor Manifest : <b><?php echo $berita_acara->no_manifest ?></b></td>
			<td style="padding: 10px" colspan="3">ISO Tank : <b><?php echo $berita_acara->iso ?></b></td>
		</tr>
        <tr>
        	<td>&nbsp;</td>
        </tr>
        <tr align="center">
			<td style="padding: 10px" colspan="3"><b>Fany</b></td>
			<td style="padding: 10px" colspan="3"><b>Sujud</b></td>
		</tr>
	</table>
	</div>
	<center>
		<br>
		<button id="printPageButton" onclick="window.print()">Print</button>
		<button id="printPageButton" onclick="window.history.back()">Back</button>
	</center>
</body>
</html>

<?php
/**
	$content = ob_get_clean();
    // convert
    require_once(dirname(__FILE__).'/../html2pdf/html2pdf.class.php');
    try
    {
        $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0);
        $html2pdf->pdf->SetDisplayMode('fullpage');
        $html2pdf->writeHTML($content, isset($_GET['vuehtml']));
        $html2pdf->Output('beritacara.pdf');
    }
    catch(HTML2PDF_exception $e) {
        echo $e;
        exit;
    }
*/
?>