Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/01/2005, 09:55
esteban garay
 
Fecha de Ingreso: diciembre-2004
Mensajes: 32
Antigüedad: 19 años, 4 meses
Puntos: 0
pues yo tambien tue que hacer algo asi lo que hize fue crear la pagina solo con los datos a imprimir sin imagenes ni bordes de tablas.. nada solo los datos..

luego con una funciocita en javascript lo mande a imprimir algo asi


<head>
<script LANGUAGE="JavaScript">
function popupentrada() {
window.open(document.formulario.travels_id.value);// refrezca el formulario
print();//imprime
window.close();//y se cierra la actual

}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<!--
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
-->

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="popupentrada();">


<form name='formulario'>

<input type="hidden" name="travels_id" value=<? echo tep_href_link(FILENAME_TRAVELS_PASSENGERS,tep_get_ all_get_params(array('page','travels_id','action') ) . 'page=' . $HTTP_GET_VARS['page']. '&travels_id='.$HTTP_GET_VARS['travels_id']); ?> >
// el input poseee la URl a donde se desea ir
</form>