Przeglądaj źródła

Formulario descarga Excel

alejandro.lara 1 rok temu
rodzic
commit
4ae9d9f589
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      solicitudes_autorizar.php

+ 4 - 2
solicitudes_autorizar.php

@@ -194,9 +194,11 @@ if($user->periodo_id!= ""){
                 <button type="button" class="btn btn-outline-danger" onclick="window.location.href = window.location.href"><span class="ing-borrar ing-fw"></span> Limpiar</button>
             </div>
             
-            <form action="./export/solicitudes_excel.php" >
+            <form action="./export/solicitudes_excel.php" target="_blank" >
+                <input type="hidden" name="fecha_inicial" value="<?php echo $fecha_ini;?>">
+                <input type="hidden" name="fecha_final" value="<?php echo $fecha_fin;?>">
                 <p class="text-right">
-                    <button class="btn btn-secondary" id="exportar"><span class="ing-descargar"></span>Descargar xls</button>
+                    <button class="btn btn-secondary" id="exportar" type="submit"><span class="ing-descargar"></span>Descargar xls</button>
                 </p>
             </form>
         </form>