<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;
	$DataSurat2 = new DataSurat;
	
	$nomer = $_POST['nomer'];
	$perihal = $_POST['perihal'];
	$matakuliah = $_POST['matakuliah'];
	$nama = $_POST['nama'];
	$npm = $_POST['npm'];	
	$nama = $_POST['nama'];
	$smt = $_POST['smt'];	
	$alasan = $_POST['alasan'];
	$surat = $_POST['surat'];
	
	$DataSurat->add_ijin_uas($nomer, $perihal, $matakuliah, $nama, $npm, $smt, $alasan, $surat);
	
	$id = $DataSurat2->get_ijinuas_id('id');
	echo "<script>window.location='".$base."cetak-ijin-uas/".$id."'</script>";
?>
