Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/09/2011, 14:46
matt_1985
 
Fecha de Ingreso: enero-2011
Ubicación: /root
Mensajes: 530
Antigüedad: 13 años, 3 meses
Puntos: 61
Respuesta: ¿Cómo poder hacer un filtro de busquedas con salida a excel?

hilas para el tema de los calendarios puedes usar jquery date picker es bastante bueno
http://jqueryui.com/demos/datepicker/ , con respecto a la exportacion a excel lo puedes hacer de la siguiente forma ,

Código PHP:
Ver original
  1. <?php
  2.  
  3. header('Pragma: public');
  4. header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past    
  5. header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
  6. header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
  7. header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
  8. header('Pragma: no-cache');
  9. header('Expires: 0');
  10. header('Content-Transfer-Encoding: none');
  11. header('Content-Type: application/vnd.ms-excel'); // This should work for IE & Opera
  12. header('Content-type: application/x-msexcel'); // This should work for the rest
  13. header('Content-Disposition: attachment; filename="Informe.xls"'); 
  14.  
  15.     echo "<table xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:x='urn:schemas-microsoft-com:office:excel'     xmlns='http://www.w3.org/TR/REC-html40'>
  16.  
  17.             <tr>
  18.                 <td>dato</td>
  19. </tr>";
  20. ?>

saludos