si te sirve io lo tenu exo en javascript
Código Javascript
:
Ver original<script type="text/javascript">
function doPrint(theForm) {
var i;
for(i=0; i<theForm.elements.length ; i++) {
// Agregar en esta lista de condiciones
// todos aquellos tipos de Input que se quieren ocultar
if( (theForm.elements[i].type == "submit") ||
(theForm.elements[i].type == "reset") ||
(theForm.elements[i].type == "button") )
theForm.elements[i].style.visibility = 'hidden';
}
window.print();
for(i=0; i<theForm.elements.length ; i++) {
if( (theForm.elements[i].type == "submit") ||
(theForm.elements[i].type == "reset") ||
(theForm.elements[i].type == "button") )
theForm.elements[i].style.visibility = 'visible';
}
}
</script>
y lo usas
Código HTML:
Ver original <input type="submit" name="Submit" value="IMPRIMIR" onClick="doPrint(this.form);" /> <input type="submit" name="Submit2" value="BUSCAR OTRO EMPLEADO" onclick="this.form.action='BUSCA_INFOALIS.php'"/>