<!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">
    @page 
    {
        size: auto;   /* auto is the initial value */
        margin: 0mm;  /* this affects the margin in the printer settings */
    }
	#table1 tr td {
		padding:5px;
		}
	</style>
<body style="margin-left:30px; margin-right:30px; margin-top:30px;">
<?php 
			include "php_class/class_mysql.php";
			include "config/session.php";
			include "php_class/class_semesterpendek.php";
            include "php_class/class_jadwal.php";
            $DataJadwal = new dataJadwal;
			$datasp = new DataSemesterPendek;
			$datasp2 = new DataSemesterPendek;
			$datasp3 = new DataSemesterPendek;

            $kelas = $_GET['kelas'];
			$idmatkul = $_GET['idmatkul'];
			$tahun = $_SESSION['smtahun'];
			$semester = $_SESSION['smsemester'];
			$program = $_SESSION['smprogram'];
			
			$dosen = $datasp->get_bagi_id('dosen', $program, $tahun, $semester, $idmatkul, $kelas);
			$matkul = $datasp2->get_matakuliah_id('matakuliah', $idmatkul);
			$kode = $datasp2->get_matakuliah_id('kode', $idmatkul); 
			$sks = $datasp2->get_matakuliah_id('sks', $idmatkul); 
			
			if ($program == '122') {
				$program1 = 'R. Malam - Eksekutif';	
			} else{
				$program1 = 'Reguler';
				$program = '121';	
			}
			
			if ($semester == '1') {
				$semester1 = 'GANJIL';	
			} else {
				$semester1 = 'GENAP';
			}

			$tahundp = substr($tahun, 0, 2);
			$tahunbk = substr($tahun, 2, 2);
			
			$tahun1 = '20'.$tahundp."/20".$tahunbk;

		?>
<table width="87%" border="0" style="margin-top:-20px;">
  <tr>
    <td><img src="pict/3.jpg" width="692" height="136"></td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td colspan="3">UNIVERSITAS WARMADEWA</td>
  </tr>
  <tr>
    <td colspan="3">FAKULTAS EKONOMI</td>
  </tr>
  <tr>
    <td colspan="3">BERITA ACARA PERKULIAHAN SEMESTER ANTARA <?php echo $semester1?> <?php echo $tahun1?></td>
  </tr>
  <tr>
    <td width="21%">&nbsp;</td>
    <td width="2%">&nbsp;</td>
    <td width="77%">&nbsp;</td>
  </tr>
  <tr>
    <td>MATA KULIAH</td>
    <td>:</td>
    <td><?php echo $matkul?></td>
  </tr>
  <tr>
    <td>SANDI</td>
    <td>:</td>
    <td><?php echo $kode?></td>
  </tr>
  <tr>
    <td>DOSEN</td>
    <td>:</td>
    <td><?php echo $dosen?></td>
  </tr>
  <tr>
    <td>SKS</td>
    <td>:</td>
    <td><?php echo $sks?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="1" style="border-collapse:collapse;">
<thead style="border-top:thin solid #000;">  
  <tr style="border-top:thin solid #000;">
    <td width="10%" style=" padding:5px;"><div align="center">
      <p>Pertemuan</p>
</div></td>
    <td width="18%" style="padding:5px;"><div align="center">Tanggal</div></td>
    <td width="55%" style="padding:5px;"><div align="center">Pokok Bahasan</div></td>
    <td width="17%" style="padding:5px;"><div align="center">Tanda Tangan</div></td>
  </tr>
 </thead> 
  <?php 
				$JumlahData = $DataJadwal->get_data_jadwal_detil('',$a,'jumlah', $kode);
				if($JumlahData > 0){
  					for ($a=1;$a<=$JumlahData;$a++){
						$id = $DataJadwal->get_data_jadwal_detil('id',$a,'', $kode);  
						$pertemuan = $DataJadwal->get_data_jadwal_detil('pertemuan',$a,'', $kode);
						$pokokbahasan = $DataJadwal->get_data_jadwal_detil('pokokbahasan', $a, '', $kode);
						//$pokokbahasan = str_replace($pokokbahasan, 'enter', '<br>');
						$subpokokbahasan = $DataJadwal->get_data_jadwal_detil('subpokokbahasan',$a,'', $kode);
						
						echo "<tr id='".$id."' class='odd gradeX context'>";
						echo "<td><div align='center'>".$pertemuan."</div></td>";
						echo "<td></td>";
						echo "<td style='padding:5px;'>".$pokokbahasan."</td>";
						echo "<td></td>";
						echo "</tr>";
					}
				}else{
  ?>
 <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">1</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">2</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">3</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">4</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">5</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">6</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">7</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">8</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">9</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">10</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">11</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">12</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">13</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">14</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">15</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <tr style="border-top:thin solid #000;">
    <td style=" padding:5px;">16</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
    <td style="padding:5px;">&nbsp;</td>
  </tr>
  <?php } ?>
</table>
<?php
			$tanggal1 = date('d');
			$bulan = date('m'); 
			$tahun1 = date('Y');
			
			if ($bulan == '01'){
				$bulans = 'Januari';
			}elseif ($bulan == '02'){ 
				$bulans = 'Februari';
			}elseif ($bulan == '03'){
				$bulans = 'Maret';
			}elseif ($bulan == '04'){
				$bulans = 'April';
			}elseif ($bulan == '05'){
				$bulans	= 'Mei';
			}elseif ($bulan == '06'){
				$bulans = 'Juni';	
			}elseif ($bulan == '07'){
				$bulans = 'Juli';	
			}elseif ($bulan == '08'){
				$bulans = 'Agustus';	
			}elseif ($bulan == '09'){
				$bulans = 'September';	
			}elseif ($bulan == '10'){
				$bulans = 'Oktober';
			}elseif ($bulan == '11'){
				$bulans ==	'November';
			}elseif ($bulan == '12'){
				$bulans = 'Desember';	
			}

?>
<table width="100%" border="0" style="border-collapse:collapse; margin-top:20px;">
  <tr>
    <td colspan="2">&nbsp;</td>
    <td width="52%"><div align="center">Denpasar,</div></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
    <td><div align="center">Universitas Warmadewa</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="center">Fakultas Ekonomi</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="center">an Dekan</div></td>
  </tr>
  <tr>
    <td width="40%"><div align="center"></div></td>
    <td width="8%">&nbsp;</td>
    <td><div align="center">Wakil Dekan I</div></td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
    <td><div align="center"></div></td>
  </tr>
	<?php 
				include "php_class/class_dosen.php";	

			$DataDosen1 = new dataDosen;
			$DataDosen2 = new dataDosen;
			$wadek = $DataDosen1->get_pejabat_by_id('nama', '1');
			$nipwadek = $DataDosen2->get_pejabat_by_id('NIP', '1');
	?>
  <tr>
    <td><div align="center"></div></td>
    <td>&nbsp;</td>
    <td><div align="center"><u><?php echo $wadek?></u></div></td>
  </tr>
  <tr>
    <td><div align="center"></div></td>
    <td>&nbsp;</td>
    <td><div align="center">NIK/NIP. <?php echo $nipwadek?></div></td>
  </tr>
</table>

</body>
</html>