<!DOCTYPE html>
<html lang="en">
<head>
    <title>SIMPEL</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <link href='select2/dist/css/select2.min.css' rel='stylesheet' type='text/css'>
       <style type="text/css">
        .selectt {
            color: #fff;
            padding: 10px;
            display: none;
            margin-top: 5px;
            width: 100%;
            background: green
        }
          
        label1 {
            margin-right: 20px;
        }
    </style>

</head>
<body><div style="text-align:center;">
<nav class="navbar navbar-expand-md bg-dark navbar-dark"> 
    <!-- Brand -->
    <a class="navbar-brand" href="index.php">
        <img src="gambar/logosi.png" alt="logo" style="width:30px;margin-left:30px;">
    </a>

    <!-- Toggler/collapsibe Button -->
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
     
    <!-- Navbar links -->
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="navbar-nav">
            <div class="dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" style="margin:5px;background-color:#212529;color:rgba(255,255,255,.5);border:none;">Records</button> 
            <ul class="dropdown-menu">
              <li><a class="dropdown-item" href="datapinjam.php">Booking Records</a></li>
              <li><a class="dropdown-item" href="index.php">Attendance Records</a></li>
            </ul>
          </div>
            <!--<li class="nav-item">
                <a class="nav-link" href="tambahdata.php">Peminjaman Lab</a>
            </li>-->
            <div class="dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" style="margin:5px;background-color:#212529;color:rgba(255,255,255,.5);border:none;">Booking</button> 
            <ul class="dropdown-menu">                                           
              <li><a class="dropdown-item" href="tambahdata.php">Booking Form</a></li>
              <li><a class="dropdown-item" href="tambahdatalogbook.php">Attendance Form</a></li>
            </ul>
          </div>
            <!--<li class="nav-item" style="margin:5px;background-color:#212529;color:rgba(255,255,255,.5);border:none;">
                <a class="nav-link" href="#">Akun</a>
            </li>-->
            <!--<li class="nav-item" style="margin:5px;background-color:#212529;color:rgba(255,255,255,.5);border:none;">
                <a class="nav-link" href="#">Informasi</a>
            </li>-->
            <div class="dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" style="margin:5px;background-color:#212529;color:rgba(255,255,255,.5);border:none;">Reports</button> 
            <ul class="dropdown-menu">
              <li><a class="dropdown-item" href="laporanpinjam.php">Booking Reports</a></li>
              <li><a class="dropdown-item" href="laporanLog.php">Attendance Reports</a></li>
            </ul>
          </div>
        </ul>
    </div>
       
</nav></div>
<div class="jumbotron text-center">
    <h1>SIMPEL (Sistem InforMasi PEminjaman Laboratorium)</h1>
    <p><b>DEPARTEMENT OF INFORMATION SYSTEMS - FACULTY OF COMPUTER SCIENCES <br/>
    UNIVERSITAS PEMBANGUNAN NASIONAL "VETERAN" JAWA TIMUR</b></p>
</div>
<div class="container">
    <div class="row">
        <center><div class="col-sm-8" style="background:green;">
            <div class="thumbnail">
                <div class="caption">
                <div class="comment">
                    <label style="color:white;"><h2>Laboratory Attendance Form</h2></label>
        <form method="POST" action="action2.php" id="form2">
        <!--<div class="form-group">
        <label><strong>Status Peminjam Laboratorium :</strong></label>
            <label style="padding-left: 10px; padding-right: 10px;"><input type="radio" name="colorRadio" value="dosen">Dosen</label>
          <label style="padding-left: 10px; padding-right: 10px;"><input type="radio" name="colorRadio" value="mahasiswa">Mahasiswa</label>
<label style="padding-left: 10px; padding-right: 10px;"><input type="radio" name="colorRadio" value="staff">Tendik/Staff/Umum</label>
        </div>-->
        <!--<div class="dosen selectt">
        <center><strong>Dosen</strong></center>-->  
        <div class="table-responsive">
        <table class="table" border="0">
        <div class="form-group">
        <tr>
            <td><label style="color:white;">NIP/NPM/No.KTP</label></td><td style="color:white;">:</td><td>
            <input type="text" id="nippeg" name="nippeg" style="width:250px;" required></td></tr>
        <tr>
          <td><label style="color:white;">Name</label></td><td style="color:white;">:</td><td>                    
          <input type="text" id="nama" name="nama" style="width:300px;" required></td></tr>
          <tr><td><label style="color:white;">Status</label></td><td style="color:white;">:</td><td>
          <label style="padding-right: 5px;color:white;"><input type="radio" name="radioLog" value="Dosen" required>Lecturer</label>
          <label style="padding-right: 5px;color:white;"><input type="radio" name="radioLog" value="Mahasiswa" required>Student</label>
          <label style="padding-right: 5px;color:white;"><input type="radio" name="radioLog" value="Staff" required>Employee</label>
          <label style="padding-right: 5px;color:white;"><input type="radio" name="radioLog" value="Umum" required>General/Guest</label>
        </tr>
          <tr>
          <td><label style="color:white;">Laboratory</label></td><td style="color:white;">:</td><td>
          <select id="lab" style="width:300px;" name="lab" required>
          <option value='0'>-- Find Lab., e.g: msi --</option>
          <?php 
          include 'config.php';
          $query = mysqli_query($conn,"select kodelab, nickname from laboratorium order by kodelab") or die(mysqli_error());
            while ($data = mysqli_fetch_array($query, MYSQLI_ASSOC)){
              echo "<option value=".$data['kodelab'].">".$data['nickname']."</option>";
            }
          ?>
          </select></td></tr>
          <tr>
          <td><label style="color:white;">Purpose</label></td><td style="color:white;">:</td><td>
          <select id="keperluan" style="width:300px;" name="keperluan" required>
          <option value='0'>-- Find Purpose, e.g: demo --</option>
          <?php 
          include 'config.php';
          $query = mysqli_query($conn,"select idkeperluan, namakeperluan from keperluanpinjam where idkeperluan not in ('1')") or die(mysqli_error());
            while ($data = mysqli_fetch_array($query, MYSQLI_ASSOC)){
              echo "<option value=".$data['idkeperluan'].">".$data['namakeperluan']."</option>";
            }
          ?>
          </select></td></tr>
          <tr>
          <td><label style="color:white;">Required Equipment </label></td><td style="color:white;">:</td><td>
          <textarea id="keterangan" name="keterangan" cols="40" rows="5" required></textarea></td></tr>
          </div> 
          </table>
          </div> 
          <center><input type='submit' value='Save Data'></center> 
         <!--</div>--> 
  
        </form>
        
        </div>
            </div>
        </div>
        </div> </center>
        </div>
</div><br>
<div class="jumbotron text-center" style="margin-bottom:0">
    <center><p><b>Departement of Information Systems-UPN Veteran Jatim <br/> &copy Copyright 2020 </b></p></center>
</div>

</body>
</html>