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

<script type="text/javascript">
$(document).ready(function(){

  $("#submission").click(function(e){
       e.preventDefault();
      var appli2 = $('#appli2selector').val();
      var requestid = $('#requestidselector').val();
      var newstatus = $('#newstatusselector').val();
      $.ajax({
          type: "POST",
          url: "<?php echo base_url();?>c_modules/updateappli2", 
          data: {
            appli2:appli2,
            requestid:requestid,
            newstatus:newstatus
          },
          dataType: "text",  
          success: function(data){
                $("#datagrid").html(data);
              
                }
            });
        //  $("#datagrid").html(appli2);
      })
})
</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>
<!-- <script>
  $( function() {
    $( "#mindateselector" ).datepicker();
  } );

</script> -->

<h1>Operator</h1>


<form  class="form-horizontal" enctype="multipart/form-data"  method="post">
<div class="row">
  <div class="col-md-3">
    <div class="form-group">
      <label for="inputUsername">Sticker Number = <?php echo $requestterakhir[0]->stickernumber;?></label>
    </div>
  </div>
  
  <div class="col-md-3">
    <div class="form-group">
      <label for="inputUsername">PIN Token = <?php echo $pintoken[0]->pintoken;?></label>
    </div>
  </div>
  
  <div class="col-md-3">
    <div class="form-group">
      <label for="inputUsername">APPLI 2 Request : <?php echo $requestterakhir[0]->appli2request;?> </label>
    </div>
  </div>
  
  
  <div class="col-md-3">
    <div class="form-group">
      <label for="inputUsername">APPLI 2 Input : </label>
      <input type="number" class="form-control mainform" id="appli2selector" name="appli2selector">
    </div>
  </div>
  
  <input type="input" class="form-control mainform" id="requestidselector" name="requestidselector" style="display:none" value = "<?php echo $requestterakhir[0]->requestid;?>" > 
  
  <input type="input" class="form-control mainform" id="newstatusselector" name="newstatusselector" style="display:none" value = "<?php echo $newstatus;?>" 
  
</div>
  

<div id = "errmsg" class = "mt-4">
                
</div>

<div class="card-footer">

  <button id = "submission" type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>

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