Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/02/2012, 08:41
huascar
 
Fecha de Ingreso: julio-2007
Mensajes: 114
Antigüedad: 16 años, 9 meses
Puntos: 0
Generar cabecera de tabla con dompdf

Saludos compañeros tiempo sin publicar una duda pero buee todos volvemos a foros del web por lo bueno q es..

la duda es la siguiente: estoy generando un reporte con pdf con dompdf pero se me presenta el problema al momento que se genera una 2 pagina y no se genera la cabecera de la pagina para identificar nuevamente las columnas.. saludos y muchas gracias de antemano

he aquí el código:
Código PHP:

<?php

include "dompdf/dompdf_config.inc.php";
include(
"conex.php");

$query mysql_query("SELECT * FROM activos LIMIT 1"$link) or die(mysql_error());
$query1 mysql_query("SELECT * FROM activos LIMIT 40"$link) or die(mysql_error());

$html =
    
'<html>
<head>
<link rel="stylesheet" href="../css/tabla.css" type="text/css" /></head>    
  
    <body>
    
    <div align=center><img src="../imagenes/baner.png" width="680"/></div><br><br>
        <div align=center><strong>COMPROBANTE DE ENTREGA</strong></div><br><br>
            <div align=center><strong>Bienes Muebles</strong></div><br><br>'
;
            
    while  (
$row1 mysql_fetch_array($queryMYSQL_ASSOC))   {  
    if(
$row1!=$row1["unidad_pfg"]) {     
$html .=
    
'<table align="right"><tr><td> <strong>Unidad o Pfg:</strong>'$row1['unidad_pfg'].'</td></tr></table><br><br>';
            } };
            
$html .='          
    <table align="center">
    <tr>
    <td bgcolor="#BFBFBF">Bien Nacional</td>
    <td bgcolor="#BFBFBF">Serial</td>
    <td bgcolor="#BFBFBF">Clase</td>
    <td bgcolor="#BFBFBF">Descripcion</td>
    <td bgcolor="#BFBFBF">Marca</td>
    <td bgcolor="#BFBFBF">Modelo</td>
    </tr>'
;
    
    
 while  (
$row mysql_fetch_array($query1MYSQL_ASSOC)) 
    {
    
$html .= '
        <tr>
    <td>'
.$row["bien_nacional"].'</td>
    <td>'
.$row["serial"].'</td>
    <td>'
.$row["clase"].'</td>
    <td>'
.$row["descripcion"].'</td>
    <td>'
.$row["marca"].'</td>
    <td>'
.$row["modelo"].'</td>
    </tr>'
;
   }; 

    
$html .= '
        </table>'
;
        
        
        
        
            
$html .= '
            <table align="center" width="500">
            <tr>
            <td bgcolor="#BFBFBF">Responsable</td>
            <td bgcolor="#BFBFBF">Recibe Conforme</td>
            <td bgcolor="#BFBFBF">Observación</td>
            </tr>
<tr>
            <td>Raul Castillo<br>
            Cedula: 14.517.252<br>
            Carg. SUPV. DE BIENES</td>
            <td>Recibido por:<br><br>
                      Cedula:<br>
                      Firma:             
             </td>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>


</tr>            
      
            
            </table>
    </body></html>'
;   
    
$dompdf = new DOMPDF();
    
$dompdf->load_html(utf8_decode($html));
    
$dompdf->render();
    
$dompdf->stream("sample.pdf", array('Attachment'=>'0'));
 
?>