<?php 
session_start();
include"../../../../inc/conn.php";
$id         = $_POST['id'];
$q=mysqli_query($connect,"select * from tb_kelas where id_kelas='".$id."'");
$r=mysqli_fetch_array($q);

$quser=mysqli_query($connect,"select * from tb_user where id_user='".$_SESSION['id_user']."'");
$ruser=mysqli_fetch_array($quser);
?>


    <form action="updatekelas" method="POST">
            
        <input type="hidden" name="id_kelas" value="<?php echo $r['id_kelas'];?>">


   

        <div class="form-group">
            <label for="exampleInputEmail1">Nama Kelas</label>
            <input value="<?php echo $r['nama_kelas'];?>" type="text" name="nama_kelas" class="form-control" placeholder="Masukkan nama kelas" required="required">
        </div>


        <div class="modal-footer justify-content-between">
              
              <button type="submit" class="btn btn-primary">Simpan</button>
              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        
        </div>

       
        </form>        
