<!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;  /* this affects the margin in the printer settings */
    }
	#biodata tr td {
		padding-top:5px;
		}
	</style>
<body style="margin-left:50px; margin-right:50px; margin-top:30px;">
<?php 
	error_reporting(0);
	include "php_class/class_mysql.php";
	include "php_class/class_proposal.php";
	include "php_class/class_dosen.php";
	include "php_class/class_surat.php";
		
	$DataDosen = new dataDosen;
	$DataDosen1 = new dataDosen;
	$DataDosen2 = new dataDosen;
	$DataSurat = new DataSurat;
	
	$id = $_GET['id'];
	$dosen = $DataSurat->get_susulan_by_id('dosen', $id);
	$nik = $DataSurat->get_susulan_by_id('nik', $id);
	$pekerjaan = $DataSurat->get_susulan_by_id('pekerjaan', $id);
	$sandimk = $DataSurat->get_susulan_by_id('sandimk', $id);
	$matakuliah = $DataSurat->get_susulan_by_id('matakuliah', $id);
	$nama = $DataSurat->get_susulan_by_id('nama', $id);
	$npm = $DataSurat->get_susulan_by_id('npm', $id);	
	$smt = $DataSurat->get_susulan_by_id('smt', $id);	
	$alamat = $DataSurat->get_susulan_by_id('alamat', $id);
	$semester = $DataSurat->get_susulan_by_id('semester', $id);
	$tahun = $DataSurat->get_susulan_by_id('tahun', $id);	
	$alasan = $DataSurat->get_susulan_by_id('alasan', $id);
	$tanggal = $DataSurat->get_susulan_by_id('tanggal', $id);	
	$nilai = $DataSurat->get_susulan_by_id('nilai', $id);
	$nomer = $DataSurat->get_susulan_by_id('nomer', $id);	
	
	$dekan = $DataDosen1->get_pejabat_by_id('nama', '1');
	$nipdekan = $DataDosen1->get_pejabat_by_id('NIP', '1');
	?>

<table width="87%" border="0" >
  <tr>
    <td><img src="pict/3.jpg" width="692" height="136"></td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td width="17%">Nomor</td>
    <td width="2%">:</td>
    <td width="81%"><?php echo $nomer?></td>
  </tr>
  <tr>
    <td>Lampiran</td>
    <td>:</td>
    <td>1 (satu) gabung</td>
  </tr>
  <tr>
    <td>Prihal</td>
    <td>:</td>
    <td><strong><em><u>Ujian Susulan</u></em></strong></td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kepada</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="28%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yth. Bapak/Ibu/Saudara </td>
    <td width="72%">: <?php echo $dosen?></td>
  </tr>
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pengampu Mata Kuliah</td>
    <td>: <?php echo $matakuliah?></td>
  </tr>
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; di -</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u><strong>Denpasar</strong></u><strong></strong></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dengan hormat,</td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yang bertanda tangan di bawah ini atas nama Dekan Fakultas Ekonomi Univeritas Warmadewa Denpasar,</td>
  </tr>
  <tr>
    <td width="10%">&nbsp;</td>
    <td width="18%">Nama</td>
    <td width="2%">:</td>
    <td width="70%"><?php echo $dekan?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>NIK</td>
    <td>:</td>
    <td><?php echo $nipdekan?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Jabatan</td>
    <td>:</td>
    <td>Wakil Dekan I FE Unwar</td>
  </tr>
  <tr>
    <td colspan="4">Menerangkan dengan sesungguhnya mahasiswa tersebut di bawah ini :</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Nama</td>
    <td>:</td>
    <td><?php echo $nama?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>NPM</td>
    <td>:</td>
    <td><?php echo $npm?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Smt/Jur/Kls</td>
    <td>:</td>
    <td><?php echo $smt?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Alamat</td>
    <td>:</td>
    <td><?php echo $alamat?></td>
  </tr>
  <tr>
    <td colspan="4">Bahwa pada saat Ujian Semester Genap 2016/2017 untuk mata kuliah yang Bapak/Ibu/Saudara asuh yang bersangkutan tidak dapat mengikuti karena <?php echo $alasan?>. Maka sehubungan dengan hal tersebut, mahasiswa yang bersangkutan diijinkan untuk mengikuti ujian susulan.</td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Demikian surat ini disampaikan atas perhatian dan realisasinya kami ucapkan terima kasih.</td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;</td>
  </tr>
</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;">
  <tr>
    <td>&nbsp;</td>
    <td width="52%"><div align="center">Denpasar, <?php echo $tanggal1." ".$bulans." ".$tahun1?></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">Universitas Warmadewa</div></td>
  </tr>
  <tr>
    <td><div align="center"></div></td>
    <td><div align="center">Fakultas Ekonomi</div></td>
  </tr>
  <tr>
    <td><div align="center"></div></td>
    <td><div align="center">A.N. Dekan</div></td>
  </tr>
  <tr>
    <td height="41">&nbsp;</td>
    <td></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"><u><?php echo $dekan ?></u></div></td>
  </tr>
  <tr>
    <td><div align="center"></div></td>
    <td><div align="center">NIK. <?php echo $nipdekan?></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
</table>
<blockquote>
  <p>&nbsp;</p>
</blockquote>
</body>
</html>