<?php
  include VIEWPATH.'includes/new_header.php';
  ?>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  
  <?php
  include VIEWPATH.'includes/new_top_menu.php';
  include VIEWPATH.'includes/new_menu_principal.php';
  ?>
  <link rel="stylesheet" href="<?php echo $nouveau_url ?>plugins/summernote/summernote-bs4.min.css">

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

    <!-- Main content -->
    <section class="content">
      <div class="row">
        
        <?php 
    include 'includes/menu_messages_small.php';
    ?>
        <!-- /.col -->
        <div class="col-md-9">
          <div class="card card-success card-outline">

              <div class="card-header">
                <h3 class="card-title"><?php echo $title?></h3>
              </div>

              <!-- /.card-header -->
              <form id="FormData" action="<?php echo base_url()?>conge/Messages/save_reply" method="POST" enctype="multipart/form-data">
              <div class="card-body">
                
                <div class="form-group">
                  <input type="hidden" value="<?php echo $message['ID_DEMANDE_CONGE']?>" name="ID_DEMANDE_CONGE">
                  <input type="hidden" value="<?php echo $message['ID_MESSAGE_CONGE']?>" name="ID_MESSAGE_CONGE">

                  <input class="form-control" value="A: <?php echo $message['SNOM'].' '.$message['SPRENOM'] ?>" readonly="readonly">
                </div>
                <div class="form-group">
                  <input class="form-control" value="Subjet: <?php echo $message['TYPE_MESSAGE'].' de la demande de cong&eacute; # '.$message['ID_DEMANDE_CONGE'] ?>" readonly="readonly">
                </div>
                <div class="form-group">
                    <textarea id="compose-textarea" class="form-control" name="CORPS_MESSAGE" style="height: 300px">
                      
                      
                      
                    </textarea>

                </div>
                
              </div>

              <!-- /.card-body -->
              <div class="card-footer">
                <div class="float-right">
                  <button type="submit" class="btn btn-success"><i class="far fa-envelope"></i> Envoyer</button>
                </div>
              </div>
              </form>

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




          
          <!-- /.card -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

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

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>

<!-- ./wrapper -->
<?php
  include VIEWPATH.'includes/new_script.php';
  ?>

<!-- Page specific script -->
<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,"ordering": false,
    });
   
  });
</script>

<script src="<?php echo $nouveau_url ?>plugins/summernote/summernote-bs4.min.js"></script>

<script>
  $(function () {
    //Add text editor
    $('#compose-textarea').summernote()
  })
</script>

</body>
</html>
