<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>User Baak</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style3 {color: #FFFFFF}
-->
</style>

</head>

<body>
<table width="1231" height="225" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="1231" height="225" bgcolor="#0000CC">
    <div id="Layer5" style="position:absolute; width:45px; height:63px; z-index:5; left: 1177px; top: 37px;"><a href="logout.php"><img src="picture/logout.jpg" width="47" height="60" border="0"></a></div>
    <img src="picture/banner.png" width="1229" height="225"></td>
  </tr></table>
  <?php
include "connect.php";
session_start();

//cek apakah user sudah login

//cek level user
if($_SESSION['Level']=="baak" || $_SESSION['Level']=="admin"){
echo"
<table border =0 width=100% align=center><strong>
<tr><td><h3># Halaman Admin BAAK #</h3></td></tr>
<tr><td><em>
<a href=ftranskrip.php>Input No.Transkrip</a> | 
<a href=formtranskrip.php>Cetak Transkrip</a> |
<a href=cabsen.php>Cetak Absensi </a> |
<a href=fkrs.php>Form KRS</a> |
<a href=formnilai.php>Input Nilai</a> |
<a href=upload.php>Import Data</a> |
<a href=fcetakkrs.php>Cetak KRS</a> |
<a href=cetakkartu.php>Cetak KARTU UJIAN</a> </em></td></tr>
</table>";
$id=1;

$hasil = mysqli_query($koneksi,"select * from tset where idset ='$id'");
$row=mysqli_fetch_array($hasil);
?>
<table width="958" height="307">
<form method="Post" action="editset1.php">
   <tr><td><input type = text hidden name="idset" value="<? echo $id; ?>"></td>
     <td><div align="center">Tahun Akademik</div></td>
     <td width="97"><input type="text" name="ta" value="<? echo $row[2]; ?>" style="background-color:#CCFFFF " size="15"></td>
     <td width="75">Kurikulum</td>
     <td width="66"><input type="text" name="kur" value="<? echo $row[10]; ?>" style="background-color:#CCFFFF " size="10"></td>
	      <td width="62"><input type=submit value ="Setting">          </td>
      <td width="132">            <select size="1"  name ="kartu">
        <option selected><? echo $row[11]; ?></option>
        <option>UTS</option>
        <option>UAS</option>
      </select>
        <select size="0,5"  name ="tk">
          <option selected><? echo $row[12]; ?></option>
          <option>1</option>
          <option>2</option>
		  <option>3</option>
        </select></td>
</form>
	 <form method="post" action="lapmhs1.php">
    <tr><td width="177" height="26"><input type="checkbox" name="ctingkat">Tingkat</td>
     <td width="166"><select size="1"  name ="tingkat">
       <option selected>--Pilih Tingkat--</option>
       <option>1</option>
       <option>2</option>
       <option>3</option>
	   <option>-</option>
     </select>
	 </td>
    <tr><td height="26"><input type="checkbox" name="ckelas">Kelas</td>
     <td><select size="1"  name ="kelas">
       <option selected>--Pilih Kelas--</option>
       <option>A</option>
       <option>B</option>
       <option>C</option>
     </select></td>
    <tr><td height="26"><input type="checkbox" name="cstatus" checked>Status</td>
     <td><select size="1"  name ="status">
       <option selected>AKTIF</option>
	   <option>UNREG</option>
       <option>CUTI</option>
       <option>DO</option>
       <option>ALUMN</option>
     </select></td>
    <tr><td height="24"><input type="checkbox" name="cangkatan">Angkatan</td>
    <td><input type="text" name="angkatan"></td>
    <tr>
      <td height="39"></td>
      <td><input type="submit" name="submit" value="Submit">
      <input type="reset" name="reset" value="Reset"></td>
    </tr>
    <tr><td height="86"></td>
     <td>&nbsp;      </td>
    </tr>
</table>
</form>
<div id="Layer3" style="position:absolute; width:130px; height:109px; z-index:3; left: 995px; top: 416px;"><a href="formtranskrip.php"><img src="picture/icon%20transkrip.jpg" width="129" height="111" border="0"></a></div>
<div id="Layer1" style="position:absolute; width:122px; height:119px; z-index:1; left: 812px; top: 417px;"><a href="ftranskrip.php"><img src="picture/no.gif" width="122" height="119" border="0"></a></div>
<div id="Layer3" style="position:absolute; width:108px; height:104px; z-index:3; left: 405px; top: 420px;"><a href="cabsen.php"><img src="picture/printer-icon.png" width="105" height="100" border="0"></a></div>
<div id="Layer2" style="position:absolute; width:130px; height:115px; z-index:2; left: 597px; top: 419px;"><a href="formlhs.php"><img src="picture/khs.jpg" width="123" height="111" border="0"></a></div>

<?php
} else {
    die("Anda bukan admin");
}
?>
 <table width="1241" height="58">
  <tr>
    <td width="1233" height="52" bgcolor="#008080"><div align="center" class="style3">Copyright &copy; 2014. <a href="http://www.akperakbid-bhaktihusada.ac.id">www.akperakbid-bhaktihusada.ac.id</a></div></td>
  </tr>
</table>
</body>
</html>
