<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'];
	$nama = $_POST['nama'];
	$npm = $_POST['npm'];
	$tahun = $_POST['tahun'];
	$tanggal = $_POST['tanggal'];	
	$ijazah = $_POST['ijazah'];
	
	$DataSurat->add_surat_keterangan($nomer, $nama, $npm, $tahun, $tanggal, $ijazah);
	
	$id = $DataSurat2->get_keterangan_id('id');
	echo "<script>window.location='".$base."cetak-surat-keterangan-kuliah/".$id."'</script>";
?>
