<div class="row">
  <div class="col-md-12" id = "formulir">
  
<script type="text/javascript">
$(document).ready(function(){
  $("#submission2").submit(function(e){
    e.preventDefault();

    $("#loading").css('display', '');
    var fd = new FormData(this);


    $.ajax({
      type: "POST",
      url: "<?php echo base_url();?>c_modules/uploadwithdrawals", 
      data: fd,
      processData:false,
      contentType:false,
      cache:false,
      async:true,
      dataType: "text",  
      success: function(data){
          $("#loading").css('display', 'none');
          $("#datagrid").html(data);
      }
    });
})

})
</script>

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>                  

<h1>Form Upload Members</h1>
<form id = "submission2" method="post" enctype="multipart/form-data" class="form-horizontal">
  Upload excel file : 
  <input type="file" name = "filemember"  id = "member" class="thumbnail thumbnailnya" />
  <br>
  <br>
<button type="submit" class="btn btn-primary">Confirm Upload Members</button>
</form>

<!-- <form id = "submission3" method="post" enctype="multipart/form-data" class="form-horizontal">
  <button type="submit" class="btn btn-primary">Send Data To Tele</button>
</form> -->
<div id = "loading" style = "display:none">
    <div class="spinner-grow text-muted"></div>
    <div class="spinner-grow text-primary"></div>
    <div class="spinner-grow text-success"></div>
    <div class="spinner-grow text-info"></div>
    <div class="spinner-grow text-warning"></div>
    <div class="spinner-grow text-danger"></div>
    <div class="spinner-grow text-secondary"></div>
    <div class="spinner-grow text-dark"></div>
    <div class="spinner-grow text-light"></div>
  </div>



</div>
</div>

<div class="row">
    <div class="col-md-12" id = "datagrid">
    </div>
</div>