PHP - cabesera en todas las paginas

 
Vista:
sin imagen de perfil
Val: 162
Ha aumentado su posición en 2 puestos en PHP (en relación al último mes)
Gráfica de PHP

cabesera en todas las paginas

Publicado por noe (178 intervenciones) el 27/05/2020 05:57:32
Hola foro !!!
esperando que me puedan ayudar, tengo este script pero solo pone la cabesera en la primera pagina que me falta para que ponga en todas las paginas ?
GRACIAS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
use Dompdf\Dompdf;
require("dompdf/autoload.inc.php");
 
$peticion = "SELECT folio,folio_area,DATE_FORMAT(f_oficio,'%d/%m/%Y') AS f_oficio,DATE_FORMAT(f_captura,'%d/%m/%Y') AS f_captura,
             area,titular,asunto FROM oficios WHERE folio >= $f1 && folio <= $f2 ORDER BY folio";
$respuesta = mysqli_query($conectado, $peticion);
$linea = mysqli_num_rows($respuesta);
 
if ($linea > 0 ){
	$html .= '<table width=100%>';
	$html .= '<thead>';
	$html .= '<tr>';
	$html .= '<td width="140" align="center" rowspan="3"><img src="imagen/cuauhtemoc.JPG" width="170" height="70"></td>';
	$html .= '<td align="left"><font size=4>Direccion General de Administracion</font></td>';
	$html .= '</tr>';
	$html .= '<tr>';
	$html .= '<td align="left"><font size=4>Direccion de Recursos Humanos</font></td>';
	$html .= '</tr>';
	$html .= '<tr>';
	$html .= '<td align="left"><font size=4>U. D. de Movimientos de Personal</font></td>';
	$html .= '</tr>';
	$html .= '</thead>';
	$html .= '</table>';
 
	$html .= '<table width=100% align=center border=1 cellpadding=0 cellspacing=0>';
	$html .= '<thead>';
	$html .= '<tr>';
	$html .= '<th bgcolor=#C4C7F0 height="28"><font color=#fff size=14>Folio</font></th>';
	$html .= '<th bgcolor=#C4C7F0><font color=#fff size=14>Folio Area</font></th>';
	$html .= '<th bgcolor=#C4C7F0><font color=#fff size=14>Fec. Oficio</font></th>';
	$html .= '<th bgcolor=#C4C7F0><font color=#fff size=14>Area</font></th>';
	$html .= '<th bgcolor=#C4C7F0><font color=#fff size=14>Remitente</font></th>';
	$html .= '<th bgcolor=#C4C7F0><font color=#fff size=14>Asunto</font></th>';
	$html .= '</tr>';
	$html .= '</thead>';
	$html .= '<tbody>';
 
	while($fila = mysqli_fetch_assoc($respuesta)){
		$html .= '<tr>';
		$html .= '<td align=center valign=top width=15><font size=2>'.$fila['folio'].'</font></td>';
		$html .= '<td align=center valign=top width=15><font size=2>'.$fila['folio_area'].' <br><br> '.$fila['f_captura'].' </font></td>';
   		$html .= '<td align=center valign=top width=18><font size=2>'.$fila['f_oficio'].'</font></td>'; /* nowrap */
		$html .= '<td valign=top width=190><font size=2>'.$fila['area'].'</font></td>';
		$html .= '<td valign=top width=160><font size=2>'.$fila['titular'].'</font></td>';
		$html .= '<td valign=top width=160><font size=2 width=90>'.$fila['asunto'].'</font></td>';
		$html .= '</tr>';
   	}
		$html .= '</tbody>';
		$html .= '</table>';
 
   	//use Dompdf\Dompdf;
	//require("dompdf/autoload.inc.php");
 
	$dompdf = new DOMPDF();
	$dompdf -> set_paper(array(0,0,612.00,1008.00),'landscape');
	$dompdf->load_html($html);
 
	$dompdf->render();
	$pdf = $dompdf->output();
	$dompdf->stream("Oficios_Entrada",array("Attachment" => false)); //Para no realizar la descarga
	//$dompdf->stream("Oficios_Entrada", array("Attachment" => true)); //Para realizar la descarga
   unset($dompdf);
}else{
	echo
	"<script type='text/javascript'>
		alert('El Folio de Inicio ".$f1." o Folio ".$f2." Final no Existe');
		window.location='menu_reportes_ges.php';S
	</script>";
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder