<?php
//session_start();
include "koneksi.php";
error_reporting(0);

if (empty($_SESSION['username']) AND empty($_SESSION['password'])){include "index.php";}
else{
?>
<!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>
<title>Pengumuman UN</title>
<style type="text/css">
<!--
.info {
	color: #80FF00;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<?php
$sql = mysql_query("SELECT * FROM hasilujian WHERE user= '$_SESSION[username]'");
while ($data = mysql_fetch_array($sql))
{
 $nama = $data['nama'];
 $user = $data['user'];
 $hasil = $data['hasil'];
 $bindns = $data['bindns'];
 $bindun = $data['bindun'];
 $bindna = $data['bindna'];
 $bingns = $data['bingns'];
 $bingun = $data['bingun'];
 $bingna = $data['bingna'];
 $mtkns = $data['mtkns'];
 $mtkun = $data['mtkun'];
 $mtkna = $data['mtkna'];
 $ipans = $data['ipans'];
 $ipaun = $data['ipaun'];
 $ipana = $data['ipana'];
 $jmlns = $data['jmlns'];
 $jmlun = $data['jmlun'];
 $jmlna = $data['jmlna'];
 $ratans = $data['ratans'];
 $rataun = $data['rataun'];
 $ratana = $data['ratana'];
 }
?>
<div align="center"><img src="images/pps.jpg" alt="kop" width="640px" height="150px" /></div>
<table width="540" border="0" align="center" cellpadding="2">
  <tr align="center" valign="middle">
  </br>
  </br>
      <td colspan="4" align="left"><p align="center"><strong><u>SURAT PEMBERITAHUAN KELULUSAN</u></strong><br>
      No. : xxxx/UN36.8/III/2019
        </p>      <p align="justify">Ketua Panitia Penerimaan Mahasiswa Baru Tahun Ajaran 2019/2020 Program Pascasarjana Universitas Negeri Makassar, menyampaikan bahwa berdasarkan hasil asesmen Tulis TPA dan TOFL, serta 
	hasil Wawancara maka Saudara: :</p></td>
  </tr>
  <tr align="center" valign="middle">
    <td width="71"></td>
    <td width="185" align="left">Nama</td>
    <td width="211" align="left">: <?php echo "$nama"; ?></td>
    <td width="47"></td>
  </tr>
  <tr align="center" valign="middle">
    <td></td>
    <td align="left">Nomor Peserta</td>
    <td align="left">: <?php echo "$user"; ?></td>
    <td></td>
  </tr>
  <tr align="center" valign="middle">
    <td></td>
    <td align="left">Asal Sekolah</td>
    <td align="left">: SMP Islam Tambora</td>
    <td></td>
  </tr>
  <tr align="center" valign="middle">
    <td colspan="4">
	
<!--spoilerr-->
   // <div style="margin-bottom: 1px;"><h3>Dinyatakan :</h3>
<div style="margin-top: 0px; text-align: center;"><input value="Lihat" style="margin-top: 1px; width: 80px; font-size: 12px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'sembunyikan'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'sembunyikan'; }" type="button"> </div>
<div style="border: 0px inset ; margin: 0px; padding: 6px;"><div style="display: none;">
<!--Akhir spoiler-->
<h1><?php echo "$hasil"; ?></h1>
  <p>Dengan Rincian Nilai :</p>
  <table width="396" border="1" cellpadding="2">
    <tr bgcolor="#999999">
      <td width="25" align="center" valign="middle" bgcolor="#99CCFF">No</td>
      <td width="152" align="center" valign="middle" bgcolor="#99CCFF">Mata Pelajaran</td>
      <td width="58" align="center" valign="middle" bgcolor="#99CCFF">Nilai Sekolah</td>
      <td width="63" align="center" valign="middle" bgcolor="#99CCFF">Nilai UN</td>
      <td width="54" align="center" valign="middle" bgcolor="#99CCFF">Nilai Akhir</td>
    </tr>
    <tr>
      <td align="center" valign="middle">1</td>
      <td valign="middle">Bahasa Indonesia</td>
      <td align="center" valign="middle"><?php echo "$bindns"; ?></td>
      <td align="center" valign="middle"><?php echo "$bindun"; ?></td>
      <td align="center" valign="middle"><?php echo "$bindna"; ?></td>
    </tr>
    <tr>
      <td align="center" valign="middle">2</td>
      <td valign="middle">Bahasa Inggris</td>
      <td align="center" valign="middle"><?php echo "$bingns"; ?></td>
      <td align="center" valign="middle"><?php echo "$bingun"; ?></td>
      <td align="center" valign="middle"><?php echo "$bindna"; ?></td>
    </tr>
    <tr>
      <td align="center" valign="middle">3</td>
      <td valign="middle">Matematika</td>
      <td align="center" valign="middle"><?php echo "$mtkns"; ?></td>
      <td align="center" valign="middle"><?php echo "$mtkun"; ?></td>
      <td align="center" valign="middle"><?php echo "$mtkna"; ?></td>
    </tr>
    <tr>
      <td align="center" valign="middle">4</td>
      <td valign="middle">IPA</td>
      <td align="center" valign="middle"><?php echo "$ipans"; ?></td>
      <td align="center" valign="middle"><?php echo "$ipaun"; ?></td>
      <td align="center" valign="middle"><?php echo "$ipana"; ?></td>
    </tr>
    <tr>
      <td colspan="2">Jumlah</td>
      <td align="center" valign="middle"><?php echo "$jmlns"; ?></td>
      <td align="center" valign="middle"><?php echo "$jmlun"; ?></td>
      <td align="center" valign="middle"><?php echo "$jmlna"; ?></td>
    </tr>
    <tr>
      <td colspan="2">Rata-rata</td>
      <td align="center" valign="middle"><?php echo "$ratans"; ?></td>
      <td align="center" valign="middle"><?php echo "$rataun"; ?></td>
      <td align="center" valign="middle"><?php echo "$ratana"; ?></td>
    </tr>
  </table></td>
  </tr>
 <!--tag penutup spoiler-->
  </div></div></div>

  <tr align="center" valign="middle">
    <td colspan="4"><p align="left">Demikian Pemberitahuan ini kami sampaikan untuk diketahui dan dimaklumi.    </p></tr>
  <tr align="center" valign="middle">
    <td height="146" colspan="2"></td>
    <td colspan="2" valign="top"><blockquote>
        <p align="center">Jakarta, 30 Mei 2013<br>
        Kepala SMP Islam Tambora</p>
        </blockquote>
      <p align="center">ttd</p>
    <p align="center">Drs. Moh. Toha, M.Pd</p></td>
  </tr>
  <tr align="center" valign="middle">
    <td height="63" colspan="4"><h5 align="left"><strong>Catatan : </strong><br>
        Bagi siswa yang mendapatkan keterangan panggilan supaya segera menghubungi pihak sekolah</h5></td>
  </tr>
</table>
<div align="center"><a href="javascript:print(document)"><img src="images/print.png" alt="Cetak halaman ini" width="120" height="29" border="0" align="middle"/></a></a>
  </p>
<a href="index.php"><img src="images/out.jpg" width="100" height="26" align="middle" /></a></div>
<div align="center">
  <table width="640" height="33" border="0" cellpadding="2" cellspacing="1">
    
  </table>
</div>
</body>
</html>
<?php } ?>