Пример #1
0
                    case "2":
                        $estadoIMG = "img/info_suspendido.png";
                        break;
                    case "3":
                        $estadoIMG = "img/info_anulado.png";
                        break;
                }
                $this->SetFont('Arial', '', 8);
                $this->Cell($w[0], 7, $this->CompletaCaracteres($data[$z]['ReferenciaMatrimonio']), 1, 0, 'C');
                $this->Cell($w[1], 7, $loFuncion->fDameFechaEscrita(substr($data[$z]['FechaMatrimonio'], 0, 10)), 1, 0, 'C');
                $this->Cell($w[2], 7, $this->CompletaCaracteres($data[$z]['Nombnovia'] . " " . $data[$z]['Apellnovia']), 1, 0, 'C');
                $this->Cell($w[3], 7, $this->CompletaCaracteres($data[$z]['Nombnovio'] . " " . $data[$z]['Apellnovio']), 1, 0, 'C');
                $this->Cell($w[4], 7, $this->CompletaCaracteres($data[$z]['Motivo']), 1, 0, 'C');
                $da = $this->getY();
                $this->Cell($w[5], 7, $this->Image($estadoIMG, 171.3, $da + 0.6, 0, 0, '', '../matrimonio.php?matriRef=' . $data[$z]['ReferenciaMatrimonio']), 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 claMatrimonio();
$arregloCl = $objC->faListarMatrimonios();
$header = array('Ref', ' Fecha', ' Novia', 'Novio', 'Motivo', 'Estado');
$pdf = new PDF();
$pdf->AddPage();
$pdf->BasicTable($header, $arregloCl);
$pdf->Output();