<?php 
session_start();
include"../../../../inc/conn.php";
$id         = $_POST['id'];
$unit       = $_POST['unit'];
$q=mysqli_query($connect,"select * from tb_essai where id_essai='".$id."'");
$r=mysqli_fetch_array($q);
?>
    <link href="assets/plugins/summernote/summernote.css" rel="stylesheet">

    <form action="pembahasanessai" method="POST">
            
        <input type="hidden" name="id_essai" value="<?php echo $r['id_essai'];?>">
        <input type="hidden" name="id_unit" value="<?php echo $unit;?>">


   

        <div class="form-group">
            <label for="exampleInputEmail1">Pembahasan</label>
            <textarea name="pembahasan" class="summernote form-control" required="required"><?php echo $r['pembahasan'];?></textarea>
        </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>        


        <script src="assets/plugins/summernote/summernote-bs4.min.js" defer></script>
        <script>
          $(document).ready(function() {
                $('.summernote').summernote({
                    height: 130,
                    toolbar: [
                        ['style', ['bold', 'italic', 'underline', 'clear']],
                        ['list', ['ul', 'ol']],
                        ['para', ['paragraph']],

                        ['insert', ['link','picture','video','table']],
        
                  ]
                });

           });

        </script>