Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/11/2011, 10:46
ivan_xunxoow
 
Fecha de Ingreso: noviembre-2011
Mensajes: 11
Antigüedad: 12 años, 5 meses
Puntos: 0
Respuesta: imprimir con php

si te sirve io lo tenu exo en javascript
Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. function doPrint(theForm) {
  3. var i;
  4. for(i=0; i<theForm.elements.length ; i++) {
  5. // Agregar en esta lista de condiciones
  6. // todos aquellos tipos de Input que se quieren ocultar
  7. if( (theForm.elements[i].type == "submit") ||
  8. (theForm.elements[i].type == "reset") ||
  9. (theForm.elements[i].type == "button") )
  10. theForm.elements[i].style.visibility = 'hidden';
  11. }
  12. window.print();
  13.  
  14. for(i=0; i<theForm.elements.length ; i++) {
  15. if( (theForm.elements[i].type == "submit") ||
  16. (theForm.elements[i].type == "reset") ||
  17. (theForm.elements[i].type == "button") )
  18. theForm.elements[i].style.visibility = 'visible';
  19. }
  20. }
  21. </script>

y lo usas

Código HTML:
Ver original
  1. <div id="noprint">
  2.       <td colspan="4"><label>
  3.         <input type="submit" name="Submit" value="IMPRIMIR" onClick="doPrint(this.form);" />
  4.       </label></td>
  5.       <td colspan="4"><label>
  6.         <input type="submit" name="Submit2" value="BUSCAR OTRO EMPLEADO" onclick="this.form.action='BUSCA_INFOALIS.php'"/>
  7.       </label></td>
  8.      </div>