<!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>
</head>

<body>
<?php
include "connect.php";
session_start();

//cek apakah user sudah login


//cek level user
if($_SESSION['Level']=="baak" || $_SESSION['Level']=="admin"){
echo"
<table border =1 width=100% align=center><strong>
<tr><td><h3># Cetak Absensi #</h3></td></tr>
<tr><td><em>
<a href=userbaak.php>Home</a>
</em></td></tr>
</table>";
?>
<form method="post" action="absen.php">
<table width="296">
   <tr><td><input type="checkbox" name="ctingkat" checked>Tingkat</td>
<td>: <select size="1"  name ="tingkat">
	<option selected></option>
	<option>1</option>
	<option>2</option>
	<option>3</option>

  </select></td>
   <tr><td><input type="checkbox" name="ckelas" checked>Kelas</td>
<td>: <select size="1"  name ="kelas">
	<option selected></option>
	<option>A</option>
	<option>B</option>
	<option>C</option>
  </select></td>
   <tr><td><input type="checkbox" name="csemester" checked>Semester</td>
<td> : <select size="1"  name ="semester">
       <option selected></option>
       <option>1</option>
       <option>2</option>
       <option>3</option>
	   <option>4</option>
       <option>5</option>
	   <option>6</option>
     </select></td>
 
   <tr><td></td><td><input type="submit" name="submit" value="Submit"> <input type="reset" name="reset" value="Reset"></td></tr>   
</table>
</form>
<?php
} else {
    die("Anda bukan admin");
}
?>
</body>
</html>
