<?php ob_start();
error_reporting(0);
require("../../config/koneksi.php");
require("../../config/function.php");
require("../../config/crud.php");
session_start();
if (!isset($_SESSION['id_user'])) {
    die('Anda tidak diijinkan mengakses langsung');
}

?>

<!DOCTYPE html>
<html>

<head>
    <meta charset='utf-8'>

    <title>Lembar Pemeriksaan</title>
<link rel="stylesheet" href="../../plugins/bootstrap/dist/css/bootstrap.min.css">

</head>
<style>
@page { margin: 30px; }
body { margin: 20px; }
</style>
<body style="font-size: 12px;">
 <div class="col-md-12">
	
	<h5 class="text-center">I. PEMERIKSAAN BUKU INDUK</h5>
	
	<br>
	 <table style="margin-left: 40px;margin-right:10px"  width="100%" border="1">
      <thead>
       <tr>
		<th width="5%" class="text-center" height="30px" style="background-color:#DCDCDC">No</th>
		<th class="text-center" style="background-color:#DCDCDC">Tanggal</th>
		<th class="text-center" style="background-color:#DCDCDC">Nama Petugas Pemeriksa</th>
		<th class="text-center" style="background-color:#DCDCDC">Jabatan</th>
		<th  class="text-center" style="background-color:#DCDCDC">Catatan</th>		
      </tr>	
	   <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	  <tr>
		<th width="5%" class="text-center" height="60px"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th class="text-center"></th>
		<th  class="text-center"></th>		
      </tr>	
	</thead>
    </table>
	</div>
	
</body>
</html>
<?php

$html = ob_get_clean();
require_once '../../vendors/autoload.php';

use Dompdf\Dompdf;

$dompdf = new Dompdf();
$dompdf->loadHtml($html);
$dompdf->setPaper('A4', 'potrait');
$dompdf->render();
$dompdf->stream("Lembar Pemeriksaan.pdf", array("Attachment" => false));

exit(0);
?>