Файл: whmcs/modules/gateways/boleto/include/layout_bb.php
Строк: 521
<?php
if (!defined("WHMCS"))
die("This file cannot be accessed directly");
// +----------------------------------------------------------------------+
// | BoletoPhp - Versгo Beta |
// +----------------------------------------------------------------------+
// | Este arquivo estб disponнvel sob a Licenзa GPL disponнvel pela Web |
// | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
// | Vocк deve ter recebido uma cуpia da GNU Public License junto com |
// | esse pacote; se nгo, escreva para: |
// | |
// | Free Software Foundation, Inc. |
// | 59 Temple Place - Suite 330 |
// | Boston, MA 02111-1307, USA. |
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Originado do Projeto BBBoletoFree que tiveram colaboraзхes de Daniel |
// | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
// | PHPBoleto de Joгo Prado Maia e Pablo Martins F. Costa |
// | |
// | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
// | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
// +----------------------------------------------------------------------+
// +---------------------------------------------------------------------------------+
// | Equipe Coordenaзгo Projeto BoletoPhp: <boletophp@boletophp.com.br> |
// | Desenvolvimento Boleto Banco do Brasil: Daniel William Schultz / Leandro Maniezo|
// +---------------------------------------------------------------------------------+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><? echo $dadosboleto["identificacao"]; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<meta name="generator" content="Bluefish 1.0.4"/>
<style type="text/css">
<!--
.ti {font: 9px Arial, Helvetica, sans-serif}
-->
</style>
</HEAD>
<BODY>
<STYLE>
@media screen,print {
/* *** TIPOGRAFIA BASICA *** */
* {
font-family: Arial;
font-size: 12px;
margin: 0;
padding: 0;
}
.notice {
color: red;
}
/* *** LINHAS GERAIS *** */
#container {
width: 666px;
margin: 0px auto;
padding-bottom: 30px;
}
#instructions {
margin: 0;
padding: 0 0 20px 0;
}
#boleto {
width: 666px;
margin: 0;
padding: 0;
}
/* *** CABECALHO *** */
#instr_header {
background: url('imagens/logo_empresa.gif') no-repeat top left;
padding-left: 160px;
height: 65px;
}
#instr_header h1 {
font-size: 16px;
margin: 5px 0px;
}
#instr_header address {
font-style: normal;
}
#instr_content {
}
#instr_content h2 {
font-size: 12px;
font-weight: bold;
}
#instr_content p {
margin: 4px 0px;
}
#instr_content ol {
margin: 5px 0;
}
#instr_content ol li {
text-indent: 10px;
margin: 2px 0px;
list-style-position: inside;
}
#instr_content ol li p {
padding-bottom: 4px;
}
/* *** BOLETO *** */
#boleto .cut {
width: 666px;
margin: 0px auto;
border-bottom: 1px navy dashed;
}
#boleto .cut p {
margin: 0 0 5px 0;
padding: 0px;
font-family: 'Arial Narrow';
font-size: 9px;
color: navy;
}
table.header {
width: 666px;
height: 38px;
margin-top: 20px;
margin-bottom: 10px;
border-bottom: 2px navy solid;
}
table.header td.field_cod_banco {
width: 150px;
height: 38px;
background: url('imagens/logobb.jpg') no-repeat bottom left;
}
table.header div.field_cod_banco {
width: 46px;
height: 19px;
margin-left: 155px;
padding-top: 3px;
text-align: center;
font-size: 14px;
font-weight: bold;
color: navy;
border-right: 2px solid navy;
border-left: 2px solid navy;
}
table.header td.linha_digitavel {
width: 464px;
text-align: right;
font: bold 15px Arial;
color: navy
}
table.line {
margin-bottom: 3px;
padding-bottom: 1px;
border-bottom: 1px black solid;
}
table.line tr.titulos td {
height: 13px;
font-family: 'Arial Narrow';
font-size: 9px;
color: navy;
border-left: 5px #ffe000 solid;
padding-left: 2px;
}
table.line tr.campos td {
height: 12px;
font-size: 10px;
color: black;
border-left: 5px #ffe000 solid;
padding-left: 2px;
}
table.line td p {
font-size: 10px;
}
table.line tr.campos td.ag_cod_cedente,
table.line tr.campos td.nosso_numero,
table.line tr.campos td.valor_doc,
table.line tr.campos td.vencimento2,
table.line tr.campos td.ag_cod_cedente2,
table.line tr.campos td.nosso_numero2,
table.line tr.campos td.xvalor,
table.line tr.campos td.valor_doc2
{
text-align: right;
}
table.line tr.campos td.especie,
table.line tr.campos td.qtd,
table.line tr.campos td.vencimento,
table.line tr.campos td.especie_doc,
table.line tr.campos td.aceite,
table.line tr.campos td.carteira,
table.line tr.campos td.especie2,
table.line tr.campos td.qtd2
{
text-align: center;
}
table.line td.last_line {
vertical-align: top;
height: 25px;
}
table.line td.last_line table.line {
margin-bottom: -5px;
border: 0 white none;
}
td.last_line table.line td.instrucoes {
border-left: 0 white none;
padding-left: 5px;
padding-bottom: 0;
margin-bottom: 0;
height: 20px;
vertical-align: top;
}
table.line td.cedente {
width: 298px;
}
table.line td.valor_cobrado2 {
padding-bottom: 0;
margin-bottom: 0;
}
table.line td.ag_cod_cedente {
width: 126px;
}
table.line td.especie {
width: 35px;
}
table.line td.qtd {
width: 53px;
}
table.line td.nosso_numero {
/* width: 120px; */
width: 115px;
padding-right: 5px;
}
table.line td.num_doc {
width: 113px;
}
table.line td.contrato {
width: 72px;
}
table.line td.cpf_cei_cnpj {
width: 132px;
}
table.line td.vencimento {
width: 134px;
}
table.line td.valor_doc {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.desconto {
width: 113px;
}
table.line td.outras_deducoes {
width: 112px;
}
table.line td.mora_multa {
width: 113px;
}
table.line td.outros_acrescimos {
width: 113px;
}
table.line td.valor_cobrado {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc ;
}
table.line td.sacado {
width: 659px;
}
table.line td.local_pagto {
width: 472px;
}
table.line td.vencimento2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc;
}
table.line td.cedente2 {
width: 472px;
}
table.line td.ag_cod_cedente2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.data_doc {
width: 93px;
}
table.line td.num_doc2 {
width: 173px;
}
table.line td.especie_doc {
width: 72px;
}
table.line td.aceite {
width: 34px;
}
table.line td.data_process {
width: 72px;
}
table.line td.nosso_numero2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.reservado {
width: 93px;
background-color: #ffc;
}
table.line td.carteira {
width: 93px;
}
table.line td.especie2 {
width: 53px;
}
table.line td.qtd2 {
width: 133px;
}
table.line td.xvalor {
/* width: 72px; */
width: 67px;
padding-right: 5px;
}
table.line td.valor_doc2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.instrucoes {
width: 475px;
}
table.line td.desconto2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.outras_deducoes2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.mora_multa2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.outros_acrescimos2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
}
table.line td.valor_cobrado2 {
/* width: 180px; */
width: 175px;
padding-right: 5px;
background-color: #ffc ;
}
table.line td.sacado2 {
width: 659px;
}
table.line td.sacador_avalista {
width: 659px;
}
table.line tr.campos td.sacador_avalista {
width: 472px;
}
table.line td.cod_baixa {
color: navy;
width: 180px;
}
div.footer {
margin-bottom: 30px;
}
div.footer p {
width: 88px;
margin: 0;
padding: 0;
padding-left: 525px;
font-family: 'Arial Narro';
font-size: 9px;
color: navy;
}
div.barcode {
width: 666px;
margin-bottom: 20px;
}
}
@media print {
#instructions {
height: 1px;
visibility: hidden;
overflow: hidden;
}
}
</STYLE>
</head>
<body>
<div id="container">
<div id="instructions">
<div id="instr_header">
<h1><? echo $dadosboleto["identificacao"]; ?> <?=isset($dadosboleto["cpf_cnpj"]) ? $dadosboleto["cpf_cnpj"] : '' ?></h1>
<address><? echo $dadosboleto["endereco"]; ?><br></address>
<address><? echo $dadosboleto["cidade_uf"]; ?></address>
</div> <!-- id="instr_header" -->
<div id="instr_content">
<p>
O pagamento deste boleto também poderá ser efetuado
nos terminais de Auto-Atendimento BB.
</p>
<h2>Instruções</h2>
<ol>
<li>
Imprima em impressora jato de tinta (ink jet) ou laser, em
qualidade normal ou alta. Não use modo econômico.
<p class="notice">Por favor, configure margens esquerda e direita
para 17mm.</p>
</li>
<li>
Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens
mínimas à esquerda e à direita do
formulário.
</li>
<li>
Corte na linha indicada. Não rasure, risque, fure ou dobre
a região onde se encontra o código de barras
</li>
</ol>
</div> <!-- id="instr_content" -->
</div> <!-- id="instructions" -->
<div id="boleto">
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
<table class="header" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="field_cod_banco">
<div class="field_cod_banco"><?=$dadosboleto["codigo_banco_com_dv"]?></div>
</td>
<td class="linha_digitavel"><?=$dadosboleto["linha_digitavel"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="cedente">Cedente</TD>
<td class="ag_cod_cedente">Agência / Código do Cedente</td>
<td class="especie">Espécie</TD>
<td class="qtd">Quantidade</TD>
<td class="nosso_numero">Nosso número</td>
</tr>
<tr class="campos">
<td class="cedente"><? echo $dadosboleto["cedente"]; ?> </td>
<td class="ag_cod_cedente"><?=$dadosboleto["agencia_codigo"]?> </td>
<td class="especie"><?=$dadosboleto["especie"]?> </td>
<TD class="qtd"><?=$dadosboleto["quantidade"]?> </td>
<TD class="nosso_numero"><?=$dadosboleto["nosso_numero"]?> </td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="num_doc">Número do documento</td>
<td class="contrato">Contrato</TD>
<td class="cpf_cei_cnpj">CPF/CEI/CNPJ</TD>
<td class="vencmento">Vencimento</TD>
<td class="valor_doc">Valor documento</TD>
</tr>
<tr class="campos">
<td class="num_doc"><?=$dadosboleto["numero_documento"]?></td>
<td class="contrato"><?=$dadosboleto["contrato"]?></td>
<td class="cpf_cei_cnpj"><?=$dadosboleto["cpf_cnpj"]?></td>
<td class="vencimento"><?=$dadosboleto["data_vencimento"]?></td>
<td class="valor_doc"><?=$dadosboleto["valor_boleto"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="desconto">(-) Desconto / Abatimento</td>
<td class="outras_deducoes">(-) Outras deduções</td>
<td class="mora_multa">(+) Mora / Multa</td>
<td class="outros_acrescimos">(+) Outros acréscimos</td>
<td class="valor_cobrado">(=) Valor cobrado</td>
</tr>
<tr class="campos">
<td class="desconto"> </td>
<td class="outras_deducoes"> </td>
<td class="mora_multa"> </td>
<td class="outros_acrescimos"> </td>
<td class="valor_cobrado"> </td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="sacado">Sacado</td>
</tr>
<tr class="campos">
<td class="sacado"><?=$dadosboleto["sacado"]?></td>
</tr>
</tbody>
</table>
<div class="footer">
<p>Autenticação mecânica</p>
</div>
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
<table class="header" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="field_cod_banco">
<div class="field_cod_banco"><?=$dadosboleto["codigo_banco_com_dv"]?></div>
</td>
<td class="linha_digitavel"><?=$dadosboleto["linha_digitavel"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="local_pagto">Local de pagamento</td>
<td class="vencimento2">Vencimento</td>
</tr>
<tr class="campos">
<td class="local_pagto">QUALQUER BANCO ATÉ O VENCIMENTO</td>
<td class="vencimento2"><?=$dadosboleto["data_vencimento"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="cedente2">Cedente</td>
<td class="ag_cod_cedente2">Agência/Código cedente</td>
</tr>
<tr class="campos">
<td class="cedente2"><?=$dadosboleto["cedente"]?></td>
<td class="ag_cod_cedente2"><?=$dadosboleto["agencia_codigo"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="data_doc">Data do documento</td>
<td class="num_doc2">No. documento</td>
<td class="especie_doc">Espécie doc.</td>
<td class="aceite">Aceite</td>
<td class="data_process">Data process.</td>
<td class="nosso_numero2">Nosso número</td>
</tr>
<tr class="campos">
<td class="data_doc"><?=$dadosboleto["data_documento"]?></td>
<td class="num_doc2"><?=$dadosboleto["numero_documento"]?></td>
<td class="especie_doc"><?=$dadosboleto["especie_doc"]?></td>
<td class="aceite"><?=$dadosboleto["aceite"]?></td>
<td class="data_process"><?=$dadosboleto["data_processamento"]?></td>
<td class="nosso_numero2"><?=$dadosboleto["nosso_numero"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="reservado">Uso do banco</td>
<td class="carteira">Carteira</td>
<td class="especie2">Espйcie</td>
<td class="qtd2">Quantidade</td>
<td class="xvalor">x Valor</td>
<td class="valor_doc2">(=) Valor documento</td>
</tr>
<tr class="campos">
<td class="reservado"> </td>
<td class="carteira"><?=$dadosboleto["carteira"]?> <?=isset($dadosboleto["variacao_carteira"]) ? $dadosboleto["variacao_carteira"] : ' ' ?></td>
<td class="especie2"><?=$dadosboleto["especie"]?></td>
<td class="qtd2"><?=$dadosboleto["quantidade"]?></td>
<td class="xvalor"><?=$dadosboleto["valor_unitario"]?></td>
<td class="valor_doc2"><?=$dadosboleto["valor_boleto"]?></td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr><td class="last_line" rowspan="6">
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="instrucoes">
Instruções (Texto de responsabilidade do cedente)
</td>
</tr>
<tr class="campos">
<td class="instrucoes" rowspan="5">
<p><? echo $dadosboleto["demonstrativo1"]; ?></p>
<p><? echo $dadosboleto["demonstrativo2"]; ?></p>
<p><? echo $dadosboleto["demonstrativo3"]; ?></p>
<p><? echo $dadosboleto["instrucoes1"]; ?></p>
<p><? echo $dadosboleto["instrucoes2"]; ?></p>
<p><? echo $dadosboleto["instrucoes3"]; ?></p>
<p><? echo $dadosboleto["instrucoes4"]; ?></p>
</td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="desconto2">(-) Desconto / Abatimento</td>
</tr>
<tr class="campos">
<td class="desconto2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="outras_deducoes2">(-) Outras deduções</td>
</tr>
<tr class="campos">
<td class="outras_deducoes2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="mora_multa2">(+) Mora / Multa</td>
</tr>
<tr class="campos">
<td class="mora_multa2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="outros_acrescimos2">(+) Outros Acréscimos</td>
</tr>
<tr class="campos">
<td class="outros_acrescimos2"> </td>
</tr>
</tbody>
</table>
</td></tr>
<tr><td class="last_line">
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="valor_cobrado2">(=) Valor cobrado</td>
</tr>
<tr class="campos">
<td class="valor_cobrado2"> </td>
</tr>
</tbody>
</table>
</td></tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellPadding="0">
<tbody>
<tr class="titulos">
<td class="sacado2">Sacado</td>
</tr>
<tr class="campos">
<td class="sacado2">
<p><?=$dadosboleto["sacado"]?></p>
<p><?=$dadosboleto["endereco1"]?></p>
<p><?=$dadosboleto["endereco2"]?></p>
</td>
</tr>
</tbody>
</table>
<table class="line" cellspacing="0" cellpadding="0">
<tbody>
<tr class="titulos">
<td class="sacador_avalista" colspan="2">Sacador/Avalista</td>
</tr>
<tr class="campos">
<td class="sacador_avalista"> </td>
<td class="cod_baixa">Cód. baixa</td>
</tr>
</tbody>
</table>
<div class="footer">
<p>Autenticação mecânica</p>
</div>
<div class="barcode">
<p><? fbarcode($dadosboleto["codigo_barras"]); ?></p>
</div>
<div class="cut">
<p>Corte na linha pontilhada</p>
</div>
</div>
</div>
</body>
</html>