<div id="ld" style="position:fixed; top:50%; left:50%"><img src="img/ld.gif"></div>			

<?php
	if(!session_id()) session_start();
	$ids = session_id();

	include "php_class/class_mysql.php";
	include "php_class/class_jadwal.php";
	
	$dataJadwal = new dataJadwal;
	

	$id = $_POST['id'];
	$nama = $_POST['nama'];
	$namas = $_POST['namas'];
	$nip = $_POST['nip']; 
	$gol = $_POST['gol']; 
	$pangkat = $_POST['pangkat']; 
	$jabatan = $_POST['jabatan']; 
	$statuspegawai = $_POST['statuspegawai']; 
	$unitkerja = $_POST['unitkerja']; 
	$subunitkerja = $_POST['subunitkerja']; 
	$s3 = $_POST['s3']; 
	$satub = $_POST['satub']; 
	$satuc = $_POST['satuc']; 
	$satud = $_POST['satud']; 
	$duaa =$_POST['duaa']; 
	$duab = $_POST['duab']; 
	$duac = $_POST['duac']; 
	$tiga = $_POST['tiga']; 
	$empata = $_POST['empata']; 
	$empatb = $_POST['empatb']; 
	$empatc = $_POST['empatc']; 
	$limaa = $_POST['limaa']; 
	$limab = $_POST['limab'];
	$tahun = $_POST['tahun'];
	$semester = $_POST['semester'];
	$tgl = $_POST['tgl'];
	$norek = $_POST['norek']; 
	$minimalmengajar = $_POST['minimalmengajar'];
	$struktural = $_POST['struktural'];
	$formb = $_POST['formb'];
	$subunitkerja2 = $_POST['subunitkerja2'];
	
	if($unitkerja != 'Universitas Warmadewa'){
		$subunitkerja = $subunitkerja2;
	}
	
	$dataJadwal->edit_beban_tugas($id, $nama, $nip, $gol, $pangkat, $jabatan, $statuspegawai, $unitkerja, $subunitkerja, $s3, $satub, $satuc, $satud, $duaa, $duab, $duac, $tiga, $empata, $empatb, $empatc, $limaa, $limab, $semester, $tahun, $tgl, $norek, $minimalmengajar, $namas, $struktural, $formb);
	
	echo "<script>window.location='".$base."data-beban-tugas'</script>"
?>