<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
	<style type="text/css" media="print">
    @page 
    {
        size: auto;   /* auto is the initial value */
        margin: 0mm;
		margin-top:30px;  /* this affects the margin in the printer settings */
		margin-bottom:25px;
    }
	
	#biodata tr td {
		padding-top:5px;
		}
		
	table { page-break-inside:auto; }
   tr    {  page-break-after:auto }
   thead{
    display: table-header-group;
}
   	
	</style>
<body style="margin-left:50px; margin-right:50px; font-size:12px">
<?php 
	include "php_class/class_mysql.php";
	include "php_class/class_jadwal.php";
	include "php_class/class_dosen.php";	
	$DataDosen = new dataDosen;
	$DataDosen1 = new dataDosen;
	$DataDosen2 = new dataDosen;
	$DataJadwal = new dataJadwal;
	$DataJadwal2 = new dataJadwal;

	$id = $_GET['id'];
	$nama = $DataJadwal->get_data_beban_id('nama',$id);
	$nip = $DataJadwal->get_data_beban_id('nip',$id);
	$gol = $DataJadwal->get_data_beban_id('gol',$id);
	$pangkat = $DataJadwal->get_data_beban_id('pangkat',$id);
	$jabatan = $DataJadwal->get_data_beban_id('jabatan',$id);
	$statuspegawai = $DataJadwal->get_data_beban_id('statuspegawai',$id);
	$unitkerja = $DataJadwal->get_data_beban_id('unitkerja',$id);
	$subunitkerja = $DataJadwal->get_data_beban_id('subunitkerja',$id);
	$s3 = $DataJadwal->get_data_beban_id('s3',$id);
	$satub = $DataJadwal->get_data_beban_id('satub',$id);
	$satuc = $DataJadwal->get_data_beban_id('satuc',$id);
	$satud = $DataJadwal->get_data_beban_id('satud',$id);
	$duaa =$DataJadwal->get_data_beban_id('duaa',$id);
	$duab = $DataJadwal->get_data_beban_id('duab',$id);
	$duac = $DataJadwal->get_data_beban_id('duac',$id);
	$tiga = $DataJadwal->get_data_beban_id('tiga',$id);
	$empata = $DataJadwal->get_data_beban_id('empata',$id);
	$empatb = $DataJadwal->get_data_beban_id('empatb',$id);
	$empatc = $DataJadwal->get_data_beban_id('empatc',$id);
	$limaa = $DataJadwal->get_data_beban_id('limaa',$id);
	$limab = $DataJadwal->get_data_beban_id('limab',$id);
	$tahun = $DataJadwal->get_data_beban_id('tahun',$id);
	$semester = $DataJadwal->get_data_beban_id('semester',$id);
	$tgl = $DataJadwal->get_data_beban_id('tgl',$id);
	$namas = $DataJadwal->get_data_beban_id('namas',$id);
	$program = 'Reguler';
	$jumlah = $satub + $satuc+ $satud + $duaa + $duab + $duac + $tiga + $empata + $empatb + $empatc + $limaa + $limab;
	$struktural = $DataJadwal->get_data_beban_id('struktural',$id);
	list($nipds, $nidn) = explode('/', $nip);
?>


<table width="100%" border="0">
  <tr>
    <td colspan="5"><div align="center">Lampiran 1 (Format A) : SK Rektor Unwar No. 4559/Unwar/KP-02/2002</div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center"><strong>UNIVERSITAS WARMADEWA</strong></div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center"><u>Sekretariat : Jalan Terompong 24 Tanjung Bungkak Denpasar Telp. 223858 Fax. 235073</u></div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center"><strong>BEBAN TUGAS INSTITUSIONAL (EWMP) DOSEN TETAP</strong></div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center"><strong>UNIVERSITAS WARMADEWA</strong></div></td>
  </tr>
  <tr>
    <td colspan="5"><div align="center"><strong>SEMESTER <?php echo $semester?> TAHUN <?php echo $tahun?></strong></div></td>
  </tr>
  <tr>
    <td colspan="5">IDENTITAS DOSEN</td>
  </tr>
  <tr>
    <td colspan="2">1. </td>
    <td colspan="2">Nama</td>
    <td width="74%" colspan="2">: <?php echo $namas?></td>
  </tr>
  <tr>
    <td colspan="2">2. </td>
    <td colspan="2">NIP/NIK</td>
    <td width="74%" colspan="2">: <?php echo $nipds?></td>
  </tr>
  <tr>
    <td colspan="2">3. </td>
    <td colspan="2">NIDN</td>
    <td width="74%" colspan="2">: <?php echo $nidn?></td>
  </tr>
  <tr>
    <td colspan="2">4.</td>
    <td colspan="2">Gol/Ruang</td>
    <td colspan="2">: <?php echo $gol?></td>
  </tr>
  <tr>
    <td colspan="2">5.</td>
    <td colspan="2">Pangkat</td>
    <td colspan="2">: <?php echo $pangkat?></td>
  </tr>
  <tr>
    <td colspan="2">6.</td>
    <td colspan="2">Jabatan Akademik</td>
    <td colspan="2">: <?php echo $jabatan?></td>
  </tr>
  <tr>
    <td colspan="2">7.</td>
    <td colspan="2">Jabatan Struktural</td>
    <td colspan="2">: <?php echo $struktural?></td>
  </tr>
  <tr>
    <td colspan="2">8.</td>
    <td colspan="2">Status Kepegawaian</td>
    <td colspan="2">: <?php echo $statuspegawai?></td>
  </tr>
  <tr>
    <td colspan="2">9.</td>
    <td colspan="2">Unit Kerja</td>
    <td colspan="2">: <?php echo $unitkerja?></td>
  </tr>
  <tr>
    <td colspan="2">10.</td>
    <td colspan="2">Sub Unit Kerja</td>
    <td colspan="2">: <?php echo $subunitkerja?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>  
<table width="100%" border="0">  
  <tr>
    <td colspan="5">PENJABARAN BEBAN TUGAS</td>
  </tr>
  <tr>
    <td width="1%">1.</td>
    <td colspan="4">Pendidikan</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">a. Memberi Kuliah</td>
    <td>&nbsp;</td>
  </tr>
                <?php
				$totalsks = 0;
            	$JumlahData = $DataJadwal2->get_data_sk_nama_jadwal('',$a,'jumlah', $nama, $semester, $tahun, $program);
				
					for ($a=1;$a<=$JumlahData;$a++){
						$matakuliah = $DataJadwal2->get_data_sk_nama_jadwal('matakuliah',$a,'', $dosen, $semester, $tahun, $program);
						$kelas = $DataJadwal2->get_data_sk_nama_jadwal('kelas', $a, '', $dosen, $semester, $tahun, $program);
						$semester = $DataJadwal2->get_data_sk_nama_jadwal('semester',$a,'', $dosen, $semester, $tahun, $program);
						$sks = $DataJadwal2->get_data_sk_nama_jadwal('sks',$a,'', $dosen, $semester, $tahun, $program);
						$hari = $DataJadwal2->get_data_sk_nama_jadwal('hari',$a,'', $dosen, $semester, $tahun, $program);
						$ruang = $DataJadwal2->get_data_sk_nama_jadwal('ruang',$a,'', $dosen, $semester, $tahun, $program);
						$waktu = $DataJadwal2->get_data_sk_nama_jadwal('waktu',$a,'', $dosen, $semester, $tahun, $program);
						$totalsks = $totalsks + $sks;
						echo "<tr>";
						echo "<td >&nbsp;</td>";
						echo "<td width='4%'></td>";
						echo "<td width='37%'>".$a."). : MK ".$matakuliah."</td>";
						echo "<td width='39%'>".$kelas."</td>";
						echo "<td colspan='-1'><div align='right'>".$sks." SKS</td>";
						echo "</tr>";
					}
			?>

  <tr>
    <td>&nbsp;</td>
    <td colspan="3">b. Asisten Kuliah Praktikum</td>
    <td width="19%" colspan="-1"><div align="right"><?php echo $satub?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">c. Bimbingan Kuliah Kerja/Kerja Praktek</td>
    <td colspan="-1"><div align="right"><?php echo $satuc?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">d. Bimbingan Skripsi</td>
    <td colspan="-1"><div align="right"><?php echo $satud?> SKS</div></td>
  </tr>
  <tr>
    <td>2.</td>
    <td colspan="3">Penelitian dan Pengembangan Ilmu</td>
    <td colspan="-1"><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">a. Penelitian Kelompok/Antar Bidang</td>
    <td colspan="-1"><div align="right"><?php echo $duaa?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">b. Penelitian Individu</td>
    <td colspan="-1"><div align="right"><?php echo $duab?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">c. Menulis Naskah Buku/Menterjemahkan Naskah Buku/Menyunting naskah buku Menulis Diktat</td>
    <td colspan="-1"><div align="right"><?php echo $duac?> SKS</div></td>
  </tr>
  <tr>
    <td>3.</td>
    <td colspan="3">Pengabdian Kepada Masyarakat</td>
    <td colspan="-1"><div align="right"><?php echo $tiga?> SKS</div></td>
  </tr>
  <tr>
    <td>4.</td>
    <td colspan="3">Pembinaan Sivitas Akademika</td>
    <td colspan="-1"><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">a. Pembimbing Akademika</td>
    <td colspan="-1"><div align="right"><?php echo $empata?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">b. Pembinaan Kegiatan Kemahasiswaan</td>
    <td colspan="-1"><div align="right"><?php echo $empatb?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">c. Pimpinan Organisasi Inter</td>
    <td colspan="-1"><div align="right"><?php echo $empatc?> SKS</div></td>
  </tr>
  <tr>
    <td>5</td>
    <td colspan="3">Administrasi dan Manajemen</td>
    <td colspan="-1"><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">a. Jabatan Struktural</td>
    <td colspan="-1"><div align="right"><?php echo $limaa?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">b. Jabatan Non-Struktural / Pengurus Koperasi</td>
    <td colspan="-1"><div align="right"><?php echo $limab?> SKS</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3">&nbsp;</td>
    <td colspan="-1"><div align="right"></div></td>
  </tr>
  <tr>
    <td colspan="4">Jumlah Beban Tugas</td>
    <td colspan="-1" style="border-top:solid #000 1px"><div align="right"><?php echo $jumlahtotal = $jumlah + $totalsks ?> SKS</div></td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;</td>
    <td colspan="-1">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" style="border-collapse:collapse;">
  <tr>
    <td>&nbsp;</td>
    <td width="52%"><div align="center">Denpasar, <?php echo $tgl?></div></td>
  </tr>
  <tr>
    <td><div align="center">Mengetahui</div></td>
    <td><div align="center">Fakultas Ekonomi</div></td>
  </tr>
  <tr>
    <td><div align="center">Dekan,</div></td>
    <td><div align="center">Dosen yang membuat,</div></td>
  </tr>
  <tr>
    <td height="34">&nbsp;</td>
    <td></td>
  </tr>
	<?php 
			$dekan = $DataDosen1->get_pejabat_by_id('nama', '9');
			$nipdekan = $DataDosen1->get_pejabat_by_id('NIP', '9');
			$rektor = $DataDosen2->get_pejabat_by_id('nama', '11');
			$niprektor = $DataDosen2->get_pejabat_by_id('NIP', '11');

	?>
  <tr>
    <td><div align="center"><u><?php echo $dekan ?></u></div></td>
    <td><div align="center"><u><?php echo $namas ?></u></div></td>
  </tr>
  <tr>
    <td><div align="center">NIK. <?php echo $nipdekan?></div></td>
    <td><div align="center">NIK/NIP. 
	<?php
	 echo $nipds?></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">Mengesahkan</div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">Rektor,</div></td>
  </tr>
  <tr>
    <td height="37" colspan="2"><div align="center">&nbsp;</div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center"><u><?php echo $rektor?></u></div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">NIK. <?php echo $niprektor?></div></td>
  </tr>
</table>

</body>
</html>