<?php
$page_title = 'Granjas Cerradas PSP';
require_once('../../includes/load.php');
// Checkin What level user has permission to view this page
page_require_level(5);
?>
<?php include_once('../../layouts/header.php'); ?>
<div class="row">
 <div class="col-md-12">
   <?php echo display_msg($msg); ?>
 </div>
<div class="col-md-16">
  <div class="panel panel-default">
    <div class="panel-heading clearfix">
        <strong>
          <span class="glyphicon glyphicon-th-list"></span>
          <span>REPORTE GRANJAS CERRADAS PSP</span> 
        </strong>
    </div>
    <div class="col-12">          
            <div class="panel-body">
                <div class="col-md-2"></div>
            <div class="col-md-6">
            <div class="card-header">
                  <strong>
                     <span>GRANJAS CERRADAS PSP</span>
                  </strong> 
            </div>
                  <form class="form-inline" action="data/data_granjasprograma.php" method="POST">
                    <div class="card-body">
                          <label class="from-addon">Seleccione los Campos:</label>
                        <div class="panel-heading clearfix "> 
                            <div class="form-group">
                                <div class="col-md-6">
                                    <div class="select-checkbox">
                                      <div class="select-dropdown">
                                        <div class="select-selected">AÑO</div>
                                            <div class="select-options">
                                              <div class="select-option select-all">
                                                <input type="checkbox" id="select-all-checkbox">
                                                <label for="select-all-checkbox">Selec. todo</label>
                                              </div>
                                              <?php 
                                                $year = date("Y");
                                                for ($i=2020; $i<=$year; $i++){
                                                    echo '<div class="select-option"><input type="checkbox" name="opciones[]" value="'.$i.'" id="'.$i.'"> '.$i.' </div>';                                                  
                                                }
                                                ?>
                                            </div>                                             
                                      </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-6">
                                    <div class="select-checkbox">
                                      <div class="select-dropdown">
                                        <div class="select-selected">SEMANA</div>
                                        <div class="select-options">
                                              <div class="select-option select-all">
                                                <input type="checkbox" id="select-all-checkbox">
                                                <label for="select-all-checkbox">Selec. todo</label>
                                              </div>
                                              <?php 
                                                for ($i=1; $i<=53; $i++){
                                                    echo '<div class="select-option"><input type="checkbox" name="opciones1[]" value="'.$i.'" id="'.$i.'"> '.$i.' </div>';                                                  
                                                }
                                                ?>
                                            </div>
                                      </div>
                                    </div>
                                </div>
                            </div>                        
                            <div class="form-group">
                                <div class="col-md-6">
                                      <button type="submit" class="btn btn-primary" id="report" class="form-control">Reporte</button>
                                </div>
                            </div>    
                        </div>
                      </div> 
                  </form>
            </div>
        </div>
    </div>
  </div>
</div>
</div>
<?php include_once('../../layouts/footer.php'); ?>

