<?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_budget_annuelle.php';
    ?>

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

      <!-- Default box -->
      <div class="card">
      
      <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Enregistrement du budget annuel</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
              <form id="FormData" action="<?php echo base_url()?>requisition_externe/Budget_Annuelle/add" method="POST" enctype="multipart/form-data">
                <div class="card-body row">
                <div class="form-group col-lg-6">
                    <label for="exampleInputEmail1">Exercice Budgétaire <spam class="text-danger">*</spam></label>
                    <select class="custom-select" name="ID_EXERCICE" id="ID_EXERCICE">
                          <option>-- Select --</option>
                          <?php
                          foreach ($exercices as $exercice) {
                           echo"<option value='".$exercice['ID_EXERCICE']."'>".$exercice['DESCRIPTION']."</option>";
                          }
                          ?>
                        </select>
                    <?php echo form_error('ID_EXERCICE', '<div class="text-danger">', '</div>'); ?>
                  </div> 
                  <div class="form-group col-lg-6">
                    <label for="exampleInputEmail1">Type Budgétaire <spam class="text-danger">*</spam></label>
                    <select class="custom-select" name="ID_TYPE_BUDGE" id="ID_TYPE_BUDGE">
                          <option>-- Select --</option>
                          <?php
                          foreach ($type_budge as $type) {
                           echo"<option value='".$type['ID_TYPE_BUDGE']."'>".$type['DESCRIPTION']."</option>";
                          }
                          ?>
                        </select>
                    <?php echo form_error('ID_TYPE_BUDGE', '<div class="text-danger">', '</div>'); ?>
                  </div> 
                  <div class="form-group col-lg-12">
                    <label for="exampleInputEmail1">Rubrique <spam class="text-danger">*</spam></label>
                    <input type="text" class="form-control" id="RUBRIQUE" name="RUBRIQUE" placeholder="" value="<?=set_value('RUBRIQUE')?>">
                    <?php echo form_error('RUBRIQUE', '<div class="text-danger">', '</div>'); ?>
                  </div> 

                  <div class="form-group col-lg-12">
                    <label for="exampleInputEmail1">Description </label>
                    
                    <textarea class="form-control" rows="3" id="DESCRIPTION" name="DESCRIPTION"><?=set_value('DESCRIPTION')?></textarea>
                    <?php echo form_error('DESCRIPTION', '<div class="text-danger">', '</div>'); ?>
                  </div> 
                  
                  
                  <div class="form-group col-lg-12">
                    <label for="exampleInputEmail1">Budget prévu<spam class="text-danger">*</spam></label>
                    <input type="number" class="form-control" id="BUDGE_PREVU" name="BUDGE_PREVU" placeholder="" value="<?=set_value('BUDGE_PREVU')?>">
                    <?php echo form_error('BUDGE_PREVU', '<div class="text-danger">', '</div>'); ?>
                  </div> 

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

                <div class="card-footer">
                  <button type="submit" class="btn btn-primary btn-block">Enregistrer</button>
                </div>
              </form>
            </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 () {
   
    //Date picker
    $('#DATE_FERIER').datetimepicker({
        format: 'L'
    }); 
  })
 


</script>




</body>
</html>
