<script type="text/javascript">	
$(document).ready(function() {	
	$("#tabs").tabs({selected:0});
	$("#form").load('modul/truck/form.php');
	$("#tampil_data").load('modul/truck/tampil_data.php');
	
	$("#cetak_kd").click(function(){
		window.location.href='modul/laporan/daftar_kd.php';
	});
	
	$("#tutup_kd").click(function(){
		document.location='?module=home';
	});
});
</script>

<style type="text/css">
#info {
	font-size:12px;
	font-weight:bold;
	color:#F00;
}
</style>
<?php
echo "<div id='tabs'>";
echo "<ul>
	       <li><a href='#form'>BUAT DATA KENDARAAN</a></li>
	       <li><a href='#data'>DAFTAR KENDARAAN</a></li>
      </ul>";
	echo "<div id='form'></div>";
	
	echo "<div id='data'>
			<div id='pencarian'>
			<fieldset>
			<legend>Filter Data</legend>
			<table width='100%'>
				<tr>
					<td align='center'>
						<button name='cetak_kd' id='cetak_kd'>Cetak</button>
						<button name='tutup_kd' id='tutup_kd'>Tutup</button>
					</td>
				</tr>
			</table>
			</fieldset>
		</div><br>
		<div id='tampil_data' align='center' style='overflow-x: auto;height: 350px;scroll-behavior: smooth'></div>
	</div>";
	
	echo "<div id='info' align='center'></div>";
	
echo "</div>";
?>
