$situacao = ""; } } $pdf->Ln(4); if ($pdf->GetY() > 270) { $pdf->AddPage(); } $posicao = $pdf->getY(); $pdf->SetFillColor(235); $pdf->Rect(110, $posicao, 90, 50, "DF"); $pdf->SetFillColor(255); $pdf->Text(140, $posicao + 25, "COLAR ETIQUETA DO CRC"); $pdf->Cell(95, 4, "SITUAÇÃO: " . $situacao, 0, 1, "L", 1); $pdf->Cell(95, 4, "TOTAL DE INSCRIÇÕES: " . $total, 0, 1, "L", 1); } else { $result = $cllistainscrcab->sql_record($cllistainscrcab->sql_query($p12_codigo)); db_fieldsmemory($result, 0); $result1 = $clcgm->sql_record($clcgm->sql_query($p11_numcgm)); db_fieldsmemory($result1, 0); $pdf->Cell(190, 4, "LISTA " . $p12_codigo . " SEM INSCRIÇÕES CADASTRADAS - ESCRITÓRIO CONTÁBIL " . $z01_nome . "", 1, 1, "C", 1); } $pdf->SetFillColor(255); $pdf->Cell(40, 4, "CÓDIGO DA LISTA: " . $p11_codigo, 0, 1, "L", 1); $pdf->Cell(35, 4, "DATA: " . db_formatar($p11_data, 'd'), 0, 1, "L", 1); $pdf->Cell(35, 4, "HORA: " . $p11_hora, 0, 1, "L", 1); $pdf->Cell(80, 4, "CONTATO: " . $p11_contato, 0, 1, "L", 1); $pdf->Ln(40); $pdf->Cell(190, 4, "---------------------------------------------------------------------------------------------------------------------------", 0, 1, "R", 1); $pdf->Cell(190, 4, "NOME E ASSINATURA DO RESPONSÁVEL ", 0, 1, "R", 1); $pdf->output(); function convert_CPFCNPJ($cgccpf)
* junto com este programa; se nao, escreva para a Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307, USA. * * Copia da licenca no diretorio licenca/licenca_en.txt * licenca/licenca_pt.txt */ include "libs/db_conecta.php"; include "libs/db_stdlib.php"; include "libs/db_sql.php"; include "classes/db_listainscrcab_classe.php"; include "classes/db_cgm_classe.php"; parse_str(base64_decode($HTTP_SERVER_VARS["QUERY_STRING"])); db_postmemory($HTTP_POST_VARS); $cllistainscrcab = new cl_listainscrcab(); $result = $cllistainscrcab->sql_record($cllistainscrcab->sql_query("", "*", "p11_codigo desc", " z01_numcgm = {$z01_numcgm}")); if ($cllistainscrcab->numrows > 0) { $numrows = $cllistainscrcab->numrows; ?> <html> <head> <title><?php echo $w01_titulo; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" src="scripts/db_script.js"></script> <style type="text/css"> <?php db_estilosite(); ?>