
<link href="<?php echo base_url(); ?>assets/vendors/select2/dist/css/select2.min.css" rel="stylesheet">
 <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                
                    <h3>Report</h3>
                   
                </div>
            </div>
            <div class="clearfix"></div>
             <?php if ($this->session->flashdata('errormsg')): ?>
<div class="alert alert-danger">
<?php echo $this->session->flashdata('errormsg'); ?>
</div>
<?php endif ?>

             <?php if ($this->session->flashdata('errormsg2')): ?>
<div class="alert alert-danger">
<?php echo $this->session->flashdata('errormsg2'); ?>
</div>
<?php endif ?>
    <div class="row" id="Allowance">

                 <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Days Deductions</h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
 <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/print_summary_slip_days" method="post">
                        
                       <div class="item form-group">
                        <label class="control-label col-md-1 col-sm-3 col-xs-12" for="name">Type<span class="required">*</span>
                        </label>
                        <div class="col-md-4 col-sm-6 col-xs-6">
                            <select class="form-control" required name="type" id="type">
                              <option value=''>Select Type</option>
                              <option value='teacher'>Teacher</option>
                              <option value='staff'>Staff</option>
                              
                                                </select> 
                           </div>

                          <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Employee Name<span class="required"></span>
                        </label>
                        <div class="col-md-4 col-sm-6 col-xs-6">
                            <select class="form-control" multiple name="emp[]" id="empee">
                
                                                </select> 
                           </div> 
                      </div>
                     
              
                       <div class="item form-group">

                        <label class="control-label col-md-1 col-sm-3 col-xs-12" for="name">Year<span class="required"></span>
                        </label>
                         <div class="col-md-4 col-sm-6 col-xs-6">
                        <select name="year" class="form-control">
                        <option value="">Select Year</option>
                        <option value="2023">2023</option>
                        <option value="2024">2024</option>
                         <option value="2025">2025</option>
                        <option value="2026">2026</option>
                        </select>
                        </div>

                       <label class="control-label col-md-2 col-sm-3 col-xs-12" for="name">Month<span class="required"></span>
                        </label>
                         <div class="col-md-4 col-sm-6 col-xs-6">
                        <input type="month" class="form-control" name="month">
                        </div>
                     </div>

             <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-11">
                          <button id="save" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>    
            </div>

          </div>
        </div>
        <!-- /page content -->
     
<script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/select2/dist/js/select2.full.min.js"></script>
 <script>
window.setTimeout(function() {
$(".alert").fadeTo(500, 0).slideUp(500, function(){
    $(this).remove(); 
});
}, 3000);
</script>
    <!-- Datatables -->
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/datatables.net-scroller/js/datatables.scroller.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/jszip/dist/jszip.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/vfs_fonts.js"></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/ui/1.12.1/jquery-ui.js"></script>
  <script>
   $(function() {
    $('#datepicker1').datepicker( {
        changeMonth: true,
        changeYear: true,
        showButtonPanel: true,
        dateFormat: 'MM yy',
        onClose: function(dateText, inst) { 
            var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
            var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            $(this).datepicker('setDate', new Date(year, month, 1));
        }
    });
});
  </script>

<script>
    jq('#empee').multiselect({
                columns: 1,
                placeholder: 'Select Employee',
                selectAll: true,
                search: true
            });
</script>

<script>

    $('#type').change(function() {


   var c=$(this).val();
   
   if(c=="teacher"){
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval/"+c, 
          success: function(result){
                 
                $("#empee").html(result);
                jq('#empee').multiselect('reload');
                
            }}
            );
    


   }else{
      $.ajax({
            url: "<?php echo base_url();?>Load/checkval1/"+c, 
          success: function(result){
                $("#empee").html(result);
                jq('#empee').multiselect('reload');
                
            }
            });
 }
     
  });
</script> 
