<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
    <title>REGISTRASI AKADEMIK</title>

    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

<div class="login-background">
     <div class="login-header">
     <img src="logo-val.png" class="img-logo">
     <p>Validasi Registrasi Mahasiswa</p>
</div>
<?php
include "connect.php";
session_start();

//cek apakah user sudah login


//cek level user
if($_SESSION['Level']=="val"){
$id=1;
$hasil = mysqli_query($koneksi,"select * from tset where idset ='$id'");
$row=mysqli_fetch_array($hasil);
?>
    
        <form method=post action="setval.php">
        <input type="text" name ="ta" value="<? echo $row[2]; ?>"
		<br>
		<select name ="semester" class="login-background">
		<option selected>Semester</option>
		<option>1</option>
    	<option>2</option>
    	<option>3</option>
    	<option>4</option>
		<option>5</option>
   		<option>6</option>
		</select>
		
		<select name ="bagian" class="login-background">
		<option selected>Bagian</option>
		<option>Keuangan</option>
		<option>Kemahasiswaan</option>
    	<option>Lab</option>
    	<option>Perpustakaan</option>
    	<option>Akademik</option>
   		<option>Admin</option>
		</select>
        <input type="submit" name="login" value="SUBMIT"><br>
        <p> <a href="logout.php">LOGOUT</a></p>
        </form>

<?php
} else {
    die("Anda bukan admin");
}
?>
</body>
</html>