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

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

//cek apakah user sudah login
if(!isset($_SESSION['username'])){
    die("Anda belum login");//jika belum login jangan lanjut..
}

//cek level user
if($_SESSION['Level']=="spmb" || $_SESSION['Level']=="admin"){

echo"
<table border =1 width=100% align=center><strong>
<tr><td><h3># Halaman Admin SPMB #</h3></td></tr>
<tr><td><em>
<a href=fcmhs.php?>Input CMHS</a> | 
<a href=tampilcmhs.php>Tampil CMHS</a> |
<a href=fsetting.php>Setting</a>  |
<a href=logout.php>Log Out</a>
</em></td></tr>
</table>";
?>
<hr>
<form method="post" action="lapspmb.php">
<table width="296">
   <tr><td><input type="checkbox" name="cta"> TA.</td><td><input type="text" name="ta"></td></tr>
   <tr><td><input type="checkbox" name="cprodi"> Prodi</td>
   	<td><select size="1"  name ="prodi">
	<option selected></option>
	<option>AKPER</option>
	<option>AKBID</option>
  	</select></td></tr>
   <tr><td><input type="checkbox" name="cgel"> Gel</td>
	<td><select size="1"  name ="gel">
	<option selected></option>
	<option>1</option>
	<option>2</option>
    <option>3</option>
	<option>4</option>
	<option>5</option>
    <option>6</option>
	<option>7</option>
	<option>8</option>
    <option>9</option>
  	</select></td></tr>
   <tr><td><input type="checkbox" name="cno_cmhs"> No.Peserta</td><td><input type="text" name="no_cmhs"></td></tr>
   <tr><td></td><td><input type="submit" name="submit" value="Cetak"> <input type="reset" name="reset" value="Reset"></td></tr>   
</table>
</form>
<?php
} else {
    die("Anda bukan admin");
}
?>
</body>
</html>
