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


    <form action="updatemodulbanner" method="POST" enctype="multipart/form-data">
            
        <input type="hidden" name="id_unit" value="<?php echo $r['id_unit'];?>">


        <div class="form-group">
            <img onerror="this.src='../assets/img/default.png'" alt="Foto" width="100%" src="../assets/banner/<?php echo $r['banner'];?>?p=<?php echo date('s');?>">
            <input type="file" name="foto" class="form-control" accept=".jpg">
        </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>        
