<div id="ld" style="position:fixed; top:50%; left:50%"><img src="img/ld.gif"></div>			
<?php
	include "php_class/class_mysql.php";
	include "php_class/class_surat.php";
	
	$DataSurat = new DataSurat;
	
	$dosen = $_POST['dosen'];
	$nipdosen = $_POST['nipdosen'];
	$atasan = $_POST['atasan'];
	$nipatasan = $_POST['nipatasan'];
	$tglawal = $_POST['tglawal'];	
	$tglakhir = $_POST['tglakhir'];
	$cuti = $_POST['cuti'];	
	$alasan = $_POST['alasan'];	
	
	$DataSurat->add_cuti($dosen, $nipdosen, $atasan, $nipatasan, $tglawal, $tglakhir, $alasan, $cuti);
	
	echo "<script>window.location='".$base."laporan-surat-ijin.php?nip=$nipdosen'</script>";
?>
