<?php require('ferramentas.php'); ?>
<HTML>
    <HEAD><TITLE>GRCS - Contribui&ccedil;&atilde;o Sindical</TITLE>
        <meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
        <meta name="Description" content="GRCS online - Guia de recolhimento da contribui��o sindical">
        <meta name="KeyWords" content="GRCSU, nova guia sindical GRCSU, guia de sindical, imposto sindical, c�digo de barras, GRCS online">
        <LINK href="./arquivos/grcsu.css" type=text/css rel=stylesheet>
        <SCRIPT language=JavaScript1.2>
            function init() {
                window.focus();
            }
            function preloadImages()
            {
                var d=document;
                if(d.images)
                {
                    if(!d.MM_p) d.MM_p=new Array();
                    var i,j=d.MM_p.length,a=preloadImages.arguments;
                    for(i=0; i<a.length; i++)
                        if(a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}
                }
            }
        </SCRIPT>
        <?php
        $codfirma = $_REQUEST["id"];
        $codrec   = $_REQUEST["rec"];
        $ref      = $_REQUEST["ref"];
        $multa    = "";
        $cob      = "";

        $row = guia_recolhimento($codfirma,$codrec,$ref);
        grava_log($codfirma,"Impressao:".$codrec.",".$ref);

        $recpk       = $row;
        $dataven    = $recpk['datven'];

        $data_doc   = $row['datagerado'];
        $nossonum   = $row['nossonum'];
        $linha      = $row['reg1'];
        $codbarra   = $row['reg'];
        $numdoc     = $row['nossonum'];
        $doc        = $row["valpre"];
		if (!empty($doc)) {
			$doc = str_replace(",",".",$doc);
			$doc = number_format($doc,2, ',', '.'); // $_REQUEST["doc"];
		}

        $tr         = $row['tiporec'];
        $men1       = $tr['instrucao'];
        $banco      = $tr['banco'];
        $nome_entidade_sindical   = $banco['nomecedente1'];
        $codigo_entidade_sindical = $banco['nrocedente'];
        $codigo_agencia_entidade  = $banco['nroagencia'];
        $endereco_entidade        = $banco['enderecocedente'];
        $numero_entidade          = $banco['numerocedente'];
        $cnpj_entidade            = $banco['cnpjcedente'];
        $bairro_entidade          = $banco['bairrocedente'];
        $cep_entidade             = $banco['cepcedente'];
        $cidade_entidade          = $banco['cidadecedente'];
        $estado_entidade          = $banco['ufcedente'];


        $emp        = $row['empresa'];
        $nome       = $emp['nome'];
        $ncadastro  = $emp['ncadastro'];
        $endereco   = $emp['endereco'] . ", " . $emp['numero'];
        $bairro     = $emp['bairro'];
        $cep        = $emp['cep'];
        $cnae       = substr($emp['cnae'], 0, 3);

        $cid        = $emp;
        $cidade     = $cid['nomecidade'];
        $estado     = $cid['uf'];

        $exercicio  = substr($ref, 3, 4);

        ?>
    </HEAD>
    <BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onLoad="preloadImages('./arquivos/p.gif','./arquivos/b.gif','./arquivos/lgoCaixa2.gif','./arquivos/lgoCaixaMenor.gif','./arquivos/dltPreto.gif');">
        <TABLE cellSpacing=0 cellPadding=0 width=650 border=0>
            <TBODY>
                <TR>
                    <TD vAlign=top width=12>
                        <TABLE height=540 cellSpacing=0 cellPadding=0 width=12 border=0>
                            <TBODY>
                                <TR><TD vAlign=top noWrap width=12><IMG height=123 hspace=0 src="./arquivos/titViaContribuinte.gif" width=12 vspace=60></TD></TR>
                                <TR><TD vAlign=bottom noWrap width=12 height=513><IMG height=150  src="./arquivos/titViaDocumentoDoBanco.gif" width=12></TD></TR>
                            </TBODY>
                        </TABLE>
                    </TD>
                    <TD width=5>&nbsp;</TD>
                    <TD vAlign=top>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD class=fa11pbold colSpan=3><IMG height=34 src="./arquivos/lgoCaixa2.gif" width=147  align=absMiddle>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;GRCSU - Guia de Recolhimento da Contribuicao Sindical Urbana </TD>
                                </TR>
                                <TR>
                                    <TD class=txtimpbold vAlign=bottom><IMG height=10 hspace=0 src="./arquivos/titDadosEntidadeSindical.gif" width=160 vspace=2></TD><TD><IMG height=1 src="./arquivos/dltTransparente.gif" width=320></TD>
                                    <TD class=txttitimp align=right>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=140 align=right border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p noWrap width=79>&nbsp;Vencimento</TD>
                                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p noWrap width=58>&nbsp;Exercicio</TD>
                                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR>
                                                    <TD class=fa7p>&nbsp;<?php echo $dataven; ?></TD>
                                                    <TD class=fa7p>&nbsp;<?php echo $exercicio; ?></TD>
                                                </TR>
                                                <TR><TD bgColor=#000000 colSpan=5 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=140></TD></TR>
                                                <TR><TD colSpan=5 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD class=fa7p noWrap width=1><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=449>&nbsp;Nome da Entidade</TD>
                                    <TD class=fa7p width=1 bgColor=#000000><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=178>&nbsp;Codigo da Entidade Sindical</TD>
                                    <TD class=fa7p noWrap width=1 bgColor=#000000><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=1><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=449 height=12>&nbsp;<?php echo $nome_entidade_sindical; ?></TD>
                                    <TD class=fa7p width=1 bgColor=#000000><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=178>&nbsp;<?php echo $codigo_entidade_sindical; ?></TD>
                                    <TD class=fa7p width=1 bgColor=#000000><IMG height=14 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=7 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=7><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=250>&nbsp;Endereco</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=80>&nbsp;Numero</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=117>&nbsp;Complemento</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=178>&nbsp;CNPJ da Entidade</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p>&nbsp;<?php echo $endereco_entidade; ?></TD>
                                    <TD class=fa7p width=80><?php echo $numero_entidade; ?></TD>
                                    <TD class=fa7p width=117>&nbsp;  </TD>
                                    <TD class=fa7p noWrap width=178>&nbsp;<?php echo $cnpj_entidade; ?></TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=9 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=9><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=230>&nbsp;Bairro/Distrito</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=100>&nbsp;CEP</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=265>&nbsp;Cidade/Municipio</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=30>&nbsp;UF</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=250>&nbsp;<?php echo $bairro_entidade;?></TD>
                                    <TD class=fa7p width=70>&nbsp;<?php echo $cep_entidade;?></TD>
                                    <TD class=fa7p width=275>&nbsp;<?php echo $cidade_entidade;?></TD>
                                    <TD class=fa7p noWrap width=1>&nbsp;<?php echo $estado_entidade;?></TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=9 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=9><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD vAlign=bottom noWrap width=1 rowSpan=3><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=txtimpbold noWrap colSpan=3><IMG height=10 src="./arquivos/titDadosContribuinte.gif" width=129></TD>
                                    <TD vAlign=bottom noWrap width=1 bgColor=#000000 rowSpan=3><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p noWrap width=469>&nbsp;Nome/Razao Social/Denominacao Social</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=158>&nbsp;CPF/CNPJ/Codigo do Contribuinte</TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=469 height=12>&nbsp;<?php echo $nome; ?> </TD>
                                    <TD class=fa7p noWrap width=158>&nbsp;<?php echo $ncadastro; ?></TD>
                                </TR>
                                <TR>
                                    <TD bgColor=#000000 colSpan=5 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD>
                                </TR>
                                <TR><TD colSpan=5><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=250>&nbsp;Endereco</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=80>&nbsp;Numero</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=296>&nbsp;Complemento</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=250>&nbsp;<?php echo $endereco; ?> </TD>
                                    <TD class=fa7p width=70>&nbsp;</TD>
                                    <TD class=fa7p width=306>&nbsp; </TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=7 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=7><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=80>&nbsp;CEP</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=250>&nbsp;Bairro/Distrito</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=174>&nbsp;Cidade/Municipio</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=30>&nbsp;UF</TD>
                                    <TD class=fa7p noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=90>&nbsp;Codigo Atividade</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=80>&nbsp;<?php echo $cep; ?></TD>
                                    <TD class=fa7p width=240>&nbsp;<?php echo $bairro; ?> </TD>
                                    <TD class=fa7p width=184>&nbsp;<?php echo $cidade; ?> </TD>
                                    <TD class=fa7p noWrap width=30>&nbsp;<?php echo $estado; ?></TD>
                                    <TD class=fa7p noWrap width=90>&nbsp;<?php echo $cnae; ?></TD>
                                </TR>
                                <TR>
                                    <TD bgColor=#000000 colSpan=11 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD>
                                </TR>
                                <TR><TD colSpan=11><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 rowSpan=3><IMG height=1 src="" width=1></TD>
                                    <TD class=txtimpbold noWrap width=399><IMG height=10 src="./arquivos/titDadosReferencia.gif" width=214></TD>
                                    <TD noWrap width=1><IMG height=1 src="" width=1></TD>
                                    <TD class=txtimpbold noWrap width=228><IMG height=10 src="./arquivos/titDadosContribuicao.gif" width=130></TD>
                                    <TD noWrap width=1><IMG height=1 src="" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p noWrap width=399>&nbsp;<B>Categoria</B></TD>
                                    <TD vAlign=bottom noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=228>&nbsp;(=) Valor do Documento</TD>
                                    <TD vAlign=bottom noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p noWrap width=399>&nbsp;
                                        <IMG height='14' src='./arquivos/icoSelecao.gif' width='14' align='absMiddle'>
                                        &nbsp;Patronal/Empregador&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <IMG height='14' src='./arquivos/icoSelecao.gif' width='14' align='absMiddle'>
                                        &nbsp;Empregados&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <IMG height='14' src='./arquivos/icoSelecao.gif' width='14' align='absMiddle'>
                                        &nbsp;Prof. Liberal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <IMG height='14' src='./arquivos/icoSelecao.gif' width='14' align='absMiddle'>
                                        &nbsp;Autonomos
                                    </TD><!--|PATRONAL| -->
                                    <TD class=fa7p noWrap width=228>&nbsp;<?php echo $doc; ?></TD>
                                </TR>
                                <TR>
                                    <TD noWrap height=1></TD>
                                    <TD class=fa7p noWrap height=1></TD>
                                    <TD class=fa7p noWrap bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=230></TD>
                                </TR>
                                <TR>
                                    <TD noWrap height=1></TD>
                                    <TD class=fa7p noWrap colSpan=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD>
                                    <TD noWrap height=1></TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=210>&nbsp;Capital Social - Empresa</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=188>&nbsp;Nr Empregados Contribuintes</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p noWrap width=218>&nbsp;(-) Desconto / Abatimento</TD>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=210>&nbsp;</TD>
                                    <TD class=fa7p width=188>&nbsp;</TD>
                                    <TD class=fa7p width=218>&nbsp;</TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=7 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=7 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                <TR>
                                    <TD noWrap width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=210>&nbsp;Capital Social - Estabelecimento</TD>
                                    <TD noWrap bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=188>&nbsp;Total Remuneracao - Contribuintes</TD>
                                    <TD noWrap bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=218>&nbsp;(-) Outras Deducoes</TD>
                                    <TD noWrap bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=210>&nbsp;</TD>
                                    <TD class=fa7p width=188>&nbsp;</TD>
                                    <TD class=fa7p width=218>&nbsp;</TD></TR>
                                <TR><TD bgColor=#000000 colSpan=7><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=7><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                <TR>
                                    <TD vAlign=bottom noWrap width=1 bgColor=#000000 rowSpan=11><IMG height=88 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=210>(Texto de responsabilidade do Cedente)<?php echo VER;?></TD>
                                    <TD noWrap bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=188>&nbsp;Total Empregados - Estabelecimento</TD>
                                    <TD noWrap bgColor=#000000 height=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=218>&nbsp;(+) Mora / Multa</TD>
                                    <TD noWrap bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=210>&nbsp;<I>MENSAGEM DESTINADA AO CONTRIBUINTE</I></TD>
                                    <TD class=fa7p width=188>&nbsp;</TD>
                                    <TD class=fa7p width=218>&nbsp;<?php echo $multa; ?></TD>
                                </TR>
                                <TR>
                                    <TD width=1></TD>
                                    <TD width=1 colSpan=5><IMG height=1 src="./arquivos/dltPreto.gif" width=419></TD>
                                </TR>
                                <TR><TD colSpan=5 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                <TR>
                                    <TD class=fa7p vAlign=top colSpan=3 rowSpan=7>&nbsp;Apos o vencimento cobrar multa de 10% nos 30 primeiros dias com o adicional de <br>&nbsp;2% por mes subsequente de atraso de alem de juros de mora de 1% ao mes. ART 600 CLT</TD>
                                    <TD vAlign=bottom width=1 rowSpan=7><IMG height=65 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=218>&nbsp;(+) Outros Acrescimos</TD>
                                    <TD vAlign=bottom width=1 rowSpan=7><IMG height=65 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR><TD class=fa7p width=218>&nbsp;</TD></TR>
                                <TR><TD class=fa7p bgColor=#000000 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=228></TD></TR>
                                <TR><TD width=296><IMG height=2 src="./arquivos/dltTransparente.gif" width=2></TD></TR>
                                <TR><TD class=fa7p height=1></TD></TR>
                                <TR><TD class=fa7p width=218>&nbsp;(=) Valor Cobrado</TD></TR>
                                <TR><TD class=fa7p width=218>&nbsp;<?php echo $cob; ?></TD></TR>
                                <TR><TD noWrap bgColor=#000000 colSpan=7 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD noWrap colSpan=7 height=1><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD class=fa11pbold width=60><DIV align=center>104-0</DIV></TD>
                                    <TD width=1 bgColor=#000000><IMG height=17 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa11pbold width=568 align=right>&nbsp;<?php echo $linha; ?></TD>
                                </TR>
                                <TR><TD class=fa11pbold bgColor=#000000 colSpan=3><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD class=fa11pbold colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=121 height=1>&nbsp;Codigo do Cedente</TD>
                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=120 height=1>&nbsp;Nosso Numero</TD>
                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=141 height=1>&nbsp;Valor do Documento</TD>
                                    <TD rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=144 height=1>&nbsp;Data Vencimento</TD>
                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p width=98 height=1>&nbsp;Exercicio</TD>
                                    <TD width=1 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD class=fa7p width=121 height=1>&nbsp;<?php echo $codigo_agencia_entidade."/".$codigo_entidade_sindical;?></TD>
                                    <TD class=fa7p width=120 height=1>&nbsp;<?php echo $nossonum; ?></TD>
                                    <TD class=fa7p width=141 height=1>&nbsp;<?php echo $doc; ?></TD>
                                    <TD class=fa7p width=144 height=1>&nbsp;<?php echo $dataven; ?></TD>
                                    <TD class=fa7p width=98  height=1>&nbsp;<?php echo $exercicio; ?></TD>
                                </TR>
                                <TR><TD colSpan=11><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=11><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD width=350 height=1>&nbsp;</TD>
                                    <TD width=1 bgColor=#000000><IMG height=32 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa7p vAlign=top width=279>&nbsp;Autenticacao Mecanica</TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR><TD height=10><P><IMG height="18" src="./arquivos/corte.gif" width=630></P></TD></TR>
                                <TR><TD><IMG height="10" src="./arquivos/dltTransparente.gif" width=1></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD width=130><IMG height=29 src="./arquivos/lgoCaixaMenor.gif" width=125></TD>
                                    <TD class=fa7p width=1>&nbsp;<BR><BR></TD>
                                    <TD width=1><IMG height=29 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa11pbold vAlign=bottom align=middle width=50>104-0</TD>
                                    <TD width=1><IMG height=29 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD class=fa11pbold vAlign=bottom width=447 aling=right>&nbsp;<?php echo $linha; ?></TD>
                                </TR>
                                <TR bgColor=#000000><TD colSpan=6 height=2><IMG height=2 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=6><IMG height=2 src="./arquivos/dltTransparente.gif" width=1></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD vAlign=top>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=420 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=420>&nbsp;Local de Pagamento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR>
                                                    <TD class=fa7p> Lotericas, Ag.Caixa e Rede Bancaria ate o vcto. Apos o vcto, apenas nas  Lotericas e Ag.Caixa</TD>
                                                </TR>
                                                <TR><TD bgColor=#000000 colSpan=3><IMG height=1 src="./arquivos/dltPreto.gif" width=420></TD></TR>
                                                <TR><TD colSpan=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=420 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=418>&nbsp;Cedente</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $nome_entidade_sindical;?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3><IMG height=1 src="./arquivos/dltPreto.gif"  width=420></TD></TR>
                                                <TR><TD colSpan=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=420 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=90>&nbsp;Data Documento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=140>&nbsp;Numero do Documento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=60>&nbsp;Esp.Docum.</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=40>&nbsp;Aceite</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=100>&nbsp;Data Processamento</TD>
                                                    <TD bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR>
                                                    <TD class=fa7p>&nbsp;<?php echo $data_doc; ?></TD>
                                                    <TD class=fa7p>&nbsp;<?php echo $nossonum; ?></TD>
                                                    <TD class=fa7p>&nbsp;GRCS</TD>
                                                    <TD class=fa7p>&nbsp;</TD>
                                                    <TD class=fa7p>&nbsp;<?php echo $data_doc; ?></TD>
                                                </TR>
                                                <TR bgColor=#000000><TD colSpan=11><IMG height=1 src="./arquivos/dltPreto.gif" width=420></TD></TR>
                                                <TR><TD colSpan=11><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=420 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=87 bgColor=#cccccc rowSpan=2>&nbsp;Uso do Banco<BR>&nbsp;EXERC (<?php echo $exercicio; ?>)</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=63>&nbsp;Carteira</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=69 rowSpan=2>&nbsp;Especie<BR>&nbsp;R$ </TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=88>&nbsp;Quantidade</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=107>&nbsp;Valor</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR>
                                                    <TD class=fa7p>&nbsp;SIND</TD>
                                                    <TD>&nbsp;</TD>
                                                    <TD class=fa7p>&nbsp;</TD>
                                                </TR>
                                                <TR bgColor=#000000><TD colSpan=11><IMG height=1 src="./arquivos/dltPreto.gif" width=420></TD></TR>
                                                <TR><TD colSpan=11><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=420 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=4><IMG height=145 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p vAlign=top width=418 height=3>&nbsp;Instrucoes(Texto de responsabilidade do Cedente)</TD>
                                                    <TD bgColor=#000000 rowSpan=3><IMG height=145 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p vAlign=top align=middle height=20>&nbsp;BLOQUETO DE CONTRIBUICAO SINDICAL URBANA </TD></TR>
                                                <TR>
                                                    <TD class=fa7p vAlign=top align=left height=80>&nbsp;<br>&nbsp;Apos o vencimento cobrar multa de 10% nos 30 primeiros dias com o adicional de 2% por <br>&nbsp;mes subsequente de atraso de alem de juros de mora de 1% ao mes. ART 600 CLT<br></TD>
                                                </TR>
                                                <TR><TD bgColor=#000000 colSpan=3></TD>
                                                </TR>
                                                <TR><TD colSpan=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=1></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                    </TD>
                                    <TD><IMG height=10 src="./arquivos/dltTransparente.gif" width=10></TD>
                                    <TD vAlign=top width=250>
                                        <TABLE cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;Vencimento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $dataven; ?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;Agencia&nbsp;/&nbsp;Codigo Cedente</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR>
                                                    <TD class=fa7p>&nbsp;<?php echo $codigo_agencia_entidade."/".$codigo_entidade_sindical;?></TD>
                                                </TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;Nosso Numero</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $nossonum; ?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(=) Valor do Documento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $doc; ?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(-) Desconto / Abatimento</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;</TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(-) Outras Deducoes</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;</TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(+) Mora / Multa</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $multa; ?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(+) Outros Acrescimos</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;</TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 border=0>
                                            <TBODY>
                                                <TR>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                    <TD class=fa7p width=198>&nbsp;(=) Valor Cobrado</TD>
                                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=26 src="./arquivos/dltPreto.gif" width=1></TD>
                                                </TR>
                                                <TR><TD class=fa7p>&nbsp;<?php echo $cob; ?></TD></TR>
                                                <TR><TD bgColor=#000000 colSpan=3 height=1><IMG height=1 src="./arquivos/dltPreto.gif" width=200></TD></TR>
                                                <TR><TD colSpan=3 height=3><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                                            </TBODY>
                                        </TABLE>
                                    </TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=46 src="./arquivos/dltPreto.gif" width=1></TD>
                                    <TD width=1><IMG height=15 src="./arquivos/dltTransparente.gif" width=1></TD>
                                    <TD class=fa7p vAlign=top width=628 height=25>&nbsp;Sacado: &nbsp;<?php echo $nome; ?> - <?php echo $ncadastro; ?><BR>&nbsp;End.:<?php echo $endereco; ?><BR>Bairro:<?php echo $bairro; ?> Cidade: <?php echo $cidade; ?>-<?php echo $estado; ?><BR>CEP: <?php echo $cep; ?>
                                    </TD>
                                    <TD width=1><IMG height=15 src="./arquivos/dltTransparente.gif" width=1></TD>
                                    <TD width=1 bgColor=#000000 rowSpan=2><IMG height=46 src="./arquivos/dltPreto.gif" width=1></TD>
                                </TR>
                                <TR>
                                    <TD width=1><IMG height=15 src="./arquivos/dltTransparente.gif" width=1></TD>
                                    <TD class=fa7p vAlign=bottom width=628>&nbsp;Sacador / Avalista:&nbsp;</TD>
                                    <TD width=1><IMG height=15 src="./arquivos/dltTransparente.gif" width=1></TD>
                                </TR>
                                <TR><TD bgColor=#000000 colSpan=5><IMG height=1 src="./arquivos/dltPreto.gif" width=630></TD></TR>
                                <TR><TD colSpan=5><IMG height=3 src="./arquivos/dltTransparente.gif" width=3></TD></TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR>
                                    <TD class=fa7p width=428>&nbsp;Codigo de Barras</TD>
                                    <TD class=fa7p align=right width=300><P>Ficha de Compensacao / Autenticacao Mecanica</P></TD>
                                </TR>
                            </TBODY>
                        </TABLE>
                        <TABLE class=fa7p cellSpacing=0 cellPadding=0 width=630 border=0>
                            <TBODY>
                                <TR><TD noWrap width=600><?php
        $fp = "imagem/fp.gif";
        $fb = "imagem/fb.gif";
        $lp = "imagem/lp.gif";
        $lb = "imagem/lb.gif";

        echo "<img src=" . $fp . ">";
        echo "<img src=" . $fb . ">";
        echo "<img src=" . $fp . ">";
        echo "<img src=" . $fb . ">";

        $v0 = "00110";
        $v1 = "10001";
        $v2 = "01001";
        $v3 = "11000";
        $v4 = "00101";
        $v5 = "10100";
        $v6 = "01100";
        $v7 = "00011";
        $v8 = "10010";
        $v9 = "01010";

        $xvar = $codbarra;
        $xbarra = "";

        //Monta o entrela�amento
        $pri = true;
        for ($i = 1; $i <= strlen($xvar); $i++) {
            if ($pri == true) {
                $pri = false;
                $xpri = substr($xvar, $i - 1, 1);
                if ($xpri == '0')
                    $xpri = $v0;
                if ($xpri == '1')
                    $xpri = $v1;
                if ($xpri == '2')
                    $xpri = $v2;
                if ($xpri == '3')
                    $xpri = $v3;
                if ($xpri == '4')
                    $xpri = $v4;
                if ($xpri == '5')
                    $xpri = $v5;
                if ($xpri == '6')
                    $xpri = $v6;
                if ($xpri == '7')
                    $xpri = $v7;
                if ($xpri == '8')
                    $xpri = $v8;
                if ($xpri == '9')
                    $xpri = $v9;
            }else {
                $pri = true;
                $xseg = substr($xvar, $i - 1, 1);
                if ($xseg == '0')
                    $xseg = $v0;
                if ($xseg == '1')
                    $xseg = $v1;
                if ($xseg == '2')
                    $xseg = $v2;
                if ($xseg == '3')
                    $xseg = $v3;
                if ($xseg == '4')
                    $xseg = $v4;
                if ($xseg == '5')
                    $xseg = $v5;
                if ($xseg == '6')
                    $xseg = $v6;
                if ($xseg == '7')
                    $xseg = $v7;
                if ($xseg == '8')
                    $xseg = $v8;
                if ($xseg == '9')
                    $xseg = $v9;
                //Entrela�a os dois c�digos
                for ($j = 1; $j <= 5; $j++) {
                    $xbarra .= substr($xpri, $j - 1, 1) . substr($xseg, $j - 1, 1);
                }
            }
        }

        // Printa a barra
        $pri = true;
        for ($j = 1; $j <= strlen($xbarra); $j++) {
            if ($pri) {
                $pri = false;
                if (substr($xbarra, $j - 1, 1) == 0)
                    $xresult = "<img src=" . $fp . ">";
                if (substr($xbarra, $j - 1, 1) == 1)
                    $xresult = "<img src=" . $lp . ">";
            }else {
                $pri = true;
                if (substr($xbarra, $j - 1, 1) == 0)
                    $xresult = "<img src=" . $fb . ">";
                if (substr($xbarra, $j - 1, 1) == 1)
                    $xresult = "<img src=" . $lb . ">";
            }
            echo $xresult;
        }
        echo "<img src=" . $lp . ">";
        echo "<img src=" . $fb . ">";
        echo "<img src=" . $fp . ">";
//echo "<br>";//.$codbarra;
        ?>
                                </TR>
                                <TR><TD height="25"><IMG src="./arquivos/corte.gif" height="18" width="630" border=0></TD>
                            </TBODY>
                        </TABLE>
                    </TD>
                </TR>
            </TBODY>
        </TABLE>
    </BODY>
</HTML>
