$pdf->Cell(162, 5, utf8_decode(Session::get('_digitais_recibo_prioridade')), 0, 0, 'L'); $pdf->Cell(5, 5, "", 0, 1, 'L'); $pdf->Ln(10); $pdf->Cell(5, 5, "", 0, 0, 'C'); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(180, 5, utf8_decode("RELAÇÃO DE DOCUMENTOS"), 0, 0, 'C'); $pdf->Cell(5, 5, "", 0, 1, 'L'); $pdf->Ln(5); $pdf->SetFont("Arial", "B", 6); $pdf->Cell(5, 5, "#", 1, 0, 'C'); $pdf->Cell(10, 5, "DIGITAL ", 1, 0, 'C'); $pdf->Cell(15, 5, "DATA", 1, 0, 'C'); $pdf->Cell(30, 5, "TIPO", 1, 0, 'C'); $pdf->Cell(30, 5, "NUMERO", 1, 0, 'C'); $pdf->Cell(100, 5, "ORIGEM", 1, 1, 'C'); foreach (Tramite::getDigitaisGuiaRecibo() as $key => $digital) { try { $stmt = Controlador::getInstance()->getConnection()->connection->prepare("SELECT TIPO,NUMERO,ORIGEM,ASSUNTO,DT_DOCUMENTO FROM TB_DOCUMENTOS_CADASTRO WHERE DIGITAL = ? LIMIT 1"); $stmt->bindParam(1, $digital, PDO::PARAM_INT); $stmt->execute(); $out = $stmt->fetch(PDO::FETCH_ASSOC); if (!empty($out)) { $pdf->SetFont("Arial", "", 6); $pdf->Cell(5, 5, ++$cont, 1, 'C'); $pdf->Cell(10, 5, $digital, 1, 0, 'C'); $pdf->Cell(15, 5, Util::formatDate($out['DT_DOCUMENTO']), 1, 0, 'C'); $pdf->Cell(30, 5, $out['TIPO'], 1, 0, 'C'); $pdf->Cell(30, 5, $out['NUMERO'], 1, 0, 'C'); $pdf->SetFont("Arial", "", 5); $pdf->Cell(100, 5, $out['ORIGEM'], 1, 1, 'C'); }