Ir para conteúdo
Fórum Script Brasil

rafaeldorazio

Membros
  • Total de itens

    171
  • Registro em

  • Última visita

Tudo que rafaeldorazio postou

  1. Esta linha : $("#"+ arrayDivShow[i]).children("input[@type=text], textarea").each(function() { não está sendo executada !. A variavel arrayDivShow possui valores pois fiz o teste e me retorna valores !. var arrayDivShow = new Array(); var i = 0; $("div.Teste").each(function() { if (document.getElementById(this.id).style.display != "none") { arrayDivShow[i] = $(this).attr("id"); } i = i +1; }); for( i = 0; i < arrayDivShow.length; i ++ ) { $("#"+ arrayDivShow[i]).children("input[@type=text], textarea").each(function() { if ($(this).val() == "") { $(this).css("border", "solid 1px #FFFF00"); erro = erro + 1; } else { $(this).css("border", "solid 1px #000000"); } }); } EDIT ---- Erro de lógica. Resolvido !
  2. Desta maneira funciona perfeitamente var divComentario = $(this).attr("id").replace("btn", "div"); $("#" + divComentario).show(); Porém se eu suar assim $($(this).attr("id").replace("btn", "div")).show(); não funciona Como eu faço ?
  3. Eric funcionou apenas desse modo: $("#gv").live("click", function(event) { Vlw pela ajuda Pode fechar
  4. não, eu já estava usando o evento click após o wrap ser executado !
  5. então eric, já está apos de ser criada. Logo que carrega a pagina é feito wrap e depois vem o codigo do evento click !
  6. var params = "{ Parametro1: '" + $("#txt").val() + "'}"; $.ajax({ type: "POST", data: params, dataType: "json", url: "http://localhost:3672/Jquery/WebService.asmx/GetPersons", contentType: "application/json; charset=utf-8", success: function(data) { var table = "<table id='gv'><tr><td style='border: 1px solid #000;'>Nome</td><td style='border: 1px solid #000;'>Idade</td></tr>"; for (var i = 0; i < data.d.length; i++) { var dados = data.d[i]; table += "<tr class='row'>"; table += "<td type='textbox'>" + dados.Nome + "</td>"; table += "<td type='textbox'>" + dados.Idade + "</td>"; table += "</tr>"; } table += "</table>"; $("#teste").wrap(table); } }); $("#gv").click( function(event) { alert($(this).attr("id")); }); O evento click não está sendo acionado, porque ? Detalhe,o metodo $.ajax funciona !
  7. $("#errorMsg ol li a").bind("click", Ancora); function Ancora() { var obj = $("#"+ $(this).attr("id").replace("li", "") ); var destination = $($(this).attr("href")).offset().top; $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 2000 , function(){ obj.focus(); } ); } <div id="errorMsg"> <ol> <li><a href="#divUsuario" id="liUsuario">Digite um nome de Usuário.</a></li> <li><a href="#divSenha" id="liSenha">A senha deve conter de 5 até 20 caracters.</a></li> <li><a href="#divVerificaSenha" id="liVerificaSenha">A Senha digitada não confera com a Verificação da Senha.</a></li> <li><a href="#divEmail" id="liEmail">Email Inválido.</a></li> <li><a href="#divNome" id="liNome">Nome Inválido.</a></li> <li><a href="#divCPF" id="liCPF">CPF Inválido.</a></li> <li><a href="#divRG" id="liRG">RG Inválido.</a></li> <li><a href="#divPIS" id="liPIS">PIS Inválido.</a></li> </ol> </div> Romerito obrigado por ter me ajudado, você conseguiu !
  8. <div id="errorMsg"> <ol> <li><a href="#divUsuario" id="liUsuario">Digite um nome de Usuário.</a></li> <li><a href="#divSenha" ref="Senha" id="liSenha">A senha deve conter de 5 até 20 caracters.</a></li> <li><a href="#divVerificaSenha" id="liVerificaSenha">A Senha digitada não confera com a Verificação da Senha.</a></li> <li><a href="#divEmail" id="liEmail">Email Inválido.</a></li> <li><a href="#divNome" id="liNome">Nome Inválido.</a></li> <li><a href="#divCPF" id="liCPF">CPF Inválido.</a></li> <li><a href="#divRG" id="liRG">RG Inválido.</a></li> <li><a href="#divPIS" id="liRG">PIS Inválido.</a></li> </ol> </div> $("#liUsuario, #liSenha, #liVerificaSenha, #liEmail, #liNome, #liCPF, #liRG, #liPIS").bind("click", Ancora); function Ancora() { var destination = $($(this).attr("href")).offset().top; $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 2000 ); $($(this).attr("id").replace("li", "")).focus(); } Este codigo não esta funcionado o focus !
  9. Romerito,achoque já sei qual é o problema, testando seu codigo aqui e pude perceber o meu erroporem não sei comofazer o certo. dentro do click do button, eu faço as validações, aique vem o problema, dependendo da validação eu crio essas li , e se o user clicar nessa li vai direto pro campo do erro. você saberia como eu faria isso? Lembrando que se eu colocar os eventos click da li fora ou antes de gerar essas li dinamicamente, não vaifuncionar !
  10. Romerito,não sei se issointerfere nesse seu exemplo, mas no button eu fiz assim: <button href="teste.php" ref="Salvando"></button> Esse codigo a mais no button interfere em algo ?
  11. $("button").click(function(){ $("#liUsuario").click(function(){ Ancora($(this).attr("href"), $(this).attr("href").replace("div", "")); }); $("#liSenha").click(function(){ Ancora($(this).attr("href"), $(this).attr("href").replace("div", "")); }); } Supondo que eu clique no id liSenha , a function Ancora ela é executada duas vezes sendo que o focu é dado como se estivece clicado no liUsuario.
  12. Ancora($(this).attr("href").replace("div", "")); function Ancora(elementClicked, idCampo){ $(idCampo).focus(); alert(idCampo); } coloquei um alert ai dentro e verifiquei que há 2 retornos, a sequencia dos retornos está assim : #Senha #Usuario Sendo que sempre o ultimo retorno está sendo o #Usuario e o primeiro retorno é o que eu realmente cliquei. Neste caso o focu deveria estar no #Senha mas está no #Usuario.
  13. Qual é a diferença entre o PHP 5.3.2 e 5.2.13 ? As novas funcionalidades do PHP estão sendo implementadas numa dessas versões ? Eu tentei instalar o 5.3.2 ou 5.3.3 mas noinstaller não aparece os Apaches para selecionar noinstalador, é porque é uma versão C9 ?
  14. http://img251.imageshack.us/i/imagemgau.jpg/ Neste link tem uma imagem de como fico a minha pagina com opacidade quando é carregado a pagina php via Jquery. O meu problema é que a div da Imagem e texto de carregando fica "escondida", alguém saberia como fazer para ela ficar destacada ?
  15. Qual é a melhor maneira para fazer a conexao e Inserir os dados no banco de dados ?
  16. Tem como saber qual font fou usado no texto ?
  17. então, pelo que vi é compativel.
  18. hehe você não vai acreditar, faltou um .php :) Mas falta super pouco para eu concluir o que estou precisando fazer. Estou colocando o boleto num pdf, estou utilizando o dompdf. Mas não sei o que ocorre, as letras estão grandes e o boleto não sai direitinho. porque ? boleto_itau.php require_once("../dompdf/dompdf_config.inc.php"); $dompdf = new DOMPDF(); $dompdf->load_html_file("include/layout_itau.php"); $dompdf->set_paper("a4", "portrait"); $dompdf->render(); $dompdf->stream("boleto.pdf"); layout_itau.php <?php // DADOS DO BOLETO PARA O SEU CLIENTE $dias_de_prazo_para_pagamento = 5; $taxa_boleto = 2.95; $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006"; $valor_cobrado = "2950,00"; // Valor - REGRA: Sem pontos na milhar e tanto faz com "." ou "," ou com 1 ou 2 ou sem casa decimal $valor_cobrado = str_replace(",", ".",$valor_cobrado); $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', ''); $dadosboleto["nosso_numero"] = '12345678'; // Nosso numero - REGRA: Máximo de 8 caracteres! $dadosboleto["numero_documento"] = '0123'; // Num do pedido ou nosso numero $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emissão do Boleto $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional) $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com vírgula e sempre com duas casas depois da virgula // DADOS DO SEU CLIENTE $dadosboleto["sacado"] = "Nome do seu Cliente"; $dadosboleto["endereco1"] = "Endereço do seu Cliente"; $dadosboleto["endereco2"] = "Cidade - Estado - CEP: 00000-000"; // INFORMACOES PARA O CLIENTE $dadosboleto["demonstrativo1"] = "Pagamento de Compra na Loja Nonononono"; $dadosboleto["demonstrativo2"] = "Mensalidade referente a nonon nonooon nononon<br>Taxa bancária - R$ ".number_format($taxa_boleto, 2, ',', ''); $dadosboleto["demonstrativo3"] = "BoletoPhp - http://www.boletophp.com.br"; $dadosboleto["instrucoes1"] = "- Sr. Caixa, cobrar multa de 2% após o vencimento"; $dadosboleto["instrucoes2"] = "- Receber até 10 dias após o vencimento"; $dadosboleto["instrucoes3"] = "- Em caso de dúvidas entre em contato conosco: xxxx@xxxx.com.br"; $dadosboleto["instrucoes4"] = "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br"; // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE $dadosboleto["quantidade"] = ""; $dadosboleto["valor_unitario"] = ""; $dadosboleto["aceite"] = ""; $dadosboleto["especie"] = "R$"; $dadosboleto["especie_doc"] = ""; // ---------------------- DADOS FIXOS DE CONFIGURAÇÃO DO SEU BOLETO --------------- // // DADOS DA SUA CONTA - ITAÚ $dadosboleto["agencia"] = "1565"; // Num da agencia, sem digito $dadosboleto["conta"] = "13877"; // Num da conta, sem digito $dadosboleto["conta_dv"] = "4"; // Digito do Num da conta // DADOS PERSONALIZADOS - ITAÚ $dadosboleto["carteira"] = "175"; // Código da Carteira: pode ser 175, 174, 104, 109, 178, ou 157 // SEUS DADOS $dadosboleto["identificacao"] = "BoletoPhp - Código Aberto de Sistema de Boletos"; $dadosboleto["cpf_cnpj"] = ""; $dadosboleto["endereco"] = "Coloque o endereço da sua empresa aqui"; $dadosboleto["cidade_uf"] = "Cidade / Estado"; $dadosboleto["cedente"] = "Coloque a Razão Social da sua empresa aqui"; include("include/funcoes_itau.php"); ?> <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'> <HTML> <HEAD> <style> TD.cp { font-family: verdana; font-size: 9px;} TD.ti { font-family: verdana; font-size: 9px;} TD.ld { font-family: verdana; font-size: 9px;} TD.ct { font-family: verdana; font-size: 9px;} TD.cn { font-family: verdana; font-size: 9px;} TD.bc { font-family: Verdana; font-size: 9px;} TD.ld2 { font-family:Verdana; font-size: 9px;} </style> </head> <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0> <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class="cp"><DIV ALIGN="CENTER">Instruções de Impressão</DIV></TD></TR><TR><TD valign=top class="cp"><DIV ALIGN="left"> <p> <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (Não use modo econômico).<br> <li>Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens mínimas à esquerda e à direita do formulário.<br> <li>Corte na linha indicada. Não rasure, risque, fure ou dobre a região onde se encontra o código de barras.<br> <li>Caso não apareça o código de barras no final, clique em F5 para atualizar esta tela. <li>Caso tenha problemas ao imprimir, copie a seqüencia numérica abaixo e pague no caixa eletrônico ou no internet banking:<br><br> <span class="ld2"> &nbsp;&nbsp;&nbsp;&nbsp;Linha Digitável: &nbsp;<?php echo $dadosboleto["linha_digitavel"];?><br> &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"];?><br> </span> </DIV></td></tr></table><br><table cellspacing=0 cellpadding=0 width=666 border=0><TBODY><TR><TD class="ct" width=666><img height=1 src=../imagens/6.png width=665 border=0/></TD></TR><TR><TD class="ct" width=666><div align=right><b class="cp">Recibo do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table> <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default> <tr> <td width=41><IMG SRC="imagens/logo_empresa.png"></td> <td class="ti" width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo $dadosboleto["cpf_cnpj"];?><br> <?php echo $dadosboleto["endereco"]; ?><br> <?php echo $dadosboleto["cidade_uf"]; ?><br> </td> <td align=RIGHT width=150 class="ti">&nbsp;</td> </tr> </table> <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class="cp" width=150> <span class="campo"><IMG src="imagens/logoitau.jpg" width="150" height="40" border=0></span></td> <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class="cp"t width=58 valign=bottom><div align=center><font class="bc"><?php echo $dadosboleto["codigo_banco_com_dv"];?></font></div></td><td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class="ld" align=right width=453 valign=bottom><span class="ld"> <span class="campotitulo"> <?php echo $dadosboleto["linha_digitavel"];?> </span></span></td> </tr><tbody><tr><td colspan=5><img height=2 src=imagens/2.png width=666 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=298 height=13>Cedente</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=126 height=13>Agência/Código do Cedente</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=34 height=13>Espécie</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=53 height=13>Quantidade</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=120 height=13>Nosso número</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=298 height=12> <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=126 height=12> <span class="campo"> <?php echo $dadosboleto["agencia_codigo"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=34 height=12><span class="campo"> <?php echo $dadosboleto["especie"];?> </span> </td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=53 height=12><span class="campo"> <?php echo $dadosboleto["quantidade"];?> </span> </td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=120 height=12> <span class="campo"> <?php echo $dadosboleto["nosso_numero"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=298 height=1><img height=1 src=imagens/2.png width=298 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=126 height=1><img height=1 src=imagens/2.png width=126 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=imagens/2.png width=34 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=imagens/2.png width=53 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=120 height=1><img height=1 src=imagens/2.png width=120 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top colspan=3 height=13>Número do documento</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=132 height=13>CPF/CNPJ</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=134 height=13>Vencimento</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>Valor documento</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top colspan=3 height=12> <span class="campo"> <?php echo $dadosboleto["numero_documento"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=132 height=12> <span class="campo"> <?php echo $dadosboleto["cpf_cnpj"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=134 height=12> <span class="campo"> <?php echo $dadosboleto["data_vencimento"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12> <span class="campo"> <?php echo $dadosboleto["valor_boleto"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=imagens/2.png width=72 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=132 height=1><img height=1 src=imagens/2.png width=132 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=134 height=1><img height=1 src=imagens/2.png width=134 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=113 height=13>(-) Desconto / Abatimentos</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=112 height=13>(-) Outras deduções</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=113 height=13>(+) Mora / Multa</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=113 height=13>(+) Outros acréscimos</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(=) Valor cobrado</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=113 height=12></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=112 height=12></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=113 height=12></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=113 height=12></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=112 height=1><img height=1 src=imagens/2.png width=112 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=659 height=13>Sacado</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=659 height=12> <span class="campo"> <?php echo $dadosboleto["sacado"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=659 height=1><img height=1 src=imagens/2.png width=659 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" width=7 height=12></td><td class="ct" width=564 >Demonstrativo</td><td class="ct" width=7 height=12></td><td class="ct" width=88 >Autenticação mecânica</td></tr><tr><td width=7 ></td><td class="cp" width=564 > <span class="campo"> <?php echo $dadosboleto["demonstrativo1"];?><br> <?php echo $dadosboleto["demonstrativo2"];?><br> <?php echo $dadosboleto["demonstrativo3"];?><br> </span> </td><td width=7 ></td><td width=88 ></td></tr></tbody></table><table cellspacing=0 cellpadding=0 width=666 border=0><tbody><tr><td width=7></td><td width=500 class="cp"> <br><br><br> </td><td width=159></td></tr></tbody></table><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class="ct" width=666></td></tr><tbody><tr><td class="ct" width=666> <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class="ct" width=666><img height=1 src=imagens/6.png width=665 border=0></td></tr></tbody></table><br><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class="cp" width=150> <span class="campo"><IMG src="imagens/logoitau.jpg" width="150" height="40" border=0></span></td> <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class="cp"t width=58 valign=bottom><div align=center><font class="bc"><?php echo $dadosboleto["codigo_banco_com_dv"];?></font></div></td><td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class="ld" align=right width=453 valign=bottom><span class="ld"> <span class="campotitulo"> <?php echo $dadosboleto["linha_digitavel"];?> </span></span></td> </tr><tbody><tr><td colspan=5><img height=2 src=imagens/2.png width=666 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=472 height=13>Local de pagamento</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>Vencimento</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=472 height=12>Pagável em qualquer Banco até o vencimento</td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12> <span class="campo"> <?php echo $dadosboleto["data_vencimento"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=472 height=13>Cedente</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>Agência/Código cedente</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=472 height=12> <span class="campo"> <?php echo $dadosboleto["cedente"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12> <span class="campo"> <?php echo $dadosboleto["agencia_codigo"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=113 height=13>Data do documento</td><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=153 height=13>N<u>o</u> documento</td><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=62 height=13>Espécie doc.</td><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=34 height=13>Aceite</td><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=82 height=13>Data processamento</td><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>Nosso número</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=113 height=12><div align=left> <span class="campo"> <?php echo $dadosboleto["data_documento"];?> </span></div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=153 height=12> <span class="campo"> <?php echo $dadosboleto["numero_documento"];?> </span></td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=62 height=12><div align=left><span class="campo"> <?php echo $dadosboleto["especie_doc"];?> </span> </div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=34 height=12><div align=left><span class="campo"> <?php echo $dadosboleto["aceite"];?> </span> </div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=82 height=12><div align=left> <span class="campo"> <?php echo $dadosboleto["data_processamento"];?> </span></div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12> <span class="campo"> <?php echo $dadosboleto["nosso_numero"];?> </span></td> </tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=imagens/2.png width=113 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=153 height=1><img height=1 src=imagens/2.png width=153 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=62 height=1><img height=1 src=imagens/2.png width=62 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=imagens/2.png width=34 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=82 height=1><img height=1 src=imagens/2.png width=82 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1> <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top COLSPAN="3" height=13>Uso do banco</td><td class="ct" valign=top height=13 width=7> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=83 height=13>Carteira</td><td class="ct" valign=top height=13 width=7> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=53 height=13>Espécie</td><td class="ct" valign=top height=13 width=7> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=123 height=13>Quantidade</td><td class="ct" valign=top height=13 width=7> <img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=72 height=13> Valor Documento</td><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(=) Valor documento</td></tr><tr> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td valign=top class="cp" height=12 COLSPAN="3"><div align=left> </div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=83> <div align=left> <span class="campo"> <?php echo $dadosboleto["carteira"];?> </span></div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=53><div align=left><span class="campo"> <?php echo $dadosboleto["especie"];?> </span> </div></td><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=123><span class="campo"> <?php echo $dadosboleto["quantidade"];?> </span> </td> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=72> <span class="campo"> <?php echo $dadosboleto["valor_unitario"];?> </span></td> <td class="cp" valign=top width=7 height=12> <img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12> <span class="campo"> <?php echo $dadosboleto["valor_boleto"];?> </span></td> </tr><tr><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=75 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=31 height=1><img height=1 src=imagens/2.png width=31 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=83 height=1><img height=1 src=imagens/2.png width=83 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=imagens/2.png width=53 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=123 height=1><img height=1 src=imagens/2.png width=123 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=imagens/2.png width=72 border=0></td><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody> </table><table cellspacing=0 cellpadding=0 width=666 border=0><tbody><tr><td align=right width=10><table cellspacing=0 cellpadding=0 border=0 align=left><tbody> <tr> <td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr> <td valign=top width=7 height=1><img height=1 src=imagens/2.png width=1 border=0></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class="ct">Instruções (Texto de responsabilidade do cedente)</font><br><br><span class="cp"> <FONT class=campo> <?php echo $dadosboleto["instrucoes1"]; ?><br> <?php echo $dadosboleto["instrucoes2"]; ?><br> <?php echo $dadosboleto["instrucoes3"]; ?><br> <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br> </span></td> <td align=right width=188><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(-) Desconto / Abatimentos</td></tr><tr> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr><tr> <td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10> <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(-) Outras deduções</td></tr><tr><td class="cp" valign=top width=7 height=12> <img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10> <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class="ct" valign=top width=7 height=13> <img height=13 src=imagens/1.png width=1 border=0></td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188> <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(+) Mora / Multa</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr><tr> <td valign=top width=7 height=1> <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1> <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10><table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr> <td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188> <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(+) Outros acréscimos</td></tr><tr> <td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10><table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>(=) Valor cobrado</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top align=right width=180 height=12></td></tr></tbody> </table></td></tr></tbody></table><table cellspacing=0 cellpadding=0 width=666 border=0><tbody><tr><td valign=top width=666 height=1><img height=1 src=imagens/2.png width=666 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=659 height=13>Sacado</td></tr><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=659 height=12><span class="campo"> <?php echo $dadosboleto["sacado"];?> </span> </td> </tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="cp" valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=659 height=12><span class="campo"> <?php echo $dadosboleto["endereco1"];?> </span> </td> </tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="cp" valign=top width=472 height=13> <span class="campo"> <?php echo $dadosboleto["endereco2"];?> </span></td> <td class="ct" valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td><td class="ct" valign=top width=180 height=13>Cód. baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><TABLE cellSpacing=0 cellPadding=0 border=0 width=666><TBODY><TR><TD class="ct" width=7 height=12></TD><TD class="ct" width=409 >Sacador/Avalista</TD><TD class="ct" width=250 ><div align=right>Autenticação mecânica - <b class="cp">Ficha de Compensação</b></div></TD></TR><TR><TD class="ct" colspan=3 ></TD></tr></tbody></table><TABLE cellSpacing=0 cellPadding=0 width=666 border=0><TBODY><TR><TD vAlign=bottom align=left height=50><?php fbarcode($dadosboleto["codigo_barras"]); ?> </TD> </tr></tbody></table><TABLE cellSpacing=0 cellPadding=0 width=666 border=0><TR><TD class="ct" width=666></TD></TR><TBODY><TR><TD class="ct" width=666><div align=right>Corte na linha pontilhada</div></TD></TR><TR><TD class="ct" width=666><img height=1 src=imagens/6.png width=665 border=0></TD></tr></tbody></table> </BODY></HTML> No link Abaixo sege as imagens de como ficou o pdf : http://img40.imageshack.us/gal.php?g=97999174.jpg
  19. O erro é : Fatal error: require_once() [function.require]: Failed opening required 'http://localhost:8090/dompdf /dompdf_config.inc' (include_path='.;C:\php5\pear') in C:\Servidor PHP\www\boleto\boleto_itau.php on line 64 require_once("http://localhost:8090/dompdf/dompdf_config.inc"); $dompdf = new DOMPDF(); $dompdf->load_html(stripslashes($dados)); $dompdf->set_paper('a4', 'portrait'); $dompdf->render(); $dompdf->stream("dompdf_out.pdf");
×
×
  • Criar Novo...