Foros del Web » Programando para Internet » PHP »

Reportes php

Estas en el tema de Reportes php en el foro de PHP en Foros del Web. estoy desarrollando un nuevo filtro en un sistema pero no me hace el reporte como deberia...quiero q me salga la zona y q por zona ...
  #1 (permalink)  
Antiguo 27/01/2010, 09:08
 
Fecha de Ingreso: enero-2010
Mensajes: 2
Antigüedad: 14 años, 2 meses
Puntos: 0
Reportes php

estoy desarrollando un nuevo filtro en un sistema pero no me hace el reporte como deberia...quiero q me salga la zona y q por zona haga un reporte pero me aparece la zona pero en general y no en cada reporte...me podrian ayudar

<?php
require_once('class.ezpdf.php');
$pdf =& new Cezpdf('a4');
$pdf->selectFont('../fonts/Helvetica.afm');
$pdf->ezSetCmMargins(1,1,1,1);

$conexion = mysql_connect("localhost", "root", "mysqladmin");
mysql_select_db("talentos", $conexion);
$queEmp = "select personal.nombre,personal.apellido,experiencia_inte rna.zona,personal.tlf,personal.nivel_educativo,per sonal.tipoemp,personal.rubros,pregrado.nombre_inst itucion_pre,pregrado.titulo_obtenido_pre,postgrado .nombre_institucion_post,postgrado.titulo_obtenido _post from personal,pregrado,postgrado, experiencia_interna where rubros='$_POST[rubros]'and personal.id_personal = pregrado.id_personal and personal.id_personal = postgrado.id_personal and personal.id_personal = experiencia_interna.id_personal;";
$resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);

$ixx = 0;
while($datatmp = mysql_fetch_assoc($resEmp)) {
$ixx = $ixx+1;
$data[] = array_merge($datatmp, array('num'=>$ixx));
}
$titles = array(
'num'=>'<b>Num</b>',
'nombre'=>'<b>Nombre</b>',
'apellido'=>'<b>Apellido</b>',
'zona'=>'<b>Zona</b>',
'tlf'=>'<b>Telefono</b>',
'nivel_educativo'=>'<b>Nivel Educativo</b>',
'tipoemp'=>'<b>Tipo de Empleado</b>',
'rubros'=>'<b>Rubros</b>',
'nombre_institucion_pre'=>'<b>Institucion Pregrado</b>',
'titulo_obtenido_pre'=>'<b>Titulo Obtenido</b>',
'nombre_institucion_post'=>'<b>Institucion Postgrado</b>',
'titulo_obtenido_post'=>'<b>Titulo Obtenido</b>',
);
$options = array(
'shadeCol'=>array(0.9,0.9,0.9),
'xOrientation'=>'center',
'fontSize'=>7,
'width'=>550
);
$txttit = "<b>BANTAIL</b>\n";
$txttit.= "REPORTE POR NUMERO DE CEDULA \n";

$pdf->ezText($txttit, 10);
$pdf->ezTable($data, $titles, '', $options);
$pdf->ezText("\n\n\n", 5);
$pdf->ezText("<b>Fecha:</b> ".date("d/m/Y"), 10);
$pdf->ezText("<b>Hora:</b> ".date("H:m:s")."\n\n", 10);
$pdf->ezStream();
?>

Etiquetas: reporte
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:35.