<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_proposal.php";
	
	$DataProposal = new DataProposal;
	
	$idMhs = $_POST['idMhs'];
	$NPM = $_POST['npm'];
	$namaMhs = $_POST['namaMhs'];
	$judul = $_POST['judul'];
	$noUndanganSkripsi = $_POST['noUndanganSkripsi'];
	$idPendamping1 = $_POST['idPendamping1'];
	$namaPendamping1 = $_POST['namaPendamping1']; 
	$idPendamping2 = $_POST['idPendamping2'];
	$namaPendamping2 = $_POST['namaPendamping2']; 
	$idPendamping3 = $_POST['idPendamping3'];
	$namaPendamping3 = $_POST['namaPendamping3']; 
	$idPendamping4 = $_POST['idPendamping4'];
	$namaPendamping4 = $_POST['namaPendamping4']; 
	$idPendamping5 = $_POST['idPendamping5'];
	$namaPendamping5 = $_POST['namaPendamping5']; 
	$tglProposal = $_POST['tglProposal'];
	$waktu = $_POST['waktu'];	
	$tempat = $_POST['tempat'];
	$wadek2 = $_POST['wadek2'];
	$nipwadek2 = $_POST['nipwadek2'];
	$bendahara = $_POST['bendahara'];
	$nipbendahara = $_POST['nipbendahara'];
	$uanglelah1 = $_POST['uanglelah1'];
	$uanglelah2 = $_POST['uanglelah2'];
	$uanglelah3 = $_POST['uanglelah3'];
	$uanglelah4 = $_POST['uanglelah4'];
	$uanglelah5 = $_POST['uanglelah5'];			
	$nipketuaPenguji = $_POST['nipketuapenguji'];
	$nipsekretaris = $_POST['nipsekretaris'];
	$wadek1 = $_POST['wadek1'];
	$nipwadek1 = $_POST['nipwadek1'];
	
	$DataProposal->delete_skripsi($idMhs);
	$DataProposal->add_skripsi($idMhs, $NPM, $namaMhs, $noUndanganSkripsi, $judul, $idPendamping1, $namaPendamping1, $idPendamping2, $namaPendamping2, $idPendamping3, $namaPendamping3, $idPendamping4, $namaPendamping4, $idPendamping5, $namaPendamping5, $tglProposal, $waktu, $tempat, $wadek2, $nipwadek2, $bendahara, $nipbendahara, $uanglelah1, $uanglelah2, $uanglelah3, $uanglelah4, $uanglelah5, $nipketuaPenguji, $nipsekretaris, $wadek1, $nipwadek1);
	
	include "php_class/class_log_sistem.php";
	$DataLogSistem = new DataLogSistem;
	$idOperator = $_SESSION['idOperator'];
	$namaOp = $_SESSION["NamaOperator"];
	$keterangan = "Menambah Data Skripsi : ".$namaMhs." oleh ".$namaOp."";
	$DataLogSistem->add_data_log_sistem($keterangan,$idOperator);
	
?>
<script>window.location='cetak-skripsi/<?php echo $idMhs?>'</script>
