  
    <?php 

      require_once "../../controlador/gestion.formulario.controlador.php";

      // Instancia de la clase UsuarioControlador
      $gestionformulario = new ControladorGestonFormulario();

      //Formularios.
      $formularios = $gestionformulario->ctrConsultaFormulario('', 'general', '');

    ?>
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Administración</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item"><a href="#">Administración</a></li>
              <li class="breadcrumb-item active"><a href="#">Información de formularios</a></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

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

      <div class="container-fluid">
        <div class="row">
          <div class="col-12">
            <!-- Default box -->
            <div class="card">
                <div class="card-header">
                	<h3 class="card-title">Información de formularios</h3>
                	<div class="card-tools">
                	  <button type="button" class="btn btn-tool" data-card-widget="collapse" data-toggle="tooltip" title="Collapse">
                	    <i class="fas fa-minus"></i></button>
                	  <button type="button" class="btn btn-tool" data-card-widget="remove" data-toggle="tooltip" title="Remove">
                	    <i class="fas fa-times"></i></button>
                	</div>
                </div>
                <div class="card-body">

              		<form action="modulos/formularios_descarga_excel.php" method="get" autocomplete="off" id="frm_edicion_formularios">
	                  	<div class="row mt-1 mb-4">
		            		    <div class="form-group col-sm-3">
		                      <div>
		                        <input type="date" class="form-control" name="fecha_desde" id="fecha_desde" value="<?php echo date('Y-m') ?>-01" style="height: 32px;" onchange="consultaDatosFormulariosRegistrados($('#id_formulario').val());">  
		                      </div>
		                    </div>            
		                    <div class="form-group col-sm-3">
		                      <div>
		                        <input type="date" class="form-control" name="fecha_hasta" id="fecha_hasta" value="<?php echo date('Y-m-d') ?>" style="height: 32px;" onchange="consultaDatosFormulariosRegistrados($('#id_formulario').val());">  
		                      </div>
		                    </div>         
		                    <div class="form-group col-sm-3">
		  	                  	<div>
		  		                    <select class="selectproceso form-control text-uppercase" name="id_formulario" id="id_formulario" onchange="consultaDatosFormulariosRegistrados(this.value);" style="width: 100%;">
		  		            	        <option value="0">FORMULARIO</option>
		  		                        <?php foreach ($formularios as $formulario) { ?>
		  		                          <option value="<?php echo $formulario['id'] ?>"><?php echo utf8_encode($formulario['descripcion']) ?></option>
		  		                        <?php } ?>
		  		                    </select>  
		  		                </div>
		  	                </div>
		                    <div class="form-group col-sm-3">
		                      <button class="btn btn-success btn-block" type="submit" id="btn_descarga_formulario_excel" disabled="" style="height: 32px">
		                      	Descargar Excel <i class="far fa-file-excel"></i>
		                      </button>
		                    </div>                    
	              		</div>

             		</form>	
              		<div class="row">
	              		<div class="col-sm-12">
	              			<div class="table-responsive">
	              				<table class="table table-bordered table-hover" id="lista_formularios">
	              					
	              			</div>
	              		</div>
	              	</div>
	            </div>
                <!-- /.card-body -->
                <div class="card-footer text-right">

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