<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;
	
	$dosen = $_POST['dosen'];
	$nik = $_POST['nik'];
	$pekerjaan = $_POST['pekerjaan'];
	$sandimk = $_POST['sandimk'];
	$matakuliah = $_POST['matakuliah'];	
	$nama = $_POST['nama'];
	$npm = $_POST['npm'];	
	$smt = $_POST['smt'];	
	$alamat = $_POST['alamat'];
	$semester = $_POST['semester'];
	$tahun = $_POST['tahun'];	
	$alasan = $_POST['alasan'];
	$tanggal = $_POST['tanggal'];	
	$nilai = $_POST['nilai'];
	$nomer = $_POST['nomer'];	
	
	$DataSurat->add_ujian_susulan($dosen, $nik, $pekerjaan, $sandimk, $matakuliah, $nama, $npm, $smt, $alamat, $semester, $tahun, $alasan, $tanggal, $nilai, $nomer);
	
	$id = $DataSurat2->get_susulan_id('id');
	echo "<script>window.location='".$base."cetak-ujian-susulan/".$id."'</script>";
?>
