Exemplo n.º 1
0
                        break;
                    case "1":
                        $estadoIMG = "img/info_bautizado.png";
                        break;
                }
                $this->SetFont('Arial', '', 8);
                $this->Cell($w[0], 7, $this->CompletaCaracteres($data[$z]['ReferenciaInfante']), 1, 0, 'C');
                $this->Cell($w[1], 7, $loFuncion->fDameFechaEscrita(substr($data[$z]['FechaBautizo'], 0, 10)), 1, 0, 'C');
                $this->Cell($w[3], 7, $this->CompletaCaracteres($data[$z]['NombresBau'] . " " . $data[$z]['ApellidosBau']), 1, 0, 'C');
                $this->Cell($w[4], 7, $this->CompletaCaracteres($data[$z]['SexoBauDescrip']), 1, 0, 'C');
                $this->Cell($w[2], 7, $this->CompletaCaracteres($data[$z]['NombreFullRepre']), 1, 0, 'C');
                $da = $this->getY();
                $this->Cell($w[5], 7, $this->Image($estadoIMG, 171.3, $da + 0.6, 0, 0, '', '../bautismo.php?bautiRef=' . $data[$z]['ReferenciaInfante']), 1, 0, 'C');
                $this->Ln(7);
            }
        }
        $this->Ln(10);
        $this->SetFont('Arial', 'I', 8);
        $this->setX(20);
        $this->Cell(40, 10, 'Usuario: ' . $_SESSION["nombreUsuario"] . " (" . $_SESSION["rolNombre"] . ")", 0, 0, 'L');
    }
}
$objC = new claBautismo();
$objC->asFechaInicioR = $_POST["f_Inicio"];
$objC->asFechaFinR = $_POST["f_Fin"];
$arregloCl = $objC->faListarBautizos();
$header = array('Ref', ' Fecha Bautizo', ' Infante', 'Sexo', 'Representante', 'Estado');
$pdf = new PDF();
$pdf->AddPage();
$pdf->BasicTable($header, $arregloCl);
$pdf->Output();