<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_skk.php";
	
	$DataSKK = new DataSKK;
	
	$idMhs = $_POST['idMhs'];
	
	$semester = $_POST['semester'];
	$tahunAkademik = $_POST['tahunAkademik'];
	
	$latdis = $_POST['latdis'];
	$ospek = $_POST['ospek'];
	$kerbaksos = $_POST['kerbaksos'];
	$stadiumgeneral = $_POST['stadiumgeneral'];
	$bsm = $_POST['bsm'];
	$pdjur = $_POST['pdjur'];
	$pdregional = $_POST['pdregional'];
	$pdnasional = $_POST['pdnasional'];
	$pdinternasional = $_POST['pdinternasional'];
	$mnjur = $_POST['mnjur'];
	$mnregional = $_POST['mnregional'];
	$mnnasional = $_POST['mnnasional'];
	$mninternasional = $_POST['mninternasional'];
	$pmjur = $_POST['pmjur'];
	$pmregional = $_POST['pmregional'];
	$pmnasional = $_POST['pmnasional'];
	$pminternasional = $_POST['pminternasional'];
	$jurKetua = $_POST['jurKetua'];
	$jurWakil = $_POST['jurWakil'];
	$jurBen = $_POST['jurBen'];
	$jurSek = $_POST['jurSek'];
	$jurAng = $_POST['jurAng'];
	$regKetua = $_POST['regKetua'];
	$regWakil = $_POST['regWakil'];
	$regBen = $_POST['regBen'];
	$regSek = $_POST['regSek'];
	$regAng = $_POST['regAng'];
	$nasKetua = $_POST['nasKetua'];
	$nasWakil = $_POST['nasWakil'];
	$nasBen = $_POST['nasBen'];
	$nasSek = $_POST['nasSek'];
	$nasAng = $_POST['nasAng'];
	$intKetua = $_POST['intKetua'];
	$intWakil = $_POST['intWakil'];
	$intBen = $_POST['intBen'];
	$intSek = $_POST['intSek'];
	$intAng = $_POST['intAng'];
	$wajib = $_POST['wajib'];
	
	$lainjur = $_POST['lainjur'];
	$lainregional = $_POST['lainregional'];
	$lainnasional = $_POST['lainnasional'];		
	$laininternasional = $_POST['laininternasional'];
				
	$skkLatdis=$latdis*5;
	$skkOspek = $ospek*5;
	$skkKerbaksos = $kerbaksos*5;
	$skkStadiumGeneral = $stadiumgeneral*15;
	$skkBSM = $bsm*15;
	$skkPdJur = $pdjur*10;
	$skkPdRegional = $pdregional*15;
	$skkPdNasional = $pdnasional*20;
	$skkPdInternasional = $pdinternasional*25;
	$skkMnJur = $mnjur*10;
	$skkMnRegional = $mnregional*15;
	$skkMnNasional = $mnnasional*20;
	$skkMnInternasional = $mninternasional*25;
	$skkPmJur = $pmjur*10;
	$skkPmRegional = $pmregional*15;
	$skkPmNasional = $pmnasional*20;
	$skkPmInternasional = $pminternasional*25;
	$skkJurKetua = $jurKetua*10;
	$skkJurWakil = $jurWakil*10;
	$skkJurSek = $jurSek*10;
	$skkJurBen = $jurBen*10;
	$skkJurAng = $jurAng*5;
	$skkRegKetua = $regKetua*15;
	$skkRegWakil = $regWakil*15;
	$skkRegSek = $regSek*15;
	$skkRegBen = $regBen*15;
	$skkRegAng = $regAng*10;
	$skkNasKetua = $nasKetua*20;
	$skkNasWakil = $nasWakil*20;
	$skkNasSek = $nasSek*20;
	$skkNasBen = $nasBen*20;
	$skkNasAng = $nasAng*15;
	$skkIntKetua = $intKetua*25;
	$skkIntWakil = $intWakil*25;
	$skkIntSek = $intSek*25;
	$skkIntBen = $intBen*25;
	$skkIntAng = $intAng*20;
	$skkWajib = $wajib*150;
	$skkLainJur = $lainjur*10;
	$skkLainRegional = $lainregional*15;
	$skkLainNasional = $lainnasional*20;
	$skkLaininternasional = $laininternasional*25;
	
			$totalSKK = $skkLatdis+$skkOspek+$skkKerbaksos+$skkStadiumGeneral+$skkBSM+$skkPdJur+$skkPdRegional+$skkPdNasional+$skkPdInternasional+$skkMnJur+$skkMnRegional+$skkMnNasional+$skkMnInternasional+$skkPmJur+$skkPmRegional+$skkPmNasional+$skkPmInternasional+$skkJurKetua+$skkJurWakil+$skkJurSek+$skkJurBen+$skkJurAng+$skkRegKetua+$skkRegWakil+$skkRegSek+$skkRegBen+$skkRegAng+$skkNasKetua+$skkNasWakil+$skkNasSek+$skkNasBen+$skkNasAng+$skkIntKetua+$skkIntWakil+$skkIntSek+$skkIntBen+$skkIntAng+$skkWajib+$skkLainJur+$skkLainRegional+$skkLainNasional+$skkLaininternasional;

	$DataSKK->edit($idMhs, $latdis, $ospek, $kerbaksos, $stadiumgeneral, $bsm, $pdjur, $pdregional, $pdnasional, $pdinternasional, $mnjur, $mnregional, $mnnasional, $mninternasional, $pmjur, $pmregional, $pmnasional, $pminternasional, $jurKetua, $jurWakil, $jurSek, $jurBen, $jurAng, $regKetua, $regWakil, $regSek, $regBen, $regAng, $nasKetua, $nasWakil, $nasSek, $nasBen, $nasAng, $intKetua, $intWakil, $intSek, $intBen, $intAng, $wajib, $lainjur, $lainregional, $lainnasional, $laininternasional, $totalSKK, $semester, $tahunAkademik);
	
	include "php_class/class_log_sistem.php";
	$DataLogSistem = new DataLogSistem;
	$idOperator = $_SESSION['idOperator'];
	$namaOp = $_SESSION["NamaOperator"];
	$keterangan = "Edit Data SKK : ".$nama." oleh ".$namaOp."";
	$DataLogSistem->add_data_log_sistem($keterangan,$idOperator);
	
	echo "<script>window.location='".$base."cetak-skk/$idMhs'</script>"
?>