<?php
include VIEWPATH.'includes/new_header.php';
?>

<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<?php
include VIEWPATH.'includes/new_top_menu.php';
include VIEWPATH.'includes/new_menu_principal.php';
?>



<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <?php 
  // include 'includes/menu_demande_doc.php';
  ?>

  <!-- Main content -->
  <section class="content">

    <!-- Default box -->
    <div class="card">
    
    <div class="card card-primary">
       <!--      <div class="card-header">
              <h3 class="card-title">Modification d'un réquerant</h3>
            </div> -->
            <!-- /.card-header -->
            <!-- form start -->

   <form id="FormData" action="<?php echo base_url()?>gestion_document/Demande_Document/update" method="POST" accept-charset="utf-8" enctype="multipart/form-data">
    <div class="card-body">

    <input type="hidden" class="form-control"  name="REQUERANT_ID" value="<?=$requerant['REQUERANT_ID']?>">


  <div class="form-row">
    <div class="form-group col-md-4">
                  <label for="nom">Nom requérant<spam class="text-danger">*</spam></label>
                  <input type="text" class="form-control" id="NOM" name="NOM" placeholder="" value="<?=$requerant['NOM']?>">
                  <?php echo form_error('NOM', '<div class="text-danger">', '</div>'); ?>
    </div>
    <div class="form-group col-md-4">
                  <label for="prenom">Prénom requérant<spam class="text-danger">*</spam></label>
                  <input type="text" class="form-control" id="PRENOM" name="PRENOM" placeholder="" value="<?=$requerant['PRENOM']?>">
                  <?php echo form_error('PRENOM', '<div class="text-danger">', '</div>'); ?>
    </div>
    <div class="form-group col-md-4">
                 <label for="tel">Téléphone requérant<spam class="text-danger">*</spam></label>

                    <div class="input-group" data-target-input="nearest">

                   <div class="input-group-prepend">
                       <div class="input-group-text">+257
                    </div>
                  </div>

                   <input type="number" class="form-control" id="TEL" name="TEL" placeholder="" value="<?=$requerant['TEL']?>">

             </div>
              
            <?php echo form_error('TEL', '<div class="text-danger">', '</div>'); ?>
    </div>
  </div>

  <div class="form-row">
    <div class="form-group col-md-4">
                  <label for="prenom">Email</label>
                  <input type="email" class="form-control" id="EMAIL" name="EMAIL" placeholder="" value="<?=$requerant['EMAIL']?>">
                  <?php echo form_error('EMAIL', '<div class="text-danger">', '</div>'); ?>
    </div>
    <div class="form-group col-md-4">
                  <label for="prenom">Numéro de police</label>
                  <input type="text" class="form-control" id="NUM_POLICE" name="NUM_POLICE" placeholder="" value="<?=$requerant['NUM_POLICE']?>">
                  <?php echo form_error('NUM_POLICE', '<div class="text-danger">', '</div>'); ?>
    </div>

        <div class="form-group col-md-4">
                  <label for="prenom">Matricule</label>
                  <input type="text" class="form-control" id="MATRICULE" name="MATRICULE" placeholder="" value="<?=$requerant['MATRICULE']?>">
                  <?php echo form_error('MATRICULE', '<div class="text-danger">', '</div>'); ?>
    </div>

  </div>


    <div class="form-row">

        <div class="form-group col-md-4">
                  <label for="prenom">Numéro adhérant</label>
                  <input type="text" class="form-control" id="NUMERO_ADHERANT" name="NUMERO_ADHERANT" placeholder="" value="<?=$requerant['NUMERO_ADHERANT']?>">
                  <?php echo form_error('NUMERO_ADHERANT', '<div class="text-danger">', '</div>'); ?>
    </div>

    <div class="form-group col-md-4">
                  <label for="numerp">Numéro intermédiaire<spam class="text-danger">*</spam></label>
                  <input type="text" class="form-control" id="NUM_INTERMEDIAIRE" name="NUM_INTERMEDIAIRE" placeholder="" value="<?=$requerant['NUM_INTERMEDIAIRE']?>">
                  <?php echo form_error('NUM_INTERMEDIAIRE', '<div class="text-danger">', '</div>'); ?>
    </div>

  </div>




     <div class="card-footer">
        <button type="submit" class="btn btn-primary btn-block">Enregistrer</button>
      </div>

 </div>

</form>


                
              </div>
              <!-- /.card-body -->


    
          </div>
      
      
      <!-- /.card-body -->
      <!-- <div class="card-footer">
        Footer
      </div> -->
      <!-- /.card-footer-->
    </div>
    <!-- /.card -->

  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<?php
include VIEWPATH.'includes/new_copy_footer.php';  
?>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<?php
include VIEWPATH.'includes/new_script.php';
?>




<script>
function get_services(va){
var ID_NIVEAUX_ORGANIGRAMME= $(va).val();
$.post('<?php echo base_url('gestion_document/Demande_Document/get_services')?>',
   {ID_NIVEAUX_ORGANIGRAMME:ID_NIVEAUX_ORGANIGRAMME},
   function(data){
     $('#SERVICE').html(data);
   });

}
</script>

<script>
$(function () {
 
  //Date picker
  $('#DATE_ENTRE_SERVICE').datetimepicker({
      format: 'L'
  });   

})



</script>
<script>
$(function () {
  //Initialize Select2 Elements
  $('.select2').select2()

  //Initialize Select2 Elements
  $('.select2bs4').select2({
    theme: 'bootstrap4'
  })
})
</script>

<script>
$(function () {
  //Date picker
  $('#DATE_DEMANDE').datetimepicker({
      format: 'L'
  });   
})
</script>
</body>
</html>
