MageBR_BoletoBancario - Version 1.6.5

Version Notes

==== 1.6.5 - 27/07/2014 ====
- Removido arquivos desnecessários.
- Atualizado tutorial.

Download this release

Release Info

Developer Eric Cavalcanti
Extension MageBR_BoletoBancario
Version 1.6.5
Comparing to
See all releases


Code changes from version 1.6.4 to 1.6.5

Files changed (60) hide show
  1. app/code/community/MageBR/BoletoBancario/Block/Standard/Redirect_POPUP.php +0 -57
  2. app/code/community/MageBR/BoletoBancario/etc/config.xml +1 -1
  3. app/code/community/MageBR/BoletoBancario/etc/system.xml +1 -1
  4. app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.1.php +27 -0
  5. app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.2.php +27 -0
  6. app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.3.php +27 -0
  7. app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.4.php +27 -0
  8. app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.5.php +27 -0
  9. app/design/frontend/base/default/template/BoletoBancario/BoletoBancario.phtml +7 -0
  10. app/design/frontend/base/default/template/BoletoBancario/banco/bb.phtml +152 -0
  11. app/design/frontend/base/default/template/BoletoBancario/banco/bradesco.phtml +123 -0
  12. app/design/frontend/base/default/template/BoletoBancario/banco/caixa.phtml +304 -0
  13. app/design/frontend/base/default/template/BoletoBancario/banco/cef.phtml +119 -0
  14. app/design/frontend/base/default/template/BoletoBancario/banco/cef_sigcb.phtml +136 -0
  15. app/design/frontend/base/default/template/BoletoBancario/banco/cef_sinco.phtml +127 -0
  16. app/design/frontend/base/default/template/BoletoBancario/banco/hsbc.phtml +116 -0
  17. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bancoob.php +381 -0
  18. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_banespa.php +506 -0
  19. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_banestes.php +374 -0
  20. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bb.php +414 -0
  21. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_besc.php +487 -0
  22. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bradesco.php +388 -0
  23. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef.php +385 -0
  24. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef_sigcb.php +390 -0
  25. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef_sinco.php +388 -0
  26. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_hsbc.php +403 -0
  27. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_itau.php +346 -0
  28. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_nossacaixa.php +503 -0
  29. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_real.php +368 -0
  30. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_santander_banespa.php +422 -0
  31. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_sicredi.php +419 -0
  32. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_sudameris.php +325 -0
  33. app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_unibanco.php +352 -0
  34. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bancoob.php +850 -0
  35. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_banespa.php +269 -0
  36. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_banestes.php +286 -0
  37. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bb.php +867 -0
  38. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_besc.php +269 -0
  39. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bradesco.php +292 -0
  40. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_cef.php +289 -0
  41. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_cef_sinco.php +285 -0
  42. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_hsbc.php +290 -0
  43. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_itau.php +288 -0
  44. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_nossacaixa.php +269 -0
  45. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_real.php +269 -0
  46. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_santander_banespa.php +295 -0
  47. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_sicredi.php +272 -0
  48. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_sudameris.php +373 -0
  49. app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_unibanco.php +269 -0
  50. app/design/frontend/base/default/template/BoletoBancario/banco/itau.phtml +122 -0
  51. app/design/frontend/base/default/template/BoletoBancario/banco/santander_banespa.phtml +111 -0
  52. app/design/frontend/base/default/template/BoletoBancario/popup-segundavia.phtml +27 -0
  53. app/design/frontend/base/default/template/BoletoBancario/standard/form.phtml +31 -0
  54. app/design/frontend/base/default/template/BoletoBancario/standard/form2.phtml +26 -0
  55. app/design/frontend/base/default/template/BoletoBancario/standard/info.phtml +121 -0
  56. app/design/frontend/base/default/template/BoletoBancario/standard/info2.phtml +39 -0
  57. app/design/frontend/base/default/template/BoletoBancario/standard/secan.phtml +72 -0
  58. app/design/frontend/base/default/template/BoletoBancario/standard/success.phtml +76 -0
  59. app/design/frontend/base/default/template/BoletoBancario/standard/view.phtml +98 -0
  60. package.xml +7 -6
app/code/community/MageBR/BoletoBancario/Block/Standard/Redirect_POPUP.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
-
3
- class MageBR_BoletoBancario_Block_Standard_Redirect extends Mage_Core_Block_Abstract
4
- {
5
- protected function _toHtml()
6
- {
7
- $standard = Mage::getModel('BoletoBancario/standard');
8
-
9
- $script = '<script language="JavaScript">';
10
- $script .= ' var retorno;';
11
- $script .= ' var mpg_popup;';
12
- $script .= ' window.name="boleto";';
13
- $script .= ' function fabrewin() {';
14
- $script .= ' if(navigator.appName.indexOf("Netscape") != -1) {';
15
- $script .= ' mpg_popup = window.open("", "mpg_popup","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,screenX=0,screenY=0,left=0,top=0,width=765,height=440");';
16
- $script .= ' else';
17
- $script .= ' mpg_popup = window.open("", "mpg_popup","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,screenX=0,screenY=0,left=0,top=0,width=765,height=440");';
18
- $script .= ' window.location="aguarde.html";';
19
- $script .= ' return true;';
20
- $script .= ' }';
21
- $script .= '</script>';
22
-
23
- $form = '<form action="' . $standard->getBoletoBancarioUrl() . '" ';
24
- $form .= 'id ="boleto_standard_checkout" ';
25
- $form .= 'name="boleto_standard_checkout" ';
26
- $form .= 'method="post" ';
27
- $form .= 'target="mpg_popup" ';
28
- $form .= 'onsubmit="javascript:fabrewin()" ';
29
- $form .= '>';
30
-
31
- foreach ($standard->getStandardCheckoutFormFields() as $field=>$value) {
32
- $form .= '<input type="hidden" name="' . $field . '" value="' . $value . '" /> ';
33
- }
34
-
35
- $home_url = $this->getSkinUrl('images/boleto/boleto.png');
36
- $form .= '</form>';
37
-
38
- $html = '<html>';
39
- $html .= '<head>';
40
- $html .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>';
41
- $html .= $script;
42
- $html .= '<body>';
43
- $html.= $this->__('<p align="center"><strong>Redirecionando para o Boleto.</strong></p>
44
- <p align="center"><strong>Aguarde...</strong></p>
45
- <p align="center">
46
- <input type="image" src="'. $home_url .'" value="Clique aqui para efetuar o pagamento" width="128" height="128"/>
47
- </p>');
48
- $html .= $form;
49
- $html .= '<script type="text/javascript">';
50
- $html .= ' document.getElementById("boleto_standard_checkout").submit();';
51
- $html .= ' window.setTimeout("window.location.href = \'' . Mage::getUrl('BoletoBancario/standard/success') . '\'", 1000)';
52
- $html .= '</script>';
53
- $html .= '</body></html>';
54
-
55
- return $html;
56
- }
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/MageBR/BoletoBancario/etc/config.xml CHANGED
@@ -23,7 +23,7 @@
23
  <config>
24
  <modules>
25
  <MageBR_BoletoBancario>
26
- <version>1.6.4</version>
27
  </MageBR_BoletoBancario>
28
  </modules>
29
  <global>
23
  <config>
24
  <modules>
25
  <MageBR_BoletoBancario>
26
+ <version>1.6.5</version>
27
  </MageBR_BoletoBancario>
28
  </modules>
29
  <global>
app/code/community/MageBR/BoletoBancario/etc/system.xml CHANGED
@@ -37,7 +37,7 @@
37
  <br style="clear: both;"/>
38
  <a style="width: 439px; height: 88px; display: block; float: left" href="http://www.boleto.magentobr.com" target="_blank" style="float: left;"><img src="https://10929165bcfeb7567fa0-e34bcff0a631fbf232a09ad41f9622a9.ssl.cf1.rackcdn.com/Modulo_boleto.png" /></a>
39
  <div style="width: 439px; height: 88px; display: block; float: left; padding-left: 35px; padding-top:37px">
40
- <label style="font-size: 34px">Vers&atilde;o: <strong>1.6.4</strong></label>
41
  </div>
42
 
43
  <br style="clear: both;"/>
37
  <br style="clear: both;"/>
38
  <a style="width: 439px; height: 88px; display: block; float: left" href="http://www.boleto.magentobr.com" target="_blank" style="float: left;"><img src="https://10929165bcfeb7567fa0-e34bcff0a631fbf232a09ad41f9622a9.ssl.cf1.rackcdn.com/Modulo_boleto.png" /></a>
39
  <div style="width: 439px; height: 88px; display: block; float: left; padding-left: 35px; padding-top:37px">
40
+ <label style="font-size: 34px">Vers&atilde;o: <strong>1.6.5</strong></label>
41
  </div>
42
 
43
  <br style="clear: both;"/>
app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.1.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package MageBR_BoletoBancario
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+
22
+ $installer = $this;
23
+ /* @var $installer Mage_BoletoBancario_Model_Mysql4_Setup */
24
+
25
+ $installer->startSetup();
26
+
27
+ $installer->endSetup();
app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.2.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package MageBR_BoletoBancario
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+
22
+ $installer = $this;
23
+ /* @var $installer Mage_BoletoBancario_Model_Mysql4_Setup */
24
+
25
+ $installer->startSetup();
26
+
27
+ $installer->endSetup();
app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.3.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package MageBR_BoletoBancario
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+
22
+ $installer = $this;
23
+ /* @var $installer Mage_BoletoBancario_Model_Mysql4_Setup */
24
+
25
+ $installer->startSetup();
26
+
27
+ $installer->endSetup();
app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.4.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package MageBR_BoletoBancario
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+
22
+ $installer = $this;
23
+ /* @var $installer Mage_BoletoBancario_Model_Mysql4_Setup */
24
+
25
+ $installer->startSetup();
26
+
27
+ $installer->endSetup();
app/code/community/MageBR/BoletoBancario/sql/BoletoBancario_setup/mysql4-install-1.6.5.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Mage
16
+ * @package MageBR_BoletoBancario
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+
22
+ $installer = $this;
23
+ /* @var $installer Mage_BoletoBancario_Model_Mysql4_Setup */
24
+
25
+ $installer->startSetup();
26
+
27
+ $installer->endSetup();
app/design/frontend/base/default/template/BoletoBancario/BoletoBancario.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ $idnumber = Mage::getUrl("BoletoBancario/standard/view/order_id/" . $this->getOrder()->getId()); // Pega id do pedido
3
+ if($this->getOrder()->getPayment()->getMethod()=='BoletoBancario_standard') {
4
+ echo "<strong>Boleto Bancário</strong> <br />";
5
+ echo "<a href=\"" . $idnumber . "\" class=\"link-cart\" onclick=\"this.target='_blank'\">" . $this->__('Imprimir Boleto') . "</a>";
6
+ }
7
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/bb.phtml ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +--------------------------------------------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banco do Brasil: Daniel William Schultz / Leandro Maniezo / Rog�rio Dias Pereira|
27
+ // +--------------------------------------------------------------------------------------------------------+
28
+
29
+
30
+ //converte string UTF8 para ISO-8859-1
31
+ foreach ($_POST as $key => $value) {
32
+ $_POST[$key] = utf8_decode($value);
33
+ }
34
+
35
+ // pegando os dados via post
36
+ $base_url = $_POST['base_url'];
37
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
38
+ $base_url .= '/';
39
+ }
40
+
41
+ $dadosboleto["logo_url"] = $_POST["logo_url"];
42
+ $dadosboleto["store_url"] = $_POST["store_url"];
43
+
44
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
45
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
46
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"] . " - " . $_POST["cliente_cidade"] . " - " .$_POST["cliente_uf"];
47
+ $valor_cobrado = $_POST["total_pedido"];
48
+
49
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
50
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
51
+
52
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
53
+ $taxa_boleto = $_POST["taxa_boleto"];
54
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
55
+ //$valor_cobrado = "2950,00"; // Valor - REGRA: Sem pontos na milhar e tanto faz com "." ou "," ou com 1 ou 2 ou sem casa decimal
56
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
57
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
58
+
59
+ // DADOS DO BOLETO PARA O SEU CLIENTE
60
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
61
+
62
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
63
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
64
+ $dadosboleto["numero_documento"] = $dadosboleto["nosso_numero"];
65
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
66
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
67
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
68
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
69
+
70
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
71
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
72
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
73
+ if ($dadosboleto["demonstrativo2"] == '') {
74
+ $dadosboleto["demonstrativo2"] = "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
75
+ }
76
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
77
+
78
+ // INSTRU��ES PARA O CAIXA
79
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
80
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
81
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
82
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
83
+
84
+ $dadosboleto["quantidade"] = "";
85
+ $dadosboleto["valor_unitario"] = $valor_boleto;
86
+ $dadosboleto["aceite"] = "N";
87
+ $dadosboleto["especie"] = "R$";
88
+ $dadosboleto["especie_doc"] = $_POST["especie"];
89
+
90
+
91
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
92
+
93
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
94
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
95
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
96
+
97
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
98
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
99
+ $dadosboleto["carteira"] = $_POST["carteira"]; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
100
+ if ($dadosboleto["carteira"] == '') {
101
+ $dadosboleto["carteira"] = 'SR';
102
+ }
103
+ // SEUS DADOS
104
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
105
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];
106
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
107
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
108
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
109
+
110
+ $variacao_carteira = $_POST["variacao_carteira"];
111
+ if (empty($variacao_carteira)) {
112
+ $variacao_carteira = '01-9';
113
+ }
114
+
115
+ // DADOS PERSONALIZADOS - BANCO DO BRASIL
116
+ $dadosboleto["convenio"] = $_POST["convenio"]; // Num do conv�nio - REGRA: 6 ou 7 ou 8 d�gitos
117
+ $dadosboleto["contrato"] = $_POST["contrato"]; // Num do seu contrato
118
+ $dadosboleto["variacao_carteira"] = $variacao_carteira; // Varia��o da Carteira, com tra�o (opcional)
119
+
120
+ // TIPO DO BOLETO
121
+ $dadosboleto["formatacao_convenio"] = "" . strlen(trim($dadosboleto["convenio"])); // REGRA: 8 p/ Conv�nio c/ 8 d�gitos, 7 p/ Conv�nio c/ 7 d�gitos, ou 6 se Conv�nio c/ 6 d�gitos
122
+ //$dadosboleto["formatacao_nosso_numero"] = "2"; // REGRA: Usado apenas p/ Conv�nio c/ 6 d�gitos: informe 1 se for NossoN�mero de at� 5 d�gitos ou 2 para op��o de at� 17 d�gitos
123
+
124
+ //echo "fc: " . $dadosboleto["formatacao_convenio"];
125
+
126
+ if (empty($dadosboleto["formatacao_convenio"]) || $dadosboleto["formatacao_convenio"] == '0') {
127
+ $dadosboleto["formatacao_convenio"] = "8";
128
+ }
129
+
130
+ /*
131
+ #################################################
132
+ DESENVOLVIDO PARA CARTEIRA 18
133
+
134
+ - Carteira 18 com Convenio de 8 digitos
135
+ Nosso n�mero: pode ser at� 9 d�gitos
136
+
137
+ - Carteira 18 com Convenio de 7 digitos
138
+ Nosso n�mero: pode ser at� 10 d�gitos
139
+
140
+ - Carteira 18 com Convenio de 6 digitos
141
+ Nosso n�mero:
142
+ de 1 a 99999 para op��o de at� 5 d�gitos
143
+ de 1 a 99999999999999999 para op��o de at� 17 d�gitos
144
+
145
+ #################################################
146
+ */
147
+
148
+
149
+ // N�O ALTERAR!
150
+ include("boleto_php/include/funcoes_bb.php");
151
+ include("boleto_php/include/layout_bb.php");
152
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/bradesco.phtml ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Bradesco: Ramon Soares |
27
+ // +----------------------------------------------------------------------+
28
+
29
+ //converte string UTF8 para ISO-8859-1
30
+ foreach ($_POST as $key => $value) {
31
+ $_POST[$key] = utf8_decode($value);
32
+ }
33
+
34
+ // pegando os dados via post
35
+ $base_url = $_POST['base_url'];
36
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
37
+ $base_url .= '/';
38
+ }
39
+
40
+ // pegando os dados via post
41
+ $dadosboleto["logo_url"] = $_POST["logo_url"];
42
+ $dadosboleto["store_url"] = $_POST["store_url"];
43
+
44
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
45
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
46
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
47
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
48
+ $valor_cobrado = $_POST["total_pedido"];
49
+
50
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
51
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
52
+
53
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
54
+ $taxa_boleto = $_POST["taxa_boleto"];
55
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
56
+ //$valor_cobrado = "2950,00"; // Valor - REGRA: Sem pontos na milhar e tanto faz com "." ou "," ou com 1 ou 2 ou sem casa decimal
57
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
58
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
59
+
60
+ // DADOS DO BOLETO PARA O SEU CLIENTE
61
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
62
+
63
+ //$dadosboleto["nosso_numero"] = "5000001"; // MAGENTO the order number (maximum 11)
64
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
65
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
66
+ $dadosboleto["numero_documento"] = $dadosboleto["nosso_numero"];
67
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
68
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
69
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
70
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
71
+
72
+ // INFORMACOES PARA O CLIENTE
73
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
74
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
75
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
76
+ if ($dadosboleto["demonstrativo2"] == '') {
77
+ $dadosboleto["demonstrativo2"] = "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
78
+ }
79
+ if ($dadosboleto["demonstrativo3"] == '') {
80
+ $dadosboleto["demonstrativo3"] = "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
81
+ }
82
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
83
+
84
+ // INSTRU��ES PARA O CAIXA
85
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
86
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
87
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
88
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
89
+
90
+ if ($dadosboleto["instrucoes4"] == '') {
91
+ $dadosboleto["instrucoes4"] = "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
92
+ }
93
+
94
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
95
+ $dadosboleto["quantidade"] = "001";
96
+ $dadosboleto["valor_unitario"] = $valor_boleto;
97
+ $dadosboleto["aceite"] = "";
98
+ $dadosboleto["especie"] = "R$";
99
+ $dadosboleto["especie_doc"] = $_POST["especie"];
100
+ $dadosboleto["uso_banco"] = "";
101
+
102
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
103
+ // DADOS DA SUA CONTA - Bradesco
104
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
105
+ $dadosboleto["agencia_dv"] = $_POST["agencia_dv"];;
106
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
107
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
108
+
109
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
110
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
111
+ $dadosboleto["carteira"] = $_POST["carteira"]; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
112
+
113
+ // SEUS DADOS
114
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
115
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];
116
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
117
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
118
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
119
+
120
+ // N�O ALTERAR!
121
+ include("boleto_php/include/funcoes_bradesco.php");
122
+ include("boleto_php/include/layout_bradesco.php");
123
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/caixa.phtml ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ ob_start();
3
+
4
+ /*=========================================================================================
5
+ Desenvolvimento:
6
+ Luciano Lima
7
+ www.netdinamica.com.br/boleto
8
+ Suporte: boleto@netdinamica.com.br
9
+
10
+ Licen�a de uso:
11
+ A licen�a de uso deste script � para uso pr�prio em seu site.
12
+ N�o � permitida a venda do mesmo, estando sujeito �s penas prevista em lei.
13
+ A netdinamica, n�o se responsabiliza por preju�zos causados pelo mau uso deste script.
14
+ Bem como imper�cia ou altera��es indevidas no c�digo fonte do mesmo.
15
+ Caso necessite da licen�a para revenda entre em contato.
16
+
17
+ Instru��es de Uso:
18
+ Sistema para gera��o de boletos
19
+ Os dados abaixo s�o apenas um exemplo, estes devem ser substitu�dos pelos seus dados.
20
+ Estes dados podem vir de um Banco de Dados ou Mesmo de um Formul�rio WEB
21
+ Caso ainda tenha alguma duvida acesse o nosso site, nele voc� encontra maiores detalhes.
22
+ DAC = Digito de Auto Confer�ncia - Digito de verifica��o ex: Conta 1018-9 o DAC (digito) � 9
23
+ Lembre-se antes de emitir e pagar os boletos, � nescessario que sua conta corrente esteja habilitada junto ao banco para receb�-los. (Caso contrario o valor pago n�o ser� creditado em sua conta corrente)
24
+ =============================================================================================*/
25
+ //converte string UTF8 para ISO-8859-1
26
+ foreach ($_POST as $key => $value) {
27
+ $_POST[$key] = utf8_decode($value);
28
+ }
29
+
30
+ // pegando os dados via post
31
+ $caminho = $_POST['base_url'];
32
+ if (strrpos($caminho, '/') != strlen($caminho) - 1) {
33
+ $caminho .= '/';
34
+ }
35
+
36
+ $logo_url = $_POST["logo_url"];
37
+ $caminhoPortal = $_POST["store_url"];
38
+
39
+ $taxa_boleto = $_POST["taxa_boleto"];
40
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
41
+
42
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
43
+ $dtvencimento = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
44
+
45
+ $dtcadastro = date("d/m/Y");
46
+ $valor = $_POST["total_pedido"];
47
+ $valor = str_replace(",", ".",$valor);
48
+
49
+ $documento = $_POST["ref_transacao"];
50
+
51
+ $endereco_sacado = $_POST["cliente_end"] . ' - ' . $_POST["cliente_cidade"] . ' ' . $_POST["cliente_uf"] . ' - ' . $_POST["cliente_cep"];
52
+ $sacado = $_POST["cliente_nome"];
53
+
54
+ /*
55
+ $sacado = explode(" ", $sacado);
56
+ $sacado1 = $sacado[0];
57
+ $sacado2 = $sacado[1];
58
+ $sacado3 = $sacado[2];
59
+ $sacado4 = $sacado[3];
60
+ $sacado5 = $sacado[4];
61
+
62
+ $sacado = $sacado1." ".$sacado2." ".$sacado3." ".$sacado4." ".$sacado5;
63
+ */
64
+
65
+ $valor_boleto = number_format($valor+$taxa_boleto, 2, ',', '');
66
+
67
+ //=========Dados Obrigat�rios para gerar o Boleto
68
+ $entra["data_vencimento"] = $dtvencimento; // Data de Vencimento do Boleto (DD/MM/AAAA)
69
+ $entra["data_documento"] = $dtcadastro; // Data de emiss�o do Boleto (DD/MM/AAAA)
70
+ $entra["valor"] = $valor_boleto; // Valor do Boleto (Utilizar virgula como separador decimal, n�o use pontos)
71
+ $entra["nosso_numero"] = $documento; // Nosso Numero S/ DAC
72
+ $entra["numero_documento"] = "1"; // Numero do Pedido ou Nosso Numero
73
+ $entra["carteira"] = "01"; // C�digo da Carteira (00, 01, 8, 9, 80, 81, 82)
74
+
75
+ //============Dados da Ag�ncia e Conta =========
76
+ $entra["agencia"] = "3127"; // Numero da Ag�ncia 4 Digitos s/DAC
77
+ $entra["conta"] = "043969"; // Numero da Conta
78
+ $entra["dac_conta"] = "5"; // Digito da Conta
79
+ $entra["cn_pj"] = "000"; // CNPJ PV da (3 Digitos)
80
+
81
+ //=============Dados do Cedente ===============
82
+ $entra["cpf_cnpj_cedente"] = "08.418.926/0001-03"; // CPF OU CNPJ Cedente
83
+ $entra["endereco"] = "Rua Rui Barbosa, 1690"; // Ender�o do cedente
84
+ $entra["cidade"] = "Presidente Prudente - SP"; // Cidade do cedente
85
+ $entra["cedente"] = "Comercial Shopping Livros LTDA"; // Nome do cedente
86
+
87
+ //===Dados do seu Cliente (Opcional)===============
88
+ $entra["sacado"] = $sacado; // nome do Sacado (Seu cliente)
89
+ $entra["endereco1"] = $endereco_sacado;// Endere�o linha 1
90
+ $entra["endereco2"] = '';
91
+ //$entra["endereco2"] = $dados[customers_street_address]." <br> ".$dados[customers_suburb]." - ".$dados[customers_city]." - ".$dados[customers_state]." - ".$dados[customers_postcode]; // Endere�o linha 2
92
+
93
+ //==Os Campos Abaixo s�o Opcionais=================
94
+ $entra["instrucoes"] = "Pagamento referente a compras efetuadas no site www.ShoppingLivros.com.br"; //Instru�oes para o Cliente
95
+ $entra["instrucoes1"] = "- ATEN��O: Os produtos s� ser�o enviados ap�s o pagamento ter sido efetuado";
96
+ $entra["instrucoes2"] = $_POST["instrucoes1"];
97
+ $entra["instrucoes3"] = $_POST["instrucoes2"];
98
+ $entra["instrucoes4"] = $_POST["instrucoes3"];
99
+ $entra["instrucoes5"] = $_POST["instrucoes4"];
100
+
101
+ $entra["data_processamento"] = $dtcadastro;
102
+ $entra["quantidade"] = "";
103
+ $entra["valor_unitario"] = "";
104
+ $entra["especie"] = "DM";
105
+ $entra["aceite"] = "N";
106
+
107
+ //==================================================================
108
+ //============================N�o mude o valores abaixo=============
109
+
110
+ include("boleto_php/funcoes/funcoes-caixa.php");
111
+ $b = new boleto();
112
+ $entra["uso_banco"] = "";
113
+ $b->banco_caixa($entra);
114
+
115
+ ?>
116
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
117
+ <HTML>
118
+ <HEAD>
119
+ <TITLE>Boleto Banc�rio Caixa Ec&ocirc;nomica Federal</TITLE><META http-equiv=Content-Type content=text/html; charset=windows-1252><style type=text/css>
120
+ <!--.cp { font: bold 10px Arial; color: black}
121
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
122
+ <!--.ld { font: bold 15px Arial; color: #000000}
123
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
124
+ <!--.cn { FONT: 9px Arial; COLOR: black }
125
+ <!--.bc { font: bold 22px Arial; color: #000000 }
126
+ --></style>
127
+
128
+ <script language="Javascript1.2">
129
+ <!--
130
+ function printpage() {
131
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
132
+ window.print();
133
+ }
134
+ //-->
135
+ </script>
136
+
137
+ </HEAD>
138
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
139
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
140
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=ti><DIV ALIGN="CENTER"><span STYLE="font-size: 12px; font-weight: bold">Imprimir
141
+ em impressora jato de tinta ou laser em qualidade normal. <b>(N�o use modo
142
+ econ�mico)</b>.</span> <BR>Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) - Corte
143
+ na linha indicada<BR>
144
+ </div>
145
+ <br />
146
+ <div align="center" style="font-size: 12px; text-alignment: center">
147
+ <br />
148
+ <b>Obrigado por comprar conosco.</b><br />
149
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>.<br/>
150
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $caminho; ?>imagens/printer.gif" title="Imprimir"/></a>
151
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $caminhoPortal ?>">Ap�s imprimir, clique aqui para voltar � loja.</a>
152
+
153
+ </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="<?php echo $caminho; ?>/imagens/6.gif" width=665 border=0></TD></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
154
+ do Sacado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
155
+ <td width=41> <a href="<?php echo $caminhoPortal; ?>" target="_blank"><IMG SRC="<?php echo $logo_url; ?>" WIDTH="150" HEIGHT="60" border="0"></a></td>
156
+ <td class=ti width=455>
157
+ <? echo $entra["cedente"]; ?> - <? echo $documento;?><br> <? echo $entra["endereco"]; ?><br> <? echo $entra["cidade"]; ?><br>
158
+ <br> </td>
159
+ <td align=RIGHT width=150 class=ti>
160
+ </td></tr></table>
161
+
162
+ <BR><table cellspacing=0 cellpadding=0 width=661 border=0><tbody><tr><td class=cp width=146>
163
+ <div align=left><IMG SRC="<?php echo $caminho; ?>/imagens/logo-caixa.jpg" WIDTH="145" HEIGHT="36"></div></td><td width=4 valign=bottom><img height=22 src="<?php echo $caminho; ?>/imagens/3.gif" width=2 border=0></td><td class=cpt width=61 valign=bottom>
164
+ <div align=center><font class=bc>104-0</font></div></td><td width=4 valign=bottom><img height=22 src="<?php echo $caminho; ?>/imagens/3.gif" width=2 border=0></td><td class=ld align=right width=451 valign=bottom><span class=ld>
165
+ <?=$entra["linha_digitavel"]?>
166
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></td>
167
+ </tr><tr><td colspan=5><img height=2 src="<?php echo $caminho; ?>/imagens/2.gif" width=666 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0>
168
+ <tbody><tr><td class=ct valign=top height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top height=13>Cedente</td>
169
+ <td class=ct valign=top height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
170
+ <td class=ct valign=top height=13>Ag�ncia/C�digo
171
+ do Cedente</td>
172
+ <td class=ct valign=top height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
173
+ <td class=ct valign=top height=13>Esp�cie</td>
174
+ <td class=ct valign=top height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
175
+ <td height=13 colspan="3" valign=top class=ct>Nosso
176
+ n�mero</td>
177
+ </tr><tr><td class=cp valign=top height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top height=12>
178
+ <?=$entra["cedente"]?> </td>
179
+ <td class=cp valign=top height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
180
+ <td class=cp valign=top height=12>
181
+ <?=$entra["agencia_codigo"]?> </td>
182
+ <td class=cp valign=top height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
183
+ <td class=cp valign=top height=12>
184
+ <?=$entra["especie"]?> </td>
185
+ <td class=cp valign=top height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td>
186
+ <td height=12 colspan="3" valign=top class=cp> <div align="right"><?=$entra["nosso_numero"]?>
187
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div></td>
188
+ </tr><tr><td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td>
189
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=298 border=0></td>
190
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td>
191
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=126 border=0></td>
192
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td>
193
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=34 border=0></td>
194
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td>
195
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=53 border=0></td>
196
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td>
197
+ <td valign=top height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=120 border=0></td>
198
+ </tr></tbody></table>
199
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top colspan=3 height=13>N�mero
200
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>Valor
201
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top colspan=3 height=12>
202
+ <?=$entra["numero_documento"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=132 height=12>
203
+ <?=$entra["cpf_cnpj_cedente"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=134 height=12>
204
+ <?=$entra["data_vencimento"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
205
+ <?=$entra["valor"]?>
206
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
207
+ </tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=113 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=113 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=72 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=72 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=132 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=132 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=134 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=134 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=113 height=13>(-)
208
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=112 height=13>(-)
209
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
210
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
211
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
212
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=113 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=113 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=112 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=112 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=113 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=113 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=113 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=113 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=659 height=12>
213
+ <?=$entra["sacado"]?> </td></tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=659 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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=482 >Instru��es</td><td class=ct width=29 height=12></td><td class=ct width=148 >Autentica��o
214
+ mec�nica</td></tr><tr><td width=7 ></td><td width=482 ></td><td width=29 ></td><td width=148 ></td></tr></tbody></table><table cellspacing=0 cellpadding=0 width=666 border=0><tbody><tr><td width=7></td><td width=500 class=cp>
215
+ <?=$entra["instrucoes"]?> </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>
216
+ <div align=right>Corte na linha pontilhada&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td></tr><tr><td class=ct width=666><img height=1 src="<?php echo $caminho; ?>/imagens/6.gif" width=665 border=0></td></tr></tbody></table><br><br><table cellspacing=0 cellpadding=0 width=664 border=0><tbody><tr><td class=cp width=146>
217
+ <div align=left><IMG SRC="<?php echo $caminho; ?>/imagens/logo-caixa.jpg" WIDTH="145" HEIGHT="36"></div></td><td width=4 valign=bottom><img height=22 src="<?php echo $caminho; ?>/imagens/3.gif" width=2 border=0></td><td class=cpt width=59 valign=bottom><div align=center><font class=bc>104-0</font></div></td><td width=4 valign=bottom><img height=22 src="<?php echo $caminho; ?>/imagens/3.gif" width=2 border=0></td><td class=ld align=right width=453 valign=bottom><span class=ld>
218
+ <?=$entra["linha_digitavel"]?>
219
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></td>
220
+ </tr><tr><td colspan=5><img height=2 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=472 height=13>Local
221
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>Vencimento</td></tr><tr>
222
+ <td class=cp valign=top width=7 height=12><img height=15 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=472 height=12>Pag&aacute;vel em qualquer banco
223
+ at&eacute; o vencimento</td><td class=cp valign=top width=7 height=12><img height=15 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
224
+ <?=$entra["data_vencimento"]?>
225
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
226
+ </tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=472 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=472 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
227
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=472 height=12>
228
+ <?=$entra["cedente"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
229
+ <?=$entra["agencia_codigo"]?>
230
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
231
+ </tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=472 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=472 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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>
232
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
233
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=163 height=13>N<u>o</u>
234
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=62 height=13>Esp�cie
235
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" 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>
236
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=72 height=13>Data
237
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>Nosso
238
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=113 height=12><div align=left>
239
+ <?=$entra["data_documento"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=163 height=12>
240
+ <?=$entra["numero_documento"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=62 height=12><div align=left>
241
+ <?=$entra["especie"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=34 height=12><div align=left>
242
+ <?=$entra["aceite"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=72 height=12><div align=left>
243
+ <?=$entra["data_processamento"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
244
+ <?=$entra["nosso_numero"]?>
245
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
246
+ </tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=113 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=113 border=0></td><td valign=top width=7 height=1>
247
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=163 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=163 border=0></td><td valign=top width=7 height=1>
248
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=62 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=62 border=0></td><td valign=top width=7 height=1>
249
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=34 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=34 border=0></td><td valign=top width=7 height=1>
250
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=72 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=72 border=0></td><td valign=top width=7 height=1>
251
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1>
252
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
253
+ <td class=ct valign=top width=7 height=13> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top COLSPAN="3" height=13>Uso
254
+ do banco </td><td class=ct valign=top height=13 width=7> <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" 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>
255
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" 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>
256
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" 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>
257
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=72 height=13>
258
+ Valor </td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
259
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
260
+ <?=$entra["uso_banco"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=83>
261
+ <div align=left> <?=$entra["carteira"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=53><div align=left>
262
+ <?=$entra["especie"]?> </div></td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=123>
263
+ <?=$entra["quantidade"]?> </td><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=72>
264
+ <?=$entra["valor_unitario"]?> </td><td class=cp valign=top width=7 height=12>
265
+ <img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
266
+ <?=$entra["valor"]?>
267
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
268
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=75 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=31 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=31 border=0></td><td valign=top width=7 height=1>
269
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=83 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=83 border=0></td><td valign=top width=7 height=1>
270
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=53 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=53 border=0></td><td valign=top width=7 height=1>
271
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=123 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=123 border=0></td><td valign=top width=7 height=1>
272
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=72 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=72 border=0></td><td valign=top width=7 height=1>
273
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=180 border=0></td></tr></tbody>
274
+ </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>
275
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr>
276
+ <td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr>
277
+ <td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=1 border=0></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
278
+ (Texto de responsabilidade do cedente)</font><br><span class=cp> <? echo $entra["instrucoes1"]; ?><br>
279
+ <? echo $entra["instrucoes2"]; ?><br> <? echo $entra["instrucoes3"]; ?><br> <? echo $entra["instrucoes4"]; ?><br>
280
+ <? echo $entra["instrucoes5"]; ?><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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
281
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
282
+ <td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
283
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td valign=top width=7 height=1>
284
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
285
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
286
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
287
+ <img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
288
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
289
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
290
+ <td valign=top width=7 height=1> <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1>
291
+ <img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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>
292
+ <td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
293
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
294
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
295
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
296
+ </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="<?php echo $caminho; ?>/imagens/2.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" 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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=659 height=12>
297
+ <?=$entra["sacado"]?> </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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=659 height=12>
298
+ <?=$entra["endereco1"]?> </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="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=cp valign=top width=472 height=13>
299
+ <?=$entra["endereco2"]?> </td><td class=ct valign=top width=7 height=13><img height=13 src="<?php echo $caminho; ?>/imagens/1.gif" width=1 border=0></td><td class=ct valign=top width=180 height=13>C�d.
300
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=472 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=472 border=0></td><td valign=top width=7 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" width=7 border=0></td><td valign=top width=180 height=1><img height=1 src="<?php echo $caminho; ?>/imagens/2.gif" 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
301
+ mec�nica - <b class=cp>Ficha de Compensa��o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
302
+ <? fbarcode($entra["codigo_barras"], $caminho); ?> </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
303
+ na linha pontilhada&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></TD></TR><TR><TD class=ct width=666><img height=1 src="<?php echo $caminho; ?>/imagens/6.gif" width=665 border=0></TD></tr></tbody></table>
304
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/cef.phtml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF: Elizeu Alcantara |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
31
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
32
+
33
+ //converte string UTF8 para ISO-8859-1
34
+ foreach ($_POST as $key => $value) {
35
+ $_POST[$key] = utf8_decode($value);
36
+ }
37
+
38
+ // pegando os dados via post
39
+ $base_url = $_POST['base_url'];
40
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
41
+ $base_url .= '/';
42
+ }
43
+
44
+ $dadosboleto["logo_url"] = $_POST["logo_url"];
45
+ $dadosboleto["store_url"] = $_POST["store_url"];
46
+
47
+ // DADOS DO SEU CLIENTE
48
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
49
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
50
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
51
+
52
+ $valor_cobrado = $_POST["total_pedido"];
53
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
54
+ $taxa_boleto = $_POST["taxa_boleto"];
55
+
56
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
57
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
58
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
59
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
60
+
61
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
62
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
63
+ $dadosboleto["numero_documento"] = $dadosboleto["nosso_numero"];
64
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
65
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
66
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
67
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
68
+
69
+ // INFORMACOES PARA O CLIENTE
70
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
71
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
72
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
73
+ if ($dadosboleto["demonstrativo2"] == '') {
74
+ $dadosboleto["demonstrativo2"] == "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
75
+ }
76
+ if ($dadosboleto["demonstrativo3"] == '') {
77
+ $dadosboleto["demonstrativo3"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
78
+ }
79
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
80
+
81
+ // INSTRU��ES PARA O CAIXA
82
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
83
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
84
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
85
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
86
+ if ($dadosboleto["instrucoes4"] == '') {
87
+ $dadosboleto["instrucoes4"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
88
+ }
89
+
90
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
91
+ $dadosboleto["quantidade"] = "";
92
+ $dadosboleto["valor_unitario"] = "";
93
+ $dadosboleto["aceite"] = "N";
94
+ $dadosboleto["especie"] = $_POST["especie"];
95
+ $dadosboleto["especie_doc"] = $_POST["especie"];
96
+
97
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
98
+
99
+ // DADOS DA SUA CONTA - CEF
100
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
101
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
102
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
103
+
104
+ // DADOS PERSONALIZADOS - CEF
105
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
106
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
107
+ $dadosboleto["carteira"] = $_POST["carteira"]; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
108
+
109
+ // SEUS DADOS
110
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
111
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];
112
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
113
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
114
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
115
+
116
+ // N�O ALTERAR!
117
+ include("boleto_php/include/funcoes_cef.php");
118
+ include("boleto_php/include/layout_cef.php");
119
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/cef_sigcb.phtml ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF SIGCB: Davi Nunes Camargo |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
31
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
32
+
33
+ //converte string UTF8 para ISO-8859-1
34
+ foreach ($_POST as $key => $value) {
35
+ $_POST[$key] = utf8_decode($value);
36
+ }
37
+
38
+ // pegando os dados via post
39
+ $base_url = $_POST['base_url'];
40
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
41
+ $base_url .= '/';
42
+ }
43
+
44
+ $logo_url = $_POST["logo_url"];
45
+ $caminhoPortal = $_POST["store_url"];
46
+
47
+ // DADOS DO BOLETO PARA O SEU CLIENTE
48
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
49
+ $taxa_boleto = $_POST["taxa_boleto"];
50
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
51
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
52
+ $valor_cobrado = $_POST["total_pedido"];
53
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
54
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
55
+
56
+ // Composi��o Nosso Numero - CEF SIGCB
57
+ $dadosboleto["nosso_numero1"] = "000"; // tamanho 3
58
+ $dadosboleto["nosso_numero_const1"] = "2"; //constanto 1 , 1=registrada , 2=sem registro
59
+ $dadosboleto["nosso_numero2"] = "000"; // tamanho 3
60
+ $dadosboleto["nosso_numero_const2"] = "4"; //constanto 2 , 4=emitido pelo proprio cliente
61
+ $dadosboleto["nosso_numero3"] = $_POST["ref_transacao"]; // tamanho 9
62
+
63
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
64
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
65
+ $dadosboleto["numero_documento"] = $dadosboleto["nosso_numero"];
66
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
67
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
68
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
69
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
70
+
71
+ // DADOS DO SEU CLIENTE
72
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
73
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
74
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
75
+
76
+ $valor_cobrado = $_POST["total_pedido"];
77
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
78
+ $taxa_boleto = $_POST["taxa_boleto"];
79
+
80
+ // INFORMACOES PARA O CLIENTE
81
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
82
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
83
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
84
+ if ($dadosboleto["demonstrativo2"] == '') {
85
+ $dadosboleto["demonstrativo2"] == "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
86
+ }
87
+ if ($dadosboleto["demonstrativo3"] == '') {
88
+ $dadosboleto["demonstrativo3"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
89
+ }
90
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
91
+
92
+ // INSTRU��ES PARA O CAIXA
93
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
94
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
95
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
96
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
97
+ if ($dadosboleto["instrucoes4"] == '') {
98
+ $dadosboleto["instrucoes4"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
99
+ }
100
+
101
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
102
+ $dadosboleto["quantidade"] = "";
103
+ $dadosboleto["valor_unitario"] = "";
104
+ $dadosboleto["aceite"] = "";
105
+ $dadosboleto["especie"] = $_POST["especie"];
106
+ $dadosboleto["especie_doc"] = '';
107
+
108
+
109
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
110
+
111
+
112
+ // DADOS DA SUA CONTA - CEF
113
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
114
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
115
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
116
+
117
+ // DADOS PERSONALIZADOS - CEF
118
+ $carteira = $_POST["carteira"];
119
+ if (empty($carteira)) {
120
+ $carteira = 'SR';
121
+ }
122
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
123
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
124
+ $dadosboleto["carteira"] = $carteira; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
125
+
126
+ // SEUS DADOS
127
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
128
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];;
129
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
130
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
131
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
132
+
133
+ // N�O ALTERAR!
134
+ include("boleto_php/include/funcoes_cef_sigcb.php");
135
+ include("boleto_php/include/layout_cef.php");
136
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/cef_sinco.phtml ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF SINCO: Carlos Magno / Reinaldo Silva |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
31
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
32
+
33
+ //converte string UTF8 para ISO-8859-1
34
+ foreach ($_POST as $key => $value) {
35
+ $_POST[$key] = utf8_decode($value);
36
+ }
37
+
38
+ // pegando os dados via post
39
+ $caminho = $_POST['base_url'];
40
+ if (strrpos($caminho, '/') != strlen($caminho) - 1) {
41
+ $caminho .= '/';
42
+ }
43
+
44
+ $logo_url = $_POST["logo_url"];
45
+ $caminhoPortal = $_POST["store_url"];
46
+
47
+ // DADOS DO SEU CLIENTE
48
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
49
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
50
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
51
+
52
+ $valor_cobrado = $_POST["total_pedido"];
53
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
54
+ $taxa_boleto = $_POST["taxa_boleto"];
55
+
56
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
57
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
58
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
59
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
60
+
61
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"];
62
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
63
+ $dadosboleto["numero_documento"] = $dadosboleto["nosso_numero"];
64
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
65
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
66
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
67
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
68
+
69
+ $dadosboleto["campo_fixo_obrigatorio"] = "1"; // campo fixo obrigatorio - valor = 1
70
+
71
+ // INFORMACOES PARA O CLIENTE
72
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
73
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
74
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
75
+ if ($dadosboleto["demonstrativo2"] == '') {
76
+ $dadosboleto["demonstrativo2"] == "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
77
+ }
78
+ if ($dadosboleto["demonstrativo3"] == '') {
79
+ $dadosboleto["demonstrativo3"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
80
+ }
81
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
82
+
83
+ // INSTRU��ES PARA O CAIXA
84
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
85
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
86
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
87
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
88
+ if ($dadosboleto["instrucoes4"] == '') {
89
+ $dadosboleto["instrucoes4"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
90
+ }
91
+
92
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
93
+ $dadosboleto["quantidade"] = "";
94
+ $dadosboleto["valor_unitario"] = "";
95
+ $dadosboleto["aceite"] = "";
96
+ $dadosboleto["especie"] = $_POST["especie"];
97
+ $dadosboleto["especie_doc"] = '';
98
+
99
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
100
+
101
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
102
+
103
+ // DADOS DA SUA CONTA - CEF
104
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
105
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
106
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
107
+
108
+ // DADOS PERSONALIZADOS - CEF
109
+ $carteira = $_POST["carteira"];
110
+ if (empty($carteira)) {
111
+ $carteira = 'SR';
112
+ }
113
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
114
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
115
+ $dadosboleto["carteira"] = $carteira; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
116
+
117
+ // SEUS DADOS
118
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
119
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];;
120
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
121
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
122
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
123
+
124
+ // N�O ALTERAR!
125
+ include("boleto_php/include/funcoes_cef_sinco.php");
126
+ include("boleto_php/include/layout_cef_sinco.php");
127
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/hsbc.phtml ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto HSBC: Bruno Leonardo M. F. Gon�alves |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
31
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
32
+
33
+ //converte string UTF8 para ISO-8859-1
34
+ foreach ($_POST as $key => $value) {
35
+ $_POST[$key] = utf8_decode($value);
36
+ }
37
+
38
+ // pegando os dados via post
39
+ $base_url = $_POST['base_url'];
40
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
41
+ $base_url .= '/';
42
+ }
43
+
44
+ $dadosboleto["logo_url"] = $_POST["logo_url"];
45
+ $dadosboleto["store_url"] = $_POST["store_url"];
46
+
47
+
48
+
49
+ // DADOS DO BOLETO PARA O SEU CLIENTE
50
+
51
+
52
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
53
+ $taxa_boleto = $_POST["taxa_boleto"];
54
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
55
+ $valor_cobrado = $_POST["total_pedido"]; // Valor - REGRA: Sem pontos na milhar e tanto faz com "." ou "," ou com 1 ou 2 ou sem casa decimal
56
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
57
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
58
+
59
+
60
+
61
+ $dadosboleto["numero_documento"] = $_POST["ref_transacao"]; // N�mero do documento - REGRA: M�ximo de 13 digitos
62
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
63
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
64
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
65
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
66
+
67
+ // DADOS DO SEU CLIENTE
68
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
69
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
70
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
71
+
72
+ // INFORMACOES PARA O CLIENTE
73
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"];
74
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"];
75
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
76
+
77
+ if ($dadosboleto["demonstrativo2"] == '') {
78
+ $dadosboleto["demonstrativo2"] == "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
79
+ }
80
+ if ($dadosboleto["demonstrativo3"] == '') {
81
+ $dadosboleto["demonstrativo3"] == "&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
82
+ }
83
+
84
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"];
85
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"];
86
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"];
87
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"];
88
+
89
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
90
+ $dadosboleto["quantidade"] = "";
91
+ $dadosboleto["valor_unitario"] = "";
92
+ $dadosboleto["aceite"] = "";
93
+ $dadosboleto["especie"] = $_POST["especie"];
94
+ $dadosboleto["especie_doc"] = $_POST["especie"];
95
+
96
+
97
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
98
+
99
+
100
+ // DADOS PERSONALIZADOS - HSBC
101
+ $dadosboleto["codigo_cedente"] = $_POST["conta_cedente"]; // C�digo do Cedente (Somente 7 digitos)
102
+ $dadosboleto["carteira"] = $_POST["carteira"];//"CNR"; // C�digo da Carteira
103
+
104
+ // SEUS DADOS
105
+ $dadosboleto["identificacao"] = $_POST["identificacao"];// "BoletoPhp - C�digo Aberto de Sistema de Boletos";
106
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];
107
+ $dadosboleto["endereco"] = $_POST["endereco"];
108
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"];
109
+ $dadosboleto["cedente"] = $_POST["cedente"];
110
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"];
111
+ $dadosboleto["agencia"] = $_POST["agencia"];
112
+
113
+ // N�O ALTERAR!
114
+ include("boleto_php/include/funcoes_hsbc.php");
115
+ include("boleto_php/include/layout_hsbc.php");
116
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bancoob.php ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto BANCOOB/SICOOB: Marcelo de Souza |
27
+ // | Ajuste de algumas rotinas: Anderson Nuernberg |
28
+ // +----------------------------------------------------------------------+
29
+
30
+
31
+ $codigobanco = "756";
32
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
33
+ $nummoeda = "9";
34
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
35
+
36
+ //valor tem 10 digitos, sem virgula
37
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
38
+ //agencia � sempre 4 digitos
39
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
40
+ //conta � sempre 8 digitos
41
+ $conta = formata_numero($dadosboleto["conta"],8,0);
42
+
43
+ $carteira = $dadosboleto["carteira"];
44
+
45
+ //Zeros: usado quando convenio de 7 digitos
46
+ $livre_zeros='000000';
47
+ $modalidadecobranca = $dadosboleto["modalidade_cobranca"];
48
+ $numeroparcela = $dadosboleto["numero_parcela"];
49
+
50
+ $convenio = formata_numero($dadosboleto["convenio"],7,0);
51
+
52
+ //agencia e conta
53
+ $agencia_codigo = $agencia ." / ". $convenio;
54
+
55
+ // Nosso n�mero de at� 8 d�gitos - 2 digitos para o ano e outros 6 numeros sequencias por ano
56
+ // deve ser gerado no programa boleto_bancoob.php
57
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],8,0);
58
+ $campolivre = "$modalidadecobranca$convenio$nossonumero$numeroparcela";
59
+
60
+ $dv=modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$carteira$agencia$campolivre");
61
+ $linha="$codigobanco$nummoeda$dv$fator_vencimento$valor$carteira$agencia$campolivre";
62
+
63
+ $dadosboleto["codigo_barras"] = $linha;
64
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
65
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
66
+ $dadosboleto["nosso_numero"] = $nossonumero;
67
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
68
+
69
+
70
+ // FUN��ES
71
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
72
+
73
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
74
+ if ($tipo == "geral") {
75
+ $numero = str_replace(",","",$numero);
76
+ while(strlen($numero)<$loop){
77
+ $numero = $insert . $numero;
78
+ }
79
+ }
80
+ if ($tipo == "valor") {
81
+ /*
82
+ retira as virgulas
83
+ formata o numero
84
+ preenche com zeros
85
+ */
86
+ $numero = str_replace(",","",$numero);
87
+ while(strlen($numero)<$loop){
88
+ $numero = $insert . $numero;
89
+ }
90
+ }
91
+ if ($tipo == "convenio") {
92
+ while(strlen($numero)<$loop){
93
+ $numero = $numero . $insert;
94
+ }
95
+ }
96
+ return $numero;
97
+ }
98
+
99
+
100
+ function fbarcode($valor){
101
+
102
+ $fino = 1 ;
103
+ $largo = 3 ;
104
+ $altura = 50 ;
105
+
106
+ $barcodes[0] = "00110" ;
107
+ $barcodes[1] = "10001" ;
108
+ $barcodes[2] = "01001" ;
109
+ $barcodes[3] = "11000" ;
110
+ $barcodes[4] = "00101" ;
111
+ $barcodes[5] = "10100" ;
112
+ $barcodes[6] = "01100" ;
113
+ $barcodes[7] = "00011" ;
114
+ $barcodes[8] = "10010" ;
115
+ $barcodes[9] = "01010" ;
116
+ for($f1=9;$f1>=0;$f1--){
117
+ for($f2=9;$f2>=0;$f2--){
118
+ $f = ($f1 * 10) + $f2 ;
119
+ $texto = "" ;
120
+ for($i=1;$i<6;$i++){
121
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
122
+ }
123
+ $barcodes[$f] = $texto;
124
+ }
125
+ }
126
+
127
+
128
+ //Desenho da barra
129
+
130
+
131
+ //Guarda inicial
132
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
133
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
134
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
135
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
136
+ <?php
137
+ $texto = $valor ;
138
+ if((strlen($texto) % 2) <> 0){
139
+ $texto = "0" . $texto;
140
+ }
141
+
142
+ // Draw dos dados
143
+ while (strlen($texto) > 0) {
144
+ $i = round(esquerda($texto,2));
145
+ $texto = direita($texto,strlen($texto)-2);
146
+ $f = $barcodes[$i];
147
+ for($i=1;$i<11;$i+=2){
148
+ if (substr($f,($i-1),1) == "0") {
149
+ $f1 = $fino ;
150
+ }else{
151
+ $f1 = $largo ;
152
+ }
153
+ ?>
154
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
155
+ <?php
156
+ if (substr($f,$i,1) == "0") {
157
+ $f2 = $fino ;
158
+ }else{
159
+ $f2 = $largo ;
160
+ }
161
+ ?>
162
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
163
+ <?php
164
+ }
165
+ }
166
+
167
+ // Draw guarda final
168
+ ?>
169
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
170
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
171
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
172
+ <?php
173
+ } //Fim da fun��o
174
+
175
+ function esquerda($entra,$comp){
176
+ return substr($entra,0,$comp);
177
+ }
178
+
179
+ function direita($entra,$comp){
180
+ return substr($entra,strlen($entra)-$comp,$comp);
181
+ }
182
+
183
+ function fator_vencimento($data) {
184
+ $data = explode("/",$data);
185
+ $ano = $data[2];
186
+ $mes = $data[1];
187
+ $dia = $data[0];
188
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
189
+ }
190
+
191
+ function _dateToDays($year,$month,$day) {
192
+ $century = substr($year, 0, 2);
193
+ $year = substr($year, 2, 2);
194
+ if ($month > 2) {
195
+ $month -= 3;
196
+ } else {
197
+ $month += 9;
198
+ if ($year) {
199
+ $year--;
200
+ } else {
201
+ $year = 99;
202
+ $century --;
203
+ }
204
+ }
205
+ return ( floor(( 146097 * $century) / 4 ) +
206
+ floor(( 1461 * $year) / 4 ) +
207
+ floor(( 153 * $month + 2) / 5 ) +
208
+ $day + 1721119);
209
+ }
210
+
211
+ /*
212
+ #################################################
213
+ FUN��O DO M�DULO 10 RETIRADA DO PHPBOLETO
214
+
215
+ ESTA FUN��O PEGA O D�GITO VERIFICADOR DO PRIMEIRO, SEGUNDO
216
+ E TERCEIRO CAMPOS DA LINHA DIGIT�VEL
217
+ #################################################
218
+ */
219
+ function modulo_10($num) {
220
+ $numtotal10 = 0;
221
+ $fator = 2;
222
+
223
+ for ($i = strlen($num); $i > 0; $i--) {
224
+ $numeros[$i] = substr($num,$i-1,1);
225
+ $parcial10[$i] = $numeros[$i] * $fator;
226
+ $numtotal10 .= $parcial10[$i];
227
+ if ($fator == 2) {
228
+ $fator = 1;
229
+ }
230
+ else {
231
+ $fator = 2;
232
+ }
233
+ }
234
+
235
+ $soma = 0;
236
+ for ($i = strlen($numtotal10); $i > 0; $i--) {
237
+ $numeros[$i] = substr($numtotal10,$i-1,1);
238
+ $soma += $numeros[$i];
239
+ }
240
+ $resto = $soma % 10;
241
+ $digito = 10 - $resto;
242
+ if ($resto == 0) {
243
+ $digito = 0;
244
+ }
245
+
246
+ return $digito;
247
+ }
248
+
249
+ /*
250
+ #################################################
251
+ FUN��O DO M�DULO 11 RETIRADA DO PHPBOLETO
252
+
253
+ MODIFIQUEI ALGUMAS COISAS...
254
+
255
+ ESTA FUN��O PEGA O D�GITO VERIFICADOR:
256
+
257
+ NOSSONUMERO
258
+ AGENCIA
259
+ CONTA
260
+ CAMPO 4 DA LINHA DIGIT�VEL
261
+ #################################################
262
+ */
263
+
264
+ function modulo_11($num, $base=9, $r=0) {
265
+ $soma = 0;
266
+ $fator = 2;
267
+ for ($i = strlen($num); $i > 0; $i--) {
268
+ $numeros[$i] = substr($num,$i-1,1);
269
+ $parcial[$i] = $numeros[$i] * $fator;
270
+ $soma += $parcial[$i];
271
+ if ($fator == $base) {
272
+ $fator = 1;
273
+ }
274
+ $fator++;
275
+ }
276
+ if ($r == 0) {
277
+ $soma *= 10;
278
+ $digito = $soma % 11;
279
+
280
+ //corrigido
281
+ if ($digito == 10) {
282
+ $digito = "X";
283
+ }
284
+
285
+ /*
286
+ alterado por mim, Daniel Schultz
287
+
288
+ Vamos explicar:
289
+
290
+ O m�dulo 11 s� gera os digitos verificadores do nossonumero,
291
+ agencia, conta e digito verificador com codigo de barras (aquele que fica sozinho e triste na linha digit�vel)
292
+ s� que � foi um rolo...pq ele nao podia resultar em 0, e o pessoal do phpboleto se esqueceu disso...
293
+
294
+ No BB, os d�gitos verificadores podem ser X ou 0 (zero) para agencia, conta e nosso numero,
295
+ mas nunca pode ser X ou 0 (zero) para a linha digit�vel, justamente por ser totalmente num�rica.
296
+
297
+ Quando passamos os dados para a fun��o, fica assim:
298
+
299
+ Agencia = sempre 4 digitos
300
+ Conta = at� 8 d�gitos
301
+ Nosso n�mero = de 1 a 17 digitos
302
+
303
+ A unica vari�vel que passa 17 digitos � a da linha digitada, justamente por ter 43 caracteres
304
+
305
+ Entao vamos definir ai embaixo o seguinte...
306
+
307
+ se (strlen($num) == 43) { n�o deixar dar digito X ou 0 }
308
+ */
309
+
310
+ if (strlen($num) == "43") {
311
+ //ent�o estamos checando a linha digit�vel
312
+ if ($digito == "0" or $digito == "X" or $digito > 9) {
313
+ $digito = 1;
314
+ }
315
+ }
316
+ return $digito;
317
+ }
318
+ elseif ($r == 1){
319
+ $resto = $soma % 11;
320
+ return $resto;
321
+ }
322
+ }
323
+
324
+ /*
325
+ Montagem da linha digit�vel - Fun��o tirada do PHPBoleto
326
+ N�o mudei nada
327
+ */
328
+ function monta_linha_digitavel($linha) {
329
+ // Posi��o Conte�do
330
+ // 1 a 3 N�mero do banco
331
+ // 4 C�digo da Moeda - 9 para Real
332
+ // 5 Digito verificador do C�digo de Barras
333
+ // 6 a 19 Valor (12 inteiros e 2 decimais)
334
+ // 20 a 44 Campo Livre definido por cada banco
335
+
336
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
337
+ // do campo livre e DV (modulo10) deste campo
338
+ $p1 = substr($linha, 0, 4);
339
+ $p2 = substr($linha, 19, 5);
340
+ $p3 = modulo_10("$p1$p2");
341
+ $p4 = "$p1$p2$p3";
342
+ $p5 = substr($p4, 0, 5);
343
+ $p6 = substr($p4, 5);
344
+ $campo1 = "$p5.$p6";
345
+
346
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
347
+ // e livre e DV (modulo10) deste campo
348
+ $p1 = substr($linha, 24, 10);
349
+ $p2 = modulo_10($p1);
350
+ $p3 = "$p1$p2";
351
+ $p4 = substr($p3, 0, 5);
352
+ $p5 = substr($p3, 5);
353
+ $campo2 = "$p4.$p5";
354
+
355
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
356
+ // e livre e DV (modulo10) deste campo
357
+ $p1 = substr($linha, 34, 10);
358
+ $p2 = modulo_10($p1);
359
+ $p3 = "$p1$p2";
360
+ $p4 = substr($p3, 0, 5);
361
+ $p5 = substr($p3, 5);
362
+ $campo3 = "$p4.$p5";
363
+
364
+ // 4. Campo - digito verificador do codigo de barras
365
+ $campo4 = substr($linha, 4, 1);
366
+
367
+ // 5. Campo composto pelo valor nominal pelo valor nominal do documento, sem
368
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
369
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
370
+ $campo5 = substr($linha, 5, 14);
371
+
372
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
373
+ }
374
+
375
+ function geraCodigoBanco($numero) {
376
+ $parte1 = substr($numero, 0, 3);
377
+ $parte2 = modulo_11($parte1);
378
+ return $parte1 . "-" . $parte2;
379
+ }
380
+
381
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_banespa.php ADDED
@@ -0,0 +1,506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banespa : Fabio Gabbay |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "033";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //Modalidade Carteira
38
+ $carteira = $dadosboleto["carteira"];
39
+ //codigocedente deve possuir 11 caracteres
40
+ $codigocliente = formata_numero($dadosboleto["codigo_cedente"],11,0,"valor");
41
+
42
+ // Formata no pedido para colocar zero � esquerda
43
+ $nossonumero = substr("0000000", strlen($dadosboleto['nosso_numero'])).$dadosboleto['nosso_numero'];
44
+
45
+ // Calcula vencimento juliano
46
+ $vencjuliano = dataJuliano($vencimento);
47
+
48
+ // Calcula Campo Livre
49
+ $campoLivre = calculaCampoLivre($codigocliente.$nossonumero."00".$codigobanco);
50
+
51
+ // 43 n�meros para o c�lculo do d�gito verificador do c�digo de barras
52
+ // retorna 44 n�meros que s�o 43 + 1 d�gito verificador formando 44 posi��es
53
+ $linha = monta_codigo_de_barras($codigobanco.$nummoeda.$fator_vencimento.$valor.$codigocliente.$nossonumero."00".$codigobanco.substr($campoLivre, strlen($campoLivre)-2));
54
+
55
+ $dadosboleto["codigo_barras"] = $linha;
56
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
57
+ $dadosboleto["nosso_numero"] = calcula_verificador_nosso_numero($dadosboleto["ponto_venda"], $nossonumero);
58
+ $dadosboleto["agencia_conta"] = substr($dadosboleto["codigo_cedente"],0,3)." ".substr($dadosboleto["codigo_cedente"],3,2)." ".substr($dadosboleto["codigo_cedente"],5,5)." ".substr($dadosboleto["codigo_cedente"],10);
59
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
60
+
61
+
62
+
63
+
64
+ function geraNossoNumero($no_pedido,$dig_inicial)
65
+ {
66
+ $ndoc = $dig_inicial.$no_pedido;
67
+ return $ndoc . modulo_11($ndoc,9,0);
68
+ }
69
+
70
+ function dataJuliano($data)
71
+ {
72
+ $dia = (int)substr($data,1,2);
73
+ $mes = (int)substr($data,3,2);
74
+ $ano = (int)substr($data,6,4);
75
+ $dataf = strtotime("$ano/$mes/$dia");
76
+ $datai = strtotime(($ano-1).'/12/31');
77
+ $dias = (int)(($dataf - $datai)/(60*60*24));
78
+ return str_pad($dias,3,'0',STR_PAD_LEFT).substr($data,9,4);
79
+ }
80
+
81
+ function digitoVerificador_nossonumero($numero) {
82
+ $resto2 = modulo_11($numero, 9, 1);
83
+ $digito = 11 - $resto2;
84
+ if ($digito == 10 || $digito == 11) {
85
+ $dv = 0;
86
+ } else {
87
+ $dv = $digito;
88
+ }
89
+ return $dv;
90
+ }
91
+
92
+
93
+ // FUN��ES
94
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
95
+
96
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
97
+ if ($tipo == "geral") {
98
+ $numero = str_replace(",","",$numero);
99
+ while(strlen($numero)<$loop){
100
+ $numero = $insert . $numero;
101
+ }
102
+ }
103
+ if ($tipo == "valor") {
104
+ /*
105
+ retira as virgulas
106
+ formata o numero
107
+ preenche com zeros
108
+ */
109
+ $numero = str_replace(",","",$numero);
110
+ while(strlen($numero)<$loop){
111
+ $numero = $insert . $numero;
112
+ }
113
+ }
114
+ if ($tipo == "convenio") {
115
+ while(strlen($numero)<$loop){
116
+ $numero = $numero . $insert;
117
+ }
118
+ }
119
+ return $numero;
120
+ }
121
+
122
+
123
+ function fbarcode($valor){
124
+
125
+ $fino = 1 ;
126
+ $largo = 3 ;
127
+ $altura = 50 ;
128
+
129
+ $barcodes[0] = "00110" ;
130
+ $barcodes[1] = "10001" ;
131
+ $barcodes[2] = "01001" ;
132
+ $barcodes[3] = "11000" ;
133
+ $barcodes[4] = "00101" ;
134
+ $barcodes[5] = "10100" ;
135
+ $barcodes[6] = "01100" ;
136
+ $barcodes[7] = "00011" ;
137
+ $barcodes[8] = "10010" ;
138
+ $barcodes[9] = "01010" ;
139
+ for($f1=9;$f1>=0;$f1--){
140
+ for($f2=9;$f2>=0;$f2--){
141
+ $f = ($f1 * 10) + $f2 ;
142
+ $texto = "" ;
143
+ for($i=1;$i<6;$i++){
144
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
145
+ }
146
+ $barcodes[$f] = $texto;
147
+ }
148
+ }
149
+
150
+
151
+ //Desenho da barra
152
+
153
+
154
+ //Guarda inicial
155
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
156
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
157
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
158
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
159
+ <?php
160
+ $texto = $valor ;
161
+ if((strlen($texto) % 2) <> 0){
162
+ $texto = "0" . $texto;
163
+ }
164
+
165
+ // Draw dos dados
166
+ while (strlen($texto) > 0) {
167
+ $i = round(esquerda($texto,2));
168
+ $texto = direita($texto,strlen($texto)-2);
169
+ $f = $barcodes[$i];
170
+ for($i=1;$i<11;$i+=2){
171
+ if (substr($f,($i-1),1) == "0") {
172
+ $f1 = $fino ;
173
+ }else{
174
+ $f1 = $largo ;
175
+ }
176
+ ?>
177
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
178
+ <?php
179
+ if (substr($f,$i,1) == "0") {
180
+ $f2 = $fino ;
181
+ }else{
182
+ $f2 = $largo ;
183
+ }
184
+ ?>
185
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
186
+ <?php
187
+ }
188
+ }
189
+
190
+ // Draw guarda final
191
+ ?>
192
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
193
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
194
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
195
+ <?php
196
+ } //Fim da fun��o
197
+
198
+ function esquerda($entra,$comp){
199
+ return substr($entra,0,$comp);
200
+ }
201
+
202
+ function direita($entra,$comp){
203
+ return substr($entra,strlen($entra)-$comp,$comp);
204
+ }
205
+
206
+ function fator_vencimento($data) {
207
+ $data = explode("/",$data);
208
+ $ano = $data[2];
209
+ $mes = $data[1];
210
+ $dia = $data[0];
211
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
212
+ }
213
+
214
+ function _dateToDays($year,$month,$day) {
215
+ $century = substr($year, 0, 2);
216
+ $year = substr($year, 2, 2);
217
+ if ($month > 2) {
218
+ $month -= 3;
219
+ } else {
220
+ $month += 9;
221
+ if ($year) {
222
+ $year--;
223
+ } else {
224
+ $year = 99;
225
+ $century --;
226
+ }
227
+ }
228
+ return ( floor(( 146097 * $century) / 4 ) +
229
+ floor(( 1461 * $year) / 4 ) +
230
+ floor(( 153 * $month + 2) / 5 ) +
231
+ $day + 1721119);
232
+ }
233
+
234
+ function calculaCampoLivre ($num) {
235
+ global $digitoUm; // Torna global D1
236
+ global $digitoDois; // Torna global D2
237
+ global $recalcular; // Caso resto de D2 seja 10 e retorne 1 ser� registrado como "N" para sair do loop de calculo
238
+ $digitoUm = modulo_10($num);
239
+ $digitoDois = 1;
240
+
241
+ $loop=0;
242
+ while ($digitoDois == 1) {
243
+ $digitoDois = modulo_11($num.$digitoUm);
244
+ if ($recalcular=="N"){
245
+ break;
246
+ }
247
+ }
248
+
249
+ return $num.$digitoUm.$digitoDois;
250
+ }
251
+
252
+
253
+ function modulo_10($num) {
254
+ $numtotal10 = 0;
255
+ $fator = 2;
256
+
257
+ // Separacao dos numeros
258
+ for ($i = strlen($num); $i > 0; $i--) {
259
+ // pega cada numero isoladamente
260
+ $numeros[$i] = substr($num,$i-1,1);
261
+ // Efetua multiplicacao do numero pelo (falor 10)
262
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
263
+ $temp = $numeros[$i] * $fator;
264
+ $temp0=0;
265
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
266
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
267
+ // monta sequencia para soma dos digitos no (modulo 10)
268
+ $numtotal10 += $parcial10[$i];
269
+ if ($fator == 2) {
270
+ $fator = 1;
271
+ } else {
272
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
273
+ }
274
+ }
275
+
276
+ // v�rias linhas removidas, vide fun��o original
277
+ // Calculo do modulo 10
278
+ $resto = $numtotal10 % 10;
279
+ $digito = 10 - $resto;
280
+ if ($resto == 0) {
281
+ $digito = 0;
282
+ }
283
+
284
+ return $digito;
285
+
286
+ }
287
+
288
+ function modulo_11($num) {
289
+ /**
290
+ * Autor:
291
+ * Fabio Gabbay <gabbay@gabbay.com.br>
292
+ *
293
+ * Fun��o:
294
+ * Calculo do Modulo 11 para geracao do digito verificador
295
+ * de boletos bancarios conforme documentos obtidos
296
+ * da Febraban - www.febraban.org.br
297
+ *
298
+ * Entrada:
299
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
300
+ * $base: valor maximo de multiplicacao [2-8]
301
+ * $r: quando especificado um devolve somente o resto
302
+ *
303
+ * Sa�da:
304
+ * Retorna o Digito verificador.
305
+ *
306
+ * Observa��es:
307
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
308
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
309
+ */
310
+
311
+ $soma=0;
312
+ $fator=2;
313
+
314
+ for ($i = strlen($num); $i > 0; $i--){
315
+ $soma += substr($num,$i-1,1) * $fator;
316
+ $tmp = substr($num,$i-1,1) * $fator;;
317
+ $fator++;
318
+ if($fator==8){
319
+ $fator=2;
320
+ }
321
+ }
322
+
323
+ // Calcula resto
324
+ $resto = $soma%11;
325
+
326
+ // Torna variavel $recalcular global. Utilizado para saber se deve ou nao continuar no loop de D2
327
+ global $recalcular;
328
+
329
+ if ($resto==0){
330
+ $digito = 0;
331
+ } elseif ($resto==1){
332
+ // Torna variavel global para altera��o de valor conforme manual Banespa
333
+ global $digitoUm;
334
+
335
+ // Caso D1 igual a 9, passa a valer 0 (zero)
336
+ if ($digitoUm==9){
337
+ $digitoUm=0;
338
+ // Caso contrario adiciona mais 1 para, pois D2 n�o pode ser igual a 1
339
+ } else {
340
+ $digitoUm++;
341
+ }
342
+ $recalcular = "S";
343
+
344
+ // Digito igual a um para continuar no loop ap�s retornar
345
+ $digito=1;
346
+ } else {
347
+ $digito = 11-$resto;
348
+ $recalcular = "N";
349
+ }
350
+
351
+ return $digito;
352
+ }
353
+
354
+ function modulo_11_autoconferencia($num) // Calculo de Modulo 11 (d�gito de autoconferencia)
355
+ {
356
+ $fator = 2;
357
+ $soma = 0;
358
+
359
+ for ($i = strlen($num); $i > 0; $i--)
360
+ {
361
+ $soma += substr($num,$i-1,1) * $fator;
362
+ if($fator >= 9){
363
+ $fator = 2;
364
+ } else {
365
+ $fator++;
366
+ }
367
+ }
368
+ $resto = $soma % 11;
369
+
370
+ if (($resto==0) || ($resto==1) || ($resto==10)){
371
+ $digito = 1;
372
+ } else {
373
+ $digito = 11 - $resto;
374
+ }
375
+
376
+ return $digito;
377
+ }
378
+
379
+ function monta_codigo_de_barras($codigo)
380
+ {
381
+ // Posi��o Conte�do
382
+ // 1 a 3 N�mero do banco
383
+ // 4 C�digo da Moeda - 9 para Real ou 8 - outras moedas
384
+ // 5 D�gito de auto-confer�ncia
385
+ // 6 a 9 Fator vencimento
386
+ // 10 a 19 Valor do t�tulo (10 posi��es)
387
+ // 20 a 30 C�digo do cedente
388
+ // 31 a 37 Nosso numero (7 digitos)
389
+ // 38 a 39 Zeros
390
+ // 40 a 42 033 (C�digo do banco)
391
+ // 43 1� D�gito verificador
392
+ // 44 2� D�gito verificador
393
+
394
+
395
+ // 1. Primeiro Grupo - composto pela identifica��o do banco
396
+ $campo1 = substr($codigo,0,3);
397
+ // 2. Segundo Grupo - composto pelo c�digo da moeda
398
+ $campo2 = substr($codigo,3,1);
399
+ // 4. Quarto Grupo - composto pelo fator de vencimento (4 d�gitos) e valor do t�tulo (10 d�gitos)
400
+ $campo4 = substr($codigo,4,14);
401
+ // 5. Quinto Grupo - composto pelo c�digo do cedente
402
+ $campo5 = substr($codigo,18,11);
403
+ // 6. Sexto Grupo - composto pelo nosso n�mero
404
+ $campo6 = substr($codigo,29,7);
405
+ // 7. S�timo Grupo - composto por 2 zeros
406
+ $campo7 = substr($codigo,36,2);
407
+ // 8. Oitavo Grupo - composto pelo c�digo do banco
408
+ $campo8 = substr($codigo,38,3);
409
+ // 9. Nono Grupo - composto pelo 1� D�gito verificador
410
+ $campo9 = substr($codigo,41,1);
411
+ // 10. D�cimo Grupo - composto pelo 2� D�gito verificador
412
+ $campo10 = substr($codigo,42,1);
413
+
414
+
415
+ $fator = 2;
416
+ $soma = 0;
417
+
418
+ for ($i = strlen($codigo); $i > 0; $i--)
419
+ {
420
+ $soma += substr($codigo,$i-1,1) * $fator;
421
+ if($fator >= 9){
422
+ $fator = 2;
423
+ } else {
424
+ $fator++;
425
+ }
426
+ }
427
+ $resto = $soma % 11;
428
+
429
+ if (($resto==0) || ($resto==1) || ($resto==10)){
430
+ $campo3 = 1;
431
+ } else {
432
+ $campo3 = 11 - $resto;
433
+ }
434
+
435
+ return $campo1.$campo2.$campo3.$campo4.$campo5.$campo6.$campo7.$campo8.$campo9.$campo10;
436
+ }
437
+
438
+ function monta_linha_digitavel($linha){
439
+ // 1�. Campo: composto pelo c�digo de Banco, c�digo da moeda, as cinco primeiras posi��es do campo livre e d�gito verificador (m�dulo 10) deste campo;
440
+ // 2�. Campo: composto pelas posi��es 6�. � 15�. do campo livre e d�gito verificador (m�dulo 10) deste campo;
441
+ // 3�. Campo: composto pelas posi��es 16�. � 25�. do campo livre e d�gito verificador (m�dulo 10) deste campo;
442
+ // 4�. Campo: D�gito verificador do c�digo de barras (d�gito de autoconfer�ncia);
443
+ // 5�. Campo: Composto pelo Fator de Vencimento (anexo 7) e o Valor Nominal do documento, com a inclus�o de zeros entre eles at� compor as 14 posi��es do campo, e sem edi��o de ponto e v�rgula.
444
+ // Quando se tratar de bloqueto sem discrimina��o de valor no c�digo de barras a representa��o dever� ser com zeros.
445
+
446
+ $campo1 = substr($linha,0,3).substr($linha,3,1).substr($linha,19,5);
447
+ $campo1Digito = modulo_10($campo1);
448
+
449
+ $campo2 = substr($linha,24,10);
450
+ $campo2Digito = modulo_10($campo2);
451
+
452
+ $campo3 = substr($linha,34,10);
453
+ $campo3Digito = modulo_10($campo3);
454
+
455
+ $campo4 = substr($linha,4,1);
456
+
457
+ $campo5 = substr($linha,5,4).substr($linha,9,10);
458
+
459
+ // Monta linha digit�vel como deve imprimir
460
+ $linha = substr($campo1,0,5).".".substr($campo1,5).$campo1Digito." ".substr($campo2,0,5).".".substr($campo2,5).$campo2Digito." ".substr($campo3,0,5).".".substr($campo3,5).$campo3Digito." ".$campo4." ".$campo5;
461
+ return $linha;
462
+ }
463
+
464
+
465
+
466
+ function calcula_verificador_nosso_numero($agencia, $nossonumero){
467
+ // Junta as duas vari�veis para c�lculo
468
+ $num = $agencia.$nossonumero;
469
+ // Cria array com os fatores
470
+ $fatores = array (0=>7, 1=>3, 2=>1, 3=>9, 4=>7, 5=>3, 6=>1, 7=>9, 8=>7, 9=>3);
471
+
472
+ $soma=0;
473
+
474
+ // Calcula d�gito verificador
475
+ for($a=0; $a<10; $a++){
476
+ $numero = substr($num, $a, 1)*$fatores[$a];
477
+ if($numero>=10){
478
+ $soma += substr($numero, 1);
479
+ } else {
480
+ $soma += $numero;
481
+ }
482
+ }
483
+
484
+ // Monta d�gito
485
+ if($soma>10){
486
+ $digito = 10-(substr($soma, strlen($soma)-1,1));
487
+ } else {
488
+ $digito = 10-$soma;
489
+ }
490
+
491
+ if($digito == 10){
492
+ $digito = 0;
493
+ }
494
+
495
+
496
+ // Retorna valor formatado com o nosso n�mero como deve ser impresso
497
+ return $agencia." ".$nossonumero." ".$digito;
498
+ }
499
+
500
+
501
+ function geraCodigoBanco($numero) {
502
+ $parte1 = substr($numero, 0, 3);
503
+ $parte2 = modulo_11($parte1);
504
+ return $parte1 . "-" . $parte2;
505
+ }
506
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_banestes.php ADDED
@@ -0,0 +1,374 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banestes: Fernando Jos� de Oliveira Chagas |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "021";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+ $cvt = "5";
35
+ $zero = "00";
36
+
37
+ //valor tem 10 digitos, sem virgula
38
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
39
+
40
+ $carteira = $dadosboleto["carteira"];
41
+
42
+ //nosso n�mero (sem dv) s�o 8 digitos
43
+ $nossonumero_sem_dv = substr($dadosboleto["nosso_numero"],0,8);
44
+
45
+ //dvs do nosso n�mero
46
+ $nossonumero_dv1 = modulo_11($nossonumero_sem_dv);
47
+ $nossonumero_dv2 = modulo_11($nossonumero_sem_dv.$nossonumero_dv1,10);
48
+ $nossonumero_com_dv=$nossonumero_sem_dv.".".$nossonumero_dv1.$nossonumero_dv2;
49
+ unset($nossonumero_dv1,$nossonumero_dv2);
50
+
51
+ //conta corrente (sem dv) s�o 11 digitos
52
+ $conta = formata_numero($dadosboleto["conta"],11,0);
53
+
54
+ // Chave ASBACE 25 d�gitos
55
+ $Wtemp=formata_numero($nossonumero_sem_dv,8,0).$conta.$dadosboleto["tipo_cobranca"].$codigobanco;
56
+ $chaveasbace_dv1=modulo_10($Wtemp);
57
+ $chaveasbace_dv2=modulo_11($Wtemp.$chaveasbace_dv1,7);
58
+ $dadosboleto["chave_asbace"]=$Wtemp.$chaveasbace_dv1.$chaveasbace_dv2;
59
+ unset($chaveasbace_dv1,$chaveasbace_dv2);
60
+
61
+ // 43 numeros para o calculo do digito verificador
62
+ $dv = digitoVerificador("$codigobanco$nummoeda$fator_vencimento$valor".$dadosboleto['chave_asbace']);
63
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor".$dadosboleto['chave_asbace'];
64
+
65
+
66
+ $dadosboleto["codigo_barras"] = $linha;
67
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
68
+ $dadosboleto["agencia_codigo"] = $conta;
69
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
70
+ $dadosboleto["nosso_numero"] = $nossonumero_com_dv;
71
+
72
+ // FUN��ES
73
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
74
+
75
+ function digitoVerificador($numero) {
76
+ $digito = modulo_11($numero);
77
+ if (in_array((int)$digito,array(0,1,10,11))) {
78
+ $digito = 1;
79
+ }
80
+ return $digito;
81
+ }
82
+
83
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
84
+ if ($tipo == "geral") {
85
+ $numero = str_replace(",","",$numero);
86
+ $numero = str_replace(".","",$numero);
87
+ while(strlen($numero)<$loop){
88
+ $numero = $insert . $numero;
89
+ }
90
+ }
91
+ if ($tipo == "valor") {
92
+ /*
93
+ retira as virgulas
94
+ formata o numero
95
+ preenche com zeros
96
+ */
97
+ $numero = str_replace(",","",$numero);
98
+ while(strlen($numero)<$loop){
99
+ $numero = $insert . $numero;
100
+ }
101
+ }
102
+ if ($tipo == "convenio") {
103
+ while(strlen($numero)<$loop){
104
+ $numero = $numero . $insert;
105
+ }
106
+ }
107
+ return $numero;
108
+ }
109
+
110
+
111
+ function fbarcode($valor){
112
+
113
+ $fino = 1 ;
114
+ $largo = 3 ;
115
+ $altura = 50 ;
116
+
117
+ $barcodes[0] = "00110" ;
118
+ $barcodes[1] = "10001" ;
119
+ $barcodes[2] = "01001" ;
120
+ $barcodes[3] = "11000" ;
121
+ $barcodes[4] = "00101" ;
122
+ $barcodes[5] = "10100" ;
123
+ $barcodes[6] = "01100" ;
124
+ $barcodes[7] = "00011" ;
125
+ $barcodes[8] = "10010" ;
126
+ $barcodes[9] = "01010" ;
127
+ for($f1=9;$f1>=0;$f1--){
128
+ for($f2=9;$f2>=0;$f2--){
129
+ $f = ($f1 * 10) + $f2 ;
130
+ $texto = "" ;
131
+ for($i=1;$i<6;$i++){
132
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
133
+ }
134
+ $barcodes[$f] = $texto;
135
+ }
136
+ }
137
+
138
+
139
+ //Desenho da barra
140
+
141
+
142
+ //Guarda inicial
143
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
144
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
145
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
146
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
147
+ <?php
148
+ $texto = $valor ;
149
+ if((strlen($texto) % 2) <> 0){
150
+ $texto = "0" . $texto;
151
+ }
152
+
153
+ // Draw dos dados
154
+ while (strlen($texto) > 0) {
155
+ $i = round(esquerda($texto,2));
156
+ $texto = direita($texto,strlen($texto)-2);
157
+ $f = $barcodes[$i];
158
+ for($i=1;$i<11;$i+=2){
159
+ if (substr($f,($i-1),1) == "0") {
160
+ $f1 = $fino ;
161
+ }else{
162
+ $f1 = $largo ;
163
+ }
164
+ ?>
165
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
166
+ <?php
167
+ if (substr($f,$i,1) == "0") {
168
+ $f2 = $fino ;
169
+ }else{
170
+ $f2 = $largo ;
171
+ }
172
+ ?>
173
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
174
+ <?php
175
+ }
176
+ }
177
+
178
+ // Draw guarda final
179
+ ?>
180
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
181
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
182
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
183
+ <?php
184
+ } //Fim da fun��o
185
+
186
+ function esquerda($entra,$comp){
187
+ return substr($entra,0,$comp);
188
+ }
189
+
190
+ function direita($entra,$comp){
191
+ return substr($entra,strlen($entra)-$comp,$comp);
192
+ }
193
+
194
+ function fator_vencimento($data) {
195
+ $data = explode("/",$data);
196
+ $ano = $data[2];
197
+ $mes = $data[1];
198
+ $dia = $data[0];
199
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
200
+ }
201
+
202
+ function _dateToDays($year,$month,$day) {
203
+ $century = substr($year, 0, 2);
204
+ $year = substr($year, 2, 2);
205
+ if ($month > 2) {
206
+ $month -= 3;
207
+ } else {
208
+ $month += 9;
209
+ if ($year) {
210
+ $year--;
211
+ } else {
212
+ $year = 99;
213
+ $century --;
214
+ }
215
+ }
216
+ return ( floor(( 146097 * $century) / 4 ) +
217
+ floor(( 1461 * $year) / 4 ) +
218
+ floor(( 153 * $month + 2) / 5 ) +
219
+ $day + 1721119);
220
+ }
221
+
222
+ function modulo_10($num) {
223
+ $numtotal10 = 0;
224
+ $fator = 2;
225
+
226
+ // Separacao dos numeros
227
+ for ($i = strlen($num); $i > 0; $i--) {
228
+ // pega cada numero isoladamente
229
+ $numeros[$i] = substr($num,$i-1,1);
230
+ // Efetua multiplicacao do numero pelo (falor 10)
231
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
232
+ $temp = $numeros[$i] * $fator;
233
+ $temp0=0;
234
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
235
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
236
+ // monta sequencia para soma dos digitos no (modulo 10)
237
+ $numtotal10 += $parcial10[$i];
238
+ if ($fator == 2) {
239
+ $fator = 1;
240
+ } else {
241
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
242
+ }
243
+ }
244
+
245
+ // v�rias linhas removidas, vide fun��o original
246
+ // Calculo do modulo 10
247
+ $resto = $numtotal10 % 10;
248
+ $digito = 10 - $resto;
249
+ if ($resto == 0) {
250
+ $digito = 0;
251
+ }
252
+
253
+ return $digito;
254
+
255
+ }
256
+
257
+ function modulo_11($num, $base=9, $r=0) {
258
+ /**
259
+ * Autor:
260
+ * Pablo Costa <pablo@users.sourceforge.net>
261
+ *
262
+ * Fun��o:
263
+ * Calculo do Modulo 11 para geracao do digito verificador
264
+ * de boletos bancarios conforme documentos obtidos
265
+ * da Febraban - www.febraban.org.br
266
+ *
267
+ * Entrada:
268
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
269
+ * $base: valor maximo de multiplicacao [2-$base]
270
+ * $r: quando especificado um devolve somente o resto
271
+ *
272
+ * Sa�da:
273
+ * Retorna o Digito verificador.
274
+ *
275
+ * Observa��es:
276
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
277
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
278
+ */
279
+
280
+ $soma = 0;
281
+ $fator = 2;
282
+
283
+ /* Separacao dos numeros */
284
+ for ($i = strlen($num); $i > 0; $i--) {
285
+ // pega cada numero isoladamente
286
+ $numeros[$i] = substr($num,$i-1,1);
287
+ // Efetua multiplicacao do numero pelo falor
288
+ $parcial[$i] = $numeros[$i] * $fator;
289
+ // Soma dos digitos
290
+ $soma += $parcial[$i];
291
+ if ($fator == $base) {
292
+ // restaura fator de multiplicacao para 2
293
+ $fator = 1;
294
+ }
295
+ $fator++;
296
+ }
297
+
298
+ /* Calculo do modulo 11 */
299
+ if ($r == 0) {
300
+ $soma *= 10;
301
+ $digito = $soma % 11;
302
+ if ($digito == 10) {
303
+ $digito = 0;
304
+ }
305
+ return $digito;
306
+ } elseif ($r == 1){
307
+ $resto = $soma % 11;
308
+ return $resto;
309
+ }
310
+ }
311
+
312
+ function monta_linha_digitavel($codigo) {
313
+
314
+ $banco = substr($codigo,0,3);
315
+ $moeda = substr($codigo,3,1);
316
+ $k = substr($codigo,4,1);
317
+ $fator = substr($codigo,5,4);
318
+ $valor = substr($codigo,9,10);
319
+ $ch = substr($codigo,-25);
320
+
321
+ $p1 = $banco.$moeda.substr($ch,0,5);
322
+ $dv_1 = modulo_10($p1);
323
+ $campo1 = substr($p1,0,5).'.'.substr($p1,-4).$dv_1;
324
+
325
+ $p12 = substr($ch,5,10);
326
+ $dv_2 = modulo_10($p12);
327
+ $campo2 = substr($p12,0,5).'.'.substr($p12,-5).$dv_2;
328
+
329
+ $p13 = substr($ch,15,10);
330
+ $dv_3 = modulo_10($p13);
331
+ $campo3 = substr($p13,0,5).'.'.substr($p13,-5).$dv_3;
332
+
333
+ $campo4 = $k;
334
+
335
+ // 5. Campo composto pelo valor nominal pelo valor nominal do documento, sem
336
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
337
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
338
+ $campo5 = $fator.$valor;
339
+
340
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
341
+ /*
342
+ // Composi��o da Linha Digit�vel
343
+ // Primeiro Campo
344
+ $Wtemp=$codigobanco.$nummoeda.substr($chaveasbace,0,5);
345
+ $campo1=$Wtemp.modulo_10($Wtemp);
346
+ $campo1=substr($campo1,0,5).".".substr($campo1,5,5);
347
+ // Segundo Campo
348
+ $Wtemp=substr($chaveasbace,5,10);
349
+ $campo2=$Wtemp.modulo_10($Wtemp);
350
+ $campo2=substr($campo2,0,5).".".substr($campo2,5,6);
351
+ // Terceiro Campo
352
+ $Wtemp=substr($chaveasbace,15,10);
353
+ $campo3=$Wtemp.modulo_10($Wtemp);
354
+ $campo3=substr($campo3,0,5).".".substr($campo3,5,6);
355
+ // Quarto Campo
356
+ //$Wtemp=substr($chaveasbace,15,10);
357
+ //$campo4=$Wtemp.modulo_10($Wtemp);
358
+ //$campo4=substr($campo4,0,5).".".substr($campo4,5,6);
359
+ // Quinto Campo
360
+ $campo5=$fator_vencimento.$valor;
361
+ echo "$campo1 $campo2 $campo3 $dv $campo5";
362
+
363
+ //$nossonumero = substr($nossonumero_dv,0,14).'-'.substr($nossonumero_dv,14,1);
364
+ //$agencia_codigo = $agencia." / ". $conta ."-". $conta_dv;
365
+ */
366
+ }
367
+
368
+ function geraCodigoBanco($numero) {
369
+ $parte1 = substr($numero, 0, 3);
370
+ $parte2 = modulo_11($parte1);
371
+ return $parte1 . "-" . $parte2;
372
+ }
373
+
374
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bb.php ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +-------------------------------------------------------------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banco do Brasil: Daniel William Schultz / Leandro Maniezo / Rog�rio Dias Pereira / Romeu Medeiros|
27
+ // +-------------------------------------------------------------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "001";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � sempre 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � sempre 8 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],8,0);
41
+ //carteira 18
42
+ $carteira = $dadosboleto["carteira"];
43
+ //agencia e conta
44
+ $agencia_codigo = $agencia."-". modulo_11($agencia) ." / ". $conta ."-". modulo_11($conta);
45
+ //Zeros: usado quando convenio de 7 digitos
46
+ $livre_zeros='000000';
47
+
48
+ // Carteira 18 com Conv�nio de 8 d�gitos
49
+ if ($dadosboleto["formatacao_convenio"] == "8") {
50
+ $convenio = formata_numero($dadosboleto["convenio"],8,0,"convenio");
51
+ // Nosso n�mero de at� 9 d�gitos
52
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],9,0);
53
+ $dv=modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$livre_zeros$convenio$nossonumero$carteira");
54
+ $linha="$codigobanco$nummoeda$dv$fator_vencimento$valor$livre_zeros$convenio$nossonumero$carteira";
55
+ //montando o nosso numero que aparecer� no boleto
56
+ $nossonumero = $convenio . $nossonumero ."-". modulo_11($convenio.$nossonumero);
57
+ }
58
+
59
+ // Carteira 18 com Conv�nio de 7 d�gitos
60
+ if ($dadosboleto["formatacao_convenio"] == "7") {
61
+ $convenio = formata_numero($dadosboleto["convenio"],7,0,"convenio");
62
+ // Nosso n�mero de at� 10 d�gitos
63
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],10,0);
64
+ $dv=modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$livre_zeros$convenio$nossonumero$carteira");
65
+ $linha="$codigobanco$nummoeda$dv$fator_vencimento$valor$livre_zeros$convenio$nossonumero$carteira";
66
+ $nossonumero = $convenio.$nossonumero;
67
+ //N�o existe DV na composi��o do nosso-n�mero para conv�nios de sete posi��es
68
+ }
69
+
70
+ // Carteira 18 com Conv�nio de 6 d�gitos
71
+ if ($dadosboleto["formatacao_convenio"] == "6") {
72
+ $convenio = formata_numero($dadosboleto["convenio"],6,0,"convenio");
73
+
74
+ if ($dadosboleto["formatacao_nosso_numero"] == "1") {
75
+
76
+ // Nosso n�mero de at� 5 d�gitos
77
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],5,0);
78
+ $dv = modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$convenio$nossonumero$agencia$conta$carteira");
79
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$convenio$nossonumero$agencia$conta$carteira";
80
+ //montando o nosso numero que aparecer� no boleto
81
+ $nossonumero = $convenio . $nossonumero ."-". modulo_11($convenio.$nossonumero);
82
+ }
83
+
84
+ if ($dadosboleto["formatacao_nosso_numero"] == "2") {
85
+
86
+ // Nosso n�mero de at� 17 d�gitos
87
+ $nservico = "21";
88
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],17,0);
89
+ $dv = modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$convenio$nossonumero$nservico");
90
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$convenio$nossonumero$nservico";
91
+ }
92
+ }
93
+
94
+ $dadosboleto["codigo_barras"] = $linha;
95
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
96
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
97
+ $dadosboleto["nosso_numero"] = $nossonumero;
98
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
99
+
100
+
101
+ // FUN��ES
102
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
103
+
104
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
105
+ if ($tipo == "geral") {
106
+ $numero = str_replace(",","",$numero);
107
+ while(strlen($numero)<$loop){
108
+ $numero = $insert . $numero;
109
+ }
110
+ }
111
+ if ($tipo == "valor") {
112
+ /*
113
+ retira as virgulas
114
+ formata o numero
115
+ preenche com zeros
116
+ */
117
+ $numero = str_replace(",","",$numero);
118
+ while(strlen($numero)<$loop){
119
+ $numero = $insert . $numero;
120
+ }
121
+ }
122
+ if ($tipo = "convenio") {
123
+ while(strlen($numero)<$loop){
124
+ $numero = $numero . $insert;
125
+ }
126
+ }
127
+ return $numero;
128
+ }
129
+
130
+
131
+ function fbarcode($valor, $dir = "") {
132
+
133
+ $fino = 1 ;
134
+ $largo = 3 ;
135
+ $altura = 50 ;
136
+
137
+ $barcodes[0] = "00110" ;
138
+ $barcodes[1] = "10001" ;
139
+ $barcodes[2] = "01001" ;
140
+ $barcodes[3] = "11000" ;
141
+ $barcodes[4] = "00101" ;
142
+ $barcodes[5] = "10100" ;
143
+ $barcodes[6] = "01100" ;
144
+ $barcodes[7] = "00011" ;
145
+ $barcodes[8] = "10010" ;
146
+ $barcodes[9] = "01010" ;
147
+ for($f1=9;$f1>=0;$f1--){
148
+ for($f2=9;$f2>=0;$f2--){
149
+ $f = ($f1 * 10) + $f2 ;
150
+ $texto = "" ;
151
+ for($i=1;$i<6;$i++){
152
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
153
+ }
154
+ $barcodes[$f] = $texto;
155
+ }
156
+ }
157
+
158
+
159
+ //Desenho da barra
160
+
161
+
162
+ //Guarda inicial
163
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
164
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
165
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
166
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
167
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
168
+ <?php
169
+ $texto = $valor ;
170
+ if((strlen($texto) % 2) <> 0){
171
+ $texto = "0" . $texto;
172
+ }
173
+
174
+ // Draw dos dados
175
+ while (strlen($texto) > 0) {
176
+ $i = round(esquerda($texto,2));
177
+ $texto = direita($texto,strlen($texto)-2);
178
+ $f = $barcodes[$i];
179
+ for($i=1;$i<11;$i+=2){
180
+ if (substr($f,($i-1),1) == "0") {
181
+ $f1 = $fino ;
182
+ }else{
183
+ $f1 = $largo ;
184
+ }
185
+ ?>
186
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
187
+ <?php
188
+ if (substr($f,$i,1) == "0") {
189
+ $f2 = $fino ;
190
+ }else{
191
+ $f2 = $largo ;
192
+ }
193
+ ?>
194
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
195
+ <?php
196
+ }
197
+ }
198
+
199
+ // Draw guarda final
200
+ ?>
201
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
202
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
203
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
204
+ <?php
205
+ } //Fim da fun��o
206
+
207
+ function esquerda($entra,$comp){
208
+ return substr($entra,0,$comp);
209
+ }
210
+
211
+ function direita($entra,$comp){
212
+ return substr($entra,strlen($entra)-$comp,$comp);
213
+ }
214
+
215
+ function fator_vencimento($data) {
216
+ $data = explode("/",$data);
217
+ $ano = $data[2];
218
+ $mes = $data[1];
219
+ $dia = $data[0];
220
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
221
+ }
222
+
223
+ function _dateToDays($year,$month,$day) {
224
+ $century = substr($year, 0, 2);
225
+ $year = substr($year, 2, 2);
226
+ if ($month > 2) {
227
+ $month -= 3;
228
+ } else {
229
+ $month += 9;
230
+ if ($year) {
231
+ $year--;
232
+ } else {
233
+ $year = 99;
234
+ $century --;
235
+ }
236
+ }
237
+
238
+ return ( floor(( 146097 * $century) / 4 ) +
239
+ floor(( 1461 * $year) / 4 ) +
240
+ floor(( 153 * $month + 2) / 5 ) +
241
+ $day + 1721119);
242
+ }
243
+
244
+ /*
245
+ #################################################
246
+ FUN��O DO M�DULO 10 RETIRADA DO PHPBOLETO
247
+
248
+ ESTA FUN��O PEGA O D�GITO VERIFICADOR DO PRIMEIRO, SEGUNDO
249
+ E TERCEIRO CAMPOS DA LINHA DIGIT�VEL
250
+ #################################################
251
+ */
252
+ function modulo_10($num) {
253
+ $numtotal10 = 0;
254
+ $fator = 2;
255
+
256
+ for ($i = strlen($num); $i > 0; $i--) {
257
+ $numeros[$i] = substr($num,$i-1,1);
258
+ $parcial10[$i] = $numeros[$i] * $fator;
259
+ $numtotal10 .= $parcial10[$i];
260
+ if ($fator == 2) {
261
+ $fator = 1;
262
+ }
263
+ else {
264
+ $fator = 2;
265
+ }
266
+ }
267
+
268
+ $soma = 0;
269
+ for ($i = strlen($numtotal10); $i > 0; $i--) {
270
+ $numeros[$i] = substr($numtotal10,$i-1,1);
271
+ $soma += $numeros[$i];
272
+ }
273
+ $resto = $soma % 10;
274
+ $digito = 10 - $resto;
275
+ if ($resto == 0) {
276
+ $digito = 0;
277
+ }
278
+
279
+ return $digito;
280
+ }
281
+
282
+ /*
283
+ #################################################
284
+ FUN��O DO M�DULO 11 RETIRADA DO PHPBOLETO
285
+
286
+ MODIFIQUEI ALGUMAS COISAS...
287
+
288
+ ESTA FUN��O PEGA O D�GITO VERIFICADOR:
289
+
290
+ NOSSONUMERO
291
+ AGENCIA
292
+ CONTA
293
+ CAMPO 4 DA LINHA DIGIT�VEL
294
+ #################################################
295
+ */
296
+
297
+ function modulo_11($num, $base=9, $r=0) {
298
+ $soma = 0;
299
+ $fator = 2;
300
+ for ($i = strlen($num); $i > 0; $i--) {
301
+ $numeros[$i] = substr($num,$i-1,1);
302
+ $parcial[$i] = $numeros[$i] * $fator;
303
+ $soma += $parcial[$i];
304
+ if ($fator == $base) {
305
+ $fator = 1;
306
+ }
307
+ $fator++;
308
+ }
309
+ if ($r == 0) {
310
+ $soma *= 10;
311
+ $digito = $soma % 11;
312
+
313
+ //corrigido
314
+ if ($digito == 10) {
315
+ $digito = "X";
316
+ }
317
+
318
+ /*
319
+ alterado por mim, Daniel Schultz
320
+
321
+ Vamos explicar:
322
+
323
+ O m�dulo 11 s� gera os digitos verificadores do nossonumero,
324
+ agencia, conta e digito verificador com codigo de barras (aquele que fica sozinho e triste na linha digit�vel)
325
+ s� que � foi um rolo...pq ele nao podia resultar em 0, e o pessoal do phpboleto se esqueceu disso...
326
+
327
+ No BB, os d�gitos verificadores podem ser X ou 0 (zero) para agencia, conta e nosso numero,
328
+ mas nunca pode ser X ou 0 (zero) para a linha digit�vel, justamente por ser totalmente num�rica.
329
+
330
+ Quando passamos os dados para a fun��o, fica assim:
331
+
332
+ Agencia = sempre 4 digitos
333
+ Conta = at� 8 d�gitos
334
+ Nosso n�mero = de 1 a 17 digitos
335
+
336
+ A unica vari�vel que passa 17 digitos � a da linha digitada, justamente por ter 43 caracteres
337
+
338
+ Entao vamos definir ai embaixo o seguinte...
339
+
340
+ se (strlen($num) == 43) { n�o deixar dar digito X ou 0 }
341
+ */
342
+
343
+ if (strlen($num) == "43") {
344
+ //ent�o estamos checando a linha digit�vel
345
+ if ($digito == "0" or $digito == "X" or $digito > 9) {
346
+ $digito = 1;
347
+ }
348
+ }
349
+ return $digito;
350
+ }
351
+ elseif ($r == 1){
352
+ $resto = $soma % 11;
353
+ return $resto;
354
+ }
355
+ }
356
+
357
+ /*
358
+ Montagem da linha digit�vel - Fun��o tirada do PHPBoleto
359
+ N�o mudei nada
360
+ */
361
+ function monta_linha_digitavel($linha) {
362
+ // Posi��o Conte�do
363
+ // 1 a 3 N�mero do banco
364
+ // 4 C�digo da Moeda - 9 para Real
365
+ // 5 Digito verificador do C�digo de Barras
366
+ // 6 a 19 Valor (12 inteiros e 2 decimais)
367
+ // 20 a 44 Campo Livre definido por cada banco
368
+
369
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
370
+ // do campo livre e DV (modulo10) deste campo
371
+ $p1 = substr($linha, 0, 4);
372
+ $p2 = substr($linha, 19, 5);
373
+ $p3 = modulo_10("$p1$p2");
374
+ $p4 = "$p1$p2$p3";
375
+ $p5 = substr($p4, 0, 5);
376
+ $p6 = substr($p4, 5);
377
+ $campo1 = "$p5.$p6";
378
+
379
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
380
+ // e livre e DV (modulo10) deste campo
381
+ $p1 = substr($linha, 24, 10);
382
+ $p2 = modulo_10($p1);
383
+ $p3 = "$p1$p2";
384
+ $p4 = substr($p3, 0, 5);
385
+ $p5 = substr($p3, 5);
386
+ $campo2 = "$p4.$p5";
387
+
388
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
389
+ // e livre e DV (modulo10) deste campo
390
+ $p1 = substr($linha, 34, 10);
391
+ $p2 = modulo_10($p1);
392
+ $p3 = "$p1$p2";
393
+ $p4 = substr($p3, 0, 5);
394
+ $p5 = substr($p3, 5);
395
+ $campo3 = "$p4.$p5";
396
+
397
+ // 4. Campo - digito verificador do codigo de barras
398
+ $campo4 = substr($linha, 4, 1);
399
+
400
+ // 5. Campo composto pelo valor nominal pelo valor nominal do documento, sem
401
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
402
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
403
+ $campo5 = substr($linha, 5, 14);
404
+
405
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
406
+ }
407
+
408
+ function geraCodigoBanco($numero) {
409
+ $parte1 = substr($numero, 0, 3);
410
+ $parte2 = modulo_11($parte1);
411
+ return $parte1 . "-" . $parte2;
412
+ }
413
+
414
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_besc.php ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto BESC: Lucas Ferreira |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "027";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+ //valor tem 10 digitos, sem virgula
35
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
36
+ //carteira � CNR
37
+ $carteira = $dadosboleto["carteira"];
38
+ //codigocedente deve possuir 7 caracteres
39
+ $codigocedente = formata_numero($dadosboleto["codigo_cedente"],5,0);
40
+
41
+ $ndoc = $dadosboleto["numero_documento"];
42
+ $vencimento = $dadosboleto["data_vencimento"];
43
+
44
+ // n�mero do documento (sem dvs) � 13 digitos
45
+ $nnum = formata_numero($dadosboleto["nosso_numero"],13,0);
46
+ // nosso n�mero (com dvs) � 16 digitos
47
+ $nossonumero = geraNossoNumero($nnum);
48
+
49
+ $chave = substr($codigocedente,0,5) . substr($nnum,0,3) . $carteira . substr($nnum,3,10) . $codigobanco;
50
+ $barra = "$codigobanco$nummoeda$fator_vencimento$valor$chave";
51
+
52
+ // Digitos Verificadores da Chave de 25 posi��es
53
+ $dv1 = m10dv1($chave);
54
+ $dv2 = m10dv2($chave . $dv1);
55
+ $barra = $barra . $dv1 . $dv2;
56
+
57
+
58
+ $dv = digitoVerificador_barra($barra);
59
+ // Numero para o codigo de barras com 44 digitos
60
+ $linha = substr($barra, 0, 4) . $dv . substr($barra, 4);
61
+
62
+ $agencia_codigo = $codigocedente;
63
+
64
+ $dadosboleto["codigo_barras"] = $linha;
65
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
66
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
67
+ $dadosboleto["nosso_numero"] = $nossonumero;
68
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
69
+
70
+ function geraNossoNumero($ndoc) {
71
+ return $ndoc."-".digitoVerificador_nossonumero($ndoc);
72
+ }
73
+
74
+ function dataJuliano($data) {
75
+ $dia = (int)substr($data,0,2);
76
+ $mes = (int)substr($data,3,2);
77
+ $ano = (int)substr($data,6,4);
78
+ $dataf = strtotime("$ano/$mes/$dia");
79
+ $datai = strtotime(($ano-1).'/12/31');
80
+ $dias = (int)(($dataf - $datai)/(60*60*24));
81
+ return str_pad($dias,3,'0',STR_PAD_LEFT).substr($data,9,4);
82
+ }
83
+
84
+ function digitoVerificador_nossonumero($numero) {
85
+ $dv = modulo_11_invertido($numero);
86
+ $dv = $dv.'3';
87
+ $dv = $dv.modulo_11_invertido($numero.$dv);
88
+ return $dv;
89
+ }
90
+ function digitoVerificador_codigocedente($numero) {
91
+ $dv = modulo_11_invertido($numero);
92
+ $dv = $dv.modulo_11_invertido($numero.$dv);
93
+ return $dv;
94
+ }
95
+
96
+ function digitoVerificador_barra($numero) {
97
+ $resto2 = modulo_11($numero, 9, 1);
98
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 > 9)
99
+ {
100
+ $dv = 1;
101
+ } else {
102
+ $dv = 11 - $resto2;
103
+ }
104
+ return $dv;
105
+ }
106
+
107
+
108
+ // FUN��ES
109
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
110
+
111
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
112
+ if ($tipo == "geral") {
113
+ $numero = str_replace(",","",$numero);
114
+ while(strlen($numero)<$loop){
115
+ $numero = $insert . $numero;
116
+ }
117
+ }
118
+ if ($tipo == "valor") {
119
+ /*
120
+ retira as virgulas
121
+ formata o numero
122
+ preenche com zeros
123
+ */
124
+ $numero = str_replace(",","",$numero);
125
+ while(strlen($numero)<$loop){
126
+ $numero = $insert . $numero;
127
+ }
128
+ }
129
+ if ($tipo == "convenio") {
130
+ while(strlen($numero)<$loop){
131
+ $numero = $numero . $insert;
132
+ }
133
+ }
134
+ return $numero;
135
+ }
136
+
137
+
138
+ function fbarcode($valor){
139
+
140
+ $fino = 1 ;
141
+ $largo = 3 ;
142
+ $altura = 50 ;
143
+
144
+ $barcodes[0] = "00110" ;
145
+ $barcodes[1] = "10001" ;
146
+ $barcodes[2] = "01001" ;
147
+ $barcodes[3] = "11000" ;
148
+ $barcodes[4] = "00101" ;
149
+ $barcodes[5] = "10100" ;
150
+ $barcodes[6] = "01100" ;
151
+ $barcodes[7] = "00011" ;
152
+ $barcodes[8] = "10010" ;
153
+ $barcodes[9] = "01010" ;
154
+ for($f1=9;$f1>=0;$f1--){
155
+ for($f2=9;$f2>=0;$f2--){
156
+ $f = ($f1 * 10) + $f2 ;
157
+ $texto = "" ;
158
+ for($i=1;$i<6;$i++){
159
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
160
+ }
161
+ $barcodes[$f] = $texto;
162
+ }
163
+ }
164
+
165
+
166
+ //Desenho da barra
167
+
168
+
169
+ //Guarda inicial
170
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
171
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
172
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
173
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
174
+ <?php
175
+ $texto = $valor ;
176
+ if((strlen($texto) % 2) <> 0){
177
+ $texto = "0" . $texto;
178
+ }
179
+
180
+ // Draw dos dados
181
+ while (strlen($texto) > 0) {
182
+ $i = round(esquerda($texto,2));
183
+ $texto = direita($texto,strlen($texto)-2);
184
+ $f = $barcodes[$i];
185
+ for($i=1;$i<11;$i+=2){
186
+ if (substr($f,($i-1),1) == "0") {
187
+ $f1 = $fino ;
188
+ }else{
189
+ $f1 = $largo ;
190
+ }
191
+ ?>
192
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
193
+ <?php
194
+ if (substr($f,$i,1) == "0") {
195
+ $f2 = $fino ;
196
+ }else{
197
+ $f2 = $largo ;
198
+ }
199
+ ?>
200
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
201
+ <?php
202
+ }
203
+ }
204
+
205
+ // Draw guarda final
206
+ ?>
207
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
208
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
209
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
210
+ <?php
211
+ } //Fim da fun��o
212
+
213
+ function esquerda($entra,$comp){
214
+ return substr($entra,0,$comp);
215
+ }
216
+
217
+ function direita($entra,$comp){
218
+ return substr($entra,strlen($entra)-$comp,$comp);
219
+ }
220
+
221
+ function fator_vencimento($data) {
222
+ $data = explode("/",$data);
223
+ $ano = $data[2];
224
+ $mes = $data[1];
225
+ $dia = $data[0];
226
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
227
+ }
228
+
229
+ function _dateToDays($year,$month,$day) {
230
+ $century = substr($year, 0, 2);
231
+ $year = substr($year, 2, 2);
232
+ if ($month > 2) {
233
+ $month -= 3;
234
+ } else {
235
+ $month += 9;
236
+ if ($year) {
237
+ $year--;
238
+ } else {
239
+ $year = 99;
240
+ $century --;
241
+ }
242
+ }
243
+ return ( floor(( 146097 * $century) / 4 ) +
244
+ floor(( 1461 * $year) / 4 ) +
245
+ floor(( 153 * $month + 2) / 5 ) +
246
+ $day + 1721119);
247
+ }
248
+
249
+ //D�GITOS VERIFICADORES DA CHAVE DE 25 POSI��ES - Digito V1
250
+ function m10dv1($num)
251
+ {
252
+ $soma = 0; $fator = 2;
253
+ for($i=0; $i<strlen($num); $i++)
254
+ {
255
+ $n = floor(substr($num, $i, 1)) * $fator;
256
+ if($n > 9) $n = $n - 9;
257
+ $soma = $soma + $n;
258
+ $fator = ($fator == 2) ? 1 : 2;
259
+ }
260
+
261
+ $digito = $soma % 10;
262
+
263
+ if($digito == 0) $digito = 0;
264
+ elseif($digito > 0) $digito = 10 - $digito;
265
+
266
+ return $digito;
267
+ }
268
+
269
+ //D�GITOS VERIFICADORES DA CHAVE DE 25 POSI��ES - Digito V2
270
+ function m10dv2($num, $ftini=7)
271
+ {
272
+ $fator = $ftini;
273
+ $base = 2; $soma = 0;
274
+ for($i=0; $i<strlen($num); $i++)
275
+ {
276
+ $n = floor(substr($num, $i, 1));
277
+ $soma = $soma + ($n * $fator);
278
+ $fator = ($fator == $base) ? $ftini : ($fator-1);
279
+ }
280
+
281
+ $resto = $soma % 11;
282
+
283
+ if($resto == 0)
284
+ {
285
+ $y = 0;
286
+ $y = $y + 2;
287
+ }
288
+ elseif($resto == 1)
289
+ {
290
+ $lnum = floor(substr($num, 23, 1));
291
+ $lnum = ($lnum >= 9) ? 0 : ($lnum+1);
292
+ $nnum = substr($num, 0, 23) . $lnum;
293
+
294
+ return m10dv2($nnum);
295
+ }
296
+ elseif($resto > 1)
297
+ {
298
+ $y = 11 - $resto;
299
+ $y = $y + 2;
300
+ }
301
+
302
+ if($y == 10) $y = 0;
303
+ else if($y == 11) $y = 1;
304
+
305
+ return $y;
306
+ }
307
+
308
+ function modulo_10($num) {
309
+ $numtotal10 = 0;
310
+ $fator = 2;
311
+
312
+ // Separacao dos numeros
313
+ for ($i = strlen($num); $i > 0; $i--) {
314
+ // pega cada numero isoladamente
315
+ $numeros[$i] = substr($num,$i-1,1);
316
+ // Efetua multiplicacao do numero pelo (falor 10)
317
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
318
+ $temp = $numeros[$i] * $fator;
319
+ $temp0=0;
320
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
321
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
322
+ // monta sequencia para soma dos digitos no (modulo 10)
323
+ $numtotal10 += $parcial10[$i];
324
+ if ($fator == 2) {
325
+ $fator = 1;
326
+ } else {
327
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
328
+ }
329
+ }
330
+
331
+ // v�rias linhas removidas, vide fun��o original
332
+ // Calculo do modulo 10
333
+ $resto = $numtotal10 % 10;
334
+ $digito = 10 - $resto;
335
+ if ($resto == 0) {
336
+ $digito = 0;
337
+ }
338
+
339
+ return $digito;
340
+
341
+ }
342
+
343
+ function modulo_10_geral($num,$ftini=2,$ftfim=9) {
344
+
345
+ $fator = $ftini;
346
+ $soma = 0;
347
+
348
+ for ($i = strlen($num); $i > 0; $i--) {
349
+
350
+ $p = substr($num,$i-1,1) * $fator;
351
+ $soma += $p;
352
+
353
+ if(++$fator > $ftfim) $fator = $ftini;
354
+ }
355
+
356
+ $digito = $soma % 11;
357
+ if( (11 - $digito) <= 1 || (11 - $digito) > 9) $digito = 1;
358
+ else $digito = 11 - $digito;
359
+
360
+ return $digito;
361
+
362
+ }
363
+
364
+
365
+ function modulo_11($num, $base=9, $r=0)
366
+ {
367
+ /**
368
+ * Autor:
369
+ * Pablo Costa <pablo@users.sourceforge.net>
370
+ *
371
+ * Fun��o:
372
+ * Calculo do Modulo 11 para geracao do digito verificador
373
+ * de boletos bancarios conforme documentos obtidos
374
+ * da Febraban - www.febraban.org.br
375
+ *
376
+ * Entrada:
377
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
378
+ * $base: valor maximo de multiplicacao [2-$base]
379
+ * $r: quando especificado um devolve somente o resto
380
+ *
381
+ * Sa�da:
382
+ * Retorna o Digito verificador.
383
+ *
384
+ * Observa��es:
385
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
386
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
387
+ */
388
+
389
+ $soma = 0;
390
+ $fator = 2;
391
+
392
+ /* Separacao dos numeros */
393
+ for ($i = strlen($num); $i > 0; $i--) {
394
+ // pega cada numero isoladamente
395
+ $numeros[$i] = substr($num,$i-1,1);
396
+ // Efetua multiplicacao do numero pelo falor
397
+ $parcial[$i] = $numeros[$i] * $fator;
398
+ // Soma dos digitos
399
+ $soma += $parcial[$i];
400
+ if ($fator == $base) {
401
+ // restaura fator de multiplicacao para 2
402
+ $fator = 1;
403
+ }
404
+ $fator++;
405
+ }
406
+
407
+ /* Calculo do modulo 11 */
408
+ if ($r == 0) {
409
+ $soma *= 10;
410
+ $digito = $soma % 11;
411
+ if ($digito == 10) {
412
+ $digito = 0;
413
+ }
414
+ return $digito;
415
+ } elseif ($r == 1){
416
+ $resto = $soma % 11;
417
+ return $resto;
418
+ }
419
+ }
420
+
421
+ function modulo_11_invertido($num) { // Calculo de Modulo 11 "Invertido" (com pesos de 9 a 2 e n�o de 2 a 9)
422
+ $ftini = 0;
423
+ $ftfim = 9;
424
+ $fator = $ftfim;
425
+ $soma = 0;
426
+
427
+ for ($i = strlen($num); $i > 0; $i--) {
428
+ $soma += substr($num,$i-1,1) * $fator;
429
+ if(--$fator < $ftini) $fator = $ftfim;
430
+ }
431
+
432
+ $digito = $soma % 11;
433
+ if($digito > 9) $digito = 0;
434
+
435
+ return $digito;
436
+ }
437
+
438
+ function monta_linha_digitavel($codigo) {
439
+ // Posi��o Conte�do
440
+ // 1 a 3 N�mero do banco
441
+ // 4 C�digo da Moeda - 9 para Real
442
+ // 5 Digito verificador do C�digo de Barras
443
+ // 6 a 9 Fator de Vencimento
444
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
445
+ // Campo Livre definido por cada banco (25 caracteres)
446
+ // 20 a 26 C�digo do Cedente
447
+ // 27 a 39 C�digo do Documento
448
+ // 40 a 43 Data de Vencimento em Juliano (mmmy)
449
+ // 44 C�digo do aplicativo CNR = 2
450
+
451
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
452
+ // do campo livre e DV (modulo10) deste campo
453
+ $campo1 = substr($codigo,0,4) . substr($codigo,19,5);
454
+ $campo1 = $campo1 . modulo_10($campo1);
455
+ $campo1 = substr($campo1,0,5) . '.' . substr($campo1,5,5);
456
+
457
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
458
+ // e livre e DV (modulo10) deste campo
459
+ $campo2 = substr($codigo,24,2) . substr($codigo,26,8);
460
+ $campo2 = $campo2 . modulo_10($campo2);
461
+ $campo2 = substr($campo2,0,5) . '.' . substr($campo2,5,6);
462
+
463
+
464
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
465
+ // e livre e DV (modulo10) deste campo
466
+ $campo3 = substr($codigo,34,5) . substr($codigo,39,4) . substr($codigo,43,1);
467
+ $campo3 = $campo3 . modulo_10($campo3);
468
+ $campo3 = substr($campo3,0,5) . '.' . substr($campo3,5,6);
469
+
470
+ // 4. Campo - digito verificador do codigo de barras
471
+ $campo4 = modulo_10_geral(substr($codigo, 0, 4).substr($codigo, 5, 49));
472
+
473
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
474
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
475
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
476
+ $campo5 = substr($codigo, 5, 4) . substr($codigo, 9, 10);
477
+
478
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
479
+ }
480
+
481
+ function geraCodigoBanco($numero) {
482
+ $parte1 = substr($numero, 0, 3);
483
+ $parte2 = modulo_11($parte1);
484
+ return $parte1 . "-" . $parte2;
485
+ }
486
+
487
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_bradesco.php ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Bradesco: Ramon Soares |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "237";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 6 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],6,0);
41
+ //dv da conta
42
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
43
+ //carteira � 2 caracteres
44
+ $carteira = $dadosboleto["carteira"];
45
+
46
+ //nosso n�mero (sem dv) � 11 digitos
47
+ $nnum = formata_numero($dadosboleto["carteira"],2,0).formata_numero($dadosboleto["nosso_numero"],11,0);
48
+ //dv do nosso n�mero
49
+ $dv_nosso_numero = digitoVerificador_nossonumero($nnum);
50
+
51
+ //conta cedente (sem dv) � 7 digitos
52
+ $conta_cedente = formata_numero($dadosboleto["conta_cedente"],7,0);
53
+ //dv da conta cedente
54
+ $conta_cedente_dv = formata_numero($dadosboleto["conta_cedente_dv"],1,0);
55
+
56
+ //$ag_contacedente = $agencia . $conta_cedente;
57
+
58
+ // 43 numeros para o calculo do digito verificador do codigo de barras
59
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$agencia$nnum$conta_cedente".'0', 9, 0);
60
+ // Numero para o codigo de barras com 44 digitos
61
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$agencia$nnum$conta_cedente"."0";
62
+
63
+ $nossonumero = substr($nnum,0,2).'/'.substr($nnum,2).'-'.$dv_nosso_numero;
64
+ $agencia_codigo = $agencia."-".$dadosboleto["agencia_dv"]." / ". $conta_cedente ."-". $conta_cedente_dv;
65
+
66
+
67
+ $dadosboleto["codigo_barras"] = $linha;
68
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
69
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
70
+ $dadosboleto["nosso_numero"] = $nossonumero;
71
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
72
+
73
+ function digitoVerificador_nossonumero($numero) {
74
+ $resto2 = modulo_11($numero, 7, 1);
75
+ $digito = 11 - $resto2;
76
+ if ($digito == 10) {
77
+ $dv = "P";
78
+ } elseif($digito == 11) {
79
+ $dv = 0;
80
+ } else {
81
+ $dv = $digito;
82
+ }
83
+ return $dv;
84
+ }
85
+
86
+
87
+ function digitoVerificador_barra($numero) {
88
+ $resto2 = modulo_11($numero, 9, 1);
89
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
90
+ $dv = 1;
91
+ } else {
92
+ $dv = 11 - $resto2;
93
+ }
94
+ return $dv;
95
+ }
96
+
97
+
98
+ // FUN��ES
99
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
100
+
101
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
102
+ if ($tipo == "geral") {
103
+ $numero = str_replace(",","",$numero);
104
+ while(strlen($numero)<$loop){
105
+ $numero = $insert . $numero;
106
+ }
107
+ }
108
+ if ($tipo == "valor") {
109
+ /*
110
+ retira as virgulas
111
+ formata o numero
112
+ preenche com zeros
113
+ */
114
+ $numero = str_replace(",","",$numero);
115
+ while(strlen($numero)<$loop){
116
+ $numero = $insert . $numero;
117
+ }
118
+ }
119
+ if ($tipo = "convenio") {
120
+ while(strlen($numero)<$loop){
121
+ $numero = $numero . $insert;
122
+ }
123
+ }
124
+ return $numero;
125
+ }
126
+
127
+
128
+ function fbarcode($valor, $dir = ""){
129
+
130
+ $fino = 1 ;
131
+ $largo = 3 ;
132
+ $altura = 50 ;
133
+
134
+ $barcodes[0] = "00110" ;
135
+ $barcodes[1] = "10001" ;
136
+ $barcodes[2] = "01001" ;
137
+ $barcodes[3] = "11000" ;
138
+ $barcodes[4] = "00101" ;
139
+ $barcodes[5] = "10100" ;
140
+ $barcodes[6] = "01100" ;
141
+ $barcodes[7] = "00011" ;
142
+ $barcodes[8] = "10010" ;
143
+ $barcodes[9] = "01010" ;
144
+ for($f1=9;$f1>=0;$f1--){
145
+ for($f2=9;$f2>=0;$f2--){
146
+ $f = ($f1 * 10) + $f2 ;
147
+ $texto = "" ;
148
+ for($i=1;$i<6;$i++){
149
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
150
+ }
151
+ $barcodes[$f] = $texto;
152
+ }
153
+ }
154
+
155
+
156
+ //Desenho da barra
157
+
158
+
159
+ //Guarda inicial
160
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
161
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
162
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
163
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
164
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
165
+ <?php
166
+ $texto = $valor ;
167
+ if((strlen($texto) % 2) <> 0){
168
+ $texto = "0" . $texto;
169
+ }
170
+
171
+ // Draw dos dados
172
+ while (strlen($texto) > 0) {
173
+ $i = round(esquerda($texto,2));
174
+ $texto = direita($texto,strlen($texto)-2);
175
+ $f = $barcodes[$i];
176
+ for($i=1;$i<11;$i+=2){
177
+ if (substr($f,($i-1),1) == "0") {
178
+ $f1 = $fino ;
179
+ }else{
180
+ $f1 = $largo ;
181
+ }
182
+ ?>
183
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
184
+ <?php
185
+ if (substr($f,$i,1) == "0") {
186
+ $f2 = $fino ;
187
+ }else{
188
+ $f2 = $largo ;
189
+ }
190
+ ?>
191
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
192
+ <?php
193
+ }
194
+ }
195
+
196
+ // Draw guarda final
197
+ ?>
198
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
199
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
200
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
201
+ <?php
202
+ } //Fim da fun��o
203
+
204
+ function esquerda($entra,$comp){
205
+ return substr($entra,0,$comp);
206
+ }
207
+
208
+ function direita($entra,$comp){
209
+ return substr($entra,strlen($entra)-$comp,$comp);
210
+ }
211
+
212
+ function fator_vencimento($data) {
213
+ $data = explode("/",$data);
214
+ $ano = $data[2];
215
+ $mes = $data[1];
216
+ $dia = $data[0];
217
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
218
+ }
219
+
220
+ function _dateToDays($year,$month,$day) {
221
+ $century = substr($year, 0, 2);
222
+ $year = substr($year, 2, 2);
223
+ if ($month > 2) {
224
+ $month -= 3;
225
+ } else {
226
+ $month += 9;
227
+ if ($year) {
228
+ $year--;
229
+ } else {
230
+ $year = 99;
231
+ $century --;
232
+ }
233
+ }
234
+ return ( floor(( 146097 * $century) / 4 ) +
235
+ floor(( 1461 * $year) / 4 ) +
236
+ floor(( 153 * $month + 2) / 5 ) +
237
+ $day + 1721119);
238
+ }
239
+
240
+ function modulo_10($num) {
241
+ $numtotal10 = 0;
242
+ $fator = 2;
243
+
244
+ // Separacao dos numeros
245
+ for ($i = strlen($num); $i > 0; $i--) {
246
+ // pega cada numero isoladamente
247
+ $numeros[$i] = substr($num,$i-1,1);
248
+ // Efetua multiplicacao do numero pelo (falor 10)
249
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
250
+ $temp = $numeros[$i] * $fator;
251
+ $temp0=0;
252
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
253
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
254
+ // monta sequencia para soma dos digitos no (modulo 10)
255
+ $numtotal10 += $parcial10[$i];
256
+ if ($fator == 2) {
257
+ $fator = 1;
258
+ } else {
259
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
260
+ }
261
+ }
262
+
263
+ // v�rias linhas removidas, vide fun��o original
264
+ // Calculo do modulo 10
265
+ $resto = $numtotal10 % 10;
266
+ $digito = 10 - $resto;
267
+ if ($resto == 0) {
268
+ $digito = 0;
269
+ }
270
+
271
+ return $digito;
272
+
273
+ }
274
+
275
+ function modulo_11($num, $base=9, $r=0) {
276
+ /**
277
+ * Autor:
278
+ * Pablo Costa <pablo@users.sourceforge.net>
279
+ *
280
+ * Fun��o:
281
+ * Calculo do Modulo 11 para geracao do digito verificador
282
+ * de boletos bancarios conforme documentos obtidos
283
+ * da Febraban - www.febraban.org.br
284
+ *
285
+ * Entrada:
286
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
287
+ * $base: valor maximo de multiplicacao [2-$base]
288
+ * $r: quando especificado um devolve somente o resto
289
+ *
290
+ * Sa�da:
291
+ * Retorna o Digito verificador.
292
+ *
293
+ * Observa��es:
294
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
295
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
296
+ */
297
+
298
+ $soma = 0;
299
+ $fator = 2;
300
+
301
+ /* Separacao dos numeros */
302
+ for ($i = strlen($num); $i > 0; $i--) {
303
+ // pega cada numero isoladamente
304
+ $numeros[$i] = substr($num,$i-1,1);
305
+ // Efetua multiplicacao do numero pelo falor
306
+ $parcial[$i] = $numeros[$i] * $fator;
307
+ // Soma dos digitos
308
+ $soma += $parcial[$i];
309
+ if ($fator == $base) {
310
+ // restaura fator de multiplicacao para 2
311
+ $fator = 1;
312
+ }
313
+ $fator++;
314
+ }
315
+
316
+ /* Calculo do modulo 11 */
317
+ if ($r == 0) {
318
+ $soma *= 10;
319
+ $digito = $soma % 11;
320
+ if ($digito == 10) {
321
+ $digito = 0;
322
+ }
323
+ return $digito;
324
+ } elseif ($r == 1){
325
+ $resto = $soma % 11;
326
+ return $resto;
327
+ }
328
+ }
329
+
330
+ function monta_linha_digitavel($codigo) {
331
+
332
+ // 01-03 -> C�digo do banco sem o digito
333
+ // 04-04 -> C�digo da Moeda (9-Real)
334
+ // 05-05 -> D�gito verificador do c�digo de barras
335
+ // 06-09 -> Fator de vencimento
336
+ // 10-19 -> Valor Nominal do T�tulo
337
+ // 20-44 -> Campo Livre (Abaixo)
338
+
339
+ // 20-23 -> C�digo da Agencia (sem d�gito)
340
+ // 24-05 -> N�mero da Carteira
341
+ // 26-36 -> Nosso N�mero (sem d�gito)
342
+ // 37-43 -> Conta do Cedente (sem d�gito)
343
+ // 44-44 -> Zero (Fixo)
344
+
345
+
346
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
347
+ // do campo livre e DV (modulo10) deste campo
348
+
349
+ $p1 = substr($codigo, 0, 4); // Numero do banco + Carteira
350
+ $p2 = substr($codigo, 19, 5); // 5 primeiras posi��es do campo livre
351
+ $p3 = modulo_10("$p1$p2"); // Digito do campo 1
352
+ $p4 = "$p1$p2$p3"; // Uni�o
353
+ $campo1 = substr($p4, 0, 5).'.'.substr($p4, 5);
354
+
355
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
356
+ // e livre e DV (modulo10) deste campo
357
+ $p1 = substr($codigo, 24, 10); //Posi��es de 6 a 15 do campo livre
358
+ $p2 = modulo_10($p1); //Digito do campo 2
359
+ $p3 = "$p1$p2";
360
+ $campo2 = substr($p3, 0, 5).'.'.substr($p3, 5);
361
+
362
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
363
+ // e livre e DV (modulo10) deste campo
364
+ $p1 = substr($codigo, 34, 10); //Posi��es de 16 a 25 do campo livre
365
+ $p2 = modulo_10($p1); //Digito do Campo 3
366
+ $p3 = "$p1$p2";
367
+ $campo3 = substr($p3, 0, 5).'.'.substr($p3, 5);
368
+
369
+ // 4. Campo - digito verificador do codigo de barras
370
+ $campo4 = substr($codigo, 4, 1);
371
+
372
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
373
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
374
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
375
+ $p1 = substr($codigo, 5, 4);
376
+ $p2 = substr($codigo, 9, 10);
377
+ $campo5 = "$p1$p2";
378
+
379
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
380
+ }
381
+
382
+ function geraCodigoBanco($numero) {
383
+ $parte1 = substr($numero, 0, 3);
384
+ $parte2 = modulo_11($parte1);
385
+ return $parte1 . "-" . $parte2;
386
+ }
387
+
388
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef.php ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF: Elizeu Alcantara |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "104";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 5 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],5,0);
41
+ //dv da conta
42
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
43
+ //carteira � 2 caracteres
44
+ $carteira = $dadosboleto["carteira"];
45
+
46
+ //nosso n�mero (sem dv) � 10 digitos
47
+ $nnum = $dadosboleto["inicio_nosso_numero"] . formata_numero($dadosboleto["nosso_numero"],8,0);
48
+ //dv do nosso n�mero
49
+ $dv_nosso_numero = digitoVerificador_nossonumero($nnum);
50
+ $nossonumero_dv ="$nnum$dv_nosso_numero";
51
+
52
+ //conta cedente (sem dv) � 11 digitos
53
+ $conta_cedente = formata_numero($dadosboleto["conta_cedente"],11,0);
54
+ //dv da conta cedente
55
+ $conta_cedente_dv = formata_numero($dadosboleto["conta_cedente_dv"],1,0);
56
+
57
+ $ag_contacedente = $agencia . $conta_cedente;
58
+
59
+ // 43 numeros para o calculo do digito verificador do codigo de barras
60
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$nnum$ag_contacedente", 9, 0);
61
+ // Numero para o codigo de barras com 44 digitos
62
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$nnum$ag_contacedente";
63
+
64
+ $nossonumero = substr($nossonumero_dv,0,10).'-'.substr($nossonumero_dv,10,1);
65
+ $agencia_codigo = $agencia." / ". $conta_cedente ."-". $conta_cedente_dv;
66
+
67
+
68
+ $dadosboleto["codigo_barras"] = $linha;
69
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
70
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
71
+ $dadosboleto["nosso_numero"] = $nossonumero;
72
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
73
+
74
+ function digitoVerificador_nossonumero($numero) {
75
+ $resto2 = modulo_11($numero, 9, 1);
76
+ $digito = 11 - $resto2;
77
+ if ($digito == 10 || $digito == 11) {
78
+ $dv = 0;
79
+ } else {
80
+ $dv = $digito;
81
+ }
82
+ return $dv;
83
+ }
84
+
85
+
86
+ function digitoVerificador_barra($numero) {
87
+ $resto2 = modulo_11($numero, 9, 1);
88
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
89
+ $dv = 1;
90
+ } else {
91
+ $dv = 11 - $resto2;
92
+ }
93
+ return $dv;
94
+ }
95
+
96
+
97
+ // FUN��ES
98
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
99
+
100
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
101
+ if ($tipo == "geral") {
102
+ $numero = str_replace(",","",$numero);
103
+ while(strlen($numero)<$loop){
104
+ $numero = $insert . $numero;
105
+ }
106
+ }
107
+ if ($tipo == "valor") {
108
+ /*
109
+ retira as virgulas
110
+ formata o numero
111
+ preenche com zeros
112
+ */
113
+ $numero = str_replace(",","",$numero);
114
+ while(strlen($numero)<$loop){
115
+ $numero = $insert . $numero;
116
+ }
117
+ }
118
+ if ($tipo == "convenio") {
119
+ while(strlen($numero)<$loop){
120
+ $numero = $numero . $insert;
121
+ }
122
+ }
123
+ return $numero;
124
+ }
125
+
126
+
127
+ function fbarcode($valor, $dir = "") {
128
+
129
+ $fino = 1 ;
130
+ $largo = 3 ;
131
+ $altura = 50 ;
132
+
133
+ $barcodes[0] = "00110" ;
134
+ $barcodes[1] = "10001" ;
135
+ $barcodes[2] = "01001" ;
136
+ $barcodes[3] = "11000" ;
137
+ $barcodes[4] = "00101" ;
138
+ $barcodes[5] = "10100" ;
139
+ $barcodes[6] = "01100" ;
140
+ $barcodes[7] = "00011" ;
141
+ $barcodes[8] = "10010" ;
142
+ $barcodes[9] = "01010" ;
143
+ for($f1=9;$f1>=0;$f1--){
144
+ for($f2=9;$f2>=0;$f2--){
145
+ $f = ($f1 * 10) + $f2 ;
146
+ $texto = "" ;
147
+ for($i=1;$i<6;$i++){
148
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
149
+ }
150
+ $barcodes[$f] = $texto;
151
+ }
152
+ }
153
+
154
+
155
+ //Desenho da barra
156
+
157
+
158
+ //Guarda inicial
159
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
160
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
161
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
162
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
163
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
164
+ <?php
165
+ $texto = $valor ;
166
+ if((strlen($texto) % 2) <> 0){
167
+ $texto = "0" . $texto;
168
+ }
169
+
170
+ // Draw dos dados
171
+ while (strlen($texto) > 0) {
172
+ $i = round(esquerda($texto,2));
173
+ $texto = direita($texto,strlen($texto)-2);
174
+ $f = $barcodes[$i];
175
+ for($i=1;$i<11;$i+=2){
176
+ if (substr($f,($i-1),1) == "0") {
177
+ $f1 = $fino ;
178
+ }else{
179
+ $f1 = $largo ;
180
+ }
181
+ ?>
182
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
183
+ <?php
184
+ if (substr($f,$i,1) == "0") {
185
+ $f2 = $fino ;
186
+ }else{
187
+ $f2 = $largo ;
188
+ }
189
+ ?>
190
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
191
+ <?php
192
+ }
193
+ }
194
+
195
+ // Draw guarda final
196
+ ?>
197
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
198
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
199
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
200
+ <?php
201
+ } //Fim da fun��o
202
+
203
+ function esquerda($entra,$comp){
204
+ return substr($entra,0,$comp);
205
+ }
206
+
207
+ function direita($entra,$comp){
208
+ return substr($entra,strlen($entra)-$comp,$comp);
209
+ }
210
+
211
+ function fator_vencimento($data) {
212
+ $data = explode("/",$data);
213
+ $ano = $data[2];
214
+ $mes = $data[1];
215
+ $dia = $data[0];
216
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
217
+ }
218
+
219
+ function _dateToDays($year,$month,$day) {
220
+ $century = substr($year, 0, 2);
221
+ $year = substr($year, 2, 2);
222
+ if ($month > 2) {
223
+ $month -= 3;
224
+ } else {
225
+ $month += 9;
226
+ if ($year) {
227
+ $year--;
228
+ } else {
229
+ $year = 99;
230
+ $century --;
231
+ }
232
+ }
233
+ return ( floor(( 146097 * $century) / 4 ) +
234
+ floor(( 1461 * $year) / 4 ) +
235
+ floor(( 153 * $month + 2) / 5 ) +
236
+ $day + 1721119);
237
+ }
238
+
239
+ function modulo_10($num) {
240
+ $numtotal10 = 0;
241
+ $fator = 2;
242
+
243
+ // Separacao dos numeros
244
+ for ($i = strlen($num); $i > 0; $i--) {
245
+ // pega cada numero isoladamente
246
+ $numeros[$i] = substr($num,$i-1,1);
247
+ // Efetua multiplicacao do numero pelo (falor 10)
248
+ $temp = $numeros[$i] * $fator;
249
+ $temp0=0;
250
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
251
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
252
+ // monta sequencia para soma dos digitos no (modulo 10)
253
+ $numtotal10 += $parcial10[$i];
254
+ if ($fator == 2) {
255
+ $fator = 1;
256
+ } else {
257
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
258
+ }
259
+ }
260
+
261
+ // v�rias linhas removidas, vide fun��o original
262
+ // Calculo do modulo 10
263
+ $resto = $numtotal10 % 10;
264
+ $digito = 10 - $resto;
265
+ if ($resto == 0) {
266
+ $digito = 0;
267
+ }
268
+
269
+ return $digito;
270
+
271
+ }
272
+
273
+ function modulo_11($num, $base=9, $r=0) {
274
+ /**
275
+ * Autor:
276
+ * Pablo Costa <pablo@users.sourceforge.net>
277
+ *
278
+ * Fun��o:
279
+ * Calculo do Modulo 11 para geracao do digito verificador
280
+ * de boletos bancarios conforme documentos obtidos
281
+ * da Febraban - www.febraban.org.br
282
+ *
283
+ * Entrada:
284
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
285
+ * $base: valor maximo de multiplicacao [2-$base]
286
+ * $r: quando especificado um devolve somente o resto
287
+ *
288
+ * Sa�da:
289
+ * Retorna o Digito verificador.
290
+ *
291
+ * Observa��es:
292
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
293
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
294
+ */
295
+
296
+ $soma = 0;
297
+ $fator = 2;
298
+
299
+ /* Separacao dos numeros */
300
+ for ($i = strlen($num); $i > 0; $i--) {
301
+ // pega cada numero isoladamente
302
+ $numeros[$i] = substr($num,$i-1,1);
303
+ // Efetua multiplicacao do numero pelo falor
304
+ $parcial[$i] = $numeros[$i] * $fator;
305
+ // Soma dos digitos
306
+ $soma += $parcial[$i];
307
+ if ($fator == $base) {
308
+ // restaura fator de multiplicacao para 2
309
+ $fator = 1;
310
+ }
311
+ $fator++;
312
+ }
313
+
314
+ /* Calculo do modulo 11 */
315
+ if ($r == 0) {
316
+ $soma *= 10;
317
+ $digito = $soma % 11;
318
+ if ($digito == 10) {
319
+ $digito = 0;
320
+ }
321
+ return $digito;
322
+ } elseif ($r == 1){
323
+ $resto = $soma % 11;
324
+ return $resto;
325
+ }
326
+ }
327
+
328
+ function monta_linha_digitavel($codigo) {
329
+
330
+ // Posi��o Conte�do
331
+ // 1 a 3 N�mero do banco
332
+ // 4 C�digo da Moeda - 9 para Real
333
+ // 5 Digito verificador do C�digo de Barras
334
+ // 6 a 9 Fator de Vencimento
335
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
336
+ // 20 a 44 Campo Livre definido por cada banco (25 caracteres)
337
+
338
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
339
+ // do campo livre e DV (modulo10) deste campo
340
+ $p1 = substr($codigo, 0, 4);
341
+ $p2 = substr($codigo, 19, 5);
342
+ $p3 = modulo_10("$p1$p2");
343
+ $p4 = "$p1$p2$p3";
344
+ $p5 = substr($p4, 0, 5);
345
+ $p6 = substr($p4, 5);
346
+ $campo1 = "$p5.$p6";
347
+
348
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
349
+ // e livre e DV (modulo10) deste campo
350
+ $p1 = substr($codigo, 24, 10);
351
+ $p2 = modulo_10($p1);
352
+ $p3 = "$p1$p2";
353
+ $p4 = substr($p3, 0, 5);
354
+ $p5 = substr($p3, 5);
355
+ $campo2 = "$p4.$p5";
356
+
357
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
358
+ // e livre e DV (modulo10) deste campo
359
+ $p1 = substr($codigo, 34, 10);
360
+ $p2 = modulo_10($p1);
361
+ $p3 = "$p1$p2";
362
+ $p4 = substr($p3, 0, 5);
363
+ $p5 = substr($p3, 5);
364
+ $campo3 = "$p4.$p5";
365
+
366
+ // 4. Campo - digito verificador do codigo de barras
367
+ $campo4 = substr($codigo, 4, 1);
368
+
369
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
370
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
371
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
372
+ $p1 = substr($codigo, 5, 4);
373
+ $p2 = substr($codigo, 9, 10);
374
+ $campo5 = "$p1$p2";
375
+
376
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
377
+ }
378
+
379
+ function geraCodigoBanco($numero) {
380
+ $parte1 = substr($numero, 0, 3);
381
+ $parte2 = modulo_11($parte1);
382
+ return $parte1 . "-" . $parte2;
383
+ }
384
+
385
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef_sigcb.php ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF SIGCB: Davi Nunes Camargo |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "104";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 5 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],5,0);
41
+ //dv da conta
42
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
43
+ //carteira � 2 caracteres
44
+ $carteira = $dadosboleto["carteira"];
45
+
46
+ //conta cedente (sem dv)
47
+ $conta_cedente = formata_numero($dadosboleto["conta_cedente"],6,0);
48
+ //dv da conta cedente
49
+ $conta_cedente_dv = digitoVerificador_cedente($conta_cedente);
50
+
51
+ $nnum = $conta_cedente . $conta_cedente_dv . formata_numero($dadosboleto["nosso_numero1"],3,0) . formata_numero($dadosboleto["nosso_numero_const1"],1,0) . formata_numero($dadosboleto["nosso_numero2"],3,0) . formata_numero($dadosboleto["nosso_numero_const2"],1,0) . formata_numero($dadosboleto["nosso_numero3"],9,0);
52
+ $dv_nosso_numero = digitoVerificador_nossonumero($nnum);
53
+ $nossonumero_dv ="$nnum$dv_nosso_numero";
54
+
55
+ // 43 numeros para o calculo do digito verificador do codigo de barras
56
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$nossonumero_dv", 9, 0);
57
+ // Numero para o codigo de barras com 44 digitos
58
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$nossonumero_dv";
59
+
60
+ $nnum2 = formata_numero($dadosboleto["nosso_numero_const1"],1,0).formata_numero($dadosboleto["nosso_numero_const2"],1,0).formata_numero($dadosboleto["nosso_numero1"],3,0).formata_numero($dadosboleto["nosso_numero2"],3,0).formata_numero($dadosboleto["nosso_numero3"],9,0);
61
+ $nossonumero = $nnum2 . digitoVerificador_nossonumero($nnum2);
62
+
63
+ $agencia_codigo = $agencia." / ". $conta_cedente ."-". $conta_cedente_dv;
64
+
65
+
66
+ $dadosboleto["codigo_barras"] = $linha;
67
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
68
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
69
+ $dadosboleto["nosso_numero"] = $nossonumero;
70
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
71
+
72
+ function digitoVerificador_nossonumero($numero) {
73
+ $resto2 = modulo_11($numero, 9, 1);
74
+ $digito = 11 - $resto2;
75
+ if ($digito == 10 || $digito == 11) {
76
+ $dv = 0;
77
+ } else {
78
+ $dv = $digito;
79
+ }
80
+ return $dv;
81
+ }
82
+
83
+
84
+ function digitoVerificador_cedente($numero) {
85
+ $digito = modulo_11($numero, 9, 0);
86
+ if ($digito == 10 || $digito == 11) $digito = 0;
87
+ $dv = $digito;
88
+ return $dv;
89
+ }
90
+
91
+ function digitoVerificador_barra($numero) {
92
+ $resto2 = modulo_11($numero, 9, 1);
93
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
94
+ $dv = 1;
95
+ } else {
96
+ $dv = 11 - $resto2;
97
+ }
98
+ return $dv;
99
+ }
100
+
101
+
102
+ // FUN��ES
103
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
104
+
105
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
106
+ if ($tipo == "geral") {
107
+ $numero = str_replace(",","",$numero);
108
+ while(strlen($numero)<$loop){
109
+ $numero = $insert . $numero;
110
+ }
111
+ }
112
+ if ($tipo == "valor") {
113
+ /*
114
+ retira as virgulas
115
+ formata o numero
116
+ preenche com zeros
117
+ */
118
+ $numero = str_replace(",","",$numero);
119
+ while(strlen($numero)<$loop){
120
+ $numero = $insert . $numero;
121
+ }
122
+ }
123
+ if ($tipo == "convenio") {
124
+ while(strlen($numero)<$loop){
125
+ $numero = $numero . $insert;
126
+ }
127
+ }
128
+ return $numero;
129
+ }
130
+
131
+
132
+ function fbarcode($valor){
133
+
134
+ $fino = 1 ;
135
+ $largo = 3 ;
136
+ $altura = 50 ;
137
+
138
+ $barcodes[0] = "00110" ;
139
+ $barcodes[1] = "10001" ;
140
+ $barcodes[2] = "01001" ;
141
+ $barcodes[3] = "11000" ;
142
+ $barcodes[4] = "00101" ;
143
+ $barcodes[5] = "10100" ;
144
+ $barcodes[6] = "01100" ;
145
+ $barcodes[7] = "00011" ;
146
+ $barcodes[8] = "10010" ;
147
+ $barcodes[9] = "01010" ;
148
+ for($f1=9;$f1>=0;$f1--){
149
+ for($f2=9;$f2>=0;$f2--){
150
+ $f = ($f1 * 10) + $f2 ;
151
+ $texto = "" ;
152
+ for($i=1;$i<6;$i++){
153
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
154
+ }
155
+ $barcodes[$f] = $texto;
156
+ }
157
+ }
158
+
159
+
160
+ //Desenho da barra
161
+
162
+
163
+ //Guarda inicial
164
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
165
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
166
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
167
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
168
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
169
+ <?php
170
+ $texto = $valor ;
171
+ if((strlen($texto) % 2) <> 0){
172
+ $texto = "0" . $texto;
173
+ }
174
+
175
+ // Draw dos dados
176
+ while (strlen($texto) > 0) {
177
+ $i = round(esquerda($texto,2));
178
+ $texto = direita($texto,strlen($texto)-2);
179
+ $f = $barcodes[$i];
180
+ for($i=1;$i<11;$i+=2){
181
+ if (substr($f,($i-1),1) == "0") {
182
+ $f1 = $fino ;
183
+ }else{
184
+ $f1 = $largo ;
185
+ }
186
+ ?>
187
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
188
+ <?php
189
+ if (substr($f,$i,1) == "0") {
190
+ $f2 = $fino ;
191
+ }else{
192
+ $f2 = $largo ;
193
+ }
194
+ ?>
195
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
196
+ <?php
197
+ }
198
+ }
199
+
200
+ // Draw guarda final
201
+ ?>
202
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
203
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
204
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
205
+ <?php
206
+ } //Fim da fun��o
207
+
208
+ function esquerda($entra,$comp){
209
+ return substr($entra,0,$comp);
210
+ }
211
+
212
+ function direita($entra,$comp){
213
+ return substr($entra,strlen($entra)-$comp,$comp);
214
+ }
215
+
216
+ function fator_vencimento($data) {
217
+ $data = explode("/",$data);
218
+ $ano = $data[2];
219
+ $mes = $data[1];
220
+ $dia = $data[0];
221
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
222
+ }
223
+
224
+ function _dateToDays($year,$month,$day) {
225
+ $century = substr($year, 0, 2);
226
+ $year = substr($year, 2, 2);
227
+ if ($month > 2) {
228
+ $month -= 3;
229
+ } else {
230
+ $month += 9;
231
+ if ($year) {
232
+ $year--;
233
+ } else {
234
+ $year = 99;
235
+ $century --;
236
+ }
237
+ }
238
+ return ( floor(( 146097 * $century) / 4 ) +
239
+ floor(( 1461 * $year) / 4 ) +
240
+ floor(( 153 * $month + 2) / 5 ) +
241
+ $day + 1721119);
242
+ }
243
+
244
+ function modulo_10($num) {
245
+ $numtotal10 = 0;
246
+ $fator = 2;
247
+
248
+ // Separacao dos numeros
249
+ for ($i = strlen($num); $i > 0; $i--) {
250
+ // pega cada numero isoladamente
251
+ $numeros[$i] = substr($num,$i-1,1);
252
+ // Efetua multiplicacao do numero pelo (falor 10)
253
+ $temp = $numeros[$i] * $fator;
254
+ $temp0=0;
255
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
256
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
257
+ // monta sequencia para soma dos digitos no (modulo 10)
258
+ $numtotal10 += $parcial10[$i];
259
+ if ($fator == 2) {
260
+ $fator = 1;
261
+ } else {
262
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
263
+ }
264
+ }
265
+
266
+ // v�rias linhas removidas, vide fun��o original
267
+ // Calculo do modulo 10
268
+ $resto = $numtotal10 % 10;
269
+ $digito = 10 - $resto;
270
+ if ($resto == 0) {
271
+ $digito = 0;
272
+ }
273
+
274
+ return $digito;
275
+
276
+ }
277
+
278
+ function modulo_11($num, $base=9, $r=0) {
279
+ /**
280
+ * Autor:
281
+ * Pablo Costa <pablo@users.sourceforge.net>
282
+ *
283
+ * Fun��o:
284
+ * Calculo do Modulo 11 para geracao do digito verificador
285
+ * de boletos bancarios conforme documentos obtidos
286
+ * da Febraban - www.febraban.org.br
287
+ *
288
+ * Entrada:
289
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
290
+ * $base: valor maximo de multiplicacao [2-$base]
291
+ * $r: quando especificado um devolve somente o resto
292
+ *
293
+ * Sa�da:
294
+ * Retorna o Digito verificador.
295
+ *
296
+ * Observa��es:
297
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
298
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
299
+ */
300
+
301
+ $soma = 0;
302
+ $fator = 2;
303
+
304
+ /* Separacao dos numeros */
305
+ for ($i = strlen($num); $i > 0; $i--) {
306
+ // pega cada numero isoladamente
307
+ $numeros[$i] = substr($num,$i-1,1);
308
+ // Efetua multiplicacao do numero pelo falor
309
+ $parcial[$i] = $numeros[$i] * $fator;
310
+ // Soma dos digitos
311
+ $soma += $parcial[$i];
312
+ if ($fator == $base) {
313
+ // restaura fator de multiplicacao para 2
314
+ $fator = 1;
315
+ }
316
+ $fator++;
317
+ }
318
+
319
+ /* Calculo do modulo 11 */
320
+ if ($r == 0) {
321
+ $soma *= 10;
322
+ $digito = $soma % 11;
323
+ if ($digito == 10) {
324
+ $digito = 0;
325
+ }
326
+ return $digito;
327
+ } elseif ($r == 1){
328
+ $resto = $soma % 11;
329
+ return $resto;
330
+ }
331
+ }
332
+
333
+ function monta_linha_digitavel($codigo) {
334
+
335
+ // Posi��o Conte�do
336
+ // 1 a 3 N�mero do banco
337
+ // 4 C�digo da Moeda - 9 para Real
338
+ // 5 Digito verificador do C�digo de Barras
339
+ // 6 a 9 Fator de Vencimento
340
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
341
+ // 20 a 44 Campo Livre definido por cada banco (25 caracteres)
342
+
343
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
344
+ // do campo livre e DV (modulo10) deste campo
345
+ $p1 = substr($codigo, 0, 4);
346
+ $p2 = substr($codigo, 19, 5);
347
+ $p3 = modulo_10("$p1$p2");
348
+ $p4 = "$p1$p2$p3";
349
+ $p5 = substr($p4, 0, 5);
350
+ $p6 = substr($p4, 5);
351
+ $campo1 = "$p5.$p6";
352
+
353
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
354
+ // e livre e DV (modulo10) deste campo
355
+ $p1 = substr($codigo, 24, 10);
356
+ $p2 = modulo_10($p1);
357
+ $p3 = "$p1$p2";
358
+ $p4 = substr($p3, 0, 5);
359
+ $p5 = substr($p3, 5);
360
+ $campo2 = "$p4.$p5";
361
+
362
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
363
+ // e livre e DV (modulo10) deste campo
364
+ $p1 = substr($codigo, 34, 10);
365
+ $p2 = modulo_10($p1);
366
+ $p3 = "$p1$p2";
367
+ $p4 = substr($p3, 0, 5);
368
+ $p5 = substr($p3, 5);
369
+ $campo3 = "$p4.$p5";
370
+
371
+ // 4. Campo - digito verificador do codigo de barras
372
+ $campo4 = substr($codigo, 4, 1);
373
+
374
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
375
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
376
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
377
+ $p1 = substr($codigo, 5, 4);
378
+ $p2 = substr($codigo, 9, 10);
379
+ $campo5 = "$p1$p2";
380
+
381
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
382
+ }
383
+
384
+ function geraCodigoBanco($numero) {
385
+ $parte1 = substr($numero, 0, 3);
386
+ $parte2 = modulo_11($parte1);
387
+ return $parte1 . "-" . $parte2;
388
+ }
389
+
390
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_cef_sinco.php ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF SINCO: Carlos Magno / Reinaldo Silva |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "104";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 5 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],5,0);
41
+ //dv da conta
42
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
43
+ //carteira � 2 caracteres
44
+ $carteira = $dadosboleto["carteira"];
45
+
46
+ //nosso n�mero (sem dv) � 17 digitos
47
+ $nnum = $dadosboleto["inicio_nosso_numero"] . formata_numero($dadosboleto["nosso_numero"],17,0);
48
+ //dv do nosso n�mero
49
+ $dv_nosso_numero = digitoVerificador_nossonumero($nnum);
50
+ $nossonumero_dv ="$nnum$dv_nosso_numero";
51
+
52
+ //conta cedente (sem dv) � 6 digitos
53
+ $conta_cedente = formata_numero($dadosboleto["conta_cedente"],6,0);
54
+ //dv da conta cedente
55
+ $conta_cedente_dv = formata_numero($dadosboleto["conta_cedente_dv"],1,0);
56
+
57
+ $ag_contacedente = $agencia . $conta_cedente;
58
+ $fixo = $dadosboleto["campo_fixo_obrigatorio"];
59
+ $campo_livre = "$fixo$conta_cedente$nnum";
60
+
61
+ // 43 numeros para o calculo do digito verificador do codigo de barras
62
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$campo_livre", 9, 0);
63
+ // Numero para o codigo de barras com 44 digitos
64
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$campo_livre";
65
+
66
+ $nossonumero = substr($nossonumero_dv,0,18).'-'.substr($nossonumero_dv,18,1);
67
+ $agencia_codigo = $agencia." / ". $conta_cedente ."-". $conta_cedente_dv;
68
+
69
+
70
+ $dadosboleto["codigo_barras"] = $linha;
71
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
72
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
73
+ $dadosboleto["nosso_numero"] = $nossonumero;
74
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
75
+
76
+ function digitoVerificador_nossonumero($numero) {
77
+ $resto2 = modulo_11($numero, 9, 1);
78
+ $digito = 11 - $resto2;
79
+ if ($digito == 10 || $digito == 11) {
80
+ $dv = 0;
81
+ } else {
82
+ $dv = $digito;
83
+ }
84
+ return $dv;
85
+ }
86
+
87
+
88
+ function digitoVerificador_barra($numero) {
89
+ $resto2 = modulo_11($numero, 9, 1);
90
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
91
+ $dv = 1;
92
+ } else {
93
+ $dv = 11 - $resto2;
94
+ }
95
+ return $dv;
96
+ }
97
+
98
+
99
+ // FUN��ES
100
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
101
+
102
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
103
+ if ($tipo == "geral") {
104
+ $numero = str_replace(",","",$numero);
105
+ while(strlen($numero)<$loop){
106
+ $numero = $insert . $numero;
107
+ }
108
+ }
109
+ if ($tipo == "valor") {
110
+ /*
111
+ retira as virgulas
112
+ formata o numero
113
+ preenche com zeros
114
+ */
115
+ $numero = str_replace(",","",$numero);
116
+ while(strlen($numero)<$loop){
117
+ $numero = $insert . $numero;
118
+ }
119
+ }
120
+ if ($tipo == "convenio") {
121
+ while(strlen($numero)<$loop){
122
+ $numero = $numero . $insert;
123
+ }
124
+ }
125
+ return $numero;
126
+ }
127
+
128
+
129
+ function fbarcode($valor, $dir = ""){
130
+
131
+ $fino = 1 ;
132
+ $largo = 3 ;
133
+ $altura = 50 ;
134
+
135
+ $barcodes[0] = "00110" ;
136
+ $barcodes[1] = "10001" ;
137
+ $barcodes[2] = "01001" ;
138
+ $barcodes[3] = "11000" ;
139
+ $barcodes[4] = "00101" ;
140
+ $barcodes[5] = "10100" ;
141
+ $barcodes[6] = "01100" ;
142
+ $barcodes[7] = "00011" ;
143
+ $barcodes[8] = "10010" ;
144
+ $barcodes[9] = "01010" ;
145
+ for($f1=9;$f1>=0;$f1--){
146
+ for($f2=9;$f2>=0;$f2--){
147
+ $f = ($f1 * 10) + $f2 ;
148
+ $texto = "" ;
149
+ for($i=1;$i<6;$i++){
150
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
151
+ }
152
+ $barcodes[$f] = $texto;
153
+ }
154
+ }
155
+
156
+
157
+ //Desenho da barra
158
+
159
+
160
+ //Guarda inicial
161
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
162
+ ?><img src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
163
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
164
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
165
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
166
+ <?php
167
+ $texto = $valor ;
168
+ if((strlen($texto) % 2) <> 0){
169
+ $texto = "0" . $texto;
170
+ }
171
+
172
+ // Draw dos dados
173
+ while (strlen($texto) > 0) {
174
+ $i = round(esquerda($texto,2));
175
+ $texto = direita($texto,strlen($texto)-2);
176
+ $f = $barcodes[$i];
177
+ for($i=1;$i<11;$i+=2){
178
+ if (substr($f,($i-1),1) == "0") {
179
+ $f1 = $fino ;
180
+ }else{
181
+ $f1 = $largo ;
182
+ }
183
+ ?>
184
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
185
+ <?php
186
+ if (substr($f,$i,1) == "0") {
187
+ $f2 = $fino ;
188
+ }else{
189
+ $f2 = $largo ;
190
+ }
191
+ ?>
192
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
193
+ <?php
194
+ }
195
+ }
196
+
197
+ // Draw guarda final
198
+ ?>
199
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
200
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
201
+ src=<?php echo $dir; ?><?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
202
+ <?php
203
+ } //Fim da fun��o
204
+
205
+ function esquerda($entra,$comp){
206
+ return substr($entra,0,$comp);
207
+ }
208
+
209
+ function direita($entra,$comp){
210
+ return substr($entra,strlen($entra)-$comp,$comp);
211
+ }
212
+
213
+ function fator_vencimento($data) {
214
+ $data = explode("/",$data);
215
+ $ano = $data[2];
216
+ $mes = $data[1];
217
+ $dia = $data[0];
218
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
219
+ }
220
+
221
+ function _dateToDays($year,$month,$day) {
222
+ $century = substr($year, 0, 2);
223
+ $year = substr($year, 2, 2);
224
+ if ($month > 2) {
225
+ $month -= 3;
226
+ } else {
227
+ $month += 9;
228
+ if ($year) {
229
+ $year--;
230
+ } else {
231
+ $year = 99;
232
+ $century --;
233
+ }
234
+ }
235
+ return ( floor(( 146097 * $century) / 4 ) +
236
+ floor(( 1461 * $year) / 4 ) +
237
+ floor(( 153 * $month + 2) / 5 ) +
238
+ $day + 1721119);
239
+ }
240
+
241
+ function modulo_10($num) {
242
+ $numtotal10 = 0;
243
+ $fator = 2;
244
+
245
+ // Separacao dos numeros
246
+ for ($i = strlen($num); $i > 0; $i--) {
247
+ // pega cada numero isoladamente
248
+ $numeros[$i] = substr($num,$i-1,1);
249
+ // Efetua multiplicacao do numero pelo (falor 10)
250
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
251
+ $temp = $numeros[$i] * $fator;
252
+ $temp0=0;
253
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
254
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
255
+ // monta sequencia para soma dos digitos no (modulo 10)
256
+ $numtotal10 += $parcial10[$i];
257
+ if ($fator == 2) {
258
+ $fator = 1;
259
+ } else {
260
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
261
+ }
262
+ }
263
+
264
+ // v�rias linhas removidas, vide fun��o original
265
+ // Calculo do modulo 10
266
+ $resto = $numtotal10 % 10;
267
+ $digito = 10 - $resto;
268
+ if ($resto == 0) {
269
+ $digito = 0;
270
+ }
271
+
272
+ return $digito;
273
+
274
+ }
275
+
276
+ function modulo_11($num, $base=9, $r=0) {
277
+ /**
278
+ * Autor:
279
+ * Pablo Costa <pablo@users.sourceforge.net>
280
+ *
281
+ * Fun��o:
282
+ * Calculo do Modulo 11 para geracao do digito verificador
283
+ * de boletos bancarios conforme documentos obtidos
284
+ * da Febraban - www.febraban.org.br
285
+ *
286
+ * Entrada:
287
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
288
+ * $base: valor maximo de multiplicacao [2-$base]
289
+ * $r: quando especificado um devolve somente o resto
290
+ *
291
+ * Sa�da:
292
+ * Retorna o Digito verificador.
293
+ *
294
+ * Observa��es:
295
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
296
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
297
+ */
298
+
299
+ $soma = 0;
300
+ $fator = 2;
301
+
302
+ /* Separacao dos numeros */
303
+ for ($i = strlen($num); $i > 0; $i--) {
304
+ // pega cada numero isoladamente
305
+ $numeros[$i] = substr($num,$i-1,1);
306
+ // Efetua multiplicacao do numero pelo falor
307
+ $parcial[$i] = $numeros[$i] * $fator;
308
+ // Soma dos digitos
309
+ $soma += $parcial[$i];
310
+ if ($fator == $base) {
311
+ // restaura fator de multiplicacao para 2
312
+ $fator = 1;
313
+ }
314
+ $fator++;
315
+ }
316
+
317
+ /* Calculo do modulo 11 */
318
+ if ($r == 0) {
319
+ $soma *= 10;
320
+ $digito = $soma % 11;
321
+ if ($digito == 10) {
322
+ $digito = 0;
323
+ }
324
+ return $digito;
325
+ } elseif ($r == 1){
326
+ $resto = $soma % 11;
327
+ return $resto;
328
+ }
329
+ }
330
+
331
+ function monta_linha_digitavel($codigo) {
332
+
333
+ // Posi��o Conte�do
334
+ // 1 a 3 N�mero do banco
335
+ // 4 C�digo da Moeda - 9 para Real
336
+ // 5 Digito verificador do C�digo de Barras
337
+ // 6 a 9 Fator de Vencimento
338
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
339
+ // 20 a 44 Campo Livre definido por cada banco (25 caracteres)
340
+
341
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
342
+ // do campo livre e DV (modulo10) deste campo
343
+ $p1 = substr($codigo, 0, 4);
344
+ $p2 = substr($codigo, 19, 5);
345
+ $p3 = modulo_10("$p1$p2");
346
+ $p4 = "$p1$p2$p3";
347
+ $p5 = substr($p4, 0, 5);
348
+ $p6 = substr($p4, 5);
349
+ $campo1 = "$p5.$p6";
350
+
351
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
352
+ // e livre e DV (modulo10) deste campo
353
+ $p1 = substr($codigo, 24, 10);
354
+ $p2 = modulo_10($p1);
355
+ $p3 = "$p1$p2";
356
+ $p4 = substr($p3, 0, 5);
357
+ $p5 = substr($p3, 5);
358
+ $campo2 = "$p4.$p5";
359
+
360
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
361
+ // e livre e DV (modulo10) deste campo
362
+ $p1 = substr($codigo, 34, 10);
363
+ $p2 = modulo_10($p1);
364
+ $p3 = "$p1$p2";
365
+ $p4 = substr($p3, 0, 5);
366
+ $p5 = substr($p3, 5);
367
+ $campo3 = "$p4.$p5";
368
+
369
+ // 4. Campo - digito verificador do codigo de barras
370
+ $campo4 = substr($codigo, 4, 1);
371
+
372
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
373
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
374
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
375
+ $p1 = substr($codigo, 5, 4);
376
+ $p2 = substr($codigo, 9, 10);
377
+ $campo5 = "$p1$p2";
378
+
379
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
380
+ }
381
+
382
+ function geraCodigoBanco($numero) {
383
+ $parte1 = substr($numero, 0, 3);
384
+ $parte2 = modulo_11($parte1);
385
+ return $parte1 . "-" . $parte2;
386
+ }
387
+
388
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_hsbc.php ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto HSBC: Bruno Leonardo M. F. Gon�alves |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "399";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //carteira � CNR
38
+ $carteira = $dadosboleto["carteira"];
39
+ //codigocedente deve possuir 7 caracteres
40
+ $codigocedente = formata_numero($dadosboleto["codigo_cedente"],7,0);
41
+
42
+ $ndoc = $dadosboleto["numero_documento"];
43
+ $vencimento = $dadosboleto["data_vencimento"];
44
+
45
+ // n�mero do documento (sem dvs) � 13 digitos
46
+ $nnum = formata_numero($dadosboleto["numero_documento"],13,0);
47
+ // nosso n�mero (com dvs) � 16 digitos
48
+ $nossonumero = geraNossoNumero($nnum,$codigocedente,$vencimento,'4');
49
+
50
+ $vencjuliano = dataJuliano($vencimento);
51
+ $app = "2";
52
+
53
+ // 43 numeros para o calculo do digito verificador do codigo de barras
54
+ $barra = "$codigobanco$nummoeda$fator_vencimento$valor$codigocedente$nnum$vencjuliano$app";
55
+ $dv = digitoVerificador_barra($barra, 9, 0);
56
+ // Numero para o codigo de barras com 44 digitos
57
+ $linha = substr($barra,0,4) . $dv . substr($barra,4);
58
+
59
+ $agencia_codigo = $codigocedente;
60
+
61
+ $dadosboleto["codigo_barras"] = $linha;
62
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
63
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
64
+ $dadosboleto["nosso_numero"] = $nossonumero;
65
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
66
+
67
+ function geraNossoNumero($ndoc,$cedente,$venc,$tipoid) {
68
+ $ndoc = $ndoc.modulo_11_invertido($ndoc).$tipoid;
69
+ $venc = substr($venc,0,2).substr($venc,3,2).substr($venc,8,2);
70
+ $res = $ndoc + $cedente + $venc;
71
+ return $ndoc . modulo_11_invertido($res);
72
+ }
73
+
74
+ function dataJuliano($data) {
75
+ $dia = (int)substr($data,0,2);
76
+ $mes = (int)substr($data,3,2);
77
+ $ano = (int)substr($data,6,4);
78
+ $dataf = strtotime("$ano/$mes/$dia");
79
+ $datai = strtotime(($ano-1).'/12/31');
80
+ $dias = (int)(($dataf - $datai)/(60*60*24));
81
+ return str_pad($dias,3,'0',STR_PAD_LEFT).substr($data,9,4);
82
+ }
83
+
84
+ function digitoVerificador_nossonumero($numero) {
85
+ $resto2 = modulo_11($numero, 9, 1);
86
+ $digito = 11 - $resto2;
87
+ if ($digito == 10 || $digito == 11) {
88
+ $dv = 0;
89
+ } else {
90
+ $dv = $digito;
91
+ }
92
+ return $dv;
93
+ }
94
+
95
+ function digitoVerificador_barra($numero) {
96
+ $resto2 = modulo_11($numero, 9, 1);
97
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
98
+ $dv = 1;
99
+ } else {
100
+ $dv = 11 - $resto2;
101
+ }
102
+ return $dv;
103
+ }
104
+
105
+
106
+ // FUN��ES
107
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
108
+
109
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
110
+ if ($tipo == "geral") {
111
+ $numero = str_replace(",","",$numero);
112
+ while(strlen($numero)<$loop){
113
+ $numero = $insert . $numero;
114
+ }
115
+ }
116
+ if ($tipo == "valor") {
117
+ /*
118
+ retira as virgulas
119
+ formata o numero
120
+ preenche com zeros
121
+ */
122
+ $numero = str_replace(",","",$numero);
123
+ while(strlen($numero)<$loop){
124
+ $numero = $insert . $numero;
125
+ }
126
+ }
127
+ if ($tipo == "convenio") {
128
+ while(strlen($numero)<$loop){
129
+ $numero = $numero . $insert;
130
+ }
131
+ }
132
+ return $numero;
133
+ }
134
+
135
+
136
+ function fbarcode($valor){
137
+
138
+ $fino = 1 ;
139
+ $largo = 3 ;
140
+ $altura = 50 ;
141
+
142
+ $barcodes[0] = "00110" ;
143
+ $barcodes[1] = "10001" ;
144
+ $barcodes[2] = "01001" ;
145
+ $barcodes[3] = "11000" ;
146
+ $barcodes[4] = "00101" ;
147
+ $barcodes[5] = "10100" ;
148
+ $barcodes[6] = "01100" ;
149
+ $barcodes[7] = "00011" ;
150
+ $barcodes[8] = "10010" ;
151
+ $barcodes[9] = "01010" ;
152
+ for($f1=9;$f1>=0;$f1--){
153
+ for($f2=9;$f2>=0;$f2--){
154
+ $f = ($f1 * 10) + $f2 ;
155
+ $texto = "" ;
156
+ for($i=1;$i<6;$i++){
157
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
158
+ }
159
+ $barcodes[$f] = $texto;
160
+ }
161
+ }
162
+
163
+
164
+ //Desenho da barra
165
+
166
+
167
+ //Guarda inicial
168
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
169
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
170
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
171
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
172
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
173
+ <?php
174
+ $texto = $valor ;
175
+ if((strlen($texto) % 2) <> 0){
176
+ $texto = "0" . $texto;
177
+ }
178
+
179
+ // Draw dos dados
180
+ while (strlen($texto) > 0) {
181
+ $i = round(esquerda($texto,2));
182
+ $texto = direita($texto,strlen($texto)-2);
183
+ $f = $barcodes[$i];
184
+ for($i=1;$i<11;$i+=2){
185
+ if (substr($f,($i-1),1) == "0") {
186
+ $f1 = $fino ;
187
+ }else{
188
+ $f1 = $largo ;
189
+ }
190
+ ?>
191
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
192
+ <?php
193
+ if (substr($f,$i,1) == "0") {
194
+ $f2 = $fino ;
195
+ }else{
196
+ $f2 = $largo ;
197
+ }
198
+ ?>
199
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
200
+ <?php
201
+ }
202
+ }
203
+
204
+ // Draw guarda final
205
+ ?>
206
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
207
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
208
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
209
+ <?php
210
+ } //Fim da fun��o
211
+
212
+ function esquerda($entra,$comp){
213
+ return substr($entra,0,$comp);
214
+ }
215
+
216
+ function direita($entra,$comp){
217
+ return substr($entra,strlen($entra)-$comp,$comp);
218
+ }
219
+
220
+ function fator_vencimento($data) {
221
+ $data = explode("/",$data);
222
+ $ano = $data[2];
223
+ $mes = $data[1];
224
+ $dia = $data[0];
225
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
226
+ }
227
+
228
+ function _dateToDays($year,$month,$day) {
229
+ $century = substr($year, 0, 2);
230
+ $year = substr($year, 2, 2);
231
+ if ($month > 2) {
232
+ $month -= 3;
233
+ } else {
234
+ $month += 9;
235
+ if ($year) {
236
+ $year--;
237
+ } else {
238
+ $year = 99;
239
+ $century --;
240
+ }
241
+ }
242
+ return ( floor(( 146097 * $century) / 4 ) +
243
+ floor(( 1461 * $year) / 4 ) +
244
+ floor(( 153 * $month + 2) / 5 ) +
245
+ $day + 1721119);
246
+ }
247
+
248
+ function modulo_10($num) {
249
+ $numtotal10 = 0;
250
+ $fator = 2;
251
+
252
+ // Separacao dos numeros
253
+ for ($i = strlen($num); $i > 0; $i--) {
254
+ // pega cada numero isoladamente
255
+ $numeros[$i] = substr($num,$i-1,1);
256
+ // Efetua multiplicacao do numero pelo (falor 10)
257
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
258
+ $temp = $numeros[$i] * $fator;
259
+ $temp0=0;
260
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
261
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
262
+ // monta sequencia para soma dos digitos no (modulo 10)
263
+ $numtotal10 += $parcial10[$i];
264
+ if ($fator == 2) {
265
+ $fator = 1;
266
+ } else {
267
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
268
+ }
269
+ }
270
+
271
+ // v�rias linhas removidas, vide fun��o original
272
+ // Calculo do modulo 10
273
+ $resto = $numtotal10 % 10;
274
+ $digito = 10 - $resto;
275
+ if ($resto == 0) {
276
+ $digito = 0;
277
+ }
278
+
279
+ return $digito;
280
+
281
+ }
282
+
283
+ function modulo_11($num, $base=9, $r=0) {
284
+ /**
285
+ * Autor:
286
+ * Pablo Costa <pablo@users.sourceforge.net>
287
+ *
288
+ * Fun��o:
289
+ * Calculo do Modulo 11 para geracao do digito verificador
290
+ * de boletos bancarios conforme documentos obtidos
291
+ * da Febraban - www.febraban.org.br
292
+ *
293
+ * Entrada:
294
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
295
+ * $base: valor maximo de multiplicacao [2-$base]
296
+ * $r: quando especificado um devolve somente o resto
297
+ *
298
+ * Sa�da:
299
+ * Retorna o Digito verificador.
300
+ *
301
+ * Observa��es:
302
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
303
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
304
+ */
305
+
306
+ $soma = 0;
307
+ $fator = 2;
308
+
309
+ /* Separacao dos numeros */
310
+ for ($i = strlen($num); $i > 0; $i--) {
311
+ // pega cada numero isoladamente
312
+ $numeros[$i] = substr($num,$i-1,1);
313
+ // Efetua multiplicacao do numero pelo falor
314
+ $parcial[$i] = $numeros[$i] * $fator;
315
+ // Soma dos digitos
316
+ $soma += $parcial[$i];
317
+ if ($fator == $base) {
318
+ // restaura fator de multiplicacao para 2
319
+ $fator = 1;
320
+ }
321
+ $fator++;
322
+ }
323
+
324
+ /* Calculo do modulo 11 */
325
+ if ($r == 0) {
326
+ $soma *= 10;
327
+ $digito = $soma % 11;
328
+ if ($digito == 10) {
329
+ $digito = 0;
330
+ }
331
+ return $digito;
332
+ } elseif ($r == 1){
333
+ $resto = $soma % 11;
334
+ return $resto;
335
+ }
336
+ }
337
+
338
+ function modulo_11_invertido($num) { // Calculo de Modulo 11 "Invertido" (com pesos de 9 a 2 e n�o de 2 a 9)
339
+ $ftini = 2;
340
+ $ftfim = 9;
341
+ $fator = $ftfim;
342
+ $soma = 0;
343
+
344
+ for ($i = strlen($num); $i > 0; $i--) {
345
+ $soma += substr($num,$i-1,1) * $fator;
346
+ if(--$fator < $ftini) $fator = $ftfim;
347
+ }
348
+
349
+ $digito = $soma % 11;
350
+ if($digito > 9) $digito = 0;
351
+
352
+ return $digito;
353
+ }
354
+
355
+ function monta_linha_digitavel($codigo) {
356
+ // Posi��o Conte�do
357
+ // 1 a 3 N�mero do banco
358
+ // 4 C�digo da Moeda - 9 para Real
359
+ // 5 Digito verificador do C�digo de Barras
360
+ // 6 a 9 Fator de Vencimento
361
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
362
+ // Campo Livre definido por cada banco (25 caracteres)
363
+ // 20 a 26 C�digo do Cedente
364
+ // 27 a 39 C�digo do Documento
365
+ // 40 a 43 Data de Vencimento em Juliano (mmmy)
366
+ // 44 C�digo do aplicativo CNR = 2
367
+
368
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
369
+ // do campo livre e DV (modulo10) deste campo
370
+ $campo1 = substr($codigo,0,4) . substr($codigo,19,5);
371
+ $campo1 = $campo1 . modulo_10($campo1);
372
+ $campo1 = substr($campo1,0,5) . '.' . substr($campo1,5,5);
373
+
374
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
375
+ // e livre e DV (modulo10) deste campo
376
+ $campo2 = substr($codigo,24,2) . substr($codigo,26,8);
377
+ $campo2 = $campo2 . modulo_10($campo2);
378
+ $campo2 = substr($campo2,0,5) . '.' . substr($campo2,5,6);
379
+
380
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
381
+ // e livre e DV (modulo10) deste campo
382
+ $campo3 = substr($codigo,34,5) . substr($codigo,39,4) . substr($codigo,43,1);
383
+ $campo3 = $campo3 . modulo_10($campo3);
384
+ $campo3 = substr($campo3,0,5) . '.' . substr($campo3,5,6);
385
+
386
+ // 4. Campo - digito verificador do codigo de barras
387
+ $campo4 = substr($codigo, 4, 1);
388
+
389
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
390
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
391
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
392
+ $campo5 = substr($codigo, 5, 4) . substr($codigo, 9, 10);
393
+
394
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
395
+ }
396
+
397
+ function geraCodigoBanco($numero) {
398
+ $parte1 = substr($numero, 0, 3);
399
+ $parte2 = modulo_11($parte1);
400
+ return $parte1 . "-" . $parte2;
401
+ }
402
+
403
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_itau.php ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Ita�: Glauber Portella |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "341";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 5 digitos + 1 do dv
40
+ $conta = formata_numero($dadosboleto["conta"],5,0);
41
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
42
+ //carteira 175
43
+ $carteira = $dadosboleto["carteira"];
44
+ //nosso_numero no maximo 8 digitos
45
+ $dadosboleto["nosso_numero"] = substr($dadosboleto["nosso_numero"], 0, 8);
46
+ $nnum = formata_numero($dadosboleto["nosso_numero"],8,0);
47
+
48
+ $codigo_barras = $codigobanco.$nummoeda.$fator_vencimento.$valor.$carteira.$nnum.modulo_10($agencia.$conta.$carteira.$nnum).$agencia.$conta.modulo_10($agencia.$conta).'000';
49
+ // 43 numeros para o calculo do digito verificador
50
+ $dv = digitoVerificador_barra($codigo_barras);
51
+ // Numero para o codigo de barras com 44 digitos
52
+ $linha = substr($codigo_barras,0,4).$dv.substr($codigo_barras,4,43);
53
+
54
+ $nossonumero = $carteira.'/'.$nnum.'-'.modulo_10($agencia.$conta.$carteira.$nnum);
55
+ $agencia_codigo = $agencia." / ". $conta."-".modulo_10($agencia.$conta);
56
+
57
+ $dadosboleto["codigo_barras"] = $linha;
58
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha); // verificar
59
+ $dadosboleto["agencia_codigo"] = $agencia_codigo ;
60
+ $dadosboleto["nosso_numero"] = $nossonumero;
61
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
62
+
63
+
64
+ // FUN��ES
65
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
66
+
67
+ function digitoVerificador_barra($numero) {
68
+ $resto2 = modulo_11($numero, 9, 1);
69
+ $digito = 11 - $resto2;
70
+ if ($digito == 0 || $digito == 1 || $digito == 10 || $digito == 11) {
71
+ $dv = 1;
72
+ } else {
73
+ $dv = $digito;
74
+ }
75
+ return $dv;
76
+ }
77
+
78
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
79
+ if ($tipo == "geral") {
80
+ $numero = str_replace(",","",$numero);
81
+ while(strlen($numero)<$loop){
82
+ $numero = $insert . $numero;
83
+ }
84
+ }
85
+ if ($tipo == "valor") {
86
+ /*
87
+ retira as virgulas
88
+ formata o numero
89
+ preenche com zeros
90
+ */
91
+ $numero = str_replace(",","",$numero);
92
+ while(strlen($numero)<$loop){
93
+ $numero = $insert . $numero;
94
+ }
95
+ }
96
+ if ($tipo == "convenio") {
97
+ while(strlen($numero)<$loop){
98
+ $numero = $numero . $insert;
99
+ }
100
+ }
101
+ return $numero;
102
+ }
103
+
104
+
105
+ function fbarcode($valor, $dir = ""){
106
+
107
+ $fino = 1 ;
108
+ $largo = 3 ;
109
+ $altura = 50 ;
110
+
111
+ $barcodes[0] = "00110" ;
112
+ $barcodes[1] = "10001" ;
113
+ $barcodes[2] = "01001" ;
114
+ $barcodes[3] = "11000" ;
115
+ $barcodes[4] = "00101" ;
116
+ $barcodes[5] = "10100" ;
117
+ $barcodes[6] = "01100" ;
118
+ $barcodes[7] = "00011" ;
119
+ $barcodes[8] = "10010" ;
120
+ $barcodes[9] = "01010" ;
121
+ for($f1=9;$f1>=0;$f1--){
122
+ for($f2=9;$f2>=0;$f2--){
123
+ $f = ($f1 * 10) + $f2 ;
124
+ $texto = "" ;
125
+ for($i=1;$i<6;$i++){
126
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
127
+ }
128
+ $barcodes[$f] = $texto;
129
+ }
130
+ }
131
+
132
+
133
+ //Desenho da barra
134
+
135
+
136
+ //Guarda inicial
137
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
138
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
139
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
140
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
141
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
142
+ <?php
143
+ $texto = $valor ;
144
+ if((strlen($texto) % 2) <> 0){
145
+ $texto = "0" . $texto;
146
+ }
147
+
148
+ // Draw dos dados
149
+ while (strlen($texto) > 0) {
150
+ $i = round(esquerda($texto,2));
151
+ $texto = direita($texto,strlen($texto)-2);
152
+ $f = $barcodes[$i];
153
+ for($i=1;$i<11;$i+=2){
154
+ if (substr($f,($i-1),1) == "0") {
155
+ $f1 = $fino ;
156
+ }else{
157
+ $f1 = $largo ;
158
+ }
159
+ ?>
160
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
161
+ <?php
162
+ if (substr($f,$i,1) == "0") {
163
+ $f2 = $fino ;
164
+ }else{
165
+ $f2 = $largo ;
166
+ }
167
+ ?>
168
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
169
+ <?php
170
+ }
171
+ }
172
+
173
+ // Draw guarda final
174
+ ?>
175
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
176
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
177
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
178
+ <?php
179
+ } //Fim da fun��o
180
+
181
+ function esquerda($entra,$comp){
182
+ return substr($entra,0,$comp);
183
+ }
184
+
185
+ function direita($entra,$comp){
186
+ return substr($entra,strlen($entra)-$comp,$comp);
187
+ }
188
+
189
+ function fator_vencimento($data) {
190
+ $data = explode("/",$data);
191
+ $ano = $data[2];
192
+ $mes = $data[1];
193
+ $dia = $data[0];
194
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
195
+ }
196
+
197
+ function _dateToDays($year,$month,$day) {
198
+ $century = substr($year, 0, 2);
199
+ $year = substr($year, 2, 2);
200
+ if ($month > 2) {
201
+ $month -= 3;
202
+ } else {
203
+ $month += 9;
204
+ if ($year) {
205
+ $year--;
206
+ } else {
207
+ $year = 99;
208
+ $century --;
209
+ }
210
+ }
211
+ return ( floor(( 146097 * $century) / 4 ) +
212
+ floor(( 1461 * $year) / 4 ) +
213
+ floor(( 153 * $month + 2) / 5 ) +
214
+ $day + 1721119);
215
+ }
216
+
217
+ function modulo_10($num) {
218
+ $numtotal10 = 0;
219
+ $fator = 2;
220
+
221
+ // Separacao dos numeros
222
+ for ($i = strlen($num); $i > 0; $i--) {
223
+ // pega cada numero isoladamente
224
+ $numeros[$i] = substr($num,$i-1,1);
225
+ // Efetua multiplicacao do numero pelo (falor 10)
226
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
227
+ $temp = $numeros[$i] * $fator;
228
+ $temp0=0;
229
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
230
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
231
+ // monta sequencia para soma dos digitos no (modulo 10)
232
+ $numtotal10 += $parcial10[$i];
233
+ if ($fator == 2) {
234
+ $fator = 1;
235
+ } else {
236
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
237
+ }
238
+ }
239
+
240
+ // v�rias linhas removidas, vide fun��o original
241
+ // Calculo do modulo 10
242
+ $resto = $numtotal10 % 10;
243
+ $digito = 10 - $resto;
244
+ if ($resto == 0) {
245
+ $digito = 0;
246
+ }
247
+
248
+ return $digito;
249
+
250
+ }
251
+
252
+ function modulo_11($num, $base=9, $r=0) {
253
+ /**
254
+ * Autor:
255
+ * Pablo Costa <pablo@users.sourceforge.net>
256
+ *
257
+ * Fun��o:
258
+ * Calculo do Modulo 11 para geracao do digito verificador
259
+ * de boletos bancarios conforme documentos obtidos
260
+ * da Febraban - www.febraban.org.br
261
+ *
262
+ * Entrada:
263
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
264
+ * $base: valor maximo de multiplicacao [2-$base]
265
+ * $r: quando especificado um devolve somente o resto
266
+ *
267
+ * Sa�da:
268
+ * Retorna o Digito verificador.
269
+ *
270
+ * Observa��es:
271
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
272
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
273
+ */
274
+
275
+ $soma = 0;
276
+ $fator = 2;
277
+
278
+ /* Separacao dos numeros */
279
+ for ($i = strlen($num); $i > 0; $i--) {
280
+ // pega cada numero isoladamente
281
+ $numeros[$i] = substr($num,$i-1,1);
282
+ // Efetua multiplicacao do numero pelo falor
283
+ $parcial[$i] = $numeros[$i] * $fator;
284
+ // Soma dos digitos
285
+ $soma += $parcial[$i];
286
+ if ($fator == $base) {
287
+ // restaura fator de multiplicacao para 2
288
+ $fator = 1;
289
+ }
290
+ $fator++;
291
+ }
292
+
293
+ /* Calculo do modulo 11 */
294
+ if ($r == 0) {
295
+ $soma *= 10;
296
+ $digito = $soma % 11;
297
+ if ($digito == 10) {
298
+ $digito = 0;
299
+ }
300
+ return $digito;
301
+ } elseif ($r == 1){
302
+ $resto = $soma % 11;
303
+ return $resto;
304
+ }
305
+ }
306
+
307
+ // Alterada por Glauber Portella para especifica��o do Ita�
308
+ function monta_linha_digitavel($codigo) {
309
+ // campo 1
310
+ $banco = substr($codigo,0,3);
311
+ $moeda = substr($codigo,3,1);
312
+ $ccc = substr($codigo,19,3);
313
+ $ddnnum = substr($codigo,22,2);
314
+ $dv1 = modulo_10($banco.$moeda.$ccc.$ddnnum);
315
+ // campo 2
316
+ $resnnum = substr($codigo,24,6);
317
+ $dac1 = substr($codigo,30,1);//modulo_10($agencia.$conta.$carteira.$nnum);
318
+ $dddag = substr($codigo,31,3);
319
+ $dv2 = modulo_10($resnnum.$dac1.$dddag);
320
+ // campo 3
321
+ $resag = substr($codigo,34,1);
322
+ $contadac = substr($codigo,35,6); //substr($codigo,35,5).modulo_10(substr($codigo,35,5));
323
+ $zeros = substr($codigo,41,3);
324
+ $dv3 = modulo_10($resag.$contadac.$zeros);
325
+ // campo 4
326
+ $dv4 = substr($codigo,4,1);
327
+ // campo 5
328
+ $fator = substr($codigo,5,4);
329
+ $valor = substr($codigo,9,10);
330
+
331
+ $campo1 = substr($banco.$moeda.$ccc.$ddnnum.$dv1,0,5) . '.' . substr($banco.$moeda.$ccc.$ddnnum.$dv1,5,5);
332
+ $campo2 = substr($resnnum.$dac1.$dddag.$dv2,0,5) . '.' . substr($resnnum.$dac1.$dddag.$dv2,5,6);
333
+ $campo3 = substr($resag.$contadac.$zeros.$dv3,0,5) . '.' . substr($resag.$contadac.$zeros.$dv3,5,6);
334
+ $campo4 = $dv4;
335
+ $campo5 = $fator.$valor;
336
+
337
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
338
+ }
339
+
340
+ function geraCodigoBanco($numero) {
341
+ $parte1 = substr($numero, 0, 3);
342
+ $parte2 = modulo_11($parte1);
343
+ return $parte1 . "-" . $parte2;
344
+ }
345
+
346
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_nossacaixa.php ADDED
@@ -0,0 +1,503 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto NossaCaixa: Keitty Su�len |
27
+ // +----------------------------------------------------------------------+
28
+
29
+ $codigobanco = "151"; //C�digo do banco de acordo com o banco central
30
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
31
+ $nummoeda = "9";
32
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
33
+
34
+ //valor tem 10 digitos, sem virgula
35
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
36
+ //agencia � 4 digitos
37
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
38
+ //conta cedente (sem dv) � 6 digitos
39
+ $conta_cedente = formata_numero($dadosboleto["conta_cedente"],6,0);
40
+ //dv da conta cedente
41
+ $conta_cedente_dv = formata_numero($dadosboleto["conta_cedente_dv"],1,0);
42
+ //carteira
43
+ $carteira = $dadosboleto["carteira"];
44
+ //modalidade da conta
45
+ $modalidade = formata_numero($dadosboleto["modalidade_conta"],2,0);
46
+
47
+ // DONE: Bugfix 2007-03-25 Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
48
+ // Notice: Undefined variable: modalidade_c1 in funcoes_nossacaixa.php on line 48
49
+
50
+ $modalidade_c1 = isset($modalidade_c1) ? $modalidade_c1 : 0;
51
+
52
+ //Converte a modalidade de acordo com a tabela do banco
53
+ $modalidade == "01" ? $modalidade_c1 = 1 : $modalidade_c1;
54
+ $modalidade == "04" ? $modalidade_c1 = 4 : $modalidade_c1;
55
+ $modalidade == "09" ? $modalidade_c1 = 9 : $modalidade_c1;
56
+ $modalidade == "13" ? $modalidade_c1 = 3 : $modalidade_c1;
57
+ $modalidade == "16" ? $modalidade_c1 = 6 : $modalidade_c1;
58
+ $modalidade == "17" ? $modalidade_c1 = 7 : $modalidade_c1;
59
+ $modalidade == "18" ? $modalidade_c1 = 8 : $modalidade_c1;
60
+
61
+
62
+ //nosso n�mero (sem dv) � 9 digitos
63
+ $nnum = $dadosboleto["inicio_nosso_numero"] . formata_numero($dadosboleto["nosso_numero"],7,0);
64
+
65
+ //Agencia sem o digito + modalidade convertida e conta sem o d�gito
66
+ $ag_contacedente = $agencia .$modalidade_c1. $conta_cedente;
67
+
68
+ //
69
+ $carteira == 5 ? $prefixo = "9" : $prefixo;
70
+ $carteira == 1 ? $prefixo = "0" : $prefixo;
71
+
72
+ //Calcula o digito verificador do nosso n�mero
73
+ $dv_nosso_numero = digitoVerificador_nossonumero($nnum,$conta_cedente,$conta_cedente_dv,$agencia,$modalidade);
74
+ $nossonumero_dv = "$nnum$dv_nosso_numero";
75
+
76
+ //pega o nosso numero a partir da 2� posi��o
77
+ $nnum = substr($nnum,1);
78
+
79
+ //numero para o calculo dos d�gitos verificadores da posi��o 43 e 44
80
+ $calcdv1 = $prefixo.$nnum.$ag_contacedente.$codigobanco;
81
+
82
+ //Gera os d�gitos verificadores da posi��o 43 e 44
83
+ $dv1 = geraDv43($calcdv1);
84
+ $dv2 = geraDv44("$calcdv1$dv1");
85
+
86
+ //Se vier 2 caracteres significa que o dv2 deu 1 ent�o o dv1 e o dv2 foi recalculado e retornado nesta string(Coisa do manual do banco =D !)
87
+ if (strlen($dv2) == 2){
88
+ $dv1= substr($dv2,0,1);
89
+ $dv2= substr($dv2,1,1);
90
+ }
91
+
92
+ // DONE: Bugfix 2007-03-25 Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
93
+ // Notice: Undefined variable: dv in funcoes_nossacaixa.php on line 93
94
+ $dv = isset($dv) ? $dv : 0;
95
+
96
+ // 43 numeros para o calculo do digito verificador do codigo de barras
97
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$prefixo$nnum$ag_contacedente$codigobanco$dv1$dv2");
98
+
99
+ // Numero para o codigo de barras com 44 digitos
100
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$prefixo$nnum$ag_contacedente$codigobanco$dv1$dv2";
101
+
102
+ $nossonumero = substr($nossonumero_dv,0,9).'-'.substr($nossonumero_dv,9,1);
103
+ $agencia_codigo = $agencia." / ".$modalidade." ".$conta_cedente ." ". $conta_cedente_dv;
104
+
105
+ $dadosboleto["codigo_barras"] = $linha;
106
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
107
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
108
+ $dadosboleto["nosso_numero"] = $nossonumero;
109
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
110
+
111
+ function digitoVerificador_nossonumero($numero, $conta, $dv, $agencia, $modalidade) {
112
+ $numext = $agencia.$modalidade."0".$conta.$dv.$numero;
113
+
114
+ // DONE: Bugfix 2007-03-25 Francisco Ernesto Teixeira <fco_ernesto@yahoo.com.br>
115
+ // Notice: Undefined variable: resul in funcoes_nossacaixa.php on line 127
116
+ $resul = 0;
117
+
118
+ for ($i = strlen($numext); $i > 0; $i--) {
119
+ $numeros[$i] = substr($numext,$i-1,1);
120
+ if ($i == 14){
121
+ $n = 1;
122
+ }
123
+ else if($i == 1 || $i == 5 || $i == 9 || $i == 13 || $i == 15 || $i == 19 || $i == 23){
124
+ $n = 3;
125
+ }
126
+ else if($i == 2 || $i == 6 || $i == 10 || $i == 16 || $i == 20 ){
127
+ $n = 1;
128
+ }
129
+ else if($i == 4 || $i == 8 || $i == 12 || $i == 18 || $i == 22 ){
130
+ $n = 7;
131
+ }
132
+ else if($i == 3 || $i == 7 || $i == 11 || $i == 17 || $i == 21 ){
133
+ $n = 9;
134
+ }
135
+ $resul += $numeros[$i]*$n;
136
+ }
137
+
138
+ $resto = $resul % 10;
139
+ $dv = 10 - $resto;
140
+ if ($resto == 0) $dv=0;
141
+ return $dv;
142
+ }
143
+
144
+
145
+ function digitoVerificador_barra($numero) {
146
+ $resto2 = modulo_11($numero, 9, 1);
147
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
148
+ $dv = 1;
149
+ } else {
150
+ $dv = 11 - $resto2;
151
+ }
152
+ return $dv;
153
+ }
154
+
155
+
156
+ // FUN��ES
157
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
158
+
159
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
160
+ if ($tipo == "geral") {
161
+ $numero = str_replace(",","",$numero);
162
+ while(strlen($numero)<$loop){
163
+ $numero = $insert . $numero;
164
+ }
165
+ }
166
+ if ($tipo == "valor") {
167
+ /*
168
+ retira as virgulas
169
+ formata o numero
170
+ preenche com zeros
171
+ */
172
+ $numero = str_replace(",","",$numero);
173
+ while(strlen($numero)<$loop){
174
+ $numero = $insert . $numero;
175
+ }
176
+ }
177
+ if ($tipo == "convenio") {
178
+ while(strlen($numero)<$loop){
179
+ $numero = $numero . $insert;
180
+ }
181
+ }
182
+ return $numero;
183
+ }
184
+
185
+
186
+ function fbarcode($valor){
187
+
188
+ $fino = 1 ;
189
+ $largo = 3 ;
190
+ $altura = 50 ;
191
+
192
+ $barcodes[0] = "00110" ;
193
+ $barcodes[1] = "10001" ;
194
+ $barcodes[2] = "01001" ;
195
+ $barcodes[3] = "11000" ;
196
+ $barcodes[4] = "00101" ;
197
+ $barcodes[5] = "10100" ;
198
+ $barcodes[6] = "01100" ;
199
+ $barcodes[7] = "00011" ;
200
+ $barcodes[8] = "10010" ;
201
+ $barcodes[9] = "01010" ;
202
+ for($f1=9;$f1>=0;$f1--){
203
+ for($f2=9;$f2>=0;$f2--){
204
+ $f = ($f1 * 10) + $f2 ;
205
+ $texto = "" ;
206
+ for($i=1;$i<6;$i++){
207
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
208
+ }
209
+ $barcodes[$f] = $texto;
210
+ }
211
+ }
212
+
213
+
214
+ //Desenho da barra
215
+
216
+
217
+ //Guarda inicial
218
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
219
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
220
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
221
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
222
+ <?php
223
+ $texto = $valor ;
224
+ if((strlen($texto) % 2) <> 0){
225
+ $texto = "0" . $texto;
226
+ }
227
+
228
+ // Draw dos dados
229
+ while (strlen($texto) > 0) {
230
+ $i = round(esquerda($texto,2));
231
+ $texto = direita($texto,strlen($texto)-2);
232
+ $f = $barcodes[$i];
233
+ for($i=1;$i<11;$i+=2){
234
+ if (substr($f,($i-1),1) == "0") {
235
+ $f1 = $fino ;
236
+ }else{
237
+ $f1 = $largo ;
238
+ }
239
+ ?>
240
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
241
+ <?php
242
+ if (substr($f,$i,1) == "0") {
243
+ $f2 = $fino ;
244
+ }else{
245
+ $f2 = $largo ;
246
+ }
247
+ ?>
248
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
249
+ <?php
250
+ }
251
+ }
252
+
253
+ // Draw guarda final
254
+ ?>
255
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
256
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
257
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
258
+ <?php
259
+ } //Fim da fun��o
260
+
261
+ function esquerda($entra,$comp){
262
+ return substr($entra,0,$comp);
263
+ }
264
+
265
+ function direita($entra,$comp){
266
+ return substr($entra,strlen($entra)-$comp,$comp);
267
+ }
268
+
269
+ function fator_vencimento($data) {
270
+ $data = explode("/",$data);
271
+ $ano = $data[2];
272
+ $mes = $data[1];
273
+ $dia = $data[0];
274
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
275
+ }
276
+
277
+ function _dateToDays($year,$month,$day) {
278
+ $century = substr($year, 0, 2);
279
+ $year = substr($year, 2, 2);
280
+ if ($month > 2) {
281
+ $month -= 3;
282
+ } else {
283
+ $month += 9;
284
+ if ($year) {
285
+ $year--;
286
+ } else {
287
+ $year = 99;
288
+ $century --;
289
+ }
290
+ }
291
+ return ( floor(( 146097 * $century) / 4 ) +
292
+ floor(( 1461 * $year) / 4 ) +
293
+ floor(( 153 * $month + 2) / 5 ) +
294
+ $day + 1721119);
295
+ }
296
+
297
+ function modulo_10($num) {
298
+ $numtotal10 = 0;
299
+ $fator = 2;
300
+
301
+ // Separacao dos numeros
302
+ for ($i = strlen($num); $i > 0; $i--) {
303
+ // pega cada numero isoladamente
304
+ $numeros[$i] = substr($num,$i-1,1);
305
+ // Efetua multiplicacao do numero pelo (falor 10)
306
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
307
+ $temp = $numeros[$i] * $fator;
308
+ $temp0=0;
309
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
310
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
311
+ // monta sequencia para soma dos digitos no (modulo 10)
312
+ $numtotal10 += $parcial10[$i];
313
+ if ($fator == 2) {
314
+ $fator = 1;
315
+ } else {
316
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
317
+ }
318
+ }
319
+
320
+ // v�rias linhas removidas, vide fun��o original
321
+ // Calculo do modulo 10
322
+ $resto = $numtotal10 % 10;
323
+ $digito = 10 - $resto;
324
+ if ($resto == 0) {
325
+ $digito = 0;
326
+ }
327
+
328
+ return $digito;
329
+
330
+ }
331
+
332
+ function modulo_11($num, $base=9, $r=0) {
333
+ /**
334
+ * Autor:
335
+ * Pablo Costa <pablo@users.sourceforge.net>
336
+ *
337
+ * Fun��o:
338
+ * Calculo do Modulo 11 para geracao do digito verificador
339
+ * de boletos bancarios conforme documentos obtidos
340
+ * da Febraban - www.febraban.org.br
341
+ *
342
+ * Entrada:
343
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
344
+ * $base: valor maximo de multiplicacao [2-$base]
345
+ * $r: quando especificado um devolve somente o resto
346
+ *
347
+ * Sa�da:
348
+ * Retorna o Digito verificador.
349
+ *
350
+ * Observa��es:
351
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
352
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
353
+ */
354
+
355
+ $soma = 0;
356
+ $fator = 2;
357
+
358
+ /* Separacao dos numeros */
359
+ for ($i = strlen($num); $i > 0; $i--) {
360
+ // pega cada numero isoladamente
361
+ $numeros[$i] = substr($num,$i-1,1);
362
+ // Efetua multiplicacao do numero pelo falor
363
+ $parcial[$i] = $numeros[$i] * $fator;
364
+ // Soma dos digitos
365
+ $soma += $parcial[$i];
366
+ if ($fator == $base) {
367
+ // restaura fator de multiplicacao para 2
368
+ $fator = 1;
369
+ }
370
+ $fator++;
371
+ }
372
+
373
+ /* Calculo do modulo 11 */
374
+ if ($r == 0) {
375
+ $soma *= 10;
376
+ $digito = $soma % 11;
377
+ if ($digito == 10) {
378
+ $digito = 0;
379
+ }
380
+ return $digito;
381
+ } elseif ($r == 1){
382
+ $resto = $soma % 11;
383
+ return $resto;
384
+ }
385
+ }
386
+
387
+ function monta_linha_digitavel($codigo) {
388
+
389
+ // Posi��o Conte�do
390
+ // 1 a 3 N�mero do banco
391
+ // 4 C�digo da Moeda - 9 para Real
392
+ // 5 Digito verificador do C�digo de Barras
393
+ // 6 a 9 Fator de Vencimento
394
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
395
+ // 20 a 44 Campo Livre definido por cada banco (25 caracteres)
396
+
397
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
398
+ // do campo livre e DV (modulo10) deste campo
399
+ $p1 = substr($codigo, 0, 4);
400
+ $p2 = substr($codigo, 19, 5);
401
+ $p3 = modulo_10("$p1$p2");
402
+ $p4 = "$p1$p2$p3";
403
+ $p5 = substr($p4, 0, 5);
404
+ $p6 = substr($p4, 5);
405
+ $campo1 = "$p5.$p6";
406
+
407
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
408
+ // e livre e DV (modulo10) deste campo
409
+ $p1 = substr($codigo, 24, 10);
410
+ $p2 = modulo_10($p1);
411
+ $p3 = "$p1$p2";
412
+ $p4 = substr($p3, 0, 5);
413
+ $p5 = substr($p3, 5);
414
+ $campo2 = "$p4.$p5";
415
+
416
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
417
+ // e livre e DV (modulo10) deste campo
418
+ $p1 = substr($codigo, 34, 10);
419
+ $p2 = modulo_10($p1);
420
+ $p3 = "$p1$p2";
421
+ $p4 = substr($p3, 0, 5);
422
+ $p5 = substr($p3, 5);
423
+ $campo3 = "$p4.$p5";
424
+
425
+ // 4. Campo - digito verificador do codigo de barras
426
+ $campo4 = substr($codigo, 4, 1);
427
+
428
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
429
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
430
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
431
+ $p1 = substr($codigo, 5, 4);
432
+ $p2 = substr($codigo, 9, 10);
433
+ $campo5 = "$p1$p2";
434
+
435
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
436
+ }
437
+
438
+ function geraCodigoBanco($numero) {
439
+ $parte1 = substr($numero, 0, 3);
440
+ $parte2 = modulo_11($parte1);
441
+ return $parte1 . "-" . $parte2;
442
+ }
443
+
444
+ function geraDv43($num) {
445
+ $numtotal10 = 0;
446
+ $fator = 2;
447
+
448
+ // Separacao dos numeros
449
+ for ($i = strlen($num); $i > 0; $i--) {
450
+ // pega cada numero isoladamente
451
+ $numeros[$i] = substr($num,$i-1,1);
452
+ // Efetua multiplicacao do numero pelo (falor 10)
453
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
454
+ $temp = $numeros[$i] * $fator;
455
+ if ($temp > 9) $temp=$temp-9; // Regra do banco NossaCaixa
456
+ $temp0=0;
457
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
458
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
459
+ // monta sequencia para soma dos digitos no (modulo 10)
460
+ $numtotal10 += $parcial10[$i];
461
+ if ($fator == 2) {
462
+ $fator = 1;
463
+ } else {
464
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
465
+ }
466
+ }
467
+
468
+ // v�rias linhas removidas, vide fun��o original
469
+ // Calculo do modulo 10
470
+ $resto = $numtotal10 % 10;
471
+
472
+ if ($resto == 0) {
473
+ $dv = 0;
474
+ } else {
475
+ $dv = 10 - $resto;
476
+ }
477
+
478
+ return $dv;
479
+
480
+ }
481
+
482
+ function geraDv44($numero) {
483
+ $resto = modulo_11($numero,7,1);
484
+ if ($resto == 0){
485
+ $dv = 0;
486
+ }
487
+ elseif ($resto > 1){
488
+ $dv = 11-$resto;
489
+ }
490
+ elseif ($resto == 1){
491
+ $dv1 = substr($numero,23,1);
492
+ $dv1 = $dv1 + 1;
493
+ $dv1 == 10 ? $dv1=0: $dv1;
494
+ $numero = substr($numero,0,23).$dv1;
495
+ $dv44 = geraDv44($numero);
496
+ $dv=$dv1.$dv44;
497
+ }
498
+
499
+ return $dv;
500
+ }
501
+
502
+
503
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_real.php ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Real: Juan Basso |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "356";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
39
+ //conta � 7 digitos
40
+ $conta = formata_numero($dadosboleto["conta"],7,0);
41
+ //carteira � 2 caracteres
42
+ $carteira = $dadosboleto["carteira"];
43
+
44
+ //nosso n�mero com maximo de 13 digitos
45
+ $nossonumero = formata_numero($dadosboleto["nosso_numero"],13,0);
46
+
47
+ // Digitao - Digito de Cobranca do banco Real
48
+ $digitao_cobranca = modulo_10("$nossonumero$agencia$conta");
49
+
50
+ $linha = "$codigobanco$nummoeda" . "0$fator_vencimento$valor$agencia$conta$digitao_cobranca$nossonumero";
51
+ dvBarra($linha);
52
+
53
+ $agencia_codigo = $agencia."/". $conta ."/". $digitao_cobranca;
54
+
55
+
56
+ $dadosboleto["codigo_barras"] = $linha;
57
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
58
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
59
+ $dadosboleto["nosso_numero"] = $nossonumero;
60
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
61
+
62
+
63
+ // FUN��ES
64
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
65
+
66
+
67
+ function dvBarra(&$numero) {
68
+ $pesos = "43290876543298765432987654329876543298765432";
69
+ if (strlen($numero) == 44) {
70
+ $soma = 0;
71
+ for ($i = 0; $i < strlen($numero); $i++) {
72
+ $soma += $numero[$i] * $pesos[$i];
73
+ }
74
+ $num_temp = 11 - ($soma % 11);
75
+ if ($num_temp >= 10) {
76
+ $num_temp = 1;
77
+ }
78
+ $numero[4] = $num_temp;
79
+ }
80
+ }
81
+
82
+
83
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
84
+ if ($tipo == "geral") {
85
+ $numero = str_replace(",","",$numero);
86
+ while(strlen($numero)<$loop){
87
+ $numero = $insert . $numero;
88
+ }
89
+ }
90
+ if ($tipo == "valor") {
91
+ /*
92
+ retira as virgulas
93
+ formata o numero
94
+ preenche com zeros
95
+ */
96
+ $numero = str_replace(",","",$numero);
97
+ while(strlen($numero)<$loop){
98
+ $numero = $insert . $numero;
99
+ }
100
+ }
101
+ if ($tipo == "convenio") {
102
+ while(strlen($numero)<$loop){
103
+ $numero = $numero . $insert;
104
+ }
105
+ }
106
+ return $numero;
107
+ }
108
+
109
+
110
+ function fbarcode($valor){
111
+
112
+ $fino = 1 ;
113
+ $largo = 3 ;
114
+ $altura = 50 ;
115
+
116
+ $barcodes[0] = "00110" ;
117
+ $barcodes[1] = "10001" ;
118
+ $barcodes[2] = "01001" ;
119
+ $barcodes[3] = "11000" ;
120
+ $barcodes[4] = "00101" ;
121
+ $barcodes[5] = "10100" ;
122
+ $barcodes[6] = "01100" ;
123
+ $barcodes[7] = "00011" ;
124
+ $barcodes[8] = "10010" ;
125
+ $barcodes[9] = "01010" ;
126
+ for($f1=9;$f1>=0;$f1--){
127
+ for($f2=9;$f2>=0;$f2--){
128
+ $f = ($f1 * 10) + $f2 ;
129
+ $texto = "" ;
130
+ for($i=1;$i<6;$i++){
131
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
132
+ }
133
+ $barcodes[$f] = $texto;
134
+ }
135
+ }
136
+
137
+
138
+ //Desenho da barra
139
+
140
+
141
+ //Guarda inicial
142
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
143
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
144
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
145
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
146
+ <?php
147
+ $texto = $valor ;
148
+ if((strlen($texto) % 2) <> 0){
149
+ $texto = "0" . $texto;
150
+ }
151
+
152
+ // Draw dos dados
153
+ while (strlen($texto) > 0) {
154
+ $i = round(esquerda($texto,2));
155
+ $texto = direita($texto,strlen($texto)-2);
156
+ $f = $barcodes[$i];
157
+ for($i=1;$i<11;$i+=2){
158
+ if (substr($f,($i-1),1) == "0") {
159
+ $f1 = $fino ;
160
+ }else{
161
+ $f1 = $largo ;
162
+ }
163
+ ?>
164
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
165
+ <?php
166
+ if (substr($f,$i,1) == "0") {
167
+ $f2 = $fino ;
168
+ }else{
169
+ $f2 = $largo ;
170
+ }
171
+ ?>
172
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
173
+ <?php
174
+ }
175
+ }
176
+
177
+ // Draw guarda final
178
+ ?>
179
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
180
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
181
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
182
+ <?php
183
+ } //Fim da fun��o
184
+
185
+ function esquerda($entra,$comp){
186
+ return substr($entra,0,$comp);
187
+ }
188
+
189
+ function direita($entra,$comp){
190
+ return substr($entra,strlen($entra)-$comp,$comp);
191
+ }
192
+
193
+ function fator_vencimento($data) {
194
+ $data = explode("/",$data);
195
+ $ano = $data[2];
196
+ $mes = $data[1];
197
+ $dia = $data[0];
198
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
199
+ }
200
+
201
+ function _dateToDays($year,$month,$day) {
202
+ $century = substr($year, 0, 2);
203
+ $year = substr($year, 2, 2);
204
+ if ($month > 2) {
205
+ $month -= 3;
206
+ } else {
207
+ $month += 9;
208
+ if ($year) {
209
+ $year--;
210
+ } else {
211
+ $year = 99;
212
+ $century --;
213
+ }
214
+ }
215
+ return ( floor(( 146097 * $century) / 4 ) +
216
+ floor(( 1461 * $year) / 4 ) +
217
+ floor(( 153 * $month + 2) / 5 ) +
218
+ $day + 1721119);
219
+ }
220
+
221
+ function modulo_10($num) {
222
+ $numtotal10 = 0;
223
+ $fator = 2;
224
+
225
+ // Separacao dos numeros
226
+ for ($i = strlen($num); $i > 0; $i--) {
227
+ // pega cada numero isoladamente
228
+ $numeros[$i] = substr($num,$i-1,1);
229
+ // Efetua multiplicacao do numero pelo (falor 10)
230
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
231
+ $temp = $numeros[$i] * $fator;
232
+ $temp0=0;
233
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
234
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
235
+ // monta sequencia para soma dos digitos no (modulo 10)
236
+ $numtotal10 += $parcial10[$i];
237
+ if ($fator == 2) {
238
+ $fator = 1;
239
+ } else {
240
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
241
+ }
242
+ }
243
+
244
+ // v�rias linhas removidas, vide fun��o original
245
+ // Calculo do modulo 10
246
+ $resto = $numtotal10 % 10;
247
+ $digito = 10 - $resto;
248
+ if ($resto == 0) {
249
+ $digito = 0;
250
+ }
251
+
252
+ return $digito;
253
+
254
+ }
255
+
256
+ function modulo_11($num, $base=9, $r=0) {
257
+ /**
258
+ * Autor:
259
+ * Pablo Costa <pablo@users.sourceforge.net>
260
+ *
261
+ * Fun��o:
262
+ * Calculo do Modulo 11 para geracao do digito verificador
263
+ * de boletos bancarios conforme documentos obtidos
264
+ * da Febraban - www.febraban.org.br
265
+ *
266
+ * Entrada:
267
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
268
+ * $base: valor maximo de multiplicacao [2-$base]
269
+ * $r: quando especificado um devolve somente o resto
270
+ *
271
+ * Sa�da:
272
+ * Retorna o Digito verificador.
273
+ *
274
+ * Observa��es:
275
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
276
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
277
+ */
278
+
279
+ $soma = 0;
280
+ $fator = 2;
281
+
282
+ /* Separacao dos numeros */
283
+ for ($i = strlen($num); $i > 0; $i--) {
284
+ // pega cada numero isoladamente
285
+ $numeros[$i] = substr($num,$i-1,1);
286
+ // Efetua multiplicacao do numero pelo falor
287
+ $parcial[$i] = $numeros[$i] * $fator;
288
+ // Soma dos digitos
289
+ $soma += $parcial[$i];
290
+ if ($fator == $base) {
291
+ // restaura fator de multiplicacao para 2
292
+ $fator = 1;
293
+ }
294
+ $fator++;
295
+ }
296
+
297
+ /* Calculo do modulo 11 */
298
+ if ($r == 0) {
299
+ $soma *= 10;
300
+ $digito = $soma % 11;
301
+ if ($digito == 10) {
302
+ $digito = 0;
303
+ }
304
+ return $digito;
305
+ } elseif ($r == 1){
306
+ $resto = $soma % 11;
307
+ return $resto;
308
+ }
309
+ }
310
+
311
+ function monta_linha_digitavel($codigo) {
312
+
313
+ // Posi��o Conte�do
314
+ // 1 a 3 N�mero do banco
315
+ // 4 C�digo da Moeda - 9 para Real
316
+ // 5 Digito verificador do C�digo de Barras
317
+ // 6 a 9 Fator de Vencimento
318
+ // 10 a 19 Valor (8 inteiros e 2 decimais)
319
+ // 20 a 44 Campo Livre definido por cada banco (25 caracteres)
320
+
321
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
322
+ // do campo livre e DV (modulo10) deste campo
323
+ $p1 = substr($codigo, 0, 4);
324
+ $p2 = substr($codigo, 19, 5);
325
+ $p3 = modulo_10("$p1$p2");
326
+ $p4 = "$p1$p2$p3";
327
+ $p5 = substr($p4, 0, 5);
328
+ $p6 = substr($p4, 5);
329
+ $campo1 = "$p5.$p6";
330
+
331
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
332
+ // e livre e DV (modulo10) deste campo
333
+ $p1 = substr($codigo, 24, 10);
334
+ $p2 = modulo_10($p1);
335
+ $p3 = "$p1$p2";
336
+ $p4 = substr($p3, 0, 5);
337
+ $p5 = substr($p3, 5);
338
+ $campo2 = "$p4.$p5";
339
+
340
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
341
+ // e livre e DV (modulo10) deste campo
342
+ $p1 = substr($codigo, 34, 10);
343
+ $p2 = modulo_10($p1);
344
+ $p3 = "$p1$p2";
345
+ $p4 = substr($p3, 0, 5);
346
+ $p5 = substr($p3, 5);
347
+ $campo3 = "$p4.$p5";
348
+
349
+ // 4. Campo - digito verificador do codigo de barras
350
+ $campo4 = substr($codigo, 4, 1);
351
+
352
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
353
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
354
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
355
+ $p1 = substr($codigo, 5, 4);
356
+ $p2 = substr($codigo, 9, 10);
357
+ $campo5 = "$p1$p2";
358
+
359
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
360
+ }
361
+
362
+ function geraCodigoBanco($numero) {
363
+ $parte1 = substr($numero, 0, 3);
364
+ $parte2 = modulo_11($parte1);
365
+ return $parte1 . "-" . $parte2;
366
+ }
367
+
368
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_santander_banespa.php ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Santander-Banespa : Fabio R. Lenharo |
27
+ // +----------------------------------------------------------------------------+
28
+
29
+ $codigobanco = "033"; //Antigamente era 353
30
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
31
+ $nummoeda = "9";
32
+ $fixo = "9"; // Numero fixo para a posi��o 05-05
33
+ $ios = "0"; // IOS - somente para Seguradoras (Se 7% informar 7, limitado 9%)
34
+ // Demais clientes usar 0 (zero)
35
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
36
+
37
+ //valor tem 10 digitos, sem virgula
38
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
39
+ //Modalidade Carteira
40
+ $carteira = $dadosboleto["carteira"];
41
+ //codigocedente deve possuir 7 caracteres
42
+ $codigocliente = formata_numero($dadosboleto["codigo_cliente"],7,0);
43
+
44
+ //nosso n�mero (sem dv) � 11 digitos
45
+ $nnum = formata_numero($dadosboleto["nosso_numero"],12,0);
46
+ //dv do nosso n�mero
47
+ $dv_nosso_numero = modulo_11($nnum,9,0);
48
+ // nosso n�mero (com dvs) s�o 13 digitos
49
+ $nossonumero = $nnum.$dv_nosso_numero;
50
+
51
+ // n�mero documento � 12 digitos
52
+ $nnum2 = formata_numero($dadosboleto["numero_documento"],12,0);
53
+ $numerodopedido = $nnum2;
54
+
55
+ $vencimento = $dadosboleto["data_vencimento"];
56
+
57
+ $vencjuliano = dataJuliano($vencimento);
58
+
59
+ // 43 numeros para o calculo do digito verificador do codigo de barras
60
+ $barra = "$codigobanco$nummoeda$fator_vencimento$valor$fixo$codigocliente$nossonumero$ios$carteira";
61
+
62
+ //$barra = "$codigobanco$nummoeda$fixo$codigocliente$nossonumero$ios$carteira";
63
+ $dv = digitoVerificador_barra($barra);
64
+ // Numero para o codigo de barras com 44 digitos
65
+ $linha = substr($barra,0,4) . $dv . substr($barra,4);
66
+
67
+ $dadosboleto["codigo_barras"] = $linha;
68
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
69
+ $dadosboleto["nosso_numero"] = $nossonumero;
70
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
71
+ $dadosboleto["numero_documento"] = $numerodopedido;
72
+
73
+ function dataJuliano($data)
74
+ {
75
+ $dia = (int)substr($data,1,2);
76
+ $mes = (int)substr($data,3,2);
77
+ $ano = (int)substr($data,6,4);
78
+ $dataf = strtotime("$ano/$mes/$dia");
79
+ $datai = strtotime(($ano-1).'/12/31');
80
+ $dias = (int)(($dataf - $datai)/(60*60*24));
81
+ return str_pad($dias,3,'0',STR_PAD_LEFT).substr($data,9,4);
82
+ }
83
+
84
+ function digitoVerificador_nossonumero($numero) {
85
+ $resto2 = modulo_11($numero, 9, 1);
86
+ $digito = 11 - $resto2;
87
+ if ($digito == 10 || $digito == 11) {
88
+ $dv = 0;
89
+ } else {
90
+ $dv = $digito;
91
+ }
92
+ return $dv;
93
+ }
94
+
95
+
96
+ function digitoVerificador_barra($numero) {
97
+ $resto2 = modulo_11($numero, 9, 1);
98
+ if ($resto2 == 0 || $resto2 == 1 || $resto2 == 10) {
99
+ $dv = 1;
100
+ } else {
101
+ $dv = 11 - $resto2;
102
+ }
103
+ return $dv;
104
+ }
105
+
106
+
107
+ // FUN��ES
108
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
109
+
110
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
111
+ if ($tipo == "geral") {
112
+ $numero = str_replace(",","",$numero);
113
+ while(strlen($numero)<$loop){
114
+ $numero = $insert . $numero;
115
+ }
116
+ }
117
+ if ($tipo == "valor") {
118
+ /*
119
+ retira as virgulas
120
+ formata o numero
121
+ preenche com zeros
122
+ */
123
+ $numero = str_replace(",","",$numero);
124
+ while(strlen($numero)<$loop){
125
+ $numero = $insert . $numero;
126
+ }
127
+ }
128
+ if ($tipo == "convenio") {
129
+ while(strlen($numero)<$loop){
130
+ $numero = $numero . $insert;
131
+ }
132
+ }
133
+ return $numero;
134
+ }
135
+
136
+
137
+ function fbarcode($valor){
138
+
139
+ $fino = 1 ;
140
+ $largo = 3 ;
141
+ $altura = 50 ;
142
+
143
+ $barcodes[0] = "00110" ;
144
+ $barcodes[1] = "10001" ;
145
+ $barcodes[2] = "01001" ;
146
+ $barcodes[3] = "11000" ;
147
+ $barcodes[4] = "00101" ;
148
+ $barcodes[5] = "10100" ;
149
+ $barcodes[6] = "01100" ;
150
+ $barcodes[7] = "00011" ;
151
+ $barcodes[8] = "10010" ;
152
+ $barcodes[9] = "01010" ;
153
+ for($f1=9;$f1>=0;$f1--){
154
+ for($f2=9;$f2>=0;$f2--){
155
+ $f = ($f1 * 10) + $f2 ;
156
+ $texto = "" ;
157
+ for($i=1;$i<6;$i++){
158
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
159
+ }
160
+ $barcodes[$f] = $texto;
161
+ }
162
+ }
163
+
164
+
165
+ //Desenho da barra
166
+
167
+
168
+
169
+
170
+
171
+ //Guarda inicial
172
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
173
+ ?><img src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
174
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
175
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
176
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
177
+
178
+ <?php
179
+ $texto = $valor ;
180
+ if((strlen($texto) % 2) <> 0){
181
+ $texto = "0" . $texto;
182
+ }
183
+
184
+ // Draw dos dados
185
+ while (strlen($texto) > 0) {
186
+ $i = round(esquerda($texto,2));
187
+ $texto = direita($texto,strlen($texto)-2);
188
+ $f = $barcodes[$i];
189
+ for($i=1;$i<11;$i+=2){
190
+ if (substr($f,($i-1),1) == "0") {
191
+ $f1 = $fino ;
192
+ }else{
193
+ $f1 = $largo ;
194
+ }
195
+ ?>
196
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
197
+ <?php
198
+ if (substr($f,$i,1) == "0") {
199
+ $f2 = $fino ;
200
+ }else{
201
+ $f2 = $largo ;
202
+ }
203
+ ?>
204
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
205
+ <?php
206
+ }
207
+ }
208
+
209
+ // Draw guarda final
210
+ ?>
211
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
212
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
213
+ src=<?php echo $home_url; ?>lib/boleto_php/imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
214
+ <?php
215
+ } //Fim da fun��o
216
+
217
+ function esquerda($entra,$comp){
218
+ return substr($entra,0,$comp);
219
+ }
220
+
221
+ function direita($entra,$comp){
222
+ return substr($entra,strlen($entra)-$comp,$comp);
223
+ }
224
+
225
+ function fator_vencimento($data) {
226
+ $data = split("/",$data);
227
+ $ano = $data[2];
228
+ $mes = $data[1];
229
+ $dia = $data[0];
230
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
231
+ }
232
+
233
+ function _dateToDays($year,$month,$day) {
234
+ $century = substr($year, 0, 2);
235
+ $year = substr($year, 2, 2);
236
+ if ($month > 2) {
237
+ $month -= 3;
238
+ } else {
239
+ $month += 9;
240
+ if ($year) {
241
+ $year--;
242
+ } else {
243
+ $year = 99;
244
+ $century --;
245
+ }
246
+ }
247
+ return ( floor(( 146097 * $century) / 4 ) +
248
+ floor(( 1461 * $year) / 4 ) +
249
+ floor(( 153 * $month + 2) / 5 ) +
250
+ $day + 1721119);
251
+ }
252
+
253
+ function modulo_10($num) {
254
+ $numtotal10 = 0;
255
+ $fator = 2;
256
+
257
+ // Separacao dos numeros
258
+ for ($i = strlen($num); $i > 0; $i--) {
259
+ // pega cada numero isoladamente
260
+ $numeros[$i] = substr($num,$i-1,1);
261
+ // Efetua multiplicacao do numero pelo (falor 10)
262
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
263
+ $temp = $numeros[$i] * $fator;
264
+ $temp0=0;
265
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
266
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
267
+ // monta sequencia para soma dos digitos no (modulo 10)
268
+ $numtotal10 += $parcial10[$i];
269
+ if ($fator == 2) {
270
+ $fator = 1;
271
+ } else {
272
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
273
+ }
274
+ }
275
+
276
+ // v�rias linhas removidas, vide fun��o original
277
+ // Calculo do modulo 10
278
+ $resto = $numtotal10 % 10;
279
+ $digito = 10 - $resto;
280
+ if ($resto == 0) {
281
+ $digito = 0;
282
+ }
283
+
284
+ return $digito;
285
+
286
+ }
287
+
288
+ function modulo_11($num, $base=9, $r=0) {
289
+ /**
290
+ * Autor:
291
+ * Pablo Costa <pablo@users.sourceforge.net>
292
+ *
293
+ * Fun��o:
294
+ * Calculo do Modulo 11 para geracao do digito verificador
295
+ * de boletos bancarios conforme documentos obtidos
296
+ * da Febraban - www.febraban.org.br
297
+ *
298
+ * Entrada:
299
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
300
+ * $base: valor maximo de multiplicacao [2-$base]
301
+ * $r: quando especificado um devolve somente o resto
302
+ *
303
+ * Sa�da:
304
+ * Retorna o Digito verificador.
305
+ *
306
+ * Observa��es:
307
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
308
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
309
+ */
310
+
311
+ $soma = 0;
312
+ $fator = 2;
313
+
314
+ /* Separacao dos numeros */
315
+ for ($i = strlen($num); $i > 0; $i--) {
316
+ // pega cada numero isoladamente
317
+ $numeros[$i] = substr($num,$i-1,1);
318
+ // Efetua multiplicacao do numero pelo falor
319
+ $parcial[$i] = $numeros[$i] * $fator;
320
+ // Soma dos digitos
321
+ $soma += $parcial[$i];
322
+ if ($fator == $base) {
323
+ // restaura fator de multiplicacao para 2
324
+ $fator = 1;
325
+ }
326
+ $fator++;
327
+ }
328
+
329
+ /* Calculo do modulo 11 */
330
+ if ($r == 0) {
331
+ $soma *= 10;
332
+ $digito = $soma % 11;
333
+ if ($digito == 10) {
334
+ $digito = 0;
335
+ }
336
+ return $digito;
337
+ } elseif ($r == 1){
338
+ $resto = $soma % 11;
339
+ return $resto;
340
+ }
341
+ }
342
+
343
+ function modulo_11_invertido($num) // Calculo de Modulo 11 "Invertido" (com pesos de 9 a 2 e n�o de 2 a 9)
344
+ {
345
+ $ftini = 2;
346
+ $fator = $ftfim = 9;
347
+ $soma = 0;
348
+
349
+ for ($i = strlen($num); $i > 0; $i--)
350
+ {
351
+ $soma += substr($num,$i-1,1) * $fator;
352
+ if(--$fator < $ftini)
353
+ $fator = $ftfim;
354
+ }
355
+
356
+ $digito = $soma % 11;
357
+
358
+ if($digito > 9)
359
+ $digito = 0;
360
+
361
+ return $digito;
362
+ }
363
+
364
+ function monta_linha_digitavel($codigo)
365
+ {
366
+ // Posi��o Conte�do
367
+ // 1 a 3 N�mero do banco
368
+ // 4 C�digo da Moeda - 9 para Real ou 8 - outras moedas
369
+ // 5 Fixo "9'
370
+ // 6 a 9 PSK - codigo cliente (4 primeiros digitos)
371
+ // 10 a 12 Restante do PSK (3 digitos)
372
+ // 13 a 19 7 primeiros digitos do Nosso Numero
373
+ // 20 a 25 Restante do Nosso numero (8 digitos) - total 13 (incluindo digito verificador)
374
+ // 26 a 26 IOS
375
+ // 27 a 29 Tipo Modalidade Carteira
376
+ // 30 a 30 D�gito verificador do c�digo de barras
377
+ // 31 a 34 Fator de vencimento (qtdade de dias desde 07/10/1997 at� a data de vencimento)
378
+ // 35 a 44 Valor do t�tulo
379
+
380
+ // 1. Primeiro Grupo - composto pelo c�digo do banco, c�digo da mo�da, Valor Fixo "9"
381
+ // e 4 primeiros digitos do PSK (codigo do cliente) e DV (modulo10) deste campo
382
+ $campo1 = substr($codigo,0,3) . substr($codigo,3,1) . substr($codigo,19,1) . substr($codigo,20,4);
383
+ $campo1 = $campo1 . modulo_10($campo1);
384
+ $campo1 = substr($campo1, 0, 5).'.'.substr($campo1, 5);
385
+
386
+
387
+
388
+ // 2. Segundo Grupo - composto pelas 3 �ltimas posi�oes do PSK e 7 primeiros d�gitos do Nosso N�mero
389
+ // e DV (modulo10) deste campo
390
+ $campo2 = substr($codigo,24,10);
391
+ $campo2 = $campo2 . modulo_10($campo2);
392
+ $campo2 = substr($campo2, 0, 5).'.'.substr($campo2, 5);
393
+
394
+
395
+ // 3. Terceiro Grupo - Composto por : Restante do Nosso Numero (6 digitos), IOS, Modalidade da Carteira
396
+ // e DV (modulo10) deste campo
397
+ $campo3 = substr($codigo,34,10);
398
+ $campo3 = $campo3 . modulo_10($campo3);
399
+ $campo3 = substr($campo3, 0, 5).'.'.substr($campo3, 5);
400
+
401
+
402
+
403
+ // 4. Campo - digito verificador do codigo de barras
404
+ $campo4 = substr($codigo, 4, 1);
405
+
406
+
407
+
408
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
409
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
410
+ // tratar de valor zerado, a representacao deve ser 0000000000 (dez zeros).
411
+ $campo5 = substr($codigo, 5, 4) . substr($codigo, 9, 10);
412
+
413
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
414
+ }
415
+
416
+ function geraCodigoBanco($numero) {
417
+ $parte1 = substr($numero, 0, 3);
418
+ $parte2 = modulo_11($parte1);
419
+ return $parte1 . "-" . $parte2;
420
+ }
421
+
422
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_sicredi.php ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenv Boleto SICREDI: Rafael Azenha Aquini <rafael@tchesoft.com> |
27
+ // | Marco Antonio Righi <marcorighi@tchesoft.com> |
28
+ // | Homologa��o e ajuste de algumas rotinas. |
29
+ // | Marcelo Belinato <mbelinato@gmail.com> |
30
+ // +----------------------------------------------------------------------+
31
+
32
+
33
+ $codigobanco = "748";
34
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
35
+ $nummoeda = "9";
36
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
37
+
38
+ //valor tem 10 digitos, sem virgula
39
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
40
+ //agencia � 4 digitos
41
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
42
+ //posto da cooperativa de credito � dois digitos
43
+ $posto = formata_numero($dadosboleto["posto"],2,0);
44
+ //conta � 5 digitos
45
+ $conta = formata_numero($dadosboleto["conta"],5,0);
46
+ //dv da conta
47
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
48
+ //carteira � 2 caracteres
49
+ $carteira = $dadosboleto["carteira"];
50
+
51
+ //fillers - zeros Obs: filler1 contera 1 quando houver valor expresso no campo valor
52
+ $filler1 = 1;
53
+ $filler2 = 0;
54
+
55
+ // Byte de Identifica��o do cedente 1 - Cooperativa; 2 a 9 - Cedente
56
+ $byteidt = $dadosboleto["byte_idt"];
57
+
58
+ // Codigo referente ao tipo de cobran�a: "3" - SICREDI
59
+ $tipo_cobranca = 3;
60
+
61
+ // Codigo referente ao tipo de carteira: "1" - Carteira Simples
62
+ $tipo_carteira = 1;
63
+
64
+ //nosso n�mero (sem dv) � 8 digitos
65
+ $nnum = $dadosboleto["inicio_nosso_numero"] . $byteidt . formata_numero($dadosboleto["nosso_numero"],5,0);
66
+
67
+ //calculo do DV do nosso n�mero
68
+ $dv_nosso_numero = digitoVerificador_nossonumero("$agencia$posto$conta$nnum");
69
+
70
+ $nossonumero_dv ="$nnum$dv_nosso_numero";
71
+
72
+ //forma��o do campo livre
73
+ $campolivre = "$tipo_cobranca$tipo_carteira$nossonumero_dv$agencia$posto$conta$filler1$filler2";
74
+ $campolivre_dv = $campolivre . digitoVerificador_campolivre($campolivre);
75
+
76
+ // 43 numeros para o calculo do digito verificador do codigo de barras
77
+ $dv = digitoVerificador_barra("$codigobanco$nummoeda$fator_vencimento$valor$campolivre_dv", 9, 0);
78
+
79
+ // Numero para o codigo de barras com 44 digitos
80
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$campolivre_dv";
81
+
82
+ // Formata strings para impressao no boleto
83
+ $nossonumero = substr($nossonumero_dv,0,2).'/'.substr($nossonumero_dv,2,6).'-'.substr($nossonumero_dv,8,1);
84
+ $agencia_codigo = $agencia.".". $posto.".".$conta;
85
+
86
+ $dadosboleto["codigo_barras"] = $linha;
87
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
88
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
89
+ $dadosboleto["nosso_numero"] = $nossonumero;
90
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
91
+
92
+ function digitoVerificador_nossonumero($numero) {
93
+ $resto2 = modulo_11($numero, 9, 1);
94
+ // esta rotina sofrer algumas altera��es para ajustar no layout do SICREDI
95
+ $digito = 11 - $resto2;
96
+ if ($digito > 9 ) {
97
+ $dv = 0;
98
+ } else {
99
+ $dv = $digito;
100
+ }
101
+ return $dv;
102
+ }
103
+
104
+ function digitoVerificador_campolivre($numero) {
105
+ $resto2 = modulo_11($numero, 9, 1);
106
+ // esta rotina sofreu algumas altera��es para ajustar no layout do SICREDI
107
+ if ($resto2 <=1){
108
+ $dv = 0;
109
+ }else{
110
+ $dv = 11 - $resto2;
111
+ }
112
+ return $dv;
113
+ }
114
+
115
+
116
+ function digitoVerificador_barra($numero) {
117
+ $resto2 = modulo_11($numero, 9, 1);
118
+ // esta rotina sofrer algumas altera��es para ajustar no layout do SICREDI
119
+ $digito = 11 - $resto2;
120
+ if ($digito <= 1 || $digito >= 10 ) {
121
+ $dv = 1;
122
+ } else {
123
+ $dv = $digito;
124
+ }
125
+ return $dv;
126
+ }
127
+
128
+
129
+ // FUN��ES
130
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
131
+
132
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
133
+ if ($tipo == "geral") {
134
+ $numero = str_replace(",","",$numero);
135
+ while(strlen($numero)<$loop){
136
+ $numero = $insert . $numero;
137
+ }
138
+ }
139
+ if ($tipo == "valor") {
140
+ /*
141
+ retira as virgulas
142
+ formata o numero
143
+ preenche com zeros
144
+ */
145
+ $numero = str_replace(",","",$numero);
146
+ while(strlen($numero)<$loop){
147
+ $numero = $insert . $numero;
148
+ }
149
+ }
150
+ if ($tipo == "convenio") {
151
+ while(strlen($numero)<$loop){
152
+ $numero = $numero . $insert;
153
+ }
154
+ }
155
+ return $numero;
156
+ }
157
+
158
+
159
+ function fbarcode($valor){
160
+
161
+ $fino = 1 ;
162
+ $largo = 3 ;
163
+ $altura = 50 ;
164
+
165
+ $barcodes[0] = "00110" ;
166
+ $barcodes[1] = "10001" ;
167
+ $barcodes[2] = "01001" ;
168
+ $barcodes[3] = "11000" ;
169
+ $barcodes[4] = "00101" ;
170
+ $barcodes[5] = "10100" ;
171
+ $barcodes[6] = "01100" ;
172
+ $barcodes[7] = "00011" ;
173
+ $barcodes[8] = "10010" ;
174
+ $barcodes[9] = "01010" ;
175
+ for($f1=9;$f1>=0;$f1--){
176
+ for($f2=9;$f2>=0;$f2--){
177
+ $f = ($f1 * 10) + $f2 ;
178
+ $texto = "" ;
179
+ for($i=1;$i<6;$i++){
180
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
181
+ }
182
+ $barcodes[$f] = $texto;
183
+ }
184
+ }
185
+
186
+
187
+ //Desenho da barra
188
+
189
+
190
+ //Guarda inicial
191
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
192
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
193
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
194
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
195
+ <?php
196
+ $texto = $valor ;
197
+ if((strlen($texto) % 2) <> 0){
198
+ $texto = "0" . $texto;
199
+ }
200
+
201
+ // Draw dos dados
202
+ while (strlen($texto) > 0) {
203
+ $i = round(esquerda($texto,2));
204
+ $texto = direita($texto,strlen($texto)-2);
205
+ $f = $barcodes[$i];
206
+ for($i=1;$i<11;$i+=2){
207
+ if (substr($f,($i-1),1) == "0") {
208
+ $f1 = $fino ;
209
+ }else{
210
+ $f1 = $largo ;
211
+ }
212
+ ?>
213
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
214
+ <?php
215
+ if (substr($f,$i,1) == "0") {
216
+ $f2 = $fino ;
217
+ }else{
218
+ $f2 = $largo ;
219
+ }
220
+ ?>
221
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
222
+ <?php
223
+ }
224
+ }
225
+
226
+ // Draw guarda final
227
+ ?>
228
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
229
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
230
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
231
+ <?php
232
+ } //Fim da fun��o
233
+
234
+ function esquerda($entra,$comp){
235
+ return substr($entra,0,$comp);
236
+ }
237
+
238
+ function direita($entra,$comp){
239
+ return substr($entra,strlen($entra)-$comp,$comp);
240
+ }
241
+
242
+ function fator_vencimento($data) {
243
+ $data = explode("/",$data);
244
+ $ano = $data[2];
245
+ $mes = $data[1];
246
+ $dia = $data[0];
247
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
248
+ }
249
+
250
+ function _dateToDays($year,$month,$day) {
251
+ $century = substr($year, 0, 2);
252
+ $year = substr($year, 2, 2);
253
+ if ($month > 2) {
254
+ $month -= 3;
255
+ } else {
256
+ $month += 9;
257
+ if ($year) {
258
+ $year--;
259
+ } else {
260
+ $year = 99;
261
+ $century --;
262
+ }
263
+ }
264
+ return ( floor(( 146097 * $century) / 4 ) +
265
+ floor(( 1461 * $year) / 4 ) +
266
+ floor(( 153 * $month + 2) / 5 ) +
267
+ $day + 1721119);
268
+ }
269
+
270
+ function modulo_10($num) {
271
+ $numtotal10 = 0;
272
+ $fator = 2;
273
+
274
+ // Separacao dos numeros
275
+ for ($i = strlen($num); $i > 0; $i--) {
276
+ // pega cada numero isoladamente
277
+ $numeros[$i] = substr($num,$i-1,1);
278
+ // Efetua multiplicacao do numero pelo (falor 10)
279
+ $temp = $numeros[$i] * $fator;
280
+ $temp0=0;
281
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
282
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
283
+ // monta sequencia para soma dos digitos no (modulo 10)
284
+ $numtotal10 += $parcial10[$i];
285
+ if ($fator == 2) {
286
+ $fator = 1;
287
+ } else {
288
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
289
+ }
290
+ }
291
+
292
+ // v�rias linhas removidas, vide fun��o original
293
+ // Calculo do modulo 10
294
+ $resto = $numtotal10 % 10;
295
+ $digito = 10 - $resto;
296
+ if ($resto == 0) {
297
+ $digito = 0;
298
+ }
299
+
300
+ return $digito;
301
+
302
+ }
303
+
304
+ function modulo_11($num, $base=9, $r=0) {
305
+ /**
306
+ * Autor:
307
+ * Pablo Costa <pablo@users.sourceforge.net>
308
+ *
309
+ * Fun��o:
310
+ * Calculo do Modulo 11 para geracao do digito verificador
311
+ * de boletos bancarios conforme documentos obtidos
312
+ * da Febraban - www.febraban.org.br
313
+ *
314
+ * Entrada:
315
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
316
+ * $base: valor maximo de multiplicacao [2-$base]
317
+ * $r: quando especificado um devolve somente o resto
318
+ *
319
+ * Sa�da:
320
+ * Retorna o Digito verificador.
321
+ *
322
+ * Observa��es:
323
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
324
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
325
+ */
326
+
327
+ $soma = 0;
328
+ $fator = 2;
329
+
330
+ /* Separacao dos numeros */
331
+ for ($i = strlen($num); $i > 0; $i--) {
332
+ // pega cada numero isoladamente
333
+ $numeros[$i] = substr($num,$i-1,1);
334
+ // Efetua multiplicacao do numero pelo falor
335
+ $parcial[$i] = $numeros[$i] * $fator;
336
+ // Soma dos digitos
337
+ $soma += $parcial[$i];
338
+ if ($fator == $base) {
339
+ // restaura fator de multiplicacao para 2
340
+ $fator = 1;
341
+ }
342
+ $fator++;
343
+ }
344
+
345
+ /* Calculo do modulo 11 */
346
+ if ($r == 0) {
347
+ $soma *= 10;
348
+ $digito = $soma % 11;
349
+ return $digito;
350
+ } elseif ($r == 1){
351
+ // esta rotina sofrer algumas altera��es para ajustar no layout do SICREDI
352
+ $r_div = (int)($soma/11);
353
+ $digito = ($soma - ($r_div * 11));
354
+ return $digito;
355
+ }
356
+ }
357
+
358
+ function monta_linha_digitavel($codigo) {
359
+
360
+ // COMPOSICAO DO CODIGO
361
+ // Posi��o | Larg | Conte�do
362
+ // --------+------+---------------
363
+ // 1 a 3 | 03 | Identca��o do banco
364
+ // 4 | 01 | C�digo da Moeda - 9 para R$
365
+ // 5 | 01 | Digito verificador geral do C�digo de Barras
366
+ // 6 a 9 | 04 | Fator de Vencimento
367
+ // 10 a 19 | 10 | Valor (8 inteiros e 2 decimais)
368
+ // 20 a 44 | 25 | Campo Livre definido por cada banco (25 caracteres)
369
+
370
+ //COMPOSICAO DA LINHA DIGITAVEL
371
+
372
+ // 1. Campo - composto pelo c�digo do banco, c�digo da mo�da, as cinco primeiras posi��es
373
+ // do campo livre e DV (modulo10) deste campo
374
+ $p1 = substr($codigo, 0, 4);
375
+ $p2 = substr($codigo, 19, 5);
376
+ $p3 = modulo_10("$p1$p2");
377
+ $p4 = "$p1$p2$p3";
378
+ $p5 = substr($p4, 0, 5);
379
+ $p6 = substr($p4, 5);
380
+ $campo1 = "$p5.$p6";
381
+
382
+ // 2. Campo - composto pelas posi�oes 6 a 15 do campo livre
383
+ // e livre e DV (modulo10) deste campo
384
+ $p1 = substr($codigo, 24, 10);
385
+ $p2 = modulo_10($p1);
386
+ $p3 = "$p1$p2";
387
+ $p4 = substr($p3, 0, 5);
388
+ $p5 = substr($p3, 5);
389
+ $campo2 = "$p4.$p5";
390
+
391
+ // 3. Campo composto pelas posicoes 16 a 25 do campo livre
392
+ // e livre e DV (modulo10) deste campo
393
+ $p1 = substr($codigo, 34, 10);
394
+ $p2 = modulo_10($p1);
395
+ $p3 = "$p1$p2";
396
+ $p4 = substr($p3, 0, 5);
397
+ $p5 = substr($p3, 5);
398
+ $campo3 = "$p4.$p5";
399
+
400
+ // 4. Campo - digito verificador do codigo de barras
401
+ $campo4 = substr($codigo, 4, 1);
402
+
403
+ // 5. Campo composto pelo fator vencimento e valor nominal do documento, sem
404
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
405
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
406
+ $p1 = substr($codigo, 5, 4);
407
+ $p2 = substr($codigo, 9, 10);
408
+ $campo5 = "$p1$p2";
409
+
410
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
411
+ }
412
+
413
+ function geraCodigoBanco($numero) {
414
+ $parte1 = substr($numero, 0, 3);
415
+ // $parte2 = modulo_11($parte1);
416
+ return $parte1 . "-X";
417
+ }
418
+
419
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_sudameris.php ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Sudameris: Fl�vio Yutaka Nakamura |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ $codigobanco = "347";
31
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
32
+ $nummoeda = "9";
33
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
34
+
35
+ //valor tem 10 digitos, sem virgula
36
+ $valor = formata_numero($dadosboleto["valor_boleto"], 10, 0, "valor");
37
+ //agencia � 4 digitos
38
+ $agencia = formata_numero($dadosboleto["agencia"], 4, 0);
39
+ //conta � 7 digitos
40
+ $conta = formata_numero($dadosboleto["conta"], 7, 0);
41
+ //nosso n�mero: 13 digitos
42
+ $nossonum = formata_numero($dadosboleto["nosso_numero"], 13, 0);
43
+
44
+ // Calcula o Digit�o da Cobran�a
45
+ $digitao = modulo_10($nossonum . $agencia . $conta);
46
+ if ($digitao == 10) $digitao = 0;
47
+
48
+ // 43 numeros para o calculo do digito verificador do codigo de barras
49
+ $dv = modulo_11($codigobanco . $nummoeda . $fator_vencimento . $valor . $agencia . $conta . $digitao . $nossonum, 9, 1);
50
+ $dv = ($dv == 0 || $dv == 1) ? 1 : 11 - $dv;
51
+
52
+ // Dados finais
53
+ $dadosboleto["codigo_barras"] = $codigobanco . $nummoeda . $dv . $fator_vencimento . $valor . $agencia . $conta . $digitao . $nossonum;
54
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($codigobanco . $nummoeda . $agencia . $conta . $digitao . $nossonum . $dv . $fator_vencimento . $valor);
55
+ $dadosboleto["agencia_codigo"] = $agencia . '/' . $conta . '/' . $digitao;
56
+ $dadosboleto["nosso_numero"] = $nossonum;
57
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
58
+
59
+ // FUN��ES
60
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
61
+
62
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
63
+ if ($tipo == "geral") {
64
+ $numero = str_replace(",","",$numero);
65
+ while(strlen($numero)<$loop){
66
+ $numero = $insert . $numero;
67
+ }
68
+ }
69
+ if ($tipo == "valor") {
70
+ /*
71
+ retira as virgulas
72
+ formata o numero
73
+ preenche com zeros
74
+ */
75
+ $numero = str_replace(",","",$numero);
76
+ while(strlen($numero)<$loop){
77
+ $numero = $insert . $numero;
78
+ }
79
+ }
80
+ if ($tipo == "convenio") {
81
+ while(strlen($numero)<$loop){
82
+ $numero = $numero . $insert;
83
+ }
84
+ }
85
+ return $numero;
86
+ }
87
+
88
+
89
+ function fbarcode($valor){
90
+
91
+ $fino = 1 ;
92
+ $largo = 3 ;
93
+ $altura = 50 ;
94
+
95
+ $barcodes[0] = "00110" ;
96
+ $barcodes[1] = "10001" ;
97
+ $barcodes[2] = "01001" ;
98
+ $barcodes[3] = "11000" ;
99
+ $barcodes[4] = "00101" ;
100
+ $barcodes[5] = "10100" ;
101
+ $barcodes[6] = "01100" ;
102
+ $barcodes[7] = "00011" ;
103
+ $barcodes[8] = "10010" ;
104
+ $barcodes[9] = "01010" ;
105
+ for($f1=9;$f1>=0;$f1--){
106
+ for($f2=9;$f2>=0;$f2--){
107
+ $f = ($f1 * 10) + $f2 ;
108
+ $texto = "" ;
109
+ for($i=1;$i<6;$i++){
110
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
111
+ }
112
+ $barcodes[$f] = $texto;
113
+ }
114
+ }
115
+
116
+
117
+ //Desenho da barra
118
+
119
+
120
+ //Guarda inicial
121
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
122
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
123
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
124
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
125
+ <?php
126
+ $texto = $valor ;
127
+ if((strlen($texto) % 2) <> 0){
128
+ $texto = "0" . $texto;
129
+ }
130
+
131
+ // Draw dos dados
132
+ while (strlen($texto) > 0) {
133
+ $i = round(esquerda($texto,2));
134
+ $texto = direita($texto,strlen($texto)-2);
135
+ $f = $barcodes[$i];
136
+ for($i=1;$i<11;$i+=2){
137
+ if (substr($f,($i-1),1) == "0") {
138
+ $f1 = $fino ;
139
+ }else{
140
+ $f1 = $largo ;
141
+ }
142
+ ?>
143
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
144
+ <?php
145
+ if (substr($f,$i,1) == "0") {
146
+ $f2 = $fino ;
147
+ }else{
148
+ $f2 = $largo ;
149
+ }
150
+ ?>
151
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
152
+ <?php
153
+ }
154
+ }
155
+
156
+ // Draw guarda final
157
+ ?>
158
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
159
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
160
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
161
+ <?php
162
+ } //Fim da fun��o
163
+
164
+ function esquerda($entra,$comp){
165
+ return substr($entra,0,$comp);
166
+ }
167
+
168
+ function direita($entra,$comp){
169
+ return substr($entra,strlen($entra)-$comp,$comp);
170
+ }
171
+
172
+ function fator_vencimento($data) {
173
+ $data = explode("/",$data);
174
+ $ano = $data[2];
175
+ $mes = $data[1];
176
+ $dia = $data[0];
177
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
178
+ }
179
+
180
+ function _dateToDays($year,$month,$day) {
181
+ $century = substr($year, 0, 2);
182
+ $year = substr($year, 2, 2);
183
+ if ($month > 2) {
184
+ $month -= 3;
185
+ } else {
186
+ $month += 9;
187
+ if ($year) {
188
+ $year--;
189
+ } else {
190
+ $year = 99;
191
+ $century --;
192
+ }
193
+ }
194
+ return ( floor(( 146097 * $century) / 4 ) +
195
+ floor(( 1461 * $year) / 4 ) +
196
+ floor(( 153 * $month + 2) / 5 ) +
197
+ $day + 1721119);
198
+ }
199
+
200
+ function modulo_10($num) {
201
+ $numtotal10 = 0;
202
+ $fator = 2;
203
+
204
+ // Separacao dos numeros
205
+ for ($i = strlen($num); $i > 0; $i--) {
206
+ // pega cada numero isoladamente
207
+ $numeros[$i] = substr($num,$i-1,1);
208
+ // Efetua multiplicacao do numero pelo (falor 10)
209
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
210
+ $temp = $numeros[$i] * $fator;
211
+ $temp0=0;
212
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
213
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
214
+ // monta sequencia para soma dos digitos no (modulo 10)
215
+ $numtotal10 += $parcial10[$i];
216
+ if ($fator == 2) {
217
+ $fator = 1;
218
+ } else {
219
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
220
+ }
221
+ }
222
+
223
+ // v�rias linhas removidas, vide fun��o original
224
+ // Calculo do modulo 10
225
+ $resto = $numtotal10 % 10;
226
+ $digito = 10 - $resto;
227
+ if ($resto == 0) {
228
+ $digito = 0;
229
+ }
230
+
231
+ return $digito;
232
+
233
+ }
234
+
235
+ function modulo_11($num, $base=9, $r=0) {
236
+ /**
237
+ * Autor:
238
+ * Pablo Costa <pablo@users.sourceforge.net>
239
+ *
240
+ * Fun��o:
241
+ * Calculo do Modulo 11 para geracao do digito verificador
242
+ * de boletos bancarios conforme documentos obtidos
243
+ * da Febraban - www.febraban.org.br
244
+ *
245
+ * Entrada:
246
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
247
+ * $base: valor maximo de multiplicacao [2-$base]
248
+ * $r: quando especificado um devolve somente o resto
249
+ *
250
+ * Sa�da:
251
+ * Retorna o Digito verificador.
252
+ *
253
+ * Observa��es:
254
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
255
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
256
+ */
257
+
258
+ $soma = 0;
259
+ $fator = 2;
260
+
261
+ /* Separacao dos numeros */
262
+ for ($i = strlen($num); $i > 0; $i--) {
263
+ // pega cada numero isoladamente
264
+ $numeros[$i] = substr($num,$i-1,1);
265
+ // Efetua multiplicacao do numero pelo falor
266
+ $parcial[$i] = $numeros[$i] * $fator;
267
+ // Soma dos digitos
268
+ $soma += $parcial[$i];
269
+ if ($fator == $base) {
270
+ // restaura fator de multiplicacao para 2
271
+ $fator = 1;
272
+ }
273
+ $fator++;
274
+ }
275
+
276
+ /* Calculo do modulo 11 */
277
+ if ($r == 0) {
278
+ $soma *= 10;
279
+ $digito = $soma % 11;
280
+ if ($digito == 10) {
281
+ $digito = 0;
282
+ }
283
+ return $digito;
284
+ } elseif ($r == 1){
285
+ $resto = $soma % 11;
286
+ return $resto;
287
+ }
288
+ }
289
+
290
+ function geraCodigoBanco($numero) {
291
+ $parte1 = substr($numero, 0, 3);
292
+ $parte2 = modulo_11($parte1);
293
+ return $parte1 . "-" . $parte2;
294
+ }
295
+
296
+ function monta_linha_digitavel($dados) {
297
+ // Padr�o: Sudameris
298
+ // POSI��O CONTE�DO
299
+ // 1 a 3 N�mero do banco
300
+ // 4 C�digo da Moeda
301
+ // 5 a 8 Ag�ncia
302
+ // 9 a 15 Conta
303
+ // 16 Digit�o
304
+ // 17 a 29 Nosso n�mero
305
+ // 30 D�gito do c�digo de barra
306
+ // 31 a 34 Fator de vencimento
307
+ // 35 a 44 Valor
308
+
309
+ if (ereg('^([0-9]{5})([0-9]{4})([0-9]{5})([0-9]{5})([0-9]{5})([0-9]{5})([0-9]{1})([0-9]{4})([0-9]{10})$', $dados, $bloco))
310
+ {
311
+ $dv1 = modulo_10($bloco[1] . $bloco[2]);
312
+ if ($dv1 == 10) $dv1 = 0;
313
+
314
+ $dv2 = modulo_10($bloco[3] . $bloco[4]);
315
+ if ($dv2 == 10) $dv2 = 0;
316
+
317
+ $dv3 = modulo_10($bloco[5] . $bloco[6]);
318
+ if ($dv3 == 10) $dv3 = 0;
319
+
320
+ return ($bloco[1] . '.' . $bloco[2] . $dv1 . ' ' . $bloco[3] . '.' . $bloco[4] . $dv2 . ' ' . $bloco[5] . '.' . $bloco[6] . $dv3 . ' ' . $bloco[7] . ' ' . $bloco[8] . $bloco[9]);
321
+ }
322
+ else
323
+ return '';
324
+ }
325
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/funcoes_unibanco.php ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Unibanco: Elizeu Alcantara |
27
+ // | Colabora��es: Humberto Coelho Oliveira |
28
+ // +----------------------------------------------------------------------+
29
+
30
+
31
+ $codigobanco = "409";
32
+ $codigo_banco_com_dv = geraCodigoBanco($codigobanco);
33
+ $nummoeda = "9";
34
+ $fator_vencimento = fator_vencimento($dadosboleto["data_vencimento"]);
35
+ $cvt = "5";
36
+ $zero = "00";
37
+
38
+ //valor tem 10 digitos, sem virgula
39
+ $valor = formata_numero($dadosboleto["valor_boleto"],10,0,"valor");
40
+ //agencia � 4 digitos
41
+ $agencia = formata_numero($dadosboleto["agencia"],4,0);
42
+ //conta � 6 digitos + 1 do dv
43
+ $conta = formata_numero($dadosboleto["conta"],6,0);
44
+ //dv da conta
45
+ $conta_dv = formata_numero($dadosboleto["conta_dv"],1,0);
46
+ //carteira � 2 digitos
47
+ $carteira = $dadosboleto["carteira"];
48
+
49
+ //nosso n�mero (sem dv) � 14 digitos
50
+ $nnum = formata_numero($dadosboleto["nosso_numero"],14,0);
51
+ //dv do nosso n�mero
52
+ $dv_nosso_numero = modulo_11($nnum);
53
+ $nossonumero_dv = "$nnum$dv_nosso_numero";
54
+
55
+ //codigo_cliente � 6 digitos + 1 do dv
56
+ $codigo_cliente = formata_numero($dadosboleto["codigo_cliente"],7,0);
57
+
58
+ // 43 numeros para o calculo do digito verificador
59
+ $dv = digitoVerificador("$codigobanco$nummoeda$fator_vencimento$valor$cvt$codigo_cliente$zero$nossonumero_dv");
60
+ // Numero para o codigo de barras com 44 digitos
61
+ $linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$cvt$codigo_cliente$zero$nossonumero_dv"; //ok
62
+
63
+ $nossonumero = substr($nossonumero_dv,0,14).'-'.substr($nossonumero_dv,14,1);
64
+ $agencia_codigo = $agencia." / ". $conta ."-". $conta_dv;
65
+
66
+ $dadosboleto["codigo_barras"] = $linha;
67
+ $dadosboleto["linha_digitavel"] = monta_linha_digitavel($linha);
68
+ $dadosboleto["agencia_codigo"] = $agencia_codigo;
69
+ $dadosboleto["nosso_numero"] = $nossonumero;
70
+ $dadosboleto["codigo_banco_com_dv"] = $codigo_banco_com_dv;
71
+
72
+
73
+ // FUN��ES
74
+ // Algumas foram retiradas do Projeto PhpBoleto e modificadas para atender as particularidades de cada banco
75
+
76
+ function digitoVerificador($numero) {
77
+ $digito = modulo_11($numero);
78
+ if (in_array((int)$digito,array(0,1,10))) {
79
+ $digito = 1;
80
+ }
81
+ return $digito;
82
+ }
83
+
84
+ function formata_numero($numero,$loop,$insert,$tipo = "geral") {
85
+ if ($tipo == "geral") {
86
+ $numero = str_replace(",","",$numero);
87
+ while(strlen($numero)<$loop){
88
+ $numero = $insert . $numero;
89
+ }
90
+ }
91
+ if ($tipo == "valor") {
92
+ /*
93
+ retira as virgulas
94
+ formata o numero
95
+ preenche com zeros
96
+ */
97
+ $numero = str_replace(",","",$numero);
98
+ while(strlen($numero)<$loop){
99
+ $numero = $insert . $numero;
100
+ }
101
+ }
102
+ if ($tipo == "convenio") {
103
+ while(strlen($numero)<$loop){
104
+ $numero = $numero . $insert;
105
+ }
106
+ }
107
+ return $numero;
108
+ }
109
+
110
+
111
+ function fbarcode($valor){
112
+
113
+ $fino = 1 ;
114
+ $largo = 3 ;
115
+ $altura = 50 ;
116
+
117
+ $barcodes[0] = "00110" ;
118
+ $barcodes[1] = "10001" ;
119
+ $barcodes[2] = "01001" ;
120
+ $barcodes[3] = "11000" ;
121
+ $barcodes[4] = "00101" ;
122
+ $barcodes[5] = "10100" ;
123
+ $barcodes[6] = "01100" ;
124
+ $barcodes[7] = "00011" ;
125
+ $barcodes[8] = "10010" ;
126
+ $barcodes[9] = "01010" ;
127
+ for($f1=9;$f1>=0;$f1--){
128
+ for($f2=9;$f2>=0;$f2--){
129
+ $f = ($f1 * 10) + $f2 ;
130
+ $texto = "" ;
131
+ for($i=1;$i<6;$i++){
132
+ $texto .= substr($barcodes[$f1],($i-1),1) . substr($barcodes[$f2],($i-1),1);
133
+ }
134
+ $barcodes[$f] = $texto;
135
+ }
136
+ }
137
+
138
+
139
+ //Desenho da barra
140
+
141
+
142
+ //Guarda inicial
143
+ ?><img src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
144
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
145
+ src=imagens/p.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
146
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
147
+ <?php
148
+ $texto = $valor ;
149
+ if((strlen($texto) % 2) <> 0){
150
+ $texto = "0" . $texto;
151
+ }
152
+
153
+ // Draw dos dados
154
+ while (strlen($texto) > 0) {
155
+ $i = round(esquerda($texto,2));
156
+ $texto = direita($texto,strlen($texto)-2);
157
+ $f = $barcodes[$i];
158
+ for($i=1;$i<11;$i+=2){
159
+ if (substr($f,($i-1),1) == "0") {
160
+ $f1 = $fino ;
161
+ }else{
162
+ $f1 = $largo ;
163
+ }
164
+ ?>
165
+ src=imagens/p.png width=<?php echo $f1?> height=<?php echo $altura?> border=0><img
166
+ <?php
167
+ if (substr($f,$i,1) == "0") {
168
+ $f2 = $fino ;
169
+ }else{
170
+ $f2 = $largo ;
171
+ }
172
+ ?>
173
+ src=imagens/b.png width=<?php echo $f2?> height=<?php echo $altura?> border=0><img
174
+ <?php
175
+ }
176
+ }
177
+
178
+ // Draw guarda final
179
+ ?>
180
+ src=imagens/p.png width=<?php echo $largo?> height=<?php echo $altura?> border=0><img
181
+ src=imagens/b.png width=<?php echo $fino?> height=<?php echo $altura?> border=0><img
182
+ src=imagens/p.png width=<?php echo 1?> height=<?php echo $altura?> border=0>
183
+ <?php
184
+ } //Fim da fun��o
185
+
186
+ function esquerda($entra,$comp){
187
+ return substr($entra,0,$comp);
188
+ }
189
+
190
+ function direita($entra,$comp){
191
+ return substr($entra,strlen($entra)-$comp,$comp);
192
+ }
193
+
194
+ function fator_vencimento($data) {
195
+ $data = explode("/",$data);
196
+ $ano = $data[2];
197
+ $mes = $data[1];
198
+ $dia = $data[0];
199
+ return(abs((_dateToDays("1997","10","07")) - (_dateToDays($ano, $mes, $dia))));
200
+ }
201
+
202
+ function _dateToDays($year,$month,$day) {
203
+ $century = substr($year, 0, 2);
204
+ $year = substr($year, 2, 2);
205
+ if ($month > 2) {
206
+ $month -= 3;
207
+ } else {
208
+ $month += 9;
209
+ if ($year) {
210
+ $year--;
211
+ } else {
212
+ $year = 99;
213
+ $century --;
214
+ }
215
+ }
216
+ return ( floor(( 146097 * $century) / 4 ) +
217
+ floor(( 1461 * $year) / 4 ) +
218
+ floor(( 153 * $month + 2) / 5 ) +
219
+ $day + 1721119);
220
+ }
221
+
222
+ function modulo_10($num) {
223
+ $numtotal10 = 0;
224
+ $fator = 2;
225
+
226
+ // Separacao dos numeros
227
+ for ($i = strlen($num); $i > 0; $i--) {
228
+ // pega cada numero isoladamente
229
+ $numeros[$i] = substr($num,$i-1,1);
230
+ // Efetua multiplicacao do numero pelo (falor 10)
231
+ // 2002-07-07 01:33:34 Macete para adequar ao Mod10 do Ita�
232
+ $temp = $numeros[$i] * $fator;
233
+ $temp0=0;
234
+ foreach (preg_split('//',$temp,-1,PREG_SPLIT_NO_EMPTY) as $k=>$v){ $temp0+=$v; }
235
+ $parcial10[$i] = $temp0; //$numeros[$i] * $fator;
236
+ // monta sequencia para soma dos digitos no (modulo 10)
237
+ $numtotal10 += $parcial10[$i];
238
+ if ($fator == 2) {
239
+ $fator = 1;
240
+ } else {
241
+ $fator = 2; // intercala fator de multiplicacao (modulo 10)
242
+ }
243
+ }
244
+
245
+ // v�rias linhas removidas, vide fun��o original
246
+ // Calculo do modulo 10
247
+ $resto = $numtotal10 % 10;
248
+ $digito = 10 - $resto;
249
+ if ($resto == 0) {
250
+ $digito = 0;
251
+ }
252
+
253
+ return $digito;
254
+
255
+ }
256
+
257
+ function modulo_11($num, $base=9, $r=0) {
258
+ /**
259
+ * Autor:
260
+ * Pablo Costa <pablo@users.sourceforge.net>
261
+ *
262
+ * Fun��o:
263
+ * Calculo do Modulo 11 para geracao do digito verificador
264
+ * de boletos bancarios conforme documentos obtidos
265
+ * da Febraban - www.febraban.org.br
266
+ *
267
+ * Entrada:
268
+ * $num: string num�rica para a qual se deseja calcularo digito verificador;
269
+ * $base: valor maximo de multiplicacao [2-$base]
270
+ * $r: quando especificado um devolve somente o resto
271
+ *
272
+ * Sa�da:
273
+ * Retorna o Digito verificador.
274
+ *
275
+ * Observa��es:
276
+ * - Script desenvolvido sem nenhum reaproveitamento de c�digo pr� existente.
277
+ * - Assume-se que a verifica��o do formato das vari�veis de entrada � feita antes da execu��o deste script.
278
+ */
279
+
280
+ $soma = 0;
281
+ $fator = 2;
282
+
283
+ /* Separacao dos numeros */
284
+ for ($i = strlen($num); $i > 0; $i--) {
285
+ // pega cada numero isoladamente
286
+ $numeros[$i] = substr($num,$i-1,1);
287
+ // Efetua multiplicacao do numero pelo falor
288
+ $parcial[$i] = $numeros[$i] * $fator;
289
+ // Soma dos digitos
290
+ $soma += $parcial[$i];
291
+ if ($fator == $base) {
292
+ // restaura fator de multiplicacao para 2
293
+ $fator = 1;
294
+ }
295
+ $fator++;
296
+ }
297
+
298
+ /* Calculo do modulo 11 */
299
+ if ($r == 0) {
300
+ $soma *= 10;
301
+ $digito = $soma % 11;
302
+ if ($digito == 10) {
303
+ $digito = 0;
304
+ }
305
+ return $digito;
306
+ } elseif ($r == 1){
307
+ $resto = $soma % 11;
308
+ return $resto;
309
+ }
310
+ }
311
+
312
+ function monta_linha_digitavel($codigo) {
313
+
314
+ $banco = substr($codigo,0,3);
315
+ $moeda = substr($codigo,3,1);
316
+ $k = substr($codigo,4,1);
317
+ $fator = substr($codigo,5,4);
318
+ $valor = substr($codigo,9,10);
319
+ $cvt = substr($codigo,19,1);
320
+ $codigo_cliente = substr($codigo,20,7);
321
+ $zero = substr($codigo,27,2);
322
+ $nossonumero_dv = substr($codigo,29,15);
323
+
324
+ $p1 = $banco.$moeda.$cvt.substr($codigo_cliente,0,4);
325
+ $dv_1 = modulo_10($p1);
326
+ $campo1 = substr($p1,0,5).'.'.substr($p1,-4).$dv_1;
327
+
328
+ $p12 = substr($codigo_cliente,4,3).$zero.substr($nossonumero_dv,0,5);
329
+ $dv_2 = modulo_10($p12);
330
+ $campo2 = substr($p12,0,5).'.'.substr($p12,-5).$dv_2;
331
+
332
+ $p13 = substr($nossonumero_dv,5,10);
333
+ $dv_3 = modulo_10($p13);
334
+ $campo3 = substr($p13,0,5).'.'.substr($p13,-5).$dv_3;
335
+
336
+ $campo4 = $k;
337
+
338
+ // 5. Campo composto pelo valor nominal pelo valor nominal do documento, sem
339
+ // indicacao de zeros a esquerda e sem edicao (sem ponto e virgula). Quando se
340
+ // tratar de valor zerado, a representacao deve ser 000 (tres zeros).
341
+ $campo5 = $fator.$valor;
342
+
343
+ return "$campo1 $campo2 $campo3 $campo4 $campo5";
344
+ }
345
+
346
+ function geraCodigoBanco($numero) {
347
+ $parte1 = substr($numero, 0, 3);
348
+ $parte2 = modulo_11($parte1);
349
+ return $parte1 . "-" . $parte2;
350
+ }
351
+
352
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bancoob.php ADDED
@@ -0,0 +1,850 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto BANCOOB/SICOOB: Marcelo de Souza |
27
+ // | Ajuste de algumas rotinas: Anderson Nuernberg |
28
+ // +----------------------------------------------------------------------+
29
+
30
+ ?>
31
+
32
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
33
+ <html>
34
+ <head>
35
+ <title><?php echo $dadosboleto["identificacao"]; ?></title>
36
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
37
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
38
+
39
+ <style type="text/css">
40
+ <!--
41
+ .ti {font: 9px Arial, Helvetica, sans-serif}
42
+ -->
43
+ </style>
44
+ </HEAD>
45
+ <BODY>
46
+ <STYLE>
47
+
48
+ @media screen,print {
49
+
50
+ /* *** TIPOGRAFIA BASICA *** */
51
+
52
+ * {
53
+ font-family: Arial;
54
+ font-size: 12px;
55
+ margin: 0;
56
+ padding: 0;
57
+ }
58
+
59
+ .notice {
60
+ color: red;
61
+ }
62
+
63
+
64
+ /* *** LINHAS GERAIS *** */
65
+
66
+ #container {
67
+ width: 666px;
68
+ margin: 0px auto;
69
+ padding-bottom: 30px;
70
+ }
71
+
72
+ #instructions {
73
+ margin: 0;
74
+ padding: 0 0 20px 0;
75
+ }
76
+
77
+ #boleto {
78
+ width: 666px;
79
+ margin: 0;
80
+ padding: 0;
81
+ }
82
+
83
+
84
+ /* *** CABECALHO *** */
85
+
86
+ #instr_header {
87
+ background: url('imagens/logo_empresa.png') no-repeat top left;
88
+ padding-left: 160px;
89
+ height: 65px;
90
+ }
91
+
92
+ #instr_header h1 {
93
+ font-size: 16px;
94
+ margin: 5px 0px;
95
+ }
96
+
97
+ #instr_header address {
98
+ font-style: normal;
99
+ }
100
+
101
+ #instr_content {
102
+
103
+ }
104
+
105
+ #instr_content h2 {
106
+ font-size: 10px;
107
+ font-weight: bold;
108
+ }
109
+
110
+ #instr_content p {
111
+ font-size: 10px;
112
+ margin: 4px 0px;
113
+ }
114
+
115
+ #instr_content ol {
116
+ font-size: 10px;
117
+ margin: 5px 0;
118
+ }
119
+
120
+ #instr_content ol li {
121
+ font-size: 10px;
122
+ text-indent: 10px;
123
+ margin: 2px 0px;
124
+ list-style-position: inside;
125
+ }
126
+
127
+ #instr_content ol li p {
128
+ font-size: 10px;
129
+ padding-bottom: 4px;
130
+ }
131
+
132
+
133
+ /* *** BOLETO *** */
134
+
135
+ #boleto .cut {
136
+ width: 666px;
137
+ margin: 0px auto;
138
+ border-bottom: 1px black dashed;
139
+ }
140
+
141
+ #boleto .cut p {
142
+ margin: 0 0 5px 0;
143
+ padding: 0px;
144
+ font-family: 'Arial Narrow';
145
+ font-size: 9px;
146
+ color: black;
147
+ }
148
+
149
+ table.header {
150
+ width: 666px;
151
+ height: 38px;
152
+ margin-top: 20px;
153
+ margin-bottom: 10px;
154
+ border-bottom: 2px black solid;
155
+
156
+ }
157
+
158
+
159
+ table.header div.field_cod_banco {
160
+ width: 46px;
161
+ height: 19px;
162
+ margin-left: 5px;
163
+ padding-top: 3px;
164
+ text-align: center;
165
+ font-size: 14px;
166
+ font-weight: bold;
167
+ color: black;
168
+ border-right: 2px solid black;
169
+ border-left: 2px solid black;
170
+ }
171
+
172
+ table.header td.linha_digitavel {
173
+ width: 464px;
174
+ text-align: right;
175
+ font: bold 15px Arial;
176
+ color: black
177
+ }
178
+
179
+ table.line {
180
+ margin-bottom: 3px;
181
+ padding-bottom: 1px;
182
+ border-bottom: 1px black solid;
183
+ }
184
+
185
+ table.line tr.titulos td {
186
+ height: 13px;
187
+ font-family: 'Arial Narrow';
188
+ font-size: 9px;
189
+ color: black;
190
+ border-left: 5px #000000 solid;
191
+ padding-left: 2px;
192
+ }
193
+
194
+ table.line tr.campos td {
195
+ height: 12px;
196
+ font-size: 10px;
197
+ color: black;
198
+ border-left: 5px #000000 solid;
199
+ padding-left: 2px;
200
+ }
201
+
202
+ table.line td p {
203
+ font-size: 10px;
204
+ }
205
+
206
+
207
+ table.line tr.campos td.ag_cod_cedente,
208
+ table.line tr.campos td.nosso_numero,
209
+ table.line tr.campos td.valor_doc,
210
+ table.line tr.campos td.vencimento2,
211
+ table.line tr.campos td.ag_cod_cedente2,
212
+ table.line tr.campos td.nosso_numero2,
213
+ table.line tr.campos td.xvalor,
214
+ table.line tr.campos td.valor_doc2
215
+ {
216
+ text-align: right;
217
+ }
218
+
219
+ table.line tr.campos td.especie,
220
+ table.line tr.campos td.qtd,
221
+ table.line tr.campos td.vencimento,
222
+ table.line tr.campos td.especie_doc,
223
+ table.line tr.campos td.aceite,
224
+ table.line tr.campos td.carteira,
225
+ table.line tr.campos td.especie2,
226
+ table.line tr.campos td.qtd2
227
+ {
228
+ text-align: center;
229
+ }
230
+
231
+ table.line td.last_line {
232
+ vertical-align: top;
233
+ height: 25px;
234
+ }
235
+
236
+ table.line td.last_line table.line {
237
+ margin-bottom: -5px;
238
+ border: 0 white none;
239
+ }
240
+
241
+ td.last_line table.line td.instrucoes {
242
+ border-left: 0 white none;
243
+ padding-left: 5px;
244
+ padding-bottom: 0;
245
+ margin-bottom: 0;
246
+ height: 20px;
247
+ vertical-align: top;
248
+ }
249
+
250
+ table.line td.cedente {
251
+ width: 298px;
252
+ }
253
+
254
+ table.line td.valor_cobrado2 {
255
+ padding-bottom: 0;
256
+ margin-bottom: 0;
257
+ }
258
+
259
+
260
+ table.line td.ag_cod_cedente {
261
+ width: 126px;
262
+ }
263
+
264
+ table.line td.especie {
265
+ width: 35px;
266
+ }
267
+
268
+ table.line td.qtd {
269
+ width: 53px;
270
+ }
271
+
272
+ table.line td.nosso_numero {
273
+ /* width: 120px; */
274
+ width: 115px;
275
+ padding-right: 5px;
276
+ }
277
+
278
+ table.line td.num_doc {
279
+ width: 113px;
280
+ }
281
+
282
+ table.line td.contrato {
283
+ width: 72px;
284
+ }
285
+
286
+ table.line td.cpf_cei_cnpj {
287
+ width: 132px;
288
+ }
289
+
290
+ table.line td.vencimento {
291
+ width: 134px;
292
+ }
293
+
294
+ table.line td.valor_doc {
295
+ /* width: 180px; */
296
+ width: 175px;
297
+ padding-right: 5px;
298
+ }
299
+
300
+ table.line td.desconto {
301
+ width: 113px;
302
+ }
303
+
304
+ table.line td.outras_deducoes {
305
+ width: 112px;
306
+ }
307
+
308
+ table.line td.mora_multa {
309
+ width: 113px;
310
+ }
311
+
312
+ table.line td.outros_acrescimos {
313
+ width: 113px;
314
+ }
315
+
316
+ table.line td.valor_cobrado {
317
+ /* width: 180px; */
318
+ width: 175px;
319
+ padding-right: 5px;
320
+ background-color: #ffc ;
321
+ }
322
+
323
+ table.line td.sacado {
324
+ width: 659px;
325
+ }
326
+
327
+ table.line td.local_pagto {
328
+ width: 472px;
329
+ }
330
+
331
+ table.line td.vencimento2 {
332
+ /* width: 180px; */
333
+ width: 175px;
334
+ padding-right: 5px;
335
+ background-color: #ffc;
336
+ }
337
+
338
+ table.line td.cedente2 {
339
+ width: 472px;
340
+ }
341
+
342
+ table.line td.ag_cod_cedente2 {
343
+ /* width: 180px; */
344
+ width: 175px;
345
+ padding-right: 5px;
346
+ }
347
+
348
+ table.line td.data_doc {
349
+ width: 93px;
350
+ }
351
+
352
+ table.line td.num_doc2 {
353
+ width: 173px;
354
+ }
355
+
356
+ table.line td.especie_doc {
357
+ width: 72px;
358
+ }
359
+
360
+ table.line td.aceite {
361
+ width: 34px;
362
+ }
363
+
364
+ table.line td.data_process {
365
+ width: 72px;
366
+ }
367
+
368
+ table.line td.nosso_numero2 {
369
+ /* width: 180px; */
370
+ width: 175px;
371
+ padding-right: 5px;
372
+ }
373
+
374
+ table.line td.reservado {
375
+ width: 93px;
376
+ background-color: #ffc;
377
+ }
378
+
379
+ table.line td.carteira {
380
+ width: 93px;
381
+ }
382
+
383
+ table.line td.especie2 {
384
+ width: 53px;
385
+ }
386
+
387
+ table.line td.qtd2 {
388
+ width: 133px;
389
+ }
390
+
391
+ table.line td.xvalor {
392
+ /* width: 72px; */
393
+ width: 67px;
394
+ padding-right: 5px;
395
+ }
396
+
397
+ table.line td.valor_doc2 {
398
+ /* width: 180px; */
399
+ width: 175px;
400
+ padding-right: 5px;
401
+ }
402
+ table.line td.instrucoes {
403
+ width: 475px;
404
+ }
405
+
406
+ table.line td.desconto2 {
407
+ /* width: 180px; */
408
+ width: 175px;
409
+ padding-right: 5px;
410
+ }
411
+
412
+ table.line td.outras_deducoes2 {
413
+ /* width: 180px; */
414
+ width: 175px;
415
+ padding-right: 5px;
416
+ }
417
+
418
+ table.line td.mora_multa2 {
419
+ /* width: 180px; */
420
+ width: 175px;
421
+ padding-right: 5px;
422
+ }
423
+
424
+ table.line td.outros_acrescimos2 {
425
+ /* width: 180px; */
426
+ width: 175px;
427
+ padding-right: 5px;
428
+ }
429
+
430
+ table.line td.valor_cobrado2 {
431
+ /* width: 180px; */
432
+ width: 175px;
433
+ padding-right: 5px;
434
+ background-color: #ffc ;
435
+ }
436
+
437
+ table.line td.sacado2 {
438
+ width: 659px;
439
+ }
440
+
441
+ table.line td.sacador_avalista {
442
+ width: 659px;
443
+ }
444
+
445
+ table.line tr.campos td.sacador_avalista {
446
+ width: 472px;
447
+ }
448
+
449
+ table.line td.cod_baixa {
450
+ color: black;
451
+ width: 180px;
452
+ }
453
+
454
+
455
+
456
+
457
+ div.footer {
458
+ margin-bottom: 30px;
459
+ }
460
+
461
+ div.footer p {
462
+ width: 88px;
463
+ margin: 0;
464
+ padding: 0;
465
+ padding-left: 525px;
466
+ font-family: 'Arial Narro';
467
+ font-size: 9px;
468
+ color: black;
469
+ }
470
+
471
+
472
+ div.barcode {
473
+ width: 666px;
474
+ margin-bottom: 20px;
475
+ }
476
+
477
+ }
478
+
479
+
480
+
481
+ @media print {
482
+
483
+ #instructions {
484
+ height: 1px;
485
+ visibility: hidden;
486
+ overflow: hidden;
487
+ }
488
+
489
+ }
490
+
491
+ </STYLE>
492
+
493
+ </head>
494
+ <body>
495
+
496
+ <div id="container">
497
+
498
+ <div id="instr_header">
499
+ <h1><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? $dadosboleto["cpf_cnpj"] : '' ?></h1>
500
+ <address><?php echo $dadosboleto["endereco"]; ?><br></address>
501
+ <address><?php echo $dadosboleto["cidade_uf"]; ?></address>
502
+ </div> <!-- id="instr_header" -->
503
+
504
+ <div id="">
505
+ <!--
506
+ Use no lugar do <div id=""> caso queira imprimir sem o logotipo e instru��es
507
+ <div id="instructions">
508
+ -->
509
+
510
+ <div id="instr_content">
511
+
512
+ <h2>Instru&ccedil;&otilde;es</h2>
513
+ <ol>
514
+ <li>
515
+ Imprima em impressora jato de tinta (ink jet) ou laser, em
516
+ qualidade normal ou alta. N&atilde;o use modo econ&ocirc;mico.
517
+ <p class="notice">Por favor, configure margens esquerda e direita
518
+ para 17mm.</p>
519
+ </li>
520
+ <li>
521
+ Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens
522
+ m&iacute;nimas &agrave; esquerda e &agrave; direita do
523
+ formul&aacute;rio.
524
+ </li>
525
+ <li>
526
+ Corte na linha indicada. N&atilde;o rasure, risque, fure ou dobre
527
+ a regi&atilde;o onde se encontra o c&oacute;digo de barras
528
+ </li>
529
+ </ol>
530
+ </div> <!-- id="instr_content" -->
531
+ </div> <!-- id="instructions" -->
532
+
533
+ <div id="boleto">
534
+ <div class="cut">
535
+ <p>Corte na linha pontilhada</p>
536
+ </div>
537
+
538
+ <table class="header" border=0 cellspacing="0" cellpadding="0">
539
+ <tbody>
540
+ <tr>
541
+ <td width=150><IMG SRC="imagens/logobancoob.jpg"></td>
542
+ <td width=50>
543
+ <div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
544
+ </td>
545
+ <td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
546
+ </tr>
547
+ </tbody>
548
+ </table>
549
+
550
+ <table class="line" cellspacing="0" cellpadding="0">
551
+ <tbody>
552
+ <tr class="titulos">
553
+ <td class="cedente">Cedente</TD>
554
+ <td class="ag_cod_cedente">Ag&ecirc;ncia / C&oacute;digo do Cedente</td>
555
+ <td class="especie">Esp&eacute;cie</TD>
556
+ <td class="qtd">Quantidade</TD>
557
+ <td class="nosso_numero">Nosso n&uacute;mero</td>
558
+ </tr>
559
+
560
+ <tr class="campos">
561
+ <td class="cedente"><?php echo $dadosboleto["cedente"]; ?>&nbsp;</td>
562
+ <td class="ag_cod_cedente"><?php echo $dadosboleto["agencia_codigo"]?> &nbsp;</td>
563
+ <td class="especie"><?php echo $dadosboleto["especie"]?>&nbsp;</td>
564
+ <TD class="qtd"><?php echo $dadosboleto["quantidade"]?>&nbsp;</td>
565
+ <TD class="nosso_numero"><?php echo $dadosboleto["nosso_numero"]?>&nbsp;</td>
566
+ </tr>
567
+ </tbody>
568
+ </table>
569
+
570
+ <table class="line" cellspacing="0" cellPadding="0">
571
+ <tbody>
572
+ <tr class="titulos">
573
+ <td class="num_doc">N&uacute;mero do documento</td>
574
+ <td class="contrato">Contrato</TD>
575
+ <td class="cpf_cei_cnpj">CPF/CEI/CNPJ</TD>
576
+ <td class="vencmento">Vencimento</TD>
577
+ <td class="valor_doc">Valor documento</TD>
578
+ </tr>
579
+ <tr class="campos">
580
+ <td class="num_doc"><?php echo $dadosboleto["numero_documento"]?></td>
581
+ <td class="contrato"></td>
582
+ <td class="cpf_cei_cnpj"><?php echo $dadosboleto["cpf_cnpj"]?></td>
583
+ <td class="vencimento"><?php echo $dadosboleto["data_vencimento"]?></td>
584
+ <td class="valor_doc"><?php echo $dadosboleto["valor_boleto"]?></td>
585
+ </tr>
586
+ </tbody>
587
+ </table>
588
+
589
+ <table class="line" cellspacing="0" cellPadding="0">
590
+ <tbody>
591
+ <tr class="titulos">
592
+ <td class="desconto">(-) Desconto / Abatimento</td>
593
+ <td class="outras_deducoes">(-) Outras dedu&ccedil;&otilde;es</td>
594
+ <td class="mora_multa">(+) Mora / Multa</td>
595
+ <td class="outros_acrescimos">(+) Outros acr&eacute;scimos</td>
596
+ <td class="valor_cobrado">(=) Valor cobrado</td>
597
+ </tr>
598
+ <tr class="campos">
599
+ <td class="desconto">&nbsp;</td>
600
+ <td class="outras_deducoes">&nbsp;</td>
601
+ <td class="mora_multa">&nbsp;</td>
602
+ <td class="outros_acrescimos">&nbsp;</td>
603
+ <td class="valor_cobrado">&nbsp;</td>
604
+ </tr>
605
+ </tbody>
606
+ </table>
607
+
608
+
609
+ <table class="line" cellspacing="0" cellpadding="0">
610
+ <tbody>
611
+ <tr class="titulos">
612
+ <td class="sacado">Sacado</td>
613
+ </tr>
614
+ <tr class="campos">
615
+ <td class="sacado"><?php echo $dadosboleto["sacado"]?></td>
616
+ </tr>
617
+ </tbody>
618
+ </table>
619
+
620
+ <div class="footer">
621
+ <p>Autentica&ccedil;&atilde;o mec&acirc;nica</p>
622
+ </div>
623
+
624
+
625
+
626
+ <div class="cut">
627
+ <p>Corte na linha pontilhada</p>
628
+ </div>
629
+
630
+
631
+ <table class="header" border=0 cellspacing="0" cellpadding="0">
632
+ <tbody>
633
+ <tr>
634
+ <td width=150><IMG SRC="imagens/logobancoob.jpg"></td>
635
+ <td width=50>
636
+ <div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
637
+ </td>
638
+ <td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
639
+ </tr>
640
+ </tbody>
641
+ </table>
642
+
643
+ <table class="line" cellspacing="0" cellpadding="0">
644
+ <tbody>
645
+ <tr class="titulos">
646
+ <td class="local_pagto">Local de pagamento</td>
647
+ <td class="vencimento2">Vencimento</td>
648
+ </tr>
649
+ <tr class="campos">
650
+ <td class="local_pagto">QUALQUER BANCO AT&Eacute; O VENCIMENTO</td>
651
+ <td class="vencimento2"><?php echo $dadosboleto["data_vencimento"]?></td>
652
+ </tr>
653
+ </tbody>
654
+ </table>
655
+
656
+ <table class="line" cellspacing="0" cellpadding="0">
657
+ <tbody>
658
+ <tr class="titulos">
659
+ <td class="cedente2">Cedente</td>
660
+ <td class="ag_cod_cedente2">Ag&ecirc;ncia/C&oacute;digo cedente</td>
661
+ </tr>
662
+ <tr class="campos">
663
+ <td class="cedente2"><?php echo $dadosboleto["cedente"]?></td>
664
+ <td class="ag_cod_cedente2"><?php echo $dadosboleto["agencia_codigo"]?></td>
665
+ </tr>
666
+ </tbody>
667
+ </table>
668
+
669
+ <table class="line" cellspacing="0" cellpadding="0">
670
+ <tbody>
671
+ <tr class="titulos">
672
+ <td class="data_doc">Data do documento</td>
673
+ <td class="num_doc2">No. documento</td>
674
+ <td class="especie_doc">Esp&eacute;cie doc.</td>
675
+ <td class="aceite">Aceite</td>
676
+ <td class="data_process">Data process.</td>
677
+ <td class="nosso_numero2">Nosso n&uacute;mero</td>
678
+ </tr>
679
+ <tr class="campos">
680
+ <td class="data_doc"><?php echo $dadosboleto["data_documento"]?></td>
681
+ <td class="num_doc2"><?php echo $dadosboleto["numero_documento"]?></td>
682
+ <td class="especie_doc"><?php echo $dadosboleto["especie_doc"]?></td>
683
+ <td class="aceite"><?php echo $dadosboleto["aceite"]?></td>
684
+ <td class="data_process"><?php echo $dadosboleto["data_processamento"]?></td>
685
+ <td class="nosso_numero2"><?php echo $dadosboleto["nosso_numero"]?></td>
686
+ </tr>
687
+ </tbody>
688
+ </table>
689
+
690
+ <table class="line" cellspacing="0" cellPadding="0">
691
+ <tbody>
692
+ <tr class="titulos">
693
+ <td class="reservado">Uso do banco</td>
694
+ <td class="carteira">Carteira</td>
695
+ <td class="especie2">Esp�cie</td>
696
+ <td class="qtd2">Quantidade</td>
697
+ <td class="xvalor">x Valor</td>
698
+ <td class="valor_doc2">(=) Valor documento</td>
699
+ </tr>
700
+ <tr class="campos">
701
+ <td class="reservado">&nbsp;</td>
702
+ <td class="carteira"><?php echo $dadosboleto["carteira"]?> <?php echo isset($dadosboleto["variacao_carteira"]) ? $dadosboleto["variacao_carteira"] : '&nbsp;' ?></td>
703
+ <td class="especie2"><?php echo $dadosboleto["especie"]?></td>
704
+ <td class="qtd2"><?php echo $dadosboleto["quantidade"]?></td>
705
+ <td class="xvalor"><?php echo $dadosboleto["valor_unitario"]?></td>
706
+ <td class="valor_doc2"><?php echo $dadosboleto["valor_boleto"]?></td>
707
+ </tr>
708
+ </tbody>
709
+ </table>
710
+
711
+
712
+ <table class="line" cellspacing="0" cellpadding="0">
713
+ <tbody>
714
+ <tr><td class="last_line" rowspan="6">
715
+ <table class="line" cellspacing="0" cellpadding="0">
716
+ <tbody>
717
+ <tr class="titulos">
718
+ <td class="instrucoes">
719
+ Instru&ccedil;&otilde;es (Texto de responsabilidade do cedente)
720
+ </td>
721
+ </tr>
722
+ <tr class="campos">
723
+ <td class="instrucoes" rowspan="5">
724
+ <p><?php echo $dadosboleto["demonstrativo1"]; ?></p>
725
+ <p><?php echo $dadosboleto["demonstrativo2"]; ?></p>
726
+ <p><?php echo $dadosboleto["demonstrativo3"]; ?></p>
727
+ <p><?php echo $dadosboleto["instrucoes1"]; ?></p>
728
+ <p><?php echo $dadosboleto["instrucoes2"]; ?></p>
729
+ <p><?php echo $dadosboleto["instrucoes3"]; ?></p>
730
+ <p><?php echo $dadosboleto["instrucoes4"]; ?></p>
731
+ </td>
732
+ </tr>
733
+ </tbody>
734
+ </table>
735
+ </td></tr>
736
+
737
+ <tr><td>
738
+ <table class="line" cellspacing="0" cellpadding="0">
739
+ <tbody>
740
+ <tr class="titulos">
741
+ <td class="desconto2">(-) Desconto / Abatimento</td>
742
+ </tr>
743
+ <tr class="campos">
744
+ <td class="desconto2">&nbsp;</td>
745
+ </tr>
746
+ </tbody>
747
+ </table>
748
+ </td></tr>
749
+
750
+ <tr><td>
751
+ <table class="line" cellspacing="0" cellpadding="0">
752
+ <tbody>
753
+ <tr class="titulos">
754
+ <td class="outras_deducoes2">(-) Outras dedu&ccedil;&otilde;es</td>
755
+ </tr>
756
+ <tr class="campos">
757
+ <td class="outras_deducoes2">&nbsp;</td>
758
+ </tr>
759
+ </tbody>
760
+ </table>
761
+ </td></tr>
762
+
763
+ <tr><td>
764
+ <table class="line" cellspacing="0" cellpadding="0">
765
+ <tbody>
766
+ <tr class="titulos">
767
+ <td class="mora_multa2">(+) Mora / Multa</td>
768
+ </tr>
769
+ <tr class="campos">
770
+ <td class="mora_multa2">&nbsp;</td>
771
+ </tr>
772
+ </tbody>
773
+ </table>
774
+ </td></tr>
775
+
776
+ <tr><td>
777
+ <table class="line" cellspacing="0" cellpadding="0">
778
+ <tbody>
779
+ <tr class="titulos">
780
+ <td class="outros_acrescimos2">(+) Outros Acr&eacute;scimos</td>
781
+ </tr>
782
+ <tr class="campos">
783
+ <td class="outros_acrescimos2">&nbsp;</td>
784
+ </tr>
785
+ </tbody>
786
+ </table>
787
+ </td></tr>
788
+
789
+ <tr><td class="last_line">
790
+ <table class="line" cellspacing="0" cellpadding="0">
791
+ <tbody>
792
+ <tr class="titulos">
793
+ <td class="valor_cobrado2">(=) Valor cobrado</td>
794
+ </tr>
795
+ <tr class="campos">
796
+ <td class="valor_cobrado2">&nbsp;</td>
797
+ </tr>
798
+ </tbody>
799
+ </table>
800
+ </td></tr>
801
+ </tbody>
802
+ </table>
803
+
804
+
805
+ <table class="line" cellspacing="0" cellPadding="0">
806
+ <tbody>
807
+ <tr class="titulos">
808
+ <td class="sacado2">Sacado</td>
809
+ </tr>
810
+ <tr class="campos">
811
+ <td class="sacado2">
812
+ <p><?php echo $dadosboleto["sacado"]?></p>
813
+ <p><?php echo $dadosboleto["endereco1"]?></p>
814
+ <p><?php echo $dadosboleto["endereco2"]?></p>
815
+ </td>
816
+ </tr>
817
+ </tbody>
818
+ </table>
819
+
820
+ <table class="line" cellspacing="0" cellpadding="0">
821
+ <tbody>
822
+ <tr class="titulos">
823
+ <td class="sacador_avalista" colspan="2">Sacador/Avalista</td>
824
+ </tr>
825
+ <tr class="campos">
826
+ <td class="sacador_avalista">&nbsp;</td>
827
+ <td class="cod_baixa">C&oacute;d. baixa</td>
828
+ </tr>
829
+ </tbody>
830
+ </table>
831
+
832
+ <div class="footer">
833
+ <p>Autentica&ccedil;&atilde;o mec&acirc;nica</p>
834
+ </div>
835
+
836
+ <div class="barcode">
837
+ <p><?php fbarcode($dadosboleto["codigo_barras"]); ?></p>
838
+ </div>
839
+
840
+ <div class="cut">
841
+ <p>Corte na linha pontilhada</p>
842
+ </div>
843
+
844
+ </div>
845
+
846
+ </div>
847
+
848
+ </body>
849
+
850
+ </html>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_banespa.php ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banespa : Fabio Gabbay |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
73
+ <span class="campo"><IMG
74
+ src="imagens/logobanespa.jpg"
75
+ border=0></span></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
77
+ <span class="campotitulo">
78
+ <?php echo $dadosboleto["linha_digitavel"]?>
79
+ </span></span></td>
80
+ </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
81
+ 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
82
+ 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>
83
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
84
+ <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>
85
+ <span class="campo">
86
+ <?=$dadosboleto["agencia_codigo"]?>
87
+ </span></td>
88
+ <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">
89
+ <?php echo $dadosboleto["especie"]?>
90
+ </span>
91
+ </td>
92
+ <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">
93
+ <?php echo $dadosboleto["quantidade"]?>
94
+ </span>
95
+ </td>
96
+ <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>
97
+ <span class="campo">
98
+ <?=$dadosboleto["nosso_numero"]?>
99
+ </span></td>
100
+ </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
101
+ 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
102
+ 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>
103
+ <span class="campo">
104
+ <?php echo $dadosboleto["numero_documento"]?>
105
+ </span></td>
106
+ <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>
107
+ <span class="campo">
108
+ <?php echo $dadosboleto["cpf_cnpj"]?>
109
+ </span></td>
110
+ <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>
111
+ <span class="campo">
112
+ <?php echo $dadosboleto["data_vencimento"]?>
113
+ </span></td>
114
+ <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>
115
+ <span class="campo">
116
+ <?php echo $dadosboleto["valor_boleto"]?>
117
+ </span></td>
118
+ </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>(-)
119
+ 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>(-)
120
+ 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>(+)
121
+ 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>(+)
122
+ 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>(=)
123
+ 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>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["sacado"]?>
126
+ </span></td>
127
+ </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
128
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
129
+ <span class="campo">
130
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
131
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
132
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
133
+ </span>
134
+ </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>
135
+ <br><br><br>
136
+ </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>
137
+ <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>
138
+ <span class="campo"><IMG
139
+ src="imagens/logobanespa.jpg"
140
+ border=0></span></td>
141
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
142
+ <span class="campotitulo">
143
+ <?php echo $dadosboleto["linha_digitavel"]?>
144
+ </span></span></td>
145
+ </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
146
+ 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
147
+ 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>
148
+ <span class="campo">
149
+ <?php echo $dadosboleto["data_vencimento"]?>
150
+ </span></td>
151
+ </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
152
+ 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>
153
+ <span class="campo">
154
+ <?php echo $dadosboleto["cedente"]?>
155
+ </span></td>
156
+ <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>
157
+ <span class="campo">
158
+ <?=$dadosboleto["agencia_conta"]?>
159
+ </span></td>
160
+ </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>
161
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
162
+ 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>
163
+ 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
164
+ 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>
165
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
166
+ 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
167
+ 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>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_documento"]?>
170
+ </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>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["numero_documento"]?>
173
+ </span></td>
174
+ <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">
175
+ <?php echo $dadosboleto["especie_doc"]?>
176
+ </span>
177
+ </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">
178
+ <?php echo $dadosboleto["aceite"]?>
179
+ </span>
180
+ </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>
181
+ <span class="campo">
182
+ <?php echo $dadosboleto["data_processamento"]?>
183
+ </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>
184
+ <span class="campo">
185
+ <?=$dadosboleto["nosso_numero"]?>
186
+ </span></td>
187
+ </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>
188
+ <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>
189
+ <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>
190
+ <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>
191
+ <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>
192
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
193
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
194
+ <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
195
+ 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>
196
+ <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>
197
+ <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>
198
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
199
+ 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>(=)
200
+ 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><?=$dadosboleto["nome_da_agencia"]?>
201
+ </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>
202
+ <div align=left> <span class="campo">
203
+ <?php echo $dadosboleto["carteira"]?>
204
+ </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">
205
+ <?php echo $dadosboleto["especie"]?>
206
+ </span>
207
+ </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">
208
+ <?php echo $dadosboleto["quantidade"]?>
209
+ </span>
210
+ </td>
211
+ <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>
212
+ <span class="campo">
213
+ <?php echo $dadosboleto["valor_unitario"]?>
214
+ </span></td>
215
+ <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>
216
+ <span class="campo">
217
+ <?php echo $dadosboleto["valor_boleto"]?>
218
+ </span></td>
219
+ </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>
220
+ <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>
221
+ <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>
222
+ <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>
223
+ <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>
224
+ <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>
225
+ </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>
226
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
228
+ <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
229
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
230
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
231
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
232
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
233
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
234
+ </span></td>
235
+ <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>(-)
236
+ 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>
237
+ <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>
238
+ <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>
239
+ <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>(-)
240
+ 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>
241
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
242
+ <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>
243
+ <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>(+)
244
+ 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>
245
+ <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>
246
+ <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>
247
+ <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>
248
+ <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>(+)
249
+ 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>(=)
250
+ 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>
251
+ </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">
252
+ <?php echo $dadosboleto["sacado"]?>
253
+ </span>
254
+ </td>
255
+ </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">
256
+ <?php echo $dadosboleto["endereco1"]?>
257
+ </span>
258
+ </td>
259
+ </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>
260
+ <span class="campo">
261
+ <?php echo $dadosboleto["endereco2"]?>
262
+ </span></td>
263
+ <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.
264
+ 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
265
+ 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"]); ?>
266
+ </TD>
267
+ </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
268
+ 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>
269
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_banestes.php ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banestes: Fernando Jos� de Oliveira Chagas |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ .ti2 {
45
+ font-family: Verdana, Arial, Helvetica, sans-serif;
46
+ font-size: 10px;
47
+ font-weight: bold;
48
+ }
49
+ --></style>
50
+ </head>
51
+
52
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
53
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
54
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
55
+ <p>
56
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
57
+ <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>
58
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
59
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
60
+ <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>
61
+ <span class="ld2">
62
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
63
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
64
+ </span>
65
+ </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
66
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
67
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
68
+ <tr>
69
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
70
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
71
+ <?php echo $dadosboleto["endereco"]; ?><br>
72
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
73
+ </td>
74
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
75
+ </tr>
76
+ </table>
77
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td>
78
+ <span class="campo"><IMG
79
+ src="imagens/logobanestes.jpg"
80
+ border=0></span></td>
81
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td>
82
+ <td class=cpt width=63 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=497 valign=bottom><span class=ld>
83
+ <span class="campotitulo">
84
+ <?php echo $dadosboleto["linha_digitavel"]?>
85
+ </span></span></td>
86
+ </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
87
+ 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
88
+ 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>
89
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
90
+ <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>
91
+ <span class="campo">
92
+ <?php echo $dadosboleto["agencia"]?>&nbsp;/&nbsp;
93
+ <?php echo $dadosboleto["conta"]?>
94
+ </span></td>
95
+ <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">
96
+ <?php echo $dadosboleto["especie"]?>
97
+ </span>
98
+ </td>
99
+ <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">
100
+ <?php echo $dadosboleto["quantidade"]?>
101
+ </span>
102
+ </td>
103
+ <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>
104
+ <span class="campo">
105
+ <?php echo $dadosboleto["nosso_numero"]?>
106
+ </span></td>
107
+ </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
108
+ 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
109
+ 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>
110
+ <span class="campo">
111
+ <?php echo $dadosboleto["numero_documento"]?>
112
+ </span></td>
113
+ <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>
114
+ <span class="campo">
115
+ <?php echo $dadosboleto["cpf_cnpj"]?>
116
+ </span></td>
117
+ <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>
118
+ <span class="campo">
119
+ <?php echo $dadosboleto["data_vencimento"]?>
120
+ </span></td>
121
+ <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>
122
+ <span class="campo">
123
+ <?php echo $dadosboleto["valor_boleto"]?>
124
+ </span></td>
125
+ </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>(-)
126
+ 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>(-)
127
+ 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>(+)
128
+ 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>(+)
129
+ 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>(=)
130
+ 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>
131
+ <span class="campo">
132
+ <?php echo $dadosboleto["sacado"]?>
133
+ </span></td>
134
+ </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
135
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
136
+ <span class="campo">
137
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
138
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
139
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
140
+ </span>
141
+ </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>
142
+ <br><br><br>
143
+ </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>
144
+ <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>
145
+ <span class="campo"><IMG
146
+ src="imagens/logobanestes.jpg"
147
+ border=0></span></td>
148
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td>
149
+ <td class=cpt width=63 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=497 valign=bottom><span class=ld>
150
+ <span class="campotitulo">
151
+ <?php echo $dadosboleto["linha_digitavel"]?>
152
+ </span></span></td>
153
+ </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
154
+ 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
155
+ 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>
156
+ <span class="campo">
157
+ <?php echo $dadosboleto["data_vencimento"]?>
158
+ </span></td>
159
+ </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
160
+ 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>
161
+ <span class="campo">
162
+ <?php echo $dadosboleto["cedente"]?>
163
+ </span></td>
164
+ <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>
165
+ <span class="campo">
166
+ <?php echo $dadosboleto["agencia"]?>&nbsp;/&nbsp;
167
+ <?php echo $dadosboleto["conta"]?>
168
+ </span></td>
169
+ </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>
170
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
171
+ 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>
172
+ 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
173
+ 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>
174
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
175
+ 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
176
+ 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>
177
+ <span class="campo">
178
+ <?php echo $dadosboleto["data_documento"]?>
179
+ </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>
180
+ <span class="campo">
181
+ <?php echo $dadosboleto["numero_documento"]?>
182
+ </span></td>
183
+ <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">
184
+ <?php echo $dadosboleto["especie_doc"]?>
185
+ </span>
186
+ </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">
187
+ <?php echo $dadosboleto["aceite"]?>
188
+ </span>
189
+ </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>
190
+ <span class="campo">
191
+ <?php echo $dadosboleto["data_processamento"]?>
192
+ </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>
193
+ <span class="campo">
194
+ <?php echo $dadosboleto["nosso_numero"]?>
195
+ </span></td>
196
+ </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>
197
+ <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>
198
+ <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>
199
+ <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>
200
+ <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>
201
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
202
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
203
+ <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
204
+ 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>
205
+ <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>
206
+ <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>
207
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
208
+ 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>(=)
209
+ 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>
210
+ </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>
211
+ <div align=left> <span class="campo">
212
+ <?php echo $dadosboleto["carteira"]?>
213
+ </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">
214
+ <?php echo $dadosboleto["especie"]?>
215
+ </span>
216
+ </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">
217
+ <?php echo $dadosboleto["quantidade"]?>
218
+ </span>
219
+ </td>
220
+ <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>
221
+ <span class="campo">
222
+ <?php echo $dadosboleto["valor_unitario"]?>
223
+ </span></td>
224
+ <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>
225
+ <span class="campo">
226
+ <?php echo $dadosboleto["valor_boleto"]?>
227
+ </span></td>
228
+ </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>
229
+ <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>
230
+ <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>
231
+ <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>
232
+ <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>
233
+ <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>
234
+ </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>
235
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
236
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
237
+ <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
238
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
239
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
240
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
241
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
242
+ <?php echo $dadosboleto["instrucoes4"]; ?><br><br><br>
243
+ CHAVE ASBACE:&nbsp;&nbsp;<?php echo substr($dadosboleto["chave_asbace"],0,5)?>&nbsp;
244
+ <?php echo substr($dadosboleto["chave_asbace"],5,5)?>&nbsp;
245
+ <?php echo substr($dadosboleto["chave_asbace"],10,5)?>&nbsp;
246
+ <?php echo substr($dadosboleto["chave_asbace"],15,5)?>&nbsp;
247
+ <?php echo substr($dadosboleto["chave_asbace"],20,5)?>
248
+ </FONT><br>
249
+ </span></td>
250
+ <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>(-)
251
+ 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>
252
+ <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>
253
+ <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>
254
+ <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>(-)
255
+ 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>
256
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
257
+ <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>
258
+ <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>(+)
259
+ 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>
260
+ <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>
261
+ <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>
262
+ <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>
263
+ <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>(+)
264
+ 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>(=)
265
+ 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>
266
+ </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=456 height=13>Sacado</td>
267
+ <td class=ct valign=top width=203><div align="right" class="ti"><span class="ti2">FICHA DE COMPENSA&Ccedil;&Atilde;O - RVA</span> </div></td>
268
+ </tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td><td height=12 colspan="2" valign=top class=cp><span class="campo">
269
+ <?php echo $dadosboleto["sacado"]?>
270
+ </span>
271
+ </td>
272
+ </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">
273
+ <?php echo $dadosboleto["endereco1"]?>
274
+ </span>
275
+ </td>
276
+ </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 height=13 colspan="3" valign=top class=cp>
277
+ <span class="campo">
278
+ <?php echo $dadosboleto["endereco2"]?>
279
+ </span></td>
280
+ </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>
281
+ <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
282
+ mec�nica</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"]); ?>
283
+ </TD>
284
+ </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
285
+ 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>
286
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bb.php ADDED
@@ -0,0 +1,867 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +---------------------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Banco do Brasil: Daniel William Schultz / Leandro Maniezo|
27
+ // +---------------------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
31
+ <html>
32
+ <head>
33
+ <title><?php echo $dadosboleto["identificacao"]; ?></title>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+
37
+ <style type="text/css">
38
+ <!--
39
+ .ti {font: 9px Arial, Helvetica, sans-serif}
40
+ -->
41
+ </style>
42
+ </HEAD>
43
+ <BODY>
44
+ <STYLE>
45
+
46
+ @media screen,print {
47
+
48
+ /* *** TIPOGRAFIA BASICA *** */
49
+
50
+ * {
51
+ font-family: Arial;
52
+ font-size: 12px;
53
+ margin: 0;
54
+ padding: 0;
55
+ }
56
+
57
+ .notice {
58
+ color: red;
59
+ }
60
+
61
+
62
+ /* *** LINHAS GERAIS *** */
63
+
64
+ #container {
65
+ width: 666px;
66
+ margin: 0px auto;
67
+ padding-bottom: 2px;
68
+ }
69
+
70
+ #instructions {
71
+ margin: 0;
72
+ padding: 0 0 20px 0;
73
+ }
74
+
75
+ #boleto {
76
+ width: 666px;
77
+ margin: 0;
78
+ padding: 0;
79
+ }
80
+
81
+
82
+ /* *** CABECALHO *** */
83
+
84
+ #instr_header {
85
+ /*background: url('imagens/logo_empresa.png') no-repeat top left;
86
+ padding-left: 166px;
87
+ height: 55px;*/
88
+ }
89
+
90
+ #instr_header h1 {
91
+ font-size: 16px;
92
+ margin: 5px 0px;
93
+ }
94
+
95
+ #instr_header address {
96
+ font-style: normal;
97
+ }
98
+
99
+ #instr_content {
100
+
101
+ }
102
+
103
+ #instr_content h2 {
104
+ font-size: 10px;
105
+ font-weight: bold;
106
+ }
107
+
108
+ #instr_content p {
109
+ font-size: 10px;
110
+ margin: 4px 0px;
111
+ }
112
+
113
+ #instr_content ol {
114
+ font-size: 10px;
115
+ margin: 5px 0;
116
+ }
117
+
118
+ #instr_content ol li {
119
+ font-size: 10px;
120
+ text-indent: 10px;
121
+ margin: 2px 0px;
122
+ list-style-position: inside;
123
+ }
124
+
125
+ #instr_content ol li p {
126
+ font-size: 10px;
127
+ padding-bottom: 4px;
128
+ }
129
+
130
+
131
+ /* *** BOLETO *** */
132
+
133
+ #boleto .cut {
134
+ width: 666px;
135
+ margin: 0px auto;
136
+ border-bottom: 1px navy dashed;
137
+ }
138
+
139
+ #boleto .cut p {
140
+ margin: 0 0 5px 0;
141
+ padding: 0px;
142
+ font-family: 'Arial Narrow';
143
+ font-size: 9px;
144
+ color: navy;
145
+ }
146
+
147
+ table.header {
148
+ width: 666px;
149
+ height: 38px;
150
+ margin-top: 20px;
151
+ margin-bottom: 10px;
152
+ border-bottom: 2px navy solid;
153
+
154
+ }
155
+
156
+
157
+ table.header div.field_cod_banco {
158
+ width: 46px;
159
+ height: 19px;
160
+ margin-left: 5px;
161
+ padding-top: 3px;
162
+ text-align: center;
163
+ font-size: 14px;
164
+ font-weight: bold;
165
+ color: navy;
166
+ border-right: 2px solid navy;
167
+ border-left: 2px solid navy;
168
+ }
169
+
170
+ table.header td.linha_digitavel {
171
+ width: 464px;
172
+ text-align: right;
173
+ font: bold 15px Arial;
174
+ color: navy
175
+ }
176
+
177
+ table.line {
178
+ margin-bottom: 3px;
179
+ padding-bottom: 1px;
180
+ border-bottom: 1px black solid;
181
+ }
182
+
183
+ table.line tr.titulos td {
184
+ height: 13px;
185
+ font-family: 'Arial Narrow';
186
+ font-size: 9px;
187
+ color: navy;
188
+ border-left: 5px #ffe000 solid;
189
+ padding-left: 2px;
190
+ }
191
+
192
+ table.line tr.campos td {
193
+ height: 12px;
194
+ font-size: 10px;
195
+ color: black;
196
+ border-left: 5px #ffe000 solid;
197
+ padding-left: 2px;
198
+ }
199
+
200
+ table.line td p {
201
+ font-size: 10px;
202
+ }
203
+
204
+
205
+ table.line tr.campos td.ag_cod_cedente,
206
+ table.line tr.campos td.nosso_numero,
207
+ table.line tr.campos td.valor_doc,
208
+ table.line tr.campos td.vencimento2,
209
+ table.line tr.campos td.ag_cod_cedente2,
210
+ table.line tr.campos td.nosso_numero2,
211
+ table.line tr.campos td.xvalor,
212
+ table.line tr.campos td.valor_doc2
213
+ {
214
+ text-align: right;
215
+ }
216
+
217
+ table.line tr.campos td.especie,
218
+ table.line tr.campos td.qtd,
219
+ table.line tr.campos td.vencimento,
220
+ table.line tr.campos td.especie_doc,
221
+ table.line tr.campos td.aceite,
222
+ table.line tr.campos td.carteira,
223
+ table.line tr.campos td.especie2,
224
+ table.line tr.campos td.qtd2
225
+ {
226
+ text-align: center;
227
+ }
228
+
229
+ table.line td.last_line {
230
+ vertical-align: top;
231
+ height: 25px;
232
+ }
233
+
234
+ table.line td.last_line table.line {
235
+ margin-bottom: -5px;
236
+ border: 0 white none;
237
+ }
238
+
239
+ td.last_line table.line td.instrucoes {
240
+ border-left: 0 white none;
241
+ padding-left: 5px;
242
+ padding-bottom: 0;
243
+ margin-bottom: 0;
244
+ height: 20px;
245
+ vertical-align: top;
246
+ }
247
+
248
+ table.line td.cedente {
249
+ width: 298px;
250
+ }
251
+
252
+ table.line td.valor_cobrado2 {
253
+ padding-bottom: 0;
254
+ margin-bottom: 0;
255
+ }
256
+
257
+
258
+ table.line td.ag_cod_cedente {
259
+ width: 126px;
260
+ }
261
+
262
+ table.line td.especie {
263
+ width: 35px;
264
+ }
265
+
266
+ table.line td.qtd {
267
+ width: 53px;
268
+ }
269
+
270
+ table.line td.nosso_numero {
271
+ /* width: 120px; */
272
+ width: 115px;
273
+ padding-right: 5px;
274
+ }
275
+
276
+ table.line td.num_doc {
277
+ width: 113px;
278
+ }
279
+
280
+ table.line td.contrato {
281
+ width: 72px;
282
+ }
283
+
284
+ table.line td.cpf_cei_cnpj {
285
+ width: 132px;
286
+ }
287
+
288
+ table.line td.vencimento {
289
+ width: 134px;
290
+ }
291
+
292
+ table.line td.valor_doc {
293
+ /* width: 180px; */
294
+ width: 175px;
295
+ padding-right: 5px;
296
+ }
297
+
298
+ table.line td.desconto {
299
+ width: 113px;
300
+ }
301
+
302
+ table.line td.outras_deducoes {
303
+ width: 112px;
304
+ }
305
+
306
+ table.line td.mora_multa {
307
+ width: 113px;
308
+ }
309
+
310
+ table.line td.outros_acrescimos {
311
+ width: 113px;
312
+ }
313
+
314
+ table.line td.valor_cobrado {
315
+ /* width: 180px; */
316
+ width: 175px;
317
+ padding-right: 5px;
318
+ background-color: #ffc ;
319
+ }
320
+
321
+ table.line td.sacado {
322
+ width: 659px;
323
+ }
324
+
325
+ table.line td.local_pagto {
326
+ width: 472px;
327
+ }
328
+
329
+ table.line td.vencimento2 {
330
+ /* width: 180px; */
331
+ width: 175px;
332
+ padding-right: 5px;
333
+ background-color: #ffc;
334
+ }
335
+
336
+ table.line td.cedente2 {
337
+ width: 472px;
338
+ }
339
+
340
+ table.line td.ag_cod_cedente2 {
341
+ /* width: 180px; */
342
+ width: 175px;
343
+ padding-right: 5px;
344
+ }
345
+
346
+ table.line td.data_doc {
347
+ width: 93px;
348
+ }
349
+
350
+ table.line td.num_doc2 {
351
+ width: 173px;
352
+ }
353
+
354
+ table.line td.especie_doc {
355
+ width: 72px;
356
+ }
357
+
358
+ table.line td.aceite {
359
+ width: 34px;
360
+ }
361
+
362
+ table.line td.data_process {
363
+ width: 72px;
364
+ }
365
+
366
+ table.line td.nosso_numero2 {
367
+ /* width: 180px; */
368
+ width: 175px;
369
+ padding-right: 5px;
370
+ }
371
+
372
+ table.line td.reservado {
373
+ width: 93px;
374
+ background-color: #ffc;
375
+ }
376
+
377
+ table.line td.carteira {
378
+ width: 93px;
379
+ }
380
+
381
+ table.line td.especie2 {
382
+ width: 53px;
383
+ }
384
+
385
+ table.line td.qtd2 {
386
+ width: 133px;
387
+ }
388
+
389
+ table.line td.xvalor {
390
+ /* width: 72px; */
391
+ width: 67px;
392
+ padding-right: 5px;
393
+ }
394
+
395
+ table.line td.valor_doc2 {
396
+ /* width: 180px; */
397
+ width: 175px;
398
+ padding-right: 5px;
399
+ }
400
+ table.line td.instrucoes {
401
+ width: 475px;
402
+ }
403
+
404
+ table.line td.desconto2 {
405
+ /* width: 180px; */
406
+ width: 175px;
407
+ padding-right: 5px;
408
+ }
409
+
410
+ table.line td.outras_deducoes2 {
411
+ /* width: 180px; */
412
+ width: 175px;
413
+ padding-right: 5px;
414
+ }
415
+
416
+ table.line td.mora_multa2 {
417
+ /* width: 180px; */
418
+ width: 175px;
419
+ padding-right: 5px;
420
+ }
421
+
422
+ table.line td.outros_acrescimos2 {
423
+ /* width: 180px; */
424
+ width: 175px;
425
+ padding-right: 5px;
426
+ }
427
+
428
+ table.line td.valor_cobrado2 {
429
+ /* width: 180px; */
430
+ width: 175px;
431
+ padding-right: 5px;
432
+ background-color: #ffc ;
433
+ }
434
+
435
+ table.line td.sacado2 {
436
+ width: 659px;
437
+ }
438
+
439
+ table.line td.sacador_avalista {
440
+ width: 659px;
441
+ }
442
+
443
+ table.line tr.campos td.sacador_avalista {
444
+ width: 472px;
445
+ }
446
+
447
+ table.line td.cod_baixa {
448
+ color: navy;
449
+ width: 180px;
450
+ }
451
+
452
+
453
+
454
+
455
+ div.footer {
456
+ margin-bottom: 25px;
457
+ }
458
+
459
+ div.footer p {
460
+ width: 100%;
461
+ margin: 0;
462
+ padding: 0;
463
+ text-align: right;
464
+ font-family: 'Arial Narro';
465
+ font-size: 9px;
466
+ color: navy;
467
+ }
468
+
469
+
470
+ div.barcode {
471
+ width: 666px;
472
+ margin-bottom: 20px;
473
+ }
474
+
475
+ }
476
+
477
+
478
+
479
+ @media print {
480
+
481
+ #instructions {
482
+ height: 1px;
483
+ visibility: hidden;
484
+ overflow: hidden;
485
+ }
486
+
487
+ }
488
+
489
+ </STYLE>
490
+
491
+ <script language="Javascript1.2">
492
+ <!--
493
+ function printpage() {
494
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
495
+ window.print();
496
+ }
497
+ //-->
498
+ </script>
499
+ <script language="Javascript">
500
+ function close_window() {
501
+ if (confirm("Fechar Boleto?")) {
502
+ close();
503
+ }
504
+ }
505
+ </script>
506
+ </head>
507
+ <body onload="printpage()">
508
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
509
+ <div id="container">
510
+ <div id="instr_header">
511
+ <div style="float: left; padding-right: 10px"><a href="<?php echo $dadosboleto["store_url"] ?>"><img border="0" src="<?php echo $dadosboleto["logo_url"] ?>" /></a></div>
512
+ <h1><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? $dadosboleto["cpf_cnpj"] : '' ?></h1>
513
+ <strong>Obrigado por comprar conosco.</strong>
514
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>.<br/>
515
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $home_url . 'lib/boleto_php/imagens/printer.gif" title="Imprimir"/>' ;?></a>
516
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:close_window();">Ap�s imprimir, clique aqui para fechar boleto.</a>
517
+ </div> <!-- id="instr_header" -->
518
+
519
+ <div id="" style="padding-top: 8px; clear: both">
520
+ <!--
521
+ Use no lugar do <div id=""> caso queira imprimir sem o logotipo e instru��es
522
+ <div id="instructions">
523
+ -->
524
+ <div id="instr_content">
525
+ <p>
526
+ O pagamento deste boleto poder&aacute; ser efetuado
527
+ nos terminais de Auto-Atendimento BB ou em qualquer banco.
528
+ </p>
529
+
530
+ <h2><strong>Instru&ccedil;&otilde;es</strong></h2>
531
+ <ol>
532
+ <li>
533
+ Imprima em impressora jato de tinta (ink jet) ou laser, em
534
+ qualidade normal ou alta. <strong>N&atilde;o use modo econ&ocirc;mico.</strong>
535
+ <!--<p class="notice">Por favor, configure margens esquerda e direita
536
+ para 17mm.</p>-->
537
+ </li>
538
+ <li>
539
+ Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens
540
+ m&iacute;nimas &agrave; esquerda e &agrave; direita do
541
+ formul&aacute;rio.
542
+ </li>
543
+ <li>
544
+ Corte na linha indicada. N&atilde;o rasure, risque, fure ou dobre
545
+ a regi&atilde;o onde se encontra o c&oacute;digo de barras
546
+ </li>
547
+ </ol>
548
+ </div> <!-- id="instr_content" -->
549
+ </div> <!-- id="instructions" -->
550
+
551
+ <div id="boleto">
552
+ <div class="cut">
553
+ <p>Corte na linha pontilhada</p>
554
+ </div>
555
+
556
+ <table class="header" border=0 cellspacing="0" cellpadding="0">
557
+ <tbody>
558
+ <tr>
559
+ <td width=150><IMG SRC="<?php echo $home_url . 'lib/boleto_php/imagens/logobb.gif"/>' ;?></td>
560
+ <td width=50>
561
+ <div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
562
+ </td>
563
+ <td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
564
+ </tr>
565
+ </tbody>
566
+ </table>
567
+
568
+ <table class="line" cellspacing="0" cellpadding="0">
569
+ <tbody>
570
+ <tr class="titulos">
571
+ <td class="cedente">Cedente</TD>
572
+ <td class="ag_cod_cedente">Ag&ecirc;ncia / C&oacute;digo do Cedente</td>
573
+ <td class="especie">Esp&eacute;cie</TD>
574
+ <td class="qtd">Quantidade</TD>
575
+ <td class="nosso_numero">Nosso n&uacute;mero</td>
576
+ </tr>
577
+
578
+ <tr class="campos">
579
+ <td class="cedente"><?php echo $dadosboleto["cedente"]; ?>&nbsp;</td>
580
+ <td class="ag_cod_cedente"><?php echo $dadosboleto["agencia_codigo"]?> &nbsp;</td>
581
+ <td class="especie"><?php echo $dadosboleto["especie"]?>&nbsp;</td>
582
+ <TD class="qtd"><?php echo $dadosboleto["quantidade"]?>&nbsp;</td>
583
+ <TD class="nosso_numero"><?php echo $dadosboleto["nosso_numero"]?>&nbsp;</td>
584
+ </tr>
585
+ </tbody>
586
+ </table>
587
+
588
+ <table class="line" cellspacing="0" cellPadding="0">
589
+ <tbody>
590
+ <tr class="titulos">
591
+ <td class="num_doc">N&uacute;mero do documento</td>
592
+ <td class="contrato">Contrato</TD>
593
+ <td class="cpf_cei_cnpj">CPF/CEI/CNPJ</TD>
594
+ <td class="vencmento">Vencimento</TD>
595
+ <td class="valor_doc">Valor documento</TD>
596
+ </tr>
597
+ <tr class="campos">
598
+ <td class="num_doc"><?php echo $dadosboleto["numero_documento"]?></td>
599
+ <td class="contrato"><?php echo $dadosboleto["contrato"]?></td>
600
+ <td class="cpf_cei_cnpj"><?php echo $dadosboleto["cpf_cnpj"]?></td>
601
+ <td class="vencimento"><?php echo $dadosboleto["data_vencimento"]?></td>
602
+ <td class="valor_doc"><?php echo $dadosboleto["valor_boleto"]?></td>
603
+ </tr>
604
+ </tbody>
605
+ </table>
606
+
607
+ <table class="line" cellspacing="0" cellPadding="0">
608
+ <tbody>
609
+ <tr class="titulos">
610
+ <td class="desconto">(-) Desconto / Abatimento</td>
611
+ <td class="outras_deducoes">(-) Outras dedu&ccedil;&otilde;es</td>
612
+ <td class="mora_multa">(+) Mora / Multa</td>
613
+ <td class="outros_acrescimos">(+) Outros acr&eacute;scimos</td>
614
+ <td class="valor_cobrado">(=) Valor cobrado</td>
615
+ </tr>
616
+ <tr class="campos">
617
+ <td class="desconto">&nbsp;</td>
618
+ <td class="outras_deducoes">&nbsp;</td>
619
+ <td class="mora_multa">&nbsp;</td>
620
+ <td class="outros_acrescimos">&nbsp;</td>
621
+ <td class="valor_cobrado">&nbsp;</td>
622
+ </tr>
623
+ </tbody>
624
+ </table>
625
+
626
+
627
+ <table class="line" cellspacing="0" cellpadding="0">
628
+ <tbody>
629
+ <tr class="titulos">
630
+ <td class="sacado">Sacado</td>
631
+ </tr>
632
+ <tr class="campos">
633
+ <td class="sacado"><?php echo $dadosboleto["sacado"] . ' - ' . $dadosboleto["endereco1"] . ' - ' . $dadosboleto["endereco2"]?></td>
634
+ </tr>
635
+ </tbody>
636
+ </table>
637
+
638
+ <div class="footer">
639
+ <p>Autentica&ccedil;&atilde;o mec&acirc;nica - Recibo do Sacado</p>
640
+ </div>
641
+
642
+
643
+
644
+ <div class="cut">
645
+ <p>Corte na linha pontilhada</p>
646
+ </div>
647
+
648
+
649
+ <table class="header" border=0 cellspacing="0" cellpadding="0">
650
+ <tbody>
651
+ <tr>
652
+ <td width=150><IMG SRC="<?php echo $home_url . 'lib/boleto_php/imagens/logobb.gif">' ; ?></td>
653
+ <td width=50>
654
+ <div class="field_cod_banco"><?php echo $dadosboleto["codigo_banco_com_dv"]?></div>
655
+ </td>
656
+ <td class="linha_digitavel"><?php echo $dadosboleto["linha_digitavel"]?></td>
657
+ </tr>
658
+ </tbody>
659
+ </table>
660
+
661
+ <table class="line" cellspacing="0" cellpadding="0">
662
+ <tbody>
663
+ <tr class="titulos">
664
+ <td class="local_pagto">Local de pagamento</td>
665
+ <td class="vencimento2">Vencimento</td>
666
+ </tr>
667
+ <tr class="campos">
668
+ <td class="local_pagto">Pag�vel em qualquer banco at� o vencimento</td>
669
+ <td class="vencimento2"><?php echo $dadosboleto["data_vencimento"]?></td>
670
+ </tr>
671
+ </tbody>
672
+ </table>
673
+
674
+ <table class="line" cellspacing="0" cellpadding="0">
675
+ <tbody>
676
+ <tr class="titulos">
677
+ <td class="cedente2">Cedente</td>
678
+ <td class="ag_cod_cedente2">Ag&ecirc;ncia/C&oacute;digo cedente</td>
679
+ </tr>
680
+ <tr class="campos">
681
+ <td class="cedente2"><?php echo $dadosboleto["cedente"]?></td>
682
+ <td class="ag_cod_cedente2"><?php echo $dadosboleto["agencia_codigo"]?></td>
683
+ </tr>
684
+ </tbody>
685
+ </table>
686
+
687
+ <table class="line" cellspacing="0" cellpadding="0">
688
+ <tbody>
689
+ <tr class="titulos">
690
+ <td class="data_doc">Data do documento</td>
691
+ <td class="num_doc2">No. documento</td>
692
+ <td class="especie_doc">Esp&eacute;cie doc.</td>
693
+ <td class="aceite">Aceite</td>
694
+ <td class="data_process">Data process.</td>
695
+ <td class="nosso_numero2">Nosso n&uacute;mero</td>
696
+ </tr>
697
+ <tr class="campos">
698
+ <td class="data_doc"><?php echo $dadosboleto["data_documento"]?></td>
699
+ <td class="num_doc2"><?php echo $dadosboleto["numero_documento"]?></td>
700
+ <td class="especie_doc"><?php echo $dadosboleto["especie_doc"]?></td>
701
+ <td class="aceite"><?php echo $dadosboleto["aceite"]?></td>
702
+ <td class="data_process"><?php echo $dadosboleto["data_processamento"]?></td>
703
+ <td class="nosso_numero2"><?php echo $dadosboleto["nosso_numero"]?></td>
704
+ </tr>
705
+ </tbody>
706
+ </table>
707
+
708
+ <table class="line" cellspacing="0" cellPadding="0">
709
+ <tbody>
710
+ <tr class="titulos">
711
+ <td class="reservado">Uso do banco</td>
712
+ <td class="carteira">Carteira</td>
713
+ <td class="especie2">Esp�cie</td>
714
+ <td class="qtd2">Quantidade</td>
715
+ <td class="xvalor">x Valor</td>
716
+ <td class="valor_doc2">(=) Valor documento</td>
717
+ </tr>
718
+ <tr class="campos">
719
+ <td class="reservado">&nbsp;</td>
720
+ <td class="carteira"><?php echo $dadosboleto["carteira"]?> <?php echo isset($dadosboleto["variacao_carteira"]) ? $dadosboleto["variacao_carteira"] : '&nbsp;' ?></td>
721
+ <td class="especie2"><?php echo $dadosboleto["especie"]?></td>
722
+ <td class="qtd2"><?php echo $dadosboleto["quantidade"]?></td>
723
+ <td class="xvalor"><?php echo $dadosboleto["valor_unitario"]?></td>
724
+ <td class="valor_doc2"><?php echo $dadosboleto["valor_boleto"]?></td>
725
+ </tr>
726
+ </tbody>
727
+ </table>
728
+
729
+
730
+ <table class="line" cellspacing="0" cellpadding="0">
731
+ <tbody>
732
+ <tr><td class="last_line" rowspan="6">
733
+ <table class="line" cellspacing="0" cellpadding="0">
734
+ <tbody>
735
+ <tr class="titulos">
736
+ <td class="instrucoes">
737
+ Instru&ccedil;&otilde;es (Texto de responsabilidade do cedente)
738
+ </td>
739
+ </tr>
740
+ <tr class="campos">
741
+ <td class="instrucoes" rowspan="5">
742
+ <p><?php echo $dadosboleto["demonstrativo1"]; ?></p>
743
+ <p><?php echo $dadosboleto["demonstrativo2"]; ?></p>
744
+ <p><?php echo $dadosboleto["demonstrativo3"]; ?></p>
745
+ <p><?php echo $dadosboleto["instrucoes1"]; ?></p>
746
+ <p><?php echo $dadosboleto["instrucoes2"]; ?></p>
747
+ <p><?php echo $dadosboleto["instrucoes3"]; ?></p>
748
+ <p><?php echo $dadosboleto["instrucoes4"]; ?></p>
749
+ </td>
750
+ </tr>
751
+ </tbody>
752
+ </table>
753
+ </td></tr>
754
+
755
+ <tr><td>
756
+ <table class="line" cellspacing="0" cellpadding="0">
757
+ <tbody>
758
+ <tr class="titulos">
759
+ <td class="desconto2">(-) Desconto / Abatimento</td>
760
+ </tr>
761
+ <tr class="campos">
762
+ <td class="desconto2">&nbsp;</td>
763
+ </tr>
764
+ </tbody>
765
+ </table>
766
+ </td></tr>
767
+
768
+ <tr><td>
769
+ <table class="line" cellspacing="0" cellpadding="0">
770
+ <tbody>
771
+ <tr class="titulos">
772
+ <td class="outras_deducoes2">(-) Outras dedu&ccedil;&otilde;es</td>
773
+ </tr>
774
+ <tr class="campos">
775
+ <td class="outras_deducoes2">&nbsp;</td>
776
+ </tr>
777
+ </tbody>
778
+ </table>
779
+ </td></tr>
780
+
781
+ <tr><td>
782
+ <table class="line" cellspacing="0" cellpadding="0">
783
+ <tbody>
784
+ <tr class="titulos">
785
+ <td class="mora_multa2">(+) Mora / Multa</td>
786
+ </tr>
787
+ <tr class="campos">
788
+ <td class="mora_multa2">&nbsp;</td>
789
+ </tr>
790
+ </tbody>
791
+ </table>
792
+ </td></tr>
793
+
794
+ <tr><td>
795
+ <table class="line" cellspacing="0" cellpadding="0">
796
+ <tbody>
797
+ <tr class="titulos">
798
+ <td class="outros_acrescimos2">(+) Outros Acr&eacute;scimos</td>
799
+ </tr>
800
+ <tr class="campos">
801
+ <td class="outros_acrescimos2">&nbsp;</td>
802
+ </tr>
803
+ </tbody>
804
+ </table>
805
+ </td></tr>
806
+
807
+ <tr><td class="last_line">
808
+ <table class="line" cellspacing="0" cellpadding="0">
809
+ <tbody>
810
+ <tr class="titulos">
811
+ <td class="valor_cobrado2">(=) Valor cobrado</td>
812
+ </tr>
813
+ <tr class="campos">
814
+ <td class="valor_cobrado2">&nbsp;</td>
815
+ </tr>
816
+ </tbody>
817
+ </table>
818
+ </td></tr>
819
+ </tbody>
820
+ </table>
821
+
822
+
823
+ <table class="line" cellspacing="0" cellPadding="0">
824
+ <tbody>
825
+ <tr class="titulos">
826
+ <td class="sacado2">Sacado</td>
827
+ </tr>
828
+ <tr class="campos">
829
+ <td class="sacado2">
830
+ <p><?php echo $dadosboleto["sacado"]?></p>
831
+ <p><?php echo $dadosboleto["endereco1"]?></p>
832
+ <p><?php echo $dadosboleto["endereco2"]?></p>
833
+ </td>
834
+ </tr>
835
+ </tbody>
836
+ </table>
837
+
838
+ <table class="line" cellspacing="0" cellpadding="0">
839
+ <tbody>
840
+ <tr class="titulos">
841
+ <td class="sacador_avalista" colspan="2">Sacador/Avalista</td>
842
+ </tr>
843
+ <tr class="campos">
844
+ <td class="sacador_avalista">&nbsp;</td>
845
+ <td class="cod_baixa">C&oacute;d. baixa</td>
846
+ </tr>
847
+ </tbody>
848
+ </table>
849
+
850
+ <div class="footer">
851
+ <p>Autentica&ccedil;&atilde;o mec&acirc;nica - Ficha de Compensa&ccedil;&atilde;o</p>
852
+ </div>
853
+
854
+ <div class="barcode">
855
+ <p><?php fbarcode($dadosboleto["codigo_barras"], $base_url); ?></p>
856
+ </div>
857
+
858
+ <div class="cut">
859
+ <p>Corte na linha pontilhada</p>
860
+ </div>
861
+ </div>
862
+
863
+ </div>
864
+
865
+ </body>
866
+
867
+ </html>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_besc.php ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto BESC: Lucas Ferreira |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
73
+ <span class="campo"><IMG
74
+ src="imagens/logobesc.jpg"
75
+ border=0></span></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
77
+ <span class="campotitulo">
78
+ <?php echo $dadosboleto["linha_digitavel"]?>
79
+ </span></span></td>
80
+ </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
81
+ 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
82
+ 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>
83
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
84
+ <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>
85
+ <span class="campo">
86
+ <?php echo $dadosboleto["agencia_codigo"]?>
87
+ </span></td>
88
+ <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">
89
+ <?php echo $dadosboleto["especie"]?>
90
+ </span>
91
+ </td>
92
+ <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">
93
+ <?php echo $dadosboleto["quantidade"]?>
94
+ </span>
95
+ </td>
96
+ <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>
97
+ <span class="campo">
98
+ <?php echo $dadosboleto["nosso_numero"]?>
99
+ </span></td>
100
+ </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
101
+ 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
102
+ 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>
103
+ <span class="campo">
104
+ <?php echo $dadosboleto["numero_documento"]?>
105
+ </span></td>
106
+ <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>
107
+ <span class="campo">
108
+ <?php echo $dadosboleto["cpf_cnpj"]?>
109
+ </span></td>
110
+ <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>
111
+ <span class="campo">
112
+ <?php echo $dadosboleto["data_vencimento"]?>
113
+ </span></td>
114
+ <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>
115
+ <span class="campo">
116
+ <?php echo $dadosboleto["valor_boleto"]?>
117
+ </span></td>
118
+ </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>(-)
119
+ 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>(-)
120
+ 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>(+)
121
+ 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>(+)
122
+ 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>(=)
123
+ 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>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["sacado"]?>
126
+ </span></td>
127
+ </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
128
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
129
+ <span class="campo">
130
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
131
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
132
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
133
+ </span>
134
+ </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>
135
+ <br><br><br>
136
+ </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>
137
+ <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>
138
+ <span class="campo"><IMG
139
+ src="imagens/logobesc.jpg"
140
+ border=0></span></td>
141
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
142
+ <span class="campotitulo">
143
+ <?php echo $dadosboleto["linha_digitavel"]?>
144
+ </span></span></td>
145
+ </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
146
+ 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
147
+ 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>
148
+ <span class="campo">
149
+ <?php echo $dadosboleto["data_vencimento"]?>
150
+ </span></td>
151
+ </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>N&uacute;mero do Conv&ecirc;nio
152
+ 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>
153
+ <span class="campo">
154
+ <?php echo $dadosboleto["cedente"]?>
155
+ </span></td>
156
+ <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>
157
+ <span class="campo">
158
+ <?php echo $dadosboleto["agencia_codigo"]?>
159
+ </span></td>
160
+ </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>
161
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
162
+ 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>
163
+ 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
164
+ 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>
165
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
166
+ 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
167
+ 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>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_documento"]?>
170
+ </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>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["numero_documento"]?>
173
+ </span></td>
174
+ <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">
175
+ <?php echo $dadosboleto["especie_doc"]?>
176
+ </span>
177
+ </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">
178
+ <?php echo $dadosboleto["aceite"]?>
179
+ </span>
180
+ </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>
181
+ <span class="campo">
182
+ <?php echo $dadosboleto["data_processamento"]?>
183
+ </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>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["nosso_numero"]?>
186
+ </span></td>
187
+ </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>
188
+ <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>
189
+ <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>
190
+ <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>
191
+ <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>
192
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
193
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
194
+ <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
195
+ 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>
196
+ <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>
197
+ <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>
198
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
199
+ 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>(=)
200
+ 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>
201
+ </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>
202
+ <div align=left> <span class="campo">
203
+ <?php echo $dadosboleto["carteira"]?>
204
+ </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">
205
+ <?php echo $dadosboleto["especie"]?>
206
+ </span>
207
+ </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">
208
+ <?php echo $dadosboleto["quantidade"]?>
209
+ </span>
210
+ </td>
211
+ <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>
212
+ <span class="campo">
213
+ <?php echo $dadosboleto["valor_unitario"]?>
214
+ </span></td>
215
+ <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>
216
+ <span class="campo">
217
+ <?php echo $dadosboleto["valor_boleto"]?>
218
+ </span></td>
219
+ </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>
220
+ <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>
221
+ <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>
222
+ <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>
223
+ <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>
224
+ <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>
225
+ </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>
226
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
228
+ <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
229
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
230
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
231
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
232
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
233
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
234
+ </span></td>
235
+ <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>(-)
236
+ 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>
237
+ <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>
238
+ <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>
239
+ <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>(-)
240
+ 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>
241
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
242
+ <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>
243
+ <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>(+)
244
+ 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>
245
+ <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>
246
+ <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>
247
+ <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>
248
+ <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>(+)
249
+ 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>(=)
250
+ 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>
251
+ </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">
252
+ <?php echo $dadosboleto["sacado"]?>
253
+ </span>
254
+ </td>
255
+ </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">
256
+ <?php echo $dadosboleto["endereco1"]?>
257
+ </span>
258
+ </td>
259
+ </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>
260
+ <span class="campo">
261
+ <?php echo $dadosboleto["endereco2"]?>
262
+ </span></td>
263
+ <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.
264
+ 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
265
+ 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"]); ?>
266
+ </TD>
267
+ </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
268
+ 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>
269
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_bradesco.php ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Bradesco: Ramon Soares |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+
62
+ </head>
63
+
64
+ <body onload="printpage()" text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
65
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
66
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
67
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
68
+ <p>
69
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta <b>(N�o use modo econ�mico)</b>.<br>
70
+ <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>
71
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
72
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
73
+ <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>
74
+ <span class="ld2">
75
+
76
+ <strong>Obrigado por comprar conosco.</strong><br />
77
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>. Valor: R$ <?php echo $dadosboleto["valor_boleto"]?>.<br/>
78
+ <br />
79
+ Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br />
80
+ <br />
81
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $home_url . 'lib/boleto_php/imagens/printer.gif"' ; ?> title="Imprimir"/></a>
82
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $dadosboleto["store_url"] ?>">Ap�s imprimir, clique aqui para voltar � loja.</a>
83
+
84
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ; ?></td></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
85
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
86
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
87
+ <tr>
88
+ <td width=41><a href="<?php echo $dadosboleto["store_url"] ?>"><img border="0" src="<?php echo $dadosboleto["logo_url"] ?>" /></a></td>
89
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
90
+ <?php echo $dadosboleto["endereco"]; ?><br>
91
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
92
+ </td>
93
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
94
+ </tr>
95
+ </table>
96
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
97
+ <span class="campo"><IMG
98
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logobradesco.jpg" width="150" height="40" border=0>' ; ?></td></td>
99
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
100
+ <span class="campotitulo">
101
+ <?php echo $dadosboleto["linha_digitavel"]?>
102
+ </span></span></td>
103
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
104
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=120 height=13>Nosso
105
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=298 height=12>
106
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
107
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=126 height=12>
108
+ <span class="campo">
109
+ <?php echo $dadosboleto["agencia_codigo"]?>
110
+ </span></td>
111
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=34 height=12><span class="campo">
112
+ <?php echo $dadosboleto["especie"]?>
113
+ </span>
114
+ </td>
115
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=53 height=12><span class="campo">
116
+ <?php echo $dadosboleto["quantidade"]?>
117
+ </span>
118
+ </td>
119
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=120 height=12>
120
+ <span class="campo">
121
+ <?php echo $dadosboleto["nosso_numero"]?>
122
+ </span></td>
123
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=298 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=298 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=126 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=126 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=120 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top colspan=3 height=13>N�mero
124
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Valor
125
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top colspan=3 height=12>
126
+ <span class="campo">
127
+ <?php echo $dadosboleto["numero_documento"]?>
128
+ </span></td>
129
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=132 height=12>
130
+ <span class="campo">
131
+ <?php echo $dadosboleto["cpf_cnpj"]?>
132
+ </span></td>
133
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=134 height=12>
134
+ <span class="campo">
135
+ <?php echo $dadosboleto["data_vencimento"]?>
136
+ </span></td>
137
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
138
+ <span class="campo">
139
+ <?php echo $dadosboleto["valor_boleto"]?>
140
+ </span></td>
141
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=132 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=132 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=134 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=134 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(-)
142
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=112 height=13>(-)
143
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(+)
144
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(+)
145
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
146
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=112 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=112 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=659 height=12>
147
+ <span class="campo">
148
+ <?php echo $dadosboleto["sacado"]?>
149
+ </span></td>
150
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=659 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
151
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
152
+ <span class="campo">
153
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
154
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
155
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
156
+ </span>
157
+ </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>
158
+ <br><br><br>
159
+ </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>
160
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
161
+ <span class="campo"><IMG
162
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logobradesco.jpg" width="150" height="40"
163
+ border=0>' ; ?></td></td>
164
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
165
+ <span class="campotitulo">
166
+ <?php echo $dadosboleto["linha_digitavel"]?>
167
+ </span></span></td>
168
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=472 height=13>Local
169
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=472 height=12>Pag�vel
170
+ em qualquer Banco at� o vencimento</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["data_vencimento"]?>
173
+ </span></td>
174
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
175
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=472 height=12>
176
+ <span class="campo">
177
+ <?php echo $dadosboleto["cedente"]?>
178
+ </span></td>
179
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
180
+ <span class="campo">
181
+ <?php echo $dadosboleto["agencia_codigo"]?>
182
+ </span></td>
183
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
184
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>Data
185
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=153 height=13>N<u>o</u>
186
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=62 height=13>Esp�cie
187
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
188
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=82 height=13>Data
189
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Nosso
190
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=113 height=12><div align=left>
191
+ <span class="campo">
192
+ <?php echo $dadosboleto["data_documento"]?>
193
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=153 height=12>
194
+ <span class="campo">
195
+ <?php echo $dadosboleto["numero_documento"]?>
196
+ </span></td>
197
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
198
+ <?php echo $dadosboleto["especie_doc"]?>
199
+ </span>
200
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
201
+ <?php echo $dadosboleto["aceite"]?>
202
+ </span>
203
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=82 height=12><div align=left>
204
+ <span class="campo">
205
+ <?php echo $dadosboleto["data_processamento"]?>
206
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
207
+ <span class="campo">
208
+ <?php echo $dadosboleto["nosso_numero"]?>
209
+ </span></td>
210
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1>
211
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=153 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=153 border=0>' ; ?></td><td valign=top width=7 height=1>
212
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=62 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=62 border=0>' ; ?></td><td valign=top width=7 height=1>
213
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ; ?></td><td valign=top width=7 height=1>
214
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=82 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=82 border=0>' ; ?></td><td valign=top width=7 height=1>
215
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1>
216
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
217
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top COLSPAN="3" height=13>Uso
218
+ do banco</td><td class=ct valign=top height=13 width=7> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
219
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
220
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
221
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=72 height=13>
222
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
223
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
224
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=83>
225
+ <div align=left> <span class="campo">
226
+ <?php echo $dadosboleto["carteira"]?>
227
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=53><div align=left><span class="campo">
228
+ <?php echo $dadosboleto["especie"]?>
229
+ </span>
230
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=123><span class="campo">
231
+ <?php echo $dadosboleto["quantidade"]?>
232
+ </span>
233
+ </td>
234
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=72>
235
+ <span class="campo">
236
+ <?php echo $dadosboleto["valor_unitario"]?>
237
+ </span></td>
238
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
239
+ <span class="campo">
240
+ <?php echo $dadosboleto["valor_boleto"]?>
241
+ </span></td>
242
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=75 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=31 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=31 border=0>' ; ?></td><td valign=top width=7 height=1>
243
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=83 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=83 border=0>' ; ?></td><td valign=top width=7 height=1>
244
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ; ?></td><td valign=top width=7 height=1>
245
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=123 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=123 border=0>' ; ?></td><td valign=top width=7 height=1>
246
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ; ?></td><td valign=top width=7 height=1>
247
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody>
248
+ </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>
249
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr>
250
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr>
251
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
252
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
253
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
254
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
255
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
256
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
257
+ </span></td>
258
+ <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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(-)
259
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
260
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
261
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1>
262
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(-)
263
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
264
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
265
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td align=right width=188>
266
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(+)
267
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
268
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1>
269
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
270
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td align=right width=188>
271
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(+)
272
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
273
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
274
+ </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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=659 height=12><span class="campo">
275
+ <?php echo $dadosboleto["sacado"]?>
276
+ </span>
277
+ </td>
278
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=659 height=12><span class="campo">
279
+ <?php echo $dadosboleto["endereco1"]?>
280
+ </span>
281
+ </td>
282
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=472 height=13>
283
+ <span class="campo">
284
+ <?php echo $dadosboleto["endereco2"]?>
285
+ </span></td>
286
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>C�d.
287
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
288
+ 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"], $base_url); ?>
289
+ </TD>
290
+ </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
291
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ; ?></td></tr></tbody></table>
292
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_cef.php ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF: Elizeu Alcantara |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 12px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+
62
+ </head>
63
+
64
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
65
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
66
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
67
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
68
+ <p>
69
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (<b>N�o use modo econ�mico</b>).<br>
70
+ <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>
71
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
72
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
73
+ <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>
74
+ <span class="ld2">
75
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
76
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
77
+ </span>
78
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ;?></TD></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
79
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
80
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
81
+ <tr>
82
+ <td width=41><IMG id="logo_empresa" SRC="<?php echo $dadosboleto["logo_url"] ?>"></td>
83
+ <td class=ti width=100%><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
84
+ <?php echo $dadosboleto["endereco"]; ?><br>
85
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
86
+ <strong>Obrigado por comprar conosco.</strong>
87
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>.<br/>
88
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $home_url . 'lib/boleto_php/imagens/printer.gif" title="Imprimir"/>' ;?></a>
89
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:close_window();">Ap�s imprimir, clique aqui para fechar boleto.</a>
90
+ </td>
91
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
92
+ </tr>
93
+ </table>
94
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
95
+ <span class="campo"><IMG
96
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logocaixa.jpg" width="150" height="40" border=0>' ;?></span></td>
97
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></TD><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></TD><td class=ld align=right width=453 valign=bottom><span class=ld>
98
+ <span class="campotitulo">
99
+ <?php echo $dadosboleto["linha_digitavel"]?>
100
+ </span></span></td>
101
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
102
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=120 height=13>Nosso
103
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=298 height=12>
104
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
105
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=126 height=12>
106
+ <span class="campo">
107
+ <?php echo $dadosboleto["agencia_codigo"]?>
108
+ </span></td>
109
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=34 height=12><span class="campo">
110
+ <?php echo $dadosboleto["especie"]?>
111
+ </span>
112
+ </td>
113
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=53 height=12><span class="campo">
114
+ <?php echo $dadosboleto["quantidade"]?>
115
+ </span>
116
+ </td>
117
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=120 height=12>
118
+ <span class="campo">
119
+ <?php echo $dadosboleto["nosso_numero"]?>
120
+ </span></td>
121
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=298 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=298 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=126 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=126 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=120 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top colspan=3 height=13>N�mero
122
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>Valor
123
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top colspan=3 height=12>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["numero_documento"]?>
126
+ </span></td>
127
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=132 height=12>
128
+ <span class="campo">
129
+ <?php echo $dadosboleto["cpf_cnpj"]?>
130
+ </span></td>
131
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=134 height=12>
132
+ <span class="campo">
133
+ <?php echo $dadosboleto["data_vencimento"]?>
134
+ </span></td>
135
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12>
136
+ <span class="campo">
137
+ <?php echo $dadosboleto["valor_boleto"]?>
138
+ </span></td>
139
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=132 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=132 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=134 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=134 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=113 height=13>(-)
140
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=112 height=13>(-)
141
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=113 height=13>(+)
142
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=113 height=13>(+)
143
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(=)
144
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=112 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=112 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=659 height=12>
145
+ <span class="campo">
146
+ <?php echo $dadosboleto["sacado"]?>
147
+ </span></td>
148
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=659 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
149
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
150
+ <span class="campo">
151
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
152
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
153
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
154
+ </span>
155
+ </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>
156
+ <br><br><br>
157
+ </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>
158
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
159
+ <span class="campo"><IMG
160
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logocaixa.jpg" width="150" height="40" border=0>' ;?></span></td>
161
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></TD><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></TD><td class=ld align=right width=453 valign=bottom><span class=ld>
162
+ <span class="campotitulo">
163
+ <?php echo $dadosboleto["linha_digitavel"]?>
164
+ </span></span></td>
165
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=472 height=13>Local
166
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=472 height=12>Pag�vel
167
+ em qualquer Banco at� o vencimento</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_vencimento"]?>
170
+ </span></td>
171
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
172
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=472 height=12>
173
+ <span class="campo">
174
+ <?php echo $dadosboleto["cedente"]?>
175
+ </span></td>
176
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12>
177
+ <span class="campo">
178
+ <?php echo $dadosboleto["agencia_codigo"]?>
179
+ </span></td>
180
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
181
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=113 height=13>Data
182
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=153 height=13>N<u>o</u>
183
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=62 height=13>Esp�cie
184
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
185
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=82 height=13>Data
186
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>Nosso
187
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=113 height=12><div align=left>
188
+ <span class="campo">
189
+ <?php echo $dadosboleto["data_documento"]?>
190
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=153 height=12>
191
+ <span class="campo">
192
+ <?php echo $dadosboleto["numero_documento"]?>
193
+ </span></td>
194
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
195
+ <?php echo $dadosboleto["especie_doc"]?>
196
+ </span>
197
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
198
+ <?php echo $dadosboleto["aceite"]?>
199
+ </span>
200
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=82 height=12><div align=left>
201
+ <span class="campo">
202
+ <?php echo $dadosboleto["data_processamento"]?>
203
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12>
204
+ <span class="campo">
205
+ <?php echo $dadosboleto["nosso_numero"]?>
206
+ </span></td>
207
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></TD><td valign=top width=7 height=1>
208
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=153 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=153 border=0>' ;?></TD><td valign=top width=7 height=1>
209
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=62 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=62 border=0>' ;?></TD><td valign=top width=7 height=1>
210
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ;?></TD><td valign=top width=7 height=1>
211
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=82 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=82 border=0>' ;?></TD><td valign=top width=7 height=1>
212
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1>
213
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></TD></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
214
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top COLSPAN="3" height=13>Uso
215
+ do banco</td><td class=ct valign=top height=13 width=7> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
216
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
217
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
218
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=72 height=13>
219
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(=)
220
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
221
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=83>
222
+ <div align=left> <span class="campo">
223
+ <?php echo $dadosboleto["carteira"]?>
224
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=53><div align=left><span class="campo">
225
+ <?php echo $dadosboleto["especie"]?>
226
+ </span>
227
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=123><span class="campo">
228
+ <?php echo $dadosboleto["quantidade"]?>
229
+ </span>
230
+ </td>
231
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=72>
232
+ <span class="campo">
233
+ <?php echo $dadosboleto["valor_unitario"]?>
234
+ </span></td>
235
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12>
236
+ <span class="campo">
237
+ <?php echo $dadosboleto["valor_boleto"]?>
238
+ </span></td>
239
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=75 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=31 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=31 border=0>' ;?></TD><td valign=top width=7 height=1>
240
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=83 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=83 border=0>' ;?></TD><td valign=top width=7 height=1>
241
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ;?></TD><td valign=top width=7 height=1>
242
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=123 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=123 border=0>' ;?></TD><td valign=top width=7 height=1>
243
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ;?></TD><td valign=top width=7 height=1>
244
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></TD></tr></tbody>
245
+ </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>
246
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr>
247
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr>
248
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></TD></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
249
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
250
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
251
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
252
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
253
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
254
+ </span></td>
255
+ <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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(-)
256
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
257
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></TD></tr></tbody></table></td></tr><tr><td align=right width=10>
258
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td valign=top width=7 height=1>
259
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(-)
260
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></TD></tr></tbody></table></td></tr><tr><td align=right width=10>
261
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
262
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></TD></tr></tbody></table></td><td align=right width=188>
263
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(+)
264
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
265
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1>
266
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
267
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></TD></tr></tbody></table></td><td align=right width=188>
268
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(+)
269
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>(=)
270
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
271
+ </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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=659 height=12><span class="campo">
272
+ <?php echo $dadosboleto["sacado"]?>
273
+ </span>
274
+ </td>
275
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=659 height=12><span class="campo">
276
+ <?php echo $dadosboleto["endereco1"]?>
277
+ </span>
278
+ </td>
279
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=cp valign=top width=472 height=13>
280
+ <span class="campo">
281
+ <?php echo $dadosboleto["endereco2"]?>
282
+ </span></td>
283
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></TD><td class=ct valign=top width=180 height=13>C�d.
284
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></TD><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></TD><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
285
+ 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"], $base_url); ?>
286
+ </TD>
287
+ </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
288
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ;?></TD></tr></tbody></table>
289
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_cef_sinco.php ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF SINCO: Carlos Magno / Reinaldo Silva |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+ </head>
62
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
63
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
64
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
65
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
66
+ <p>
67
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (<b>n�o use modo econ�mico</b>).<br>
68
+ <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>
69
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
70
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
71
+ <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>
72
+ <span class="ld2">
73
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
74
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
75
+ </span>
76
+ </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=<?php echo $base_url; ?>imagens/6.png width=665 border=0></TD></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
77
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
78
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
79
+ <tr>
80
+ <td width=41><IMG id="logo_empresa" SRC="<?php echo $logo_url ?>"></td>
81
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
82
+ <?php echo $dadosboleto["endereco"]; ?><br>
83
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
84
+ </td>
85
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
86
+ </tr>
87
+ </table>
88
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
89
+ <span class="campo"><IMG
90
+ src="<?php echo $base_url; ?>imagens/logocaixa.jpg" width="150" height="40"
91
+ border=0></span></td>
92
+ <td width=3 valign=bottom><img height=22 src=<?php echo $base_url; ?>imagens/3.png width=2 border=0></td><td class=cpt 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=<?php echo $base_url; ?>imagens/3.png width=2 border=0></td><td class=ld align=right width=453 valign=bottom><span class=ld>
93
+ <span class="campotitulo">
94
+ <?php echo $dadosboleto["linha_digitavel"]?>
95
+ </span></span></td>
96
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
97
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=120 height=13>Nosso
98
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=298 height=12>
99
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
100
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=126 height=12>
101
+ <span class="campo">
102
+ <?php echo $dadosboleto["agencia_codigo"]?>
103
+ </span></td>
104
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=34 height=12><span class="campo">
105
+ <?php echo $dadosboleto["especie"]?>
106
+ </span>
107
+ </td>
108
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=53 height=12><span class="campo">
109
+ <?php echo $dadosboleto["quantidade"]?>
110
+ </span>
111
+ </td>
112
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=120 height=12>
113
+ <span class="campo">
114
+ <?php echo $dadosboleto["nosso_numero"]?>
115
+ </span></td>
116
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=298 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=298 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=126 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=126 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=34 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=53 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=120 height=1><img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top colspan=3 height=13>N�mero
117
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Valor
118
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top colspan=3 height=12>
119
+ <span class="campo">
120
+ <?php echo $dadosboleto["numero_documento"]?>
121
+ </span></td>
122
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=132 height=12>
123
+ <span class="campo">
124
+ <?php echo $dadosboleto["cpf_cnpj"]?>
125
+ </span></td>
126
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=134 height=12>
127
+ <span class="campo">
128
+ <?php echo $dadosboleto["data_vencimento"]?>
129
+ </span></td>
130
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
131
+ <span class="campo">
132
+ <?php echo $dadosboleto["valor_boleto"]?>
133
+ </span></td>
134
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=72 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=132 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=132 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=134 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=134 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(-)
135
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=112 height=13>(-)
136
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
137
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
138
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
139
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=112 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=112 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12>
140
+ <span class="campo">
141
+ <?php echo $dadosboleto["sacado"]?>
142
+ </span></td>
143
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=659 height=1><img height=1 src=<?php echo $base_url; ?>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
144
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
145
+ <span class="campo">
146
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
147
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
148
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
149
+ </span>
150
+ </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>
151
+ <br><br><br>
152
+ </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>
153
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $base_url; ?>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>
154
+ <span class="campo"><IMG
155
+ src="<?php echo $base_url; ?>imagens/logocaixa.jpg" width="150" height="40"
156
+ border=0></span></td>
157
+ <td width=3 valign=bottom><img height=22 src=<?php echo $base_url; ?>imagens/3.png width=2 border=0></td><td class=cpt 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=<?php echo $base_url; ?>imagens/3.png width=2 border=0></td><td class=ld align=right width=453 valign=bottom><span class=ld>
158
+ <span class="campotitulo">
159
+ <?php echo $dadosboleto["linha_digitavel"]?>
160
+ </span></span></td>
161
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=472 height=13>Local
162
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=12>Pag�vel
163
+ em qualquer Banco at� o vencimento</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
164
+ <span class="campo">
165
+ <?php echo $dadosboleto["data_vencimento"]?>
166
+ </span></td>
167
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
168
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=12>
169
+ <span class="campo">
170
+ <?php echo $dadosboleto["cedente"]?>
171
+ </span></td>
172
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
173
+ <span class="campo">
174
+ <?php echo $dadosboleto["agencia_codigo"]?>
175
+ </span></td>
176
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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>
177
+ <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
178
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=153 height=13>N<u>o</u>
179
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=62 height=13>Esp�cie
180
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $base_url; ?>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>
181
+ <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
182
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Nosso
183
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=113 height=12><div align=left>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["data_documento"]?>
186
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=153 height=12>
187
+ <span class="campo">
188
+ <?php echo $dadosboleto["numero_documento"]?>
189
+ </span></td>
190
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
191
+ <?php echo $dadosboleto["especie_doc"]?>
192
+ </span>
193
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
194
+ <?php echo $dadosboleto["aceite"]?>
195
+ </span>
196
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=82 height=12><div align=left>
197
+ <span class="campo">
198
+ <?php echo $dadosboleto["data_processamento"]?>
199
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
200
+ <span class="campo">
201
+ <?php echo $dadosboleto["nosso_numero"]?>
202
+ </span></td>
203
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=113 border=0></td><td valign=top width=7 height=1>
204
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=153 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=153 border=0></td><td valign=top width=7 height=1>
205
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=62 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=62 border=0></td><td valign=top width=7 height=1>
206
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=34 border=0></td><td valign=top width=7 height=1>
207
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=82 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=82 border=0></td><td valign=top width=7 height=1>
208
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
209
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
210
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top COLSPAN="3" height=13>Uso
211
+ do banco</td><td class=ct valign=top height=13 width=7> <img height=13 src=<?php echo $base_url; ?>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>
212
+ <img height=13 src=<?php echo $base_url; ?>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>
213
+ <img height=13 src=<?php echo $base_url; ?>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>
214
+ <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
215
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
216
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
217
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=83>
218
+ <div align=left> <span class="campo">
219
+ <?php echo $dadosboleto["carteira"]?>
220
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=53><div align=left><span class="campo">
221
+ <?php echo $dadosboleto["especie"]?>
222
+ </span>
223
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=123><span class="campo">
224
+ <?php echo $dadosboleto["quantidade"]?>
225
+ </span>
226
+ </td>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=72>
228
+ <span class="campo">
229
+ <?php echo $dadosboleto["valor_unitario"]?>
230
+ </span></td>
231
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
232
+ <span class="campo">
233
+ <?php echo $dadosboleto["valor_boleto"]?>
234
+ </span></td>
235
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=75 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=31 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=31 border=0></td><td valign=top width=7 height=1>
236
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=83 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=83 border=0></td><td valign=top width=7 height=1>
237
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=53 border=0></td><td valign=top width=7 height=1>
238
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=123 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=123 border=0></td><td valign=top width=7 height=1>
239
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=72 border=0></td><td valign=top width=7 height=1>
240
+ <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=180 border=0></td></tr></tbody>
241
+ </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>
242
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr>
243
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr>
244
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=1 border=0></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
245
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
246
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
247
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
248
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
249
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
250
+ </span></td>
251
+ <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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
252
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
253
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
254
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1>
255
+ <img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
256
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
257
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
258
+ <img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
259
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
260
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
261
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
262
+ <img height=1 src=<?php echo $base_url; ?>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>
263
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
264
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
265
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
266
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
267
+ </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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12><span class="campo">
268
+ <?php echo $dadosboleto["sacado"]?>
269
+ </span>
270
+ </td>
271
+ </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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12><span class="campo">
272
+ <?php echo $dadosboleto["endereco1"]?>
273
+ </span>
274
+ </td>
275
+ </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=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=13>
276
+ <span class="campo">
277
+ <?php echo $dadosboleto["endereco2"]?>
278
+ </span></td>
279
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $base_url; ?>imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>C�d.
280
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $base_url; ?>imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $base_url; ?>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
281
+ 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"], $base_url); ?>
282
+ </TD>
283
+ </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
284
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $base_url; ?>imagens/6.png width=665 border=0></TD></tr></tbody></table>
285
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_hsbc.php ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto HSBC: Bruno Leonardo M. F. Gon�alves |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+ </head>
62
+
63
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
64
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
65
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
66
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
67
+ <p>
68
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
69
+ <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>
70
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
71
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
72
+ <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>
73
+ <span class="ld2">
74
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
75
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
76
+ </span>
77
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ;?></TD></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
78
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
79
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
80
+ <tr>
81
+ <td width=41><IMG SRC="<?php echo $dadosboleto["logo_url"] ?>"></td>
82
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
83
+ <?php echo $dadosboleto["endereco"]; ?><br>
84
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
85
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>.<br/>
86
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $home_url . 'lib/boleto_php/imagens/printer.gif" title="Imprimir"/>' ;?></a>
87
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:close_window();">Ap�s imprimir, clique aqui para fechar boleto.</a>
88
+ <!-- <a href="<?php // echo $dadosboleto["store_url"] ?>">Ap�s imprimir, clique aqui para voltar � loja.</a> -->
89
+ </td>
90
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
91
+ </tr>
92
+ </table>
93
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
94
+ <span class="campo"><IMG src="<?php echo $home_url . 'lib/boleto_php/imagens/logohsbc.jpg" width="144" height="30" border=0>' ;?></span></td>
95
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
96
+ <span class="campotitulo">
97
+ <?php echo $dadosboleto["linha_digitavel"]?>
98
+ </span></span></td>
99
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
100
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=120 height=13>Nosso
101
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=298 height=12>
102
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
103
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=126 height=12>
104
+ <span class="campo">
105
+ <?php // echo $dadosboleto["agencia_codigo"]?>
106
+ <?php echo $dadosboleto["agencia"] . "-" . $dadosboleto["agencia_codigo"]?>
107
+ </span></td>
108
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=34 height=12><span class="campo">
109
+ <?php echo $dadosboleto["especie"]?>
110
+ </span>
111
+ </td>
112
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=53 height=12><span class="campo">
113
+ <?php echo $dadosboleto["quantidade"]?>
114
+ </span>
115
+ </td>
116
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=120 height=12>
117
+ <span class="campo">
118
+ <?php echo $dadosboleto["nosso_numero"]?>
119
+ <?php echo $dadosboleto["inicio_nosso_numero"]?>
120
+ </span></td>
121
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=298 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=298 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=126 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=126 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=120 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top colspan=3 height=13>N�mero
122
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>Valor
123
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top colspan=3 height=12>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["numero_documento"]?>
126
+ </span></td>
127
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=132 height=12>
128
+ <span class="campo">
129
+ <?php echo $dadosboleto["cpf_cnpj"]?>
130
+ </span></td>
131
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=134 height=12>
132
+ <span class="campo">
133
+ <?php echo $dadosboleto["data_vencimento"]?>
134
+ </span></td>
135
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12>
136
+ <span class="campo">
137
+ <?php echo $dadosboleto["valor_boleto"]?>
138
+ </span></td>
139
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=132 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=132 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=134 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=134 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=113 height=13>(-)
140
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=112 height=13>(-)
141
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=113 height=13>(+)
142
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=113 height=13>(+)
143
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(=)
144
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=112 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=112 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=659 height=12>
145
+ <span class="campo">
146
+ <?php echo $dadosboleto["sacado"]?>
147
+ </span></td>
148
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=659 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
149
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
150
+ <span class="campo">
151
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
152
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
153
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
154
+ </span>
155
+ </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>
156
+ <br><br><br>
157
+ </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>
158
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
159
+ <span class="campo"><IMG src="<?php echo $home_url . 'lib/boleto_php/imagens/logohsbc.jpg" width="144" height="30" border=0>' ;?></span></td>
160
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ;?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
161
+ <span class="campotitulo">
162
+ <?php echo $dadosboleto["linha_digitavel"]?>
163
+ </span></span></td>
164
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=472 height=13>Local
165
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=472 height=12>Pag�vel
166
+ em qualquer Banco at� o vencimento</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12>
167
+ <span class="campo">
168
+ <?php echo $dadosboleto["data_vencimento"]?>
169
+ </span></td>
170
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
171
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=472 height=12>
172
+ <span class="campo">
173
+ <?php echo $dadosboleto["cedente"]?>
174
+ </span></td>
175
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12>
176
+ <span class="campo">
177
+ <?php // echo $dadosboleto["agencia_codigo"]?>
178
+ <?php echo $dadosboleto["agencia"] . "-" . $dadosboleto["agencia_codigo"]?>
179
+ </span></td>
180
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
181
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=113 height=13>Data
182
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=153 height=13>N<u>o</u>
183
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=62 height=13>Esp�cie
184
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
185
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=82 height=13>Data
186
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>Nosso
187
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=113 height=12><div align=left>
188
+ <span class="campo">
189
+ <?php echo $dadosboleto["data_documento"]?>
190
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=153 height=12>
191
+ <span class="campo">
192
+ <?php echo $dadosboleto["numero_documento"]?>
193
+ </span></td>
194
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
195
+ <?php echo $dadosboleto["especie_doc"]?>
196
+ </span>
197
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
198
+ <?php echo $dadosboleto["aceite"]?>
199
+ </span>
200
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=82 height=12><div align=left>
201
+ <span class="campo">
202
+ <?php echo $dadosboleto["data_processamento"]?>
203
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12>
204
+ <span class="campo">
205
+ <?php // echo $dadosboleto["nosso_numero"]?>
206
+ <?php echo $dadosboleto["inicio_nosso_numero"]?>
207
+ </span></td>
208
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ;?></td><td valign=top width=7 height=1>
209
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=153 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=153 border=0>' ;?></td><td valign=top width=7 height=1>
210
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=62 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=62 border=0>' ;?></td><td valign=top width=7 height=1>
211
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ;?></td><td valign=top width=7 height=1>
212
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=82 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=82 border=0>' ;?></td><td valign=top width=7 height=1>
213
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1>
214
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
215
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top COLSPAN="3" height=13>Uso
216
+ do banco</td><td class=ct valign=top height=13 width=7> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
217
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
218
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
219
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=72 height=13>
220
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(=)
221
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
222
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=83>
223
+ <div align=left> <span class="campo">
224
+ <?php echo $dadosboleto["carteira"]?>
225
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=53><div align=left><span class="campo">
226
+ <?php echo $dadosboleto["especie"]?>
227
+ </span>
228
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=123><span class="campo">
229
+ <?php echo $dadosboleto["quantidade"]?>
230
+ </span>
231
+ </td>
232
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=72>
233
+ <span class="campo">
234
+ <?php echo $dadosboleto["valor_unitario"]?>
235
+ </span></td>
236
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12>
237
+ <span class="campo">
238
+ <?php echo $dadosboleto["valor_boleto"]?>
239
+ </span></td>
240
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=75 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=31 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=31 border=0>' ;?></td><td valign=top width=7 height=1>
241
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=83 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=83 border=0>' ;?></td><td valign=top width=7 height=1>
242
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ;?></td><td valign=top width=7 height=1>
243
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=123 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=123 border=0>' ;?></td><td valign=top width=7 height=1>
244
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ;?></td><td valign=top width=7 height=1>
245
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></td></tr></tbody>
246
+ </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>
247
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr>
248
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr>
249
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
250
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
251
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
252
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
253
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
254
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
255
+ </span></td>
256
+ <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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(-)
257
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
258
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
259
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td valign=top width=7 height=1>
260
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(-)
261
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ;?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
262
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
263
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></td></tr></tbody></table></td><td align=right width=188>
264
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(+)
265
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
266
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1>
267
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
268
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ;?></td></tr></tbody></table></td><td align=right width=188>
269
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(+)
270
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>(=)
271
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
272
+ </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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=659 height=12><span class="campo">
273
+ <?php echo $dadosboleto["sacado"]?>
274
+ </span>
275
+ </td>
276
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=659 height=12><span class="campo">
277
+ <?php echo $dadosboleto["endereco1"]?>
278
+ </span>
279
+ </td>
280
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=cp valign=top width=472 height=13>
281
+ <span class="campo">
282
+ <?php echo $dadosboleto["endereco2"]?>
283
+ </span></td>
284
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ;?></td><td class=ct valign=top width=180 height=13>C�d.
285
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ;?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ;?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
286
+ 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"]); ?>
287
+ </TD>
288
+ </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
289
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ;?></td></tr></tbody></table>
290
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_itau.php ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Ita�: Glauber Portella |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+ </head>
62
+
63
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
64
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
65
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
66
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
67
+ <p>
68
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
69
+ <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>
70
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
71
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
72
+ <li>Caso tenha problemas ao imprimir, copie a sequencia num�rica abaixo e pague no caixa eletr�nico ou no internet banking:<br><br>
73
+
74
+ <span class="ld2">
75
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
76
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
77
+ </span>
78
+ </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=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ; ?></td></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
79
+ do Sacado</b></div></TD></tr></tbody></table><table width=866 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
80
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
81
+ <tr>
82
+ <td width=41><IMG SRC="<?php echo $dadosboleto["logo_url"]; ?>" width="335" height="79"></td>
83
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
84
+ <?php echo $dadosboleto["endereco"]; ?><br>
85
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
86
+ O n�mero do seu pedido �: <strong><?php echo $_POST["ref_transacao"] ?></strong>.<br/>
87
+ <a href="javascript:printpage();"><img border="0" src="<?php echo $home_url . 'lib/boleto_php/imagens/printer.gif" title="Imprimir"/>' ;?></a>
88
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:close_window();">Ap�s imprimir, clique aqui para fechar boleto.</a>
89
+ <!-- <a href="<?php // echo $dadosboleto["store_url"] ?>">Ap�s imprimir, clique aqui para voltar � loja.</a> -->
90
+ </td>
91
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
92
+ </tr>
93
+ </table>
94
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
95
+ <span class="campo"><IMG
96
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logoitau.jpg" width="150" height="40" border=0>' ;?></span></td>
97
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
98
+ <span class="campotitulo">
99
+ <?php echo $dadosboleto["linha_digitavel"]?>
100
+ </span></span></td>
101
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
102
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=120 height=13>Nosso
103
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=298 height=12>
104
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
105
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=126 height=12>
106
+ <span class="campo">
107
+ <?php echo $dadosboleto["agencia_codigo"]?>
108
+ </span></td>
109
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=34 height=12><span class="campo">
110
+ <?php echo $dadosboleto["especie"]?>
111
+ </span>
112
+ </td>
113
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=53 height=12><span class="campo">
114
+ <?php echo $dadosboleto["quantidade"]?>
115
+ </span>
116
+ </td>
117
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=120 height=12>
118
+ <span class="campo">
119
+ <?php echo $dadosboleto["nosso_numero"]?>
120
+ </span></td>
121
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=298 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=298 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=126 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=126 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=120 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top colspan=3 height=13>N�mero
122
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Valor
123
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top colspan=3 height=12>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["numero_documento"]?>
126
+ </span></td>
127
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=132 height=12>
128
+ <span class="campo">
129
+ <?php echo $dadosboleto["cpf_cnpj"]?>
130
+ </span></td>
131
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=134 height=12>
132
+ <span class="campo">
133
+ <?php echo $dadosboleto["data_vencimento"]?>
134
+ </span></td>
135
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
136
+ <span class="campo">
137
+ <?php echo $dadosboleto["valor_boleto"]?>
138
+ </span></td>
139
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=132 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=132 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=134 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=134 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(-)
140
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=112 height=13>(-)
141
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(+)
142
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>(+)
143
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
144
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=112 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=112 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=659 height=12>
145
+ <span class="campo">
146
+ <?php echo $dadosboleto["sacado"]?>
147
+ </span></td>
148
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=659 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
149
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
150
+ <span class="campo">
151
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
152
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
153
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
154
+ </span>
155
+ </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>
156
+ <br><br><br>
157
+ </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>
158
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
159
+ <span class="campo"><IMG
160
+ src="<?php echo $home_url . 'lib/boleto_php/imagens/logoitau.jpg" width="150" height="40" border=0>' ;?></span></td>
161
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=cpt 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=<?php echo $home_url . 'lib/boleto_php/imagens/3.png width=2 border=0>' ; ?></td><td class=ld align=right width=453 valign=bottom><span class=ld>
162
+ <span class="campotitulo">
163
+ <?php echo $dadosboleto["linha_digitavel"]?>
164
+ </span></span></td>
165
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=472 height=13>Local
166
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=472 height=12>At� o vencimento, preferencialmente no Ita�. Ap�s o vencimento, somente no Ita�.</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
167
+ <span class="campo">
168
+ <?php echo $dadosboleto["data_vencimento"]?>
169
+ </span></td>
170
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Ag�ncia/C�digo
171
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=472 height=12>
172
+ <span class="campo">
173
+ <?php echo $dadosboleto["cedente"]?>
174
+ </span></td>
175
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
176
+ <span class="campo">
177
+ <?php echo $dadosboleto["agencia_codigo"]?>
178
+ </span></td>
179
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
180
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=113 height=13>Data
181
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=153 height=13>N<u>o</u>
182
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=62 height=13>Esp�cie
183
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
184
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=82 height=13>Data
185
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>Nosso
186
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=113 height=12><div align=left>
187
+ <span class="campo">
188
+ <?php echo $dadosboleto["data_documento"]?>
189
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=153 height=12>
190
+ <span class="campo">
191
+ <?php echo $dadosboleto["numero_documento"]?>
192
+ </span></td>
193
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
194
+ <?php echo $dadosboleto["especie_doc"]?>
195
+ </span>
196
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
197
+ <?php echo $dadosboleto["aceite"]?>
198
+ </span>
199
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=82 height=12><div align=left>
200
+ <span class="campo">
201
+ <?php echo $dadosboleto["data_processamento"]?>
202
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
203
+ <span class="campo">
204
+ <?php echo $dadosboleto["nosso_numero"]?>
205
+ </span></td>
206
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=113 border=0>' ; ?></td><td valign=top width=7 height=1>
207
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=153 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=153 border=0>' ; ?></td><td valign=top width=7 height=1>
208
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=62 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=62 border=0>' ; ?></td><td valign=top width=7 height=1>
209
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=34 border=0>' ; ?></td><td valign=top width=7 height=1>
210
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=82 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=82 border=0>' ; ?></td><td valign=top width=7 height=1>
211
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1>
212
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
213
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top COLSPAN="3" height=13>Uso
214
+ do banco</td><td class=ct valign=top height=13 width=7> <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
215
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
216
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/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>
217
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=72 height=13>
218
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
219
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td valign=top class=cp height=12 COLSPAN="3"><div align=left>
220
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=83>
221
+ <div align=left> <span class="campo">
222
+ <?php echo $dadosboleto["carteira"]?>
223
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=53><div align=left><span class="campo">
224
+ <?php echo $dadosboleto["especie"]?>
225
+ </span>
226
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=123><span class="campo">
227
+ <?php echo $dadosboleto["quantidade"]?>
228
+ </span>
229
+ </td>
230
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=72>
231
+ <span class="campo">
232
+ <?php echo $dadosboleto["valor_unitario"]?>
233
+ </span></td>
234
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12>
235
+ <span class="campo">
236
+ <?php echo $dadosboleto["valor_boleto"]?>
237
+ </span></td>
238
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=75 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=31 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=31 border=0>' ; ?></td><td valign=top width=7 height=1>
239
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=83 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=83 border=0>' ; ?></td><td valign=top width=7 height=1>
240
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=53 border=0>' ; ?></td><td valign=top width=7 height=1>
241
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=123 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=123 border=0>' ; ?></td><td valign=top width=7 height=1>
242
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=72 border=0>' ; ?></td><td valign=top width=7 height=1>
243
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody>
244
+ </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>
245
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr>
246
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr>
247
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
248
+ (Todas as informa��es deste bloqueto s�o de exclusiva responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
249
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
250
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
251
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
252
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
253
+ </span></td>
254
+ <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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(-)
255
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
256
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
257
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1>
258
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(-)
259
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=180 border=0>' ; ?></td></tr></tbody></table></td></tr><tr><td align=right width=10>
260
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
261
+ <img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td align=right width=188>
262
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(+)
263
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
264
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1>
265
+ <img height=1 src=<?php echo $home_url . 'lib/boleto_php/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>
266
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=1 border=0>' ; ?></td></tr></tbody></table></td><td align=right width=188>
267
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(+)
268
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>(=)
269
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
270
+ </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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/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=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=cp valign=top width=659 height=12><span class="campo">
271
+ <?php echo $dadosboleto["sacado"]?>
272
+ </span>
273
+ </td>
274
+ </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">
275
+ <?php echo $dadosboleto["endereco1"]?>
276
+ </span>
277
+ </td>
278
+ </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>
279
+ <span class="campo">
280
+ <?php echo $dadosboleto["endereco2"]?>
281
+ </span></td>
282
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url . 'lib/boleto_php/imagens/1.png width=1 border=0>' ; ?></td><td class=ct valign=top width=180 height=13>C�d.
283
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=472 border=0>' ; ?></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/2.png width=7 border=0>' ; ?></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url . 'lib/boleto_php/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
284
+ 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"], $base_url); ?>
285
+ </TD>
286
+ </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
287
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $home_url . 'lib/boleto_php/imagens/6.png width=665 border=0>' ; ?></td></tr></tbody></table>
288
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_nossacaixa.php ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto NossaCaixa: Keitty Su�len |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
73
+ <span class="campo"><IMG
74
+ src="imagens/logonossacaixa.jpg" width="150" height="40"
75
+ border=0></span></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
77
+ <span class="campotitulo">
78
+ <?php echo $dadosboleto["linha_digitavel"]?>
79
+ </span></span></td>
80
+ </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
81
+ 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
82
+ 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>
83
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
84
+ <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>
85
+ <span class="campo">
86
+ <?php echo $dadosboleto["agencia_codigo"]?>
87
+ </span></td>
88
+ <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">
89
+ <?php echo $dadosboleto["especie"]?>
90
+ </span>
91
+ </td>
92
+ <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">
93
+ <?php echo $dadosboleto["quantidade"]?>
94
+ </span>
95
+ </td>
96
+ <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>
97
+ <span class="campo">
98
+ <?php echo $dadosboleto["nosso_numero"]?>
99
+ </span></td>
100
+ </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
101
+ 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
102
+ 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>
103
+ <span class="campo">
104
+ <?php echo $dadosboleto["numero_documento"]?>
105
+ </span></td>
106
+ <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>
107
+ <span class="campo">
108
+ <?php echo $dadosboleto["cpf_cnpj"]?>
109
+ </span></td>
110
+ <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>
111
+ <span class="campo">
112
+ <?php echo $dadosboleto["data_vencimento"]?>
113
+ </span></td>
114
+ <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>
115
+ <span class="campo">
116
+ <?php echo $dadosboleto["valor_boleto"]?>
117
+ </span></td>
118
+ </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>(-)
119
+ 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>(-)
120
+ 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>(+)
121
+ 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>(+)
122
+ 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>(=)
123
+ 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>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["sacado"]?>
126
+ </span></td>
127
+ </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
128
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
129
+ <span class="campo">
130
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
131
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
132
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
133
+ </span>
134
+ </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>
135
+ <br><br><br>
136
+ </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>
137
+ <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>
138
+ <span class="campo"><IMG
139
+ src="imagens/logonossacaixa.jpg" width="150" height="40"
140
+ border=0></span></td>
141
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
142
+ <span class="campotitulo">
143
+ <?php echo $dadosboleto["linha_digitavel"]?>
144
+ </span></span></td>
145
+ </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
146
+ 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
147
+ 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>
148
+ <span class="campo">
149
+ <?php echo $dadosboleto["data_vencimento"]?>
150
+ </span></td>
151
+ </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
152
+ 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>
153
+ <span class="campo">
154
+ <?php echo $dadosboleto["cedente"]?>
155
+ </span></td>
156
+ <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>
157
+ <span class="campo">
158
+ <?php echo $dadosboleto["agencia_codigo"]?>
159
+ </span></td>
160
+ </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>
161
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
162
+ 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>
163
+ 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
164
+ 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>
165
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
166
+ 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
167
+ 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>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_documento"]?>
170
+ </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>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["numero_documento"]?>
173
+ </span></td>
174
+ <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">
175
+ <?php echo $dadosboleto["especie_doc"]?>
176
+ </span>
177
+ </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">
178
+ <?php echo $dadosboleto["aceite"]?>
179
+ </span>
180
+ </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>
181
+ <span class="campo">
182
+ <?php echo $dadosboleto["data_processamento"]?>
183
+ </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>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["nosso_numero"]?>
186
+ </span></td>
187
+ </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>
188
+ <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>
189
+ <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>
190
+ <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>
191
+ <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>
192
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
193
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
194
+ <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
195
+ 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>
196
+ <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>
197
+ <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>
198
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
199
+ 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>(=)
200
+ 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>
201
+ </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>
202
+ <div align=left> <span class="campo">
203
+ <?php echo $dadosboleto["carteira"]?>
204
+ </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">
205
+ <?php echo $dadosboleto["especie"]?>
206
+ </span>
207
+ </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">
208
+ <?php echo $dadosboleto["quantidade"]?>
209
+ </span>
210
+ </td>
211
+ <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>
212
+ <span class="campo">
213
+ <?php echo $dadosboleto["valor_unitario"]?>
214
+ </span></td>
215
+ <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>
216
+ <span class="campo">
217
+ <?php echo $dadosboleto["valor_boleto"]?>
218
+ </span></td>
219
+ </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>
220
+ <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>
221
+ <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>
222
+ <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>
223
+ <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>
224
+ <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>
225
+ </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>
226
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
228
+ <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
229
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
230
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
231
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
232
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
233
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
234
+ </span></td>
235
+ <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>(-)
236
+ 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>
237
+ <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>
238
+ <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>
239
+ <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>(-)
240
+ 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>
241
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
242
+ <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>
243
+ <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>(+)
244
+ 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>
245
+ <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>
246
+ <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>
247
+ <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>
248
+ <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>(+)
249
+ 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>(=)
250
+ 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>
251
+ </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">
252
+ <?php echo $dadosboleto["sacado"]?>
253
+ </span>
254
+ </td>
255
+ </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">
256
+ <?php echo $dadosboleto["endereco1"]?>
257
+ </span>
258
+ </td>
259
+ </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>
260
+ <span class="campo">
261
+ <?php echo $dadosboleto["endereco2"]?>
262
+ </span></td>
263
+ <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.
264
+ 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
265
+ 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"]); ?>
266
+ </TD>
267
+ </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
268
+ 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>
269
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_real.php ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto CEF: Elizeu Alcantara |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
73
+ <span class="campo"><IMG
74
+ src="imagens/logoreal.jpg" width="150" height="40"
75
+ border=0></span></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
77
+ <span class="campotitulo">
78
+ <?php echo $dadosboleto["linha_digitavel"]?>
79
+ </span></span></td>
80
+ </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
81
+ 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
82
+ 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>
83
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
84
+ <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>
85
+ <span class="campo">
86
+ <?php echo $dadosboleto["agencia_codigo"]?>
87
+ </span></td>
88
+ <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">
89
+ <?php echo $dadosboleto["especie"]?>
90
+ </span>
91
+ </td>
92
+ <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">
93
+ <?php echo $dadosboleto["quantidade"]?>
94
+ </span>
95
+ </td>
96
+ <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>
97
+ <span class="campo">
98
+ <?php echo $dadosboleto["nosso_numero"]?>
99
+ </span></td>
100
+ </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
101
+ 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
102
+ 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>
103
+ <span class="campo">
104
+ <?php echo $dadosboleto["numero_documento"]?>
105
+ </span></td>
106
+ <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>
107
+ <span class="campo">
108
+ <?php echo $dadosboleto["cpf_cnpj"]?>
109
+ </span></td>
110
+ <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>
111
+ <span class="campo">
112
+ <?php echo $dadosboleto["data_vencimento"]?>
113
+ </span></td>
114
+ <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>
115
+ <span class="campo">
116
+ <?php echo $dadosboleto["valor_boleto"]?>
117
+ </span></td>
118
+ </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>(-)
119
+ 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>(-)
120
+ 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>(+)
121
+ 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>(+)
122
+ 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>(=)
123
+ 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>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["sacado"]?>
126
+ </span></td>
127
+ </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
128
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
129
+ <span class="campo">
130
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
131
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
132
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
133
+ </span>
134
+ </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>
135
+ <br><br><br>
136
+ </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>
137
+ <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>
138
+ <span class="campo"><IMG
139
+ src="imagens/logoreal.jpg" width="150" height="40"
140
+ border=0></span></td>
141
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
142
+ <span class="campotitulo">
143
+ <?php echo $dadosboleto["linha_digitavel"]?>
144
+ </span></span></td>
145
+ </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
146
+ 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
147
+ 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>
148
+ <span class="campo">
149
+ <?php echo $dadosboleto["data_vencimento"]?>
150
+ </span></td>
151
+ </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
152
+ 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>
153
+ <span class="campo">
154
+ <?php echo $dadosboleto["cedente"]?>
155
+ </span></td>
156
+ <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>
157
+ <span class="campo">
158
+ <?php echo $dadosboleto["agencia_codigo"]?>
159
+ </span></td>
160
+ </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>
161
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
162
+ 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>
163
+ 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
164
+ 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>
165
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
166
+ 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
167
+ 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>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_documento"]?>
170
+ </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>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["numero_documento"]?>
173
+ </span></td>
174
+ <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">
175
+ <?php echo $dadosboleto["especie_doc"]?>
176
+ </span>
177
+ </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">
178
+ <?php echo $dadosboleto["aceite"]?>
179
+ </span>
180
+ </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>
181
+ <span class="campo">
182
+ <?php echo $dadosboleto["data_processamento"]?>
183
+ </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>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["nosso_numero"]?>
186
+ </span></td>
187
+ </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>
188
+ <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>
189
+ <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>
190
+ <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>
191
+ <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>
192
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
193
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
194
+ <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
195
+ 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>
196
+ <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>
197
+ <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>
198
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
199
+ 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>(=)
200
+ 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>
201
+ </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>
202
+ <div align=left> <span class="campo">
203
+ <?php echo $dadosboleto["carteira"]?>
204
+ </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">
205
+ <?php echo $dadosboleto["especie"]?>
206
+ </span>
207
+ </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">
208
+ <?php echo $dadosboleto["quantidade"]?>
209
+ </span>
210
+ </td>
211
+ <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>
212
+ <span class="campo">
213
+ <?php echo $dadosboleto["valor_unitario"]?>
214
+ </span></td>
215
+ <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>
216
+ <span class="campo">
217
+ <?php echo $dadosboleto["valor_boleto"]?>
218
+ </span></td>
219
+ </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>
220
+ <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>
221
+ <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>
222
+ <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>
223
+ <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>
224
+ <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>
225
+ </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>
226
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
228
+ <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
229
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
230
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
231
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
232
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
233
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
234
+ </span></td>
235
+ <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>(-)
236
+ 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>
237
+ <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>
238
+ <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>
239
+ <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>(-)
240
+ 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>
241
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
242
+ <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>
243
+ <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>(+)
244
+ 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>
245
+ <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>
246
+ <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>
247
+ <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>
248
+ <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>(+)
249
+ 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>(=)
250
+ 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>
251
+ </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">
252
+ <?php echo $dadosboleto["sacado"]?>
253
+ </span>
254
+ </td>
255
+ </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">
256
+ <?php echo $dadosboleto["endereco1"]?>
257
+ </span>
258
+ </td>
259
+ </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>
260
+ <span class="campo">
261
+ <?php echo $dadosboleto["endereco2"]?>
262
+ </span></td>
263
+ <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.
264
+ 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
265
+ 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"]); ?>
266
+ </TD>
267
+ </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
268
+ 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>
269
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_santander_banespa.php ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Santander-Banespa : Fabio R. Lenharo |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ .cp { font: bold 10px Arial; color: black}
38
+ .ti { font: 9px Arial, Helvetica, sans-serif}
39
+ .ld { font: bold 15px Arial; color: #000000}
40
+ .ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ .cn { FONT: 9px Arial; COLOR: black }
42
+ .bc { font: bold 20px Arial; color: #000000 }
43
+ .ld2 { font: bold 12px Arial; color: #000000 }
44
+ </style>
45
+
46
+ <script language="Javascript1.2">
47
+ <!--
48
+ function printpage() {
49
+ alert("ATEN��O: N�o imprima este boleto em modo econ�mico.");
50
+ window.print();
51
+ }
52
+ //-->
53
+ </script>
54
+ <script language="Javascript">
55
+ function close_window() {
56
+ if (confirm("Fechar Boleto?")) {
57
+ close();
58
+ }
59
+ }
60
+ </script>
61
+ </head>
62
+
63
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0 onload="printpage()">
64
+ <?php $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?>
65
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
66
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
67
+ <p>
68
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
69
+ <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>
70
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
71
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
72
+ <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>
73
+ <span class="ld2">
74
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
75
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
76
+ </span>
77
+ </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=<?php echo $home_url; ?>lib/boleto_php/imagens/6.png width=665 border=0></TD></TR><TR><TD class=ct width=666><div align=right><b class=cp>Recibo
78
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
79
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
80
+ <tr>
81
+ <td width=41><IMG SRC="<?php echo $home_url; ?>lib/boleto_php/imagens/logo_empresa.png"></td>
82
+ <td class=ti width=455 style="font-size:13px;"><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
83
+ <?php echo $dadosboleto["endereco"]; ?><br>
84
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
85
+ </td>
86
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
87
+ </tr>
88
+ </table>
89
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
90
+ <span class="campo"><IMG
91
+ src="<?php echo $home_url; ?>lib/boleto_php/imagens/logosantander.jpg" width="140" height="37"
92
+ border=0></span></td>
93
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url; ?>lib/boleto_php/imagens/3.png width=2 border=0></td><td class=cpt 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=<?php echo $home_url; ?>lib/boleto_php/imagens/3.png width=2 border=0></td><td class=ld align=right width=453 valign=bottom><span class=ld>
94
+ <span class="campotitulo">
95
+ <?php echo $dadosboleto["linha_digitavel"]?>
96
+ </span></span></td>
97
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=126 height=13>Ag�ncia/C�digo
98
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=120 height=13>Nosso
99
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=298 height=12>
100
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
101
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=126 height=12>
102
+ <span class="campo">
103
+ <?php $tmp2 = $dadosboleto["codigo_cliente"];
104
+ $tmp2 = substr($tmp2,0,strlen($tmp2)-1).'-'.substr($tmp2,strlen($tmp2)-1,1);
105
+ ?>
106
+
107
+ <?php echo $dadosboleto["ponto_venda"]." <img src='<?php echo $home_url; ?>lib/boleto_php/imagens/b.png' width=10 height=1> ".$tmp2?>
108
+ </span></td>
109
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=34 height=12><span class="campo">
110
+ <?php echo $dadosboleto["especie"]?>
111
+ </span>
112
+ </td>
113
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=53 height=12><span class="campo">
114
+ <?php echo $dadosboleto["quantidade"]?>
115
+ </span>
116
+ </td>
117
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=120 height=12>
118
+ <span class="campo">
119
+ <?php $tmp = $dadosboleto["nosso_numero"];
120
+ $tmp = substr($tmp,0,strlen($tmp)-1).'-'.substr($tmp,strlen($tmp)-1,1);
121
+ print $tmp; ?>
122
+ </span></td>
123
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=298 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=298 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=126 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=126 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=34 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=53 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=120 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top colspan=3 height=13>N�mero
124
+ do documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Valor
125
+ documento</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top colspan=3 height=12>
126
+ <span class="campo">
127
+ <?php echo $dadosboleto["numero_documento"]?>
128
+ </span></td>
129
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=132 height=12>
130
+ <span class="campo">
131
+ <?php echo $dadosboleto["cpf_cnpj"]?>
132
+ </span></td>
133
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=134 height=12>
134
+ <span class="campo">
135
+ <?php echo $dadosboleto["data_vencimento"]?>
136
+ </span></td>
137
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
138
+ <span class="campo">
139
+ <?php echo $dadosboleto["valor_boleto"]?>
140
+ </span></td>
141
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=72 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=132 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=132 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=134 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=134 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(-)
142
+ Desconto / Abatimentos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=112 height=13>(-)
143
+ Outras dedu��es</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
144
+ Mora / Multa</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>(+)
145
+ Outros acr�scimos</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
146
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=112 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=112 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=113 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12>
147
+ <span class="campo">
148
+ <?php echo $dadosboleto["sacado"]?>
149
+ </span></td>
150
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=659 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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
151
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
152
+ <span class="campo">
153
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
154
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
155
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
156
+ </span>
157
+ </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>
158
+ <br><br><br>
159
+ </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>
160
+ <div align=right>Corte na linha pontilhada</div></td></tr><tr><td class=ct width=666><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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>
161
+ <span class="campo"><IMG
162
+ src="<?php echo $home_url; ?>lib/boleto_php/imagens/logosantander.jpg" width="140" height="37"
163
+ border=0></span></td>
164
+ <td width=3 valign=bottom><img height=22 src=<?php echo $home_url; ?>lib/boleto_php/imagens/3.png width=2 border=0></td><td class=cpt 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=<?php echo $home_url; ?>lib/boleto_php/imagens/3.png width=2 border=0></td><td class=ld align=right width=453 valign=bottom><span class=ld>
165
+ <span class="campotitulo">
166
+ <?php echo $dadosboleto["linha_digitavel"]?>
167
+ </span></span></td>
168
+ </tr><tbody><tr><td colspan=5><img height=2 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=472 height=13>Local
169
+ de pagamento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=12>Pag�vel
170
+ em qualquer Banco at� o vencimento</td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["data_vencimento"]?>
173
+ </span></td>
174
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Ponto Venda / Ident.
175
+ cedente</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=12>
176
+ <span class="campo">
177
+ <?php echo $dadosboleto["cedente"]?>
178
+ </span></td>
179
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
180
+ <span class="campo">
181
+ <?php $tmp2 = $dadosboleto["codigo_cliente"];
182
+ $tmp2 = substr($tmp2,0,strlen($tmp2)-1).'-'.substr($tmp2,strlen($tmp2)-1,1);
183
+ ?>
184
+
185
+ <?php echo $dadosboleto["ponto_venda"]." <img src='<?php echo $home_url; ?>lib/boleto_php/imagens/b.png' width=10 height=1> ".$tmp2?>
186
+ </span></td>
187
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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>
188
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
189
+ do documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=153 height=13>N<u>o</u>
190
+ documento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=62 height=13>Esp�cie
191
+ doc.</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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>
192
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
193
+ processamento</td><td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>Nosso
194
+ n�mero</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=113 height=12><div align=left>
195
+ <span class="campo">
196
+ <?php echo $dadosboleto["data_documento"]?>
197
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=153 height=12>
198
+ <span class="campo">
199
+ <?php echo $dadosboleto["numero_documento"]?>
200
+ </span></td>
201
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=62 height=12><div align=left><span class="campo">
202
+ <?php echo $dadosboleto["especie_doc"]?>
203
+ </span>
204
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=34 height=12><div align=left><span class="campo">
205
+ <?php echo $dadosboleto["aceite"]?>
206
+ </span>
207
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=82 height=12><div align=left>
208
+ <span class="campo">
209
+ <?php echo $dadosboleto["data_processamento"]?>
210
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
211
+ <span class="campo">
212
+ <?php echo $tmp; ?>
213
+ </span></td>
214
+ </tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=113 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=113 border=0></td><td valign=top width=7 height=1>
215
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=153 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=153 border=0></td><td valign=top width=7 height=1>
216
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=62 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=62 border=0></td><td valign=top width=7 height=1>
217
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=34 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=34 border=0></td><td valign=top width=7 height=1>
218
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=82 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=82 border=0></td><td valign=top width=7 height=1>
219
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
220
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
221
+ <td class=ct valign=top width=7 height=13> <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top COLSPAN="5" height=13> Carteira</td><td class=ct valign=top height=13 width=7>
222
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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>
223
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/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>
224
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
225
+ Valor Documento</td><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
226
+ Valor documento</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td valign=top class=cp height=12 COLSPAN="5"><div align=left>
227
+ </div>
228
+ <div align=left> <span class="campo">
229
+ <?php echo $dadosboleto["carteira_descricao"]?>
230
+ </span></div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=53><div align=left><span class="campo">
231
+ <?php echo $dadosboleto["especie"]?>
232
+ </span>
233
+ </div></td><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=123><span class="campo">
234
+ <?php echo $dadosboleto["quantidade"]?>
235
+ </span>
236
+ </td>
237
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=72>
238
+ <span class="campo">
239
+ <?php echo $dadosboleto["valor_unitario"]?>
240
+ </span></td>
241
+ <td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12>
242
+ <span class="campo">
243
+ <?php echo $dadosboleto["valor_boleto"]?>
244
+ </span></td>
245
+ </tr><tr><td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=75 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=31 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=31 border=0></td><td valign=top width=7 height=1>
246
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=83 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=83 border=0></td><td valign=top width=7 height=1>
247
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=53 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=53 border=0></td><td valign=top width=7 height=1>
248
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=123 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=123 border=0></td><td valign=top width=7 height=1>
249
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=72 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=72 border=0></td><td valign=top width=7 height=1>
250
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=180 border=0></td></tr></tbody>
251
+ </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>
252
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr>
253
+ <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr>
254
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=1 border=0></td></tr></tbody></table></td><td valign=top width=468 rowspan=5><font class=ct>Instru��es
255
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
256
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
257
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
258
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
259
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
260
+ </span></td>
261
+ <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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
262
+ Desconto / Abatimentos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
263
+ <td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
264
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1>
265
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(-)
266
+ Outras dedu��es</td></tr><tr><td class=cp valign=top width=7 height=12> <img height=12 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=180 border=0></td></tr></tbody></table></td></tr><tr><td align=right width=10>
267
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
268
+ <img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
269
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr><td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
270
+ Mora / Multa</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr><tr>
271
+ <td valign=top width=7 height=1> <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
272
+ <img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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>
273
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=1 border=0></td></tr></tbody></table></td><td align=right width=188>
274
+ <table cellspacing=0 cellpadding=0 border=0><tbody><tr> <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(+)
275
+ Outros acr�scimos</td></tr><tr> <td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>(=)
276
+ Valor cobrado</td></tr><tr><td class=cp valign=top width=7 height=12><img height=12 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top align=right width=180 height=12></td></tr></tbody>
277
+ </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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12><span class="campo">
278
+ <?php echo $dadosboleto["sacado"]?>
279
+ </span>
280
+ </td>
281
+ </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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=659 height=12><span class="campo">
282
+ <?php echo $dadosboleto["endereco1"]?>
283
+ </span>
284
+ </td>
285
+ </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=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=cp valign=top width=472 height=13>
286
+ <span class="campo">
287
+ <?php echo $dadosboleto["endereco2"]?>
288
+ </span></td>
289
+ <td class=ct valign=top width=7 height=13><img height=13 src=<?php echo $home_url; ?>lib/boleto_php/imagens/1.png width=1 border=0></td><td class=ct valign=top width=180 height=13>C�d.
290
+ baixa</td></tr><tr><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=472 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=472 border=0></td><td valign=top width=7 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/2.png width=7 border=0></td><td valign=top width=180 height=1><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/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
291
+ 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"]); ?>
292
+ </TD>
293
+ </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
294
+ na linha pontilhada</div></TD></TR><TR><TD class=ct width=666><img height=1 src=<?php echo $home_url; ?>lib/boleto_php/imagens/6.png width=665 border=0></TD></tr></tbody></table>
295
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_sicredi.php ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenv Boleto SICREDI: Rafael Azenha Aquini <rafael@tchesoft.com> |
27
+ // | Marco Antonio Righi <marcorighi@tchesoft.com> |
28
+ // | Homologa��o e ajuste de algumas rotinas. |
29
+ // | Marcelo Belinato <mbelinato@gmail.com> |
30
+ // +----------------------------------------------------------------------+
31
+ ?>
32
+
33
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
34
+ <HTML>
35
+ <HEAD>
36
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
37
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
38
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
39
+ <style type=text/css>
40
+ <!--.cp { font: bold 10px Arial; color: black}
41
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
42
+ <!--.ld { font: bold 15px Arial; color: #000000}
43
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
44
+ <!--.cn { FONT: 9px Arial; COLOR: black }
45
+ <!--.bc { font: bold 20px Arial; color: #000000 }
46
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
47
+ --></style>
48
+ </head>
49
+
50
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
51
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
52
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
53
+ <p>
54
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
55
+ <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>
56
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
57
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
58
+ <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>
59
+ <span class="ld2">
60
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
61
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
62
+ </span>
63
+ </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
64
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
65
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
66
+ <tr>
67
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
68
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
69
+ <?php echo $dadosboleto["endereco"]; ?><br>
70
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
71
+ </td>
72
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
73
+ </tr>
74
+ </table>
75
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
76
+ <span class="campo"><IMG
77
+ src="imagens/logosicredi.jpg" width="150" height="40"
78
+ border=0></span></td>
79
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
80
+ <span class="campotitulo">
81
+ <?php echo $dadosboleto["linha_digitavel"]?>
82
+ </span></span></td>
83
+ </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
84
+ 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
85
+ 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>
86
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
87
+ <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>
88
+ <span class="campo">
89
+ <?php echo $dadosboleto["agencia_codigo"]?>
90
+ </span></td>
91
+ <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">
92
+ <?php echo $dadosboleto["especie"]?>
93
+ </span>
94
+ </td>
95
+ <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">
96
+ <?php echo $dadosboleto["quantidade"]?>
97
+ </span>
98
+ </td>
99
+ <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>
100
+ <span class="campo">
101
+ <?php echo $dadosboleto["nosso_numero"]?>
102
+ </span></td>
103
+ </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
104
+ 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
105
+ 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>
106
+ <span class="campo">
107
+ <?php echo $dadosboleto["numero_documento"]?>
108
+ </span></td>
109
+ <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>
110
+ <span class="campo">
111
+ <?php echo $dadosboleto["cpf_cnpj"]?>
112
+ </span></td>
113
+ <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>
114
+ <span class="campo">
115
+ <?php echo $dadosboleto["data_vencimento"]?>
116
+ </span></td>
117
+ <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>
118
+ <span class="campo">
119
+ <?php echo $dadosboleto["valor_boleto"]?>
120
+ </span></td>
121
+ </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>(-)
122
+ 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>(-)
123
+ 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>(+)
124
+ 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>(+)
125
+ 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>(=)
126
+ 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>
127
+ <span class="campo">
128
+ <?php echo $dadosboleto["sacado"]?>
129
+ </span></td>
130
+ </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
131
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
132
+ <span class="campo">
133
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
134
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
135
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
136
+ </span>
137
+ </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>
138
+ <br><br><br>
139
+ </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>
140
+ <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>
141
+ <span class="campo"><IMG
142
+ src="imagens/logosicredi.jpg" width="150" height="40"
143
+ border=0></span></td>
144
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
145
+ <span class="campotitulo">
146
+ <?php echo $dadosboleto["linha_digitavel"]?>
147
+ </span></span></td>
148
+ </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
149
+ 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
150
+ 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>
151
+ <span class="campo">
152
+ <?php echo $dadosboleto["data_vencimento"]?>
153
+ </span></td>
154
+ </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
155
+ 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>
156
+ <span class="campo">
157
+ <?php echo $dadosboleto["cedente"]?>
158
+ </span></td>
159
+ <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>
160
+ <span class="campo">
161
+ <?php echo $dadosboleto["agencia_codigo"]?>
162
+ </span></td>
163
+ </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>
164
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
165
+ 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>
166
+ 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
167
+ 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>
168
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=82 height=13>Data
169
+ 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
170
+ 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>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["data_documento"]?>
173
+ </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>
174
+ <span class="campo">
175
+ <?php echo $dadosboleto["numero_documento"]?>
176
+ </span></td>
177
+ <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">
178
+ <?php echo $dadosboleto["especie_doc"]?>
179
+ </span>
180
+ </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">
181
+ <?php echo $dadosboleto["aceite"]?>
182
+ </span>
183
+ </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>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["data_processamento"]?>
186
+ </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>
187
+ <span class="campo">
188
+ <?php echo $dadosboleto["nosso_numero"]?>
189
+ </span></td>
190
+ </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>
191
+ <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>
192
+ <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>
193
+ <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>
194
+ <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>
195
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
196
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
197
+ <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
198
+ 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>
199
+ <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>
200
+ <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>
201
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
202
+ 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>(=)
203
+ 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>
204
+ </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>
205
+ <div align=left> <span class="campo">
206
+ <?php echo $dadosboleto["carteira"]?>
207
+ </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">
208
+ <?php echo $dadosboleto["especie"]?>
209
+ </span>
210
+ </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">
211
+ <?php echo $dadosboleto["quantidade"]?>
212
+ </span>
213
+ </td>
214
+ <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>
215
+ <span class="campo">
216
+ <?php echo $dadosboleto["valor_unitario"]?>
217
+ </span></td>
218
+ <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>
219
+ <span class="campo">
220
+ <?php echo $dadosboleto["valor_boleto"]?>
221
+ </span></td>
222
+ </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>
223
+ <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>
224
+ <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>
225
+ <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>
226
+ <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>
227
+ <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>
228
+ </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>
229
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
230
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
231
+ <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
232
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
233
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
234
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
235
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
236
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
237
+ </span></td>
238
+ <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>(-)
239
+ 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>
240
+ <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>
241
+ <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>
242
+ <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>(-)
243
+ 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>
244
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
245
+ <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>
246
+ <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>(+)
247
+ 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>
248
+ <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>
249
+ <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>
250
+ <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>
251
+ <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>(+)
252
+ 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>(=)
253
+ 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>
254
+ </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">
255
+ <?php echo $dadosboleto["sacado"]?>
256
+ </span>
257
+ </td>
258
+ </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">
259
+ <?php echo $dadosboleto["endereco1"]?>
260
+ </span>
261
+ </td>
262
+ </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>
263
+ <span class="campo">
264
+ <?php echo $dadosboleto["endereco2"]?>
265
+ </span></td>
266
+ <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.
267
+ 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
268
+ 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"]); ?>
269
+ </TD>
270
+ </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
271
+ 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>
272
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_sudameris.php ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Sudameris: Fl�vio Yutaka Nakamura |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha Digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? "<br>".$dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <br>
73
+ <table cellspacing=0 cellpadding=0 border=0>
74
+ <tr>
75
+ <td width=160 class=cp><img src="imagens/logosudameris.jpg" alt="Sudameris" width="150" height="27"></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2></td>
77
+ <td width=60 class=bc valign=bottom align=center><?php echo $dadosboleto["codigo_banco_com_dv"]?></td>
78
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2></td>
79
+ <td width=440 class=ld align=right valign=bottom><?php echo $dadosboleto["linha_digitavel"]?></td>
80
+ </tr>
81
+ <tr><td colspan=5><img height=1 src=imagens/2.png width=666></td></tr>
82
+ </table>
83
+ <table cellspacing=0 cellpadding=0 border=0>
84
+ <tr>
85
+ <td width=7 height=1><img src=imagens/1.png width=7 height=1></td>
86
+ <td width=112><img src=imagens/1.png width=112 height=1></td>
87
+ <td width=7><img src=imagens/1.png width=7 height=1></td>
88
+ <td width=113><img src=imagens/1.png width=113 height=1></td>
89
+ <td width=7><img src=imagens/1.png width=7 height=1></td>
90
+ <td width=53><img src=imagens/1.png width=53 height=1></td>
91
+ <td width=7><img src=imagens/1.png width=7 height=1></td>
92
+ <td width=53><img src=imagens/1.png width=53 height=1></td>
93
+ <td width=7><img src=imagens/1.png width=7 height=1></td>
94
+ <td width=113><img src=imagens/1.png width=113 height=1></td>
95
+ <td width=7><img src=imagens/1.png width=7 height=1></td>
96
+ <td width=180><img src=imagens/1.png width=180 height=1></td>
97
+ </tr>
98
+ <tr>
99
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
100
+ <td colspan=7 class=ct>Cedente</td>
101
+ <td><img src=imagens/1.png width=1 height=13></td>
102
+ <td class=ct>Ag�ncia/C�digo do Cedente</td>
103
+ <td><img src=imagens/1.png width=1 height=13></td>
104
+ <td class=ct>Vencimento</td>
105
+ </tr>
106
+ <tr>
107
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
108
+ <td colspan=7 class=cp><?php echo $dadosboleto["cedente"]?></td>
109
+ <td><img src=imagens/1.png width=1 height=12></td>
110
+ <td class=cp><?php echo $dadosboleto["agencia_codigo"]?></td>
111
+ <td><img src=imagens/1.png width=1 height=12></td>
112
+ <td class=cp align=right><?php echo $dadosboleto["data_vencimento"]?></td>
113
+ </tr>
114
+ <tr><td colspan=12 height=1><img src=imagens/2.png width=666 height=1></td></tr>
115
+ <tr>
116
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
117
+ <td class=ct>CPF/CNPJ</td>
118
+ <td><img src=imagens/1.png width=1 height=13></td>
119
+ <td class=ct>N�mero do documento</td>
120
+ <td><img src=imagens/1.png width=1 height=13></td>
121
+ <td class=ct>Esp�cie</td>
122
+ <td><img src=imagens/1.png width=1 height=13></td>
123
+ <td class=ct>Quantidade</td>
124
+ <td><img src=imagens/1.png width=1 height=13></td>
125
+ <td class=ct>Valor</td>
126
+ <td><img src=imagens/1.png width=1 height=13></td>
127
+ <td class=ct>Valor documento</td>
128
+ </tr>
129
+ <tr>
130
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
131
+ <td class=cp><?php echo $dadosboleto["cpf_cnpj"]?></td>
132
+ <td><img src=imagens/1.png width=1 height=13></td>
133
+ <td class=cp><?php echo $dadosboleto["numero_documento"]?></td>
134
+ <td><img src=imagens/1.png width=1 height=13></td>
135
+ <td class=cp><?php echo $dadosboleto["especie"]?></td>
136
+ <td><img src=imagens/1.png width=1 height=13></td>
137
+ <td class=cp><?php echo $dadosboleto["quantidade"]?></td>
138
+ <td><img src=imagens/1.png width=1 height=13></td>
139
+ <td class=cp><?php echo $dadosboleto["valor_unitario"]?></td>
140
+ <td><img src=imagens/1.png width=1 height=13></td>
141
+ <td class=cp align=right><?php echo $dadosboleto["valor_boleto"]?></td>
142
+ </tr>
143
+ <tr><td colspan=12 height=1><img src=imagens/2.png width=666 height=1></td></tr>
144
+ <tr>
145
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
146
+ <td class=ct>(-) Desconto / Abatimentos</td>
147
+ <td><img src=imagens/1.png width=1 height=13></td>
148
+ <td class=ct>(-) Outras dedu��es</td>
149
+ <td><img src=imagens/1.png width=1 height=13></td>
150
+ <td colspan=3 class=ct>(+) Mora / Multa</td>
151
+ <td><img src=imagens/1.png width=1 height=13></td>
152
+ <td class=ct>(+) Outros acr�scimos</td>
153
+ <td><img src=imagens/1.png width=1 height=13></td>
154
+ <td class=ct>(=) Valor cobrado</td>
155
+ </tr>
156
+ <tr>
157
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
158
+ <td class=cp>&nbsp;</td>
159
+ <td><img src=imagens/1.png width=1 height=12></td>
160
+ <td class=cp>&nbsp;</td>
161
+ <td><img src=imagens/1.png width=1 height=12></td>
162
+ <td colspan=3 class=cp>&nbsp;</td>
163
+ <td><img src=imagens/1.png width=1 height=12></td>
164
+ <td class=cp align=right>&nbsp;</td>
165
+ <td><img src=imagens/1.png width=1 height=12></td>
166
+ <td class=cp align=right>&nbsp;</td>
167
+ </tr>
168
+ <tr><td colspan=12 height=1><img src=imagens/2.png width=666 height=1></td></tr>
169
+ <tr>
170
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
171
+ <td colspan=9 class=ct>Sacado</td>
172
+ <td><img src=imagens/1.png width=1 height=13></td>
173
+ <td class=ct>Nosso n�mero</td>
174
+ </tr>
175
+ <tr>
176
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
177
+ <td colspan=9 class=cp><?php echo $dadosboleto["sacado"]?></td>
178
+ <td><img src=imagens/1.png width=1 height=12></td>
179
+ <td class=cp align=right><?php echo $dadosboleto["nosso_numero"]?></td>
180
+ </tr>
181
+ <tr><td colspan=12 height=1><img src=imagens/2.png width=666 height=1></td></tr>
182
+ </table>
183
+ <table cellspacing=0 cellpadding=0 border=0>
184
+ <tr>
185
+ <td width=7 height=12 class=ct>&nbsp;</td>
186
+ <td width=564 class=ct>Demonstrativo</td>
187
+ <td width=7 class=ct>&nbsp;</td>
188
+ <td width=88 class=ct>Autentica��o mec�nica</td>
189
+ </tr>
190
+ <tr>
191
+ <td>&nbsp;</td>
192
+ <td class=cp><?php echo $dadosboleto["demonstrativo1"] . '<br>' . $dadosboleto["demonstrativo2"] . '<br>' . $dadosboleto["demonstrativo3"]?><br>&nbsp;<br>&nbsp;<br>&nbsp;</td>
193
+ <td>&nbsp;</td>
194
+ <td>&nbsp;</td>
195
+ </tr>
196
+ <tr><td colspan=4 class=ct align=right>Corte na linha pontilhada</td></tr>
197
+ <tr><td colspan=4><img src=imagens/6.png width=665 height=1></td></tr>
198
+ </table>
199
+ &nbsp;<br>
200
+ <table cellspacing=0 cellpadding=0 border=0>
201
+ <tr>
202
+ <td width=160 class=cp><img src="imagens/logosudameris.jpg" alt="Sudameris" width="150" height="27"></td>
203
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2></td>
204
+ <td width=60 class=bc valign=bottom align=center><?php echo $dadosboleto["codigo_banco_com_dv"]?></td>
205
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2></td>
206
+ <td width=440 class=ld align=right valign=bottom><?php echo $dadosboleto["linha_digitavel"]?></td>
207
+ </tr>
208
+ <tr><td colspan=5><img height=1 src=imagens/2.png width=666></td></tr>
209
+ </table>
210
+ <table cellspacing=0 cellpadding=0 border=0 height="2">
211
+ <tr>
212
+ <td width=7 height=1><img src=imagens/2.png width=7 height=1></td>
213
+ <td width=100><img src=imagens/2.png width=100 height=1></td>
214
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
215
+ <td width=74><img src=imagens/2.png width=74 height=1></td>
216
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
217
+ <td width=73><img src=imagens/2.png width=73 height=1></td>
218
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
219
+ <td width=55><img src=imagens/2.png width=55 height=1></td>
220
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
221
+ <td width=35><img src=imagens/2.png width=35 height=1></td>
222
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
223
+ <td width=100><img src=imagens/2.png width=100 height=1></td>
224
+ <td width=7><img src=imagens/2.png width=7 height=1></td>
225
+ <td width=180><img src=imagens/2.png width=180 height=1></td>
226
+ </tr>
227
+ <tr>
228
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
229
+ <td colspan=11 class=ct>Local de pagamento</td>
230
+ <td><img src=imagens/1.png width=1 height=13></td>
231
+ <td class=ct>Vencimento</td>
232
+ </tr>
233
+ <tr>
234
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
235
+ <td colspan=11 class=cp>Pag�vel em qualquer Banco at� o vencimento.</td>
236
+ <td><img src=imagens/1.png width=1 height=12></td>
237
+ <td class=cp align=right><?php echo $dadosboleto["data_vencimento"]?></td>
238
+ </tr>
239
+ <tr><td colspan=14 height=1><img src=imagens/2.png width=666 height=1></td></tr>
240
+ <tr>
241
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
242
+ <td colspan=11 class=ct>Cedente</td>
243
+ <td><img src=imagens/1.png width=1 height=13></td>
244
+ <td class=ct>Ag�ncia/C�digo cedente</td>
245
+ </tr>
246
+ <tr>
247
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
248
+ <td colspan=11 class=cp><?php echo $dadosboleto["cedente"]?></td>
249
+ <td><img src=imagens/1.png width=1 height=12></td>
250
+ <td class=cp align=right><?php echo $dadosboleto["agencia_codigo"]?></td>
251
+ </tr>
252
+ <tr><td colspan=14 height=1><img src=imagens/2.png width=666 height=1></td></tr>
253
+ <tr>
254
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
255
+ <td class=ct>Data do documento</td>
256
+ <td><img src=imagens/1.png width=1 height=13></td>
257
+ <td colspan=3 class=ct>N�mero do documento</td>
258
+ <td><img src=imagens/1.png width=1 height=13></td>
259
+ <td class=ct>Esp�cie doc.</td>
260
+ <td><img src=imagens/1.png width=1 height=13></td>
261
+ <td class=ct>Aceite</td>
262
+ <td><img src=imagens/1.png width=1 height=13></td>
263
+ <td class=ct>Data processamento</td>
264
+ <td><img src=imagens/1.png width=1 height=13></td>
265
+ <td class=ct>Nosso n�mero</td>
266
+ </tr>
267
+ <tr>
268
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
269
+ <td class=cp><?php echo $dadosboleto["data_documento"]?></td>
270
+ <td><img src=imagens/1.png width=1 height=12></td>
271
+ <td colspan=3 class=cp><?php echo $dadosboleto["numero_documento"]?></td>
272
+ <td><img src=imagens/1.png width=1 height=12></td>
273
+ <td class=cp><?php echo $dadosboleto["especie_doc"]?></td>
274
+ <td><img src=imagens/1.png width=1 height=12></td>
275
+ <td class=cp><?php echo $dadosboleto["aceite"]?></td>
276
+ <td><img src=imagens/1.png width=1 height=12></td>
277
+ <td class=cp><?php echo $dadosboleto["data_processamento"]?></td>
278
+ <td><img src=imagens/1.png width=1 height=12></td>
279
+ <td class=cp align=right><?php echo $dadosboleto["nosso_numero"]?></td>
280
+ </tr>
281
+ <tr><td colspan=14 height=1><img src=imagens/2.png width=666 height=1></td></tr>
282
+ <tr>
283
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
284
+ <td class=ct>Uso do banco</td>
285
+ <td><img src=imagens/1.png width=1 height=13></td>
286
+ <td class=ct>Carteira</td>
287
+ <td><img src=imagens/1.png width=1 height=13></td>
288
+ <td class=ct>Esp�cie</td>
289
+ <td><img src=imagens/1.png width=1 height=13></td>
290
+ <td colspan=3 class=ct>Quantidade</td>
291
+ <td><img src=imagens/1.png width=1 height=13></td>
292
+ <td class=ct>Valor</td>
293
+ <td><img src=imagens/1.png width=1 height=13></td>
294
+ <td class=ct>(=) Valor documento</td>
295
+ </tr>
296
+ <tr>
297
+ <td height=12><img src=imagens/1.png width=1 height=12></td>
298
+ <td class=cp height=12>&nbsp;</td>
299
+ <td><img src=imagens/1.png width=1 height=12></td>
300
+ <td class=cp><?php echo $dadosboleto["carteira"]?></td>
301
+ <td><img src=imagens/1.png width=1 height=12></td>
302
+ <td class=cp><?php echo $dadosboleto["especie"]?></td>
303
+ <td><img src=imagens/1.png width=1 height=12></td>
304
+ <td colspan=3 class=cp><?php echo $dadosboleto["quantidade"]?></td>
305
+ <td><img src=imagens/1.png width=1 height=12></td>
306
+ <td class=cp><?php echo $dadosboleto["valor_unitario"]?></td>
307
+ <td><img src=imagens/1.png width=1 height=12></td>
308
+ <td class=cp align=right><?php echo $dadosboleto["valor_boleto"]?></td>
309
+ </tr>
310
+ <tr><td colspan=14 height=1><img src=imagens/2.png width=666 height=1></td></tr>
311
+ </table>
312
+ <table cellspacing=0 cellpadding=0 border=0>
313
+ <tr>
314
+ <td width=7 height=26><img src=imagens/1.png width=1 height=26></td>
315
+ <td width=472 rowspan=9 valign=top>
316
+ <span class=ct>Instru��es (Texto de responsabilidade do cedente)</span><br>
317
+ &nbsp;<br>
318
+ <span class=cp><?php echo $dadosboleto["instrucoes1"] . '<br>' . $dadosboleto["instrucoes2"] . '<br>' . $dadosboleto["instrucoes3"] . '<br>' . $dadosboleto["instrucoes4"]?></span>
319
+ </td>
320
+ <td width=7><img src=imagens/2.png width=1 height=26></td>
321
+ <td width=180 class=ct>(-) Desconto / Abatimentos</td>
322
+ </tr>
323
+ <tr><td height=1><img src=imagens/2.png width=1 height=1></td><td><img src=imagens/2.png width=7 height=1></td><td><img src=imagens/2.png width=180 height=1></td></tr>
324
+ <tr>
325
+ <td height=26><img src=imagens/1.png width=1 height=26></td>
326
+ <td><img src=imagens/2.png width=1 height=26></td>
327
+ <td class=ct>(-) Outras dedu��es</td>
328
+ </tr>
329
+ <tr><td height=1><img src=imagens/1.png width=1 height=1></td><td><img src=imagens/2.png width=7 height=1></td><td><img src=imagens/2.png width=180 height=1></td></tr>
330
+ <tr>
331
+ <td height=26><img src=imagens/1.png width=1 height=26></td>
332
+ <td><img src=imagens/2.png width=1 height=26></td>
333
+ <td class=ct>(+) Mora / Multa</td>
334
+ </tr>
335
+ <tr><td height=1><img src=imagens/1.png width=1 height=1></td><td><img src=imagens/2.png width=7 height=1></td><td><img src=imagens/2.png width=180 height=1></td></tr>
336
+ <tr>
337
+ <td height=26><img src=imagens/1.png width=1 height=26></td>
338
+ <td><img src=imagens/2.png width=1 height=26></td>
339
+ <td class=ct>(+) Outros acr�scimos</td>
340
+ </tr>
341
+ <tr><td height=1><img src=imagens/1.png width=1 height=1></td><td><img src=imagens/2.png width=7 height=1></td><td><img src=imagens/2.png width=180 height=1></td></tr>
342
+ <tr>
343
+ <td height=26><img src=imagens/1.png width=1 height=26></td>
344
+ <td><img src=imagens/2.png width=1 height=26></td>
345
+ <td class=ct>(=) Valor cobrado</td>
346
+ </tr>
347
+ <tr><td colspan=4 height=1><img src=imagens/2.png width=666 height=1></td></tr>
348
+ <tr>
349
+ <td height=13><img src=imagens/1.png width=1 height=13></td>
350
+ <td class=ct>Sacado</td>
351
+ <td><img src=imagens/b.png width=1 height=1></td>
352
+ <td><img src=imagens/b.png width=1 height=1></td>
353
+ </tr>
354
+ <tr>
355
+ <td height=39><img src=imagens/1.png width=1 height=39></td>
356
+ <td class=cp><?php echo $dadosboleto["sacado"] . '<br>' . $dadosboleto["endereco1"] . '<br>' . $dadosboleto["endereco2"]?></td>
357
+ <td valign=bottom><img src=imagens/1.png width=1 height=13></td>
358
+ <td valign=bottom><span class=ct>C�d. baixa</span></td>
359
+ </tr>
360
+ <tr><td colspan=4 height=1><img src=imagens/2.png width=666 height=1></td></tr>
361
+ </table>
362
+ <table cellspacing=0 cellpadding=0 border=0>
363
+ <tr>
364
+ <td width=333 class=ct>Sacador/Avalista</td>
365
+ <td width=333 class=ct align=right>Autentica��o mec�nica - <span class=cp>Ficha de Compensa��o</span></td>
366
+ </tr>
367
+ <tr><td height=50 colspan=2><?php fbarcode($dadosboleto["codigo_barras"]); ?></td></tr>
368
+ <tr><td colspan=2 class=ct align=right>Corte na linha pontilhada</td></tr>
369
+ <tr><td colspan=2 height=1><img src=imagens/6.png width=665 height=1></td></tr>
370
+ </table>
371
+ </body>
372
+
373
+ </html>
app/design/frontend/base/default/template/BoletoBancario/banco/include/layout_unibanco.php ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Unibanco: Elizeu Alcantara |
27
+ // +----------------------------------------------------------------------+
28
+ ?>
29
+
30
+ <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
31
+ <HTML>
32
+ <HEAD>
33
+ <TITLE><?php echo $dadosboleto["identificacao"]; ?></TITLE>
34
+ <META http-equiv=Content-Type content=text/html charset=ISO-8859-1>
35
+ <meta name="Generator" content="Projeto BoletoPHP - www.boletophp.com.br - Licen�a GPL" />
36
+ <style type=text/css>
37
+ <!--.cp { font: bold 10px Arial; color: black}
38
+ <!--.ti { font: 9px Arial, Helvetica, sans-serif}
39
+ <!--.ld { font: bold 15px Arial; color: #000000}
40
+ <!--.ct { FONT: 9px "Arial Narrow"; COLOR: #000033}
41
+ <!--.cn { FONT: 9px Arial; COLOR: black }
42
+ <!--.bc { font: bold 20px Arial; color: #000000 }
43
+ <!--.ld2 { font: bold 12px Arial; color: #000000 }
44
+ --></style>
45
+ </head>
46
+
47
+ <BODY text=#000000 bgColor=#ffffff topMargin=0 rightMargin=0>
48
+ <table width=666 cellspacing=0 cellpadding=0 border=0><tr><td valign=top class=cp><DIV ALIGN="CENTER">Instru��es
49
+ de Impress�o</DIV></TD></TR><TR><TD valign=top class=cp><DIV ALIGN="left">
50
+ <p>
51
+ <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (N�o use modo econ�mico).<br>
52
+ <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>
53
+ <li>Corte na linha indicada. N�o rasure, risque, fure ou dobre a regi�o onde se encontra o c�digo de barras.<br>
54
+ <li>Caso n�o apare�a o c�digo de barras no final, clique em F5 para atualizar esta tela.
55
+ <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>
56
+ <span class="ld2">
57
+ &nbsp;&nbsp;&nbsp;&nbsp;Linha digit�vel: &nbsp;<?php echo $dadosboleto["linha_digitavel"]?><br>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;Valor: &nbsp;&nbsp;R$ <?php echo $dadosboleto["valor_boleto"]?><br>
59
+ </span>
60
+ </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
61
+ do Sacado</b></div></TD></tr></tbody></table><table width=666 cellspacing=5 cellpadding=0 border=0><tr><td width=41></TD></tr></table>
62
+ <table width=666 cellspacing=5 cellpadding=0 border=0 align=Default>
63
+ <tr>
64
+ <td width=41><IMG SRC="imagens/logo_empresa.png"></td>
65
+ <td class=ti width=455><?php echo $dadosboleto["identificacao"]; ?> <?php echo isset($dadosboleto["cpf_cnpj"]) ? $dadosboleto["cpf_cnpj"] : '' ?><br>
66
+ <?php echo $dadosboleto["endereco"]; ?><br>
67
+ <?php echo $dadosboleto["cidade_uf"]; ?><br>
68
+ </td>
69
+ <td align=RIGHT width=150 class=ti>&nbsp;</td>
70
+ </tr>
71
+ </table>
72
+ <BR><table cellspacing=0 cellpadding=0 width=666 border=0><tr><td class=cp width=150>
73
+ <span class="campo"><IMG
74
+ src="imagens/logounibanco.jpg" width="150" height="40"
75
+ border=0></span></td>
76
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
77
+ <span class="campotitulo">
78
+ <?php echo $dadosboleto["linha_digitavel"]?>
79
+ </span></span></td>
80
+ </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
81
+ do Cedente</td><td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=2 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
82
+ 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>
83
+ <span class="campo"><?php echo $dadosboleto["cedente"]; ?></span></td>
84
+ <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>
85
+ <span class="campo">
86
+ <?php echo $dadosboleto["agencia_codigo"]?>
87
+ </span></td>
88
+ <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">
89
+ <?php echo $dadosboleto["especie"]?>
90
+ </span>
91
+ </td>
92
+ <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">
93
+ <?php echo $dadosboleto["quantidade"]?>
94
+ </span>
95
+ </td>
96
+ <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>
97
+ <span class="campo">
98
+ <?php echo $dadosboleto["nosso_numero"]?>
99
+ </span></td>
100
+ </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
101
+ 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
102
+ 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>
103
+ <span class="campo">
104
+ <?php echo $dadosboleto["numero_documento"]?>
105
+ </span></td>
106
+ <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>
107
+ <span class="campo">
108
+ <?php echo $dadosboleto["cpf_cnpj"]?>
109
+ </span></td>
110
+ <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>
111
+ <span class="campo">
112
+ <?php echo $dadosboleto["data_vencimento"]?>
113
+ </span></td>
114
+ <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>
115
+ <span class="campo">
116
+ <?php echo $dadosboleto["valor_boleto"]?>
117
+ </span></td>
118
+ </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>(-)
119
+ 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>(-)
120
+ 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>(+)
121
+ 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>(+)
122
+ 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>(=)
123
+ 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>
124
+ <span class="campo">
125
+ <?php echo $dadosboleto["sacado"]?>
126
+ </span></td>
127
+ </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
128
+ mec�nica</td></tr><tr><td width=7 ></td><td class=cp width=564 >
129
+ <span class="campo">
130
+ <?php echo $dadosboleto["demonstrativo1"]?><br>
131
+ <?php echo $dadosboleto["demonstrativo2"]?><br>
132
+ <?php echo $dadosboleto["demonstrativo3"]?><br>
133
+ </span>
134
+ </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>
135
+ <br><br><br>
136
+ </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>
137
+ <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>
138
+ <span class="campo"><IMG
139
+ src="imagens/logounibanco.jpg" width="150" height="40"
140
+ border=0></span></td>
141
+ <td width=3 valign=bottom><img height=22 src=imagens/3.png width=2 border=0></td><td class=cpt 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>
142
+ <span class="campotitulo">
143
+ <?php echo $dadosboleto["linha_digitavel"]?>
144
+ </span></span></td>
145
+ </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
146
+ 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
147
+ 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>
148
+ <span class="campo">
149
+ <?php echo $dadosboleto["data_vencimento"]?>
150
+ </span></td>
151
+ </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
152
+ 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>
153
+ <span class="campo">
154
+ <?php echo $dadosboleto["cedente"]?>
155
+ </span></td>
156
+ <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>
157
+ <span class="campo">
158
+ <?php echo $dadosboleto["agencia_codigo"]?>
159
+ </span></td>
160
+ </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>
161
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=113 height=13>Data
162
+ 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=163 height=13>N<u>o</u>
163
+ 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
164
+ 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>
165
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>Data
166
+ 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
167
+ 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>
168
+ <span class="campo">
169
+ <?php echo $dadosboleto["data_documento"]?>
170
+ </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=163 height=12>
171
+ <span class="campo">
172
+ <?php echo $dadosboleto["numero_documento"]?>
173
+ </span></td>
174
+ <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">
175
+ <?php echo $dadosboleto["especie_doc"]?>
176
+ </span>
177
+ </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">
178
+ <?php echo $dadosboleto["aceite"]?>
179
+ </span>
180
+ </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=72 height=12><div align=left>
181
+ <span class="campo">
182
+ <?php echo $dadosboleto["data_processamento"]?>
183
+ </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>
184
+ <span class="campo">
185
+ <?php echo $dadosboleto["nosso_numero"]?>
186
+ </span></td>
187
+ </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>
188
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=163 height=1><img height=1 src=imagens/2.png width=163 border=0></td><td valign=top width=7 height=1>
189
+ <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>
190
+ <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>
191
+ <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>
192
+ <img height=1 src=imagens/2.png width=7 border=0></td><td valign=top width=180 height=1>
193
+ <img height=1 src=imagens/2.png width=180 border=0></td></tr></tbody></table><table cellspacing=0 cellpadding=0 border=0><tbody><tr>
194
+ <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
195
+ 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>
196
+ <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>
197
+ <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>
198
+ <img height=13 src=imagens/1.png width=1 border=0></td><td class=ct valign=top width=72 height=13>
199
+ 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>(=)
200
+ 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>
201
+ </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>
202
+ <div align=left> <span class="campo">
203
+ <?php echo $dadosboleto["carteira"]?>
204
+ </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">
205
+ <?php echo $dadosboleto["especie"]?>
206
+ </span>
207
+ </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">
208
+ <?php echo $dadosboleto["quantidade"]?>
209
+ </span>
210
+ </td>
211
+ <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>
212
+ <span class="campo">
213
+ <?php echo $dadosboleto["valor_unitario"]?>
214
+ </span></td>
215
+ <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>
216
+ <span class="campo">
217
+ <?php echo $dadosboleto["valor_boleto"]?>
218
+ </span></td>
219
+ </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>
220
+ <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>
221
+ <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>
222
+ <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>
223
+ <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>
224
+ <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>
225
+ </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>
226
+ <tr> <td class=ct valign=top width=7 height=13><img height=13 src=imagens/1.png width=1 border=0></td></tr><tr>
227
+ <td class=cp valign=top width=7 height=12><img height=12 src=imagens/1.png width=1 border=0></td></tr><tr>
228
+ <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
229
+ (Texto de responsabilidade do cedente)</font><br><br><span class=cp> <FONT class=campo>
230
+ <?php echo $dadosboleto["instrucoes1"]; ?><br>
231
+ <?php echo $dadosboleto["instrucoes2"]; ?><br>
232
+ <?php echo $dadosboleto["instrucoes3"]; ?><br>
233
+ <?php echo $dadosboleto["instrucoes4"]; ?></FONT><br><br>
234
+ </span></td>
235
+ <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>(-)
236
+ 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>
237
+ <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>
238
+ <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>
239
+ <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>(-)
240
+ 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>
241
+ <table cellspacing=0 cellpadding=0 border=0 align=left><tbody><tr><td class=ct valign=top width=7 height=13>
242
+ <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>
243
+ <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>(+)
244
+ 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>
245
+ <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>
246
+ <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>
247
+ <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>
248
+ <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>(+)
249
+ 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>(=)
250
+ 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>
251
+ </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">
252
+ <?php echo $dadosboleto["sacado"]?>
253
+ </span>
254
+ </td>
255
+ </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">
256
+ <?php echo $dadosboleto["endereco1"]?>
257
+ </span>
258
+ </td>
259
+ </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>
260
+ <span class="campo">
261
+ <?php echo $dadosboleto["endereco2"]?>
262
+ </span></td>
263
+ <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.
264
+ baixa &nbsp;&nbsp;&nbsp;<span class="cp">CVT - 07744-5</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 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
265
+ 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"]); ?>
266
+ </TD>
267
+ </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
268
+ 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>
269
+ </BODY></HTML>
app/design/frontend/base/default/template/BoletoBancario/banco/itau.phtml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Ita�: Glauber Portella |
27
+ // +----------------------------------------------------------------------+
28
+
29
+
30
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
31
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
32
+
33
+ //converte string UTF8 para ISO-8859-1
34
+ foreach ($_POST as $key => $value) {
35
+ $_POST[$key] = utf8_decode($value);
36
+ }
37
+
38
+ // pegando os dados via post
39
+ $base_url = $_POST['base_url'];
40
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
41
+ $base_url .= '/';
42
+ }
43
+
44
+ $dadosboleto["logo_url"] = $_POST["logo_url"];
45
+ $dadosboleto["store_url"] = $_POST["store_url"];
46
+
47
+ // DADOS DO SEU CLIENTE
48
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
49
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
50
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"]." ".$_POST["cliente_cidade"]." ".$_POST["cliente_uf"];
51
+
52
+ $valor_cobrado = $_POST["total_pedido"];
53
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
54
+ $taxa_boleto = $_POST["taxa_boleto"];
55
+
56
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
57
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
58
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
59
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
60
+
61
+ $dadosboleto["nosso_numero"] = substr($_POST["ref_transacao"], -8, 8); //maximo de 8 posicoes
62
+ $dadosboleto["inicio_nosso_numero"] = $_POST["inicio_nosso_numero"]; // Carteira SR: 80, 81 ou 82 - Carteira CR: 90 (Confirmar com gerente qual usar)
63
+ $dadosboleto["numero_documento"] = $_POST["ref_transacao"];
64
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
65
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
66
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
67
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
68
+
69
+ // INFORMACOES PARA O CLIENTE
70
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"]; // "Pagamento de Compra na Loja Nonononono";
71
+ $dadosboleto["demonstrativo2"] = $_POST["demonstrativo2"]; //"Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
72
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
73
+ if ($dadosboleto["demonstrativo2"] == '') {
74
+ $dadosboleto["demonstrativo2"] == "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
75
+ }
76
+ if ($dadosboleto["demonstrativo3"] == '') {
77
+ $dadosboleto["demonstrativo3"] == "Boleto gerado por MagentoBR - (www.MagentoBR.com)";
78
+ }
79
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
80
+
81
+ // INSTRU��ES PARA O CAIXA
82
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"]; // "- Sr. Caixa, cobrar multa de 2% ap�s o vencimento";
83
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"]; //"- Receber at� 10 dias ap�s o vencimento";
84
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"]; //"- Em caso de d�vidas entre em contato conosco: xxxx@xxxx.com.br";
85
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"]; //"&nbsp; Emitido pelo sistema Projeto BoletoPhp - www.boletophp.com.br";
86
+ if ($dadosboleto["instrucoes4"] == '') {
87
+ $dadosboleto["instrucoes4"] == "&nbsp; Emitido pelo sistema MagentoBR - www.MagentoBR";
88
+ }
89
+
90
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
91
+ $dadosboleto["quantidade"] = "";
92
+ $dadosboleto["valor_unitario"] = "";
93
+ $dadosboleto["aceite"] = "";
94
+ $dadosboleto["especie"] = "R$";
95
+ $dadosboleto["especie_doc"] = "";
96
+
97
+
98
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
99
+
100
+
101
+ // DADOS DA SUA CONTA - CEF
102
+ $dadosboleto["agencia"] = $_POST["agencia"]; //"1565"; // Num da agencia, sem digito
103
+ $dadosboleto["conta"] = $_POST["conta"]; //"13877"; // Num da conta, sem digito
104
+ $dadosboleto["conta_dv"] = $_POST["conta_dv"]; //"4"; // Digito do Num da conta
105
+
106
+ // DADOS PERSONALIZADOS - ITA�
107
+ $dadosboleto["conta_cedente"] = $_POST["conta_cedente"]; //"87000000414"; // ContaCedente do Cliente, sem digito (Somente N�meros)
108
+ $dadosboleto["conta_cedente_dv"] = $_POST["conta_cedente_dv"]; //"3"; // Digito da ContaCedente do Cliente
109
+ $dadosboleto["carteira"] = $_POST["carteira"]; //"SR"; // C�digo da Carteira: pode ser SR (Sem Registro) ou CR (Com Registro) - (Confirmar com gerente qual usar)
110
+
111
+ // SEUS DADOS
112
+ $dadosboleto["identificacao"] = $_POST["identificacao"]; //"BoletoPhp - C�digo Aberto de Sistema de Boletos";
113
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];;
114
+ $dadosboleto["endereco"] = $_POST["endereco"]; //"Coloque o endere�o da sua empresa aqui";
115
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"]; //"Cidade / Estado";
116
+ $dadosboleto["cedente"] = $_POST["cedente"]; //"Coloque a Raz�o Social da sua empresa aqui";
117
+
118
+ // N�O ALTERAR!
119
+
120
+ include("boleto_php/include/funcoes_itau.php");
121
+ include("boleto_php/include/layout_itau.php");
122
+ ?>
app/design/frontend/base/default/template/BoletoBancario/banco/santander_banespa.phtml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // +----------------------------------------------------------------------+
3
+ // | BoletoPhp - Vers�o Beta |
4
+ // +----------------------------------------------------------------------+
5
+ // | Este arquivo est� dispon�vel sob a Licen�a GPL dispon�vel pela Web |
6
+ // | em http://pt.wikipedia.org/wiki/GNU_General_Public_License |
7
+ // | Voc� deve ter recebido uma c�pia da GNU Public License junto com |
8
+ // | esse pacote; se n�o, escreva para: |
9
+ // | |
10
+ // | Free Software Foundation, Inc. |
11
+ // | 59 Temple Place - Suite 330 |
12
+ // | Boston, MA 02111-1307, USA. |
13
+ // +----------------------------------------------------------------------+
14
+
15
+ // +----------------------------------------------------------------------+
16
+ // | Originado do Projeto BBBoletoFree que tiveram colabora��es de Daniel |
17
+ // | William Schultz e Leandro Maniezo que por sua vez foi derivado do |
18
+ // | PHPBoleto de Jo�o Prado Maia e Pablo Martins F. Costa |
19
+ // | |
20
+ // | Se vc quer colaborar, nos ajude a desenvolver p/ os demais bancos :-)|
21
+ // | Acesse o site do Projeto BoletoPhp: www.boletophp.com.br |
22
+ // +----------------------------------------------------------------------+
23
+
24
+ // +----------------------------------------------------------------------------+
25
+ // | Equipe Coordena��o Projeto BoletoPhp: <boletophp@boletophp.com.br> |
26
+ // | Desenvolvimento Boleto Santander-Banespa : Fabio R. Lenharo |
27
+ // +----------------------------------------------------------------------------+
28
+
29
+
30
+ //converte string UTF8 para ISO-8859-1
31
+ foreach ($_POST as $key => $value) {
32
+ $_POST[$key] = utf8_decode($value);
33
+ }
34
+
35
+ // pegando os dados via post
36
+ $base_url = $_POST['base_url'];
37
+ if (strrpos($base_url, '/') != strlen($base_url) - 1) {
38
+ $base_url .= '/';
39
+ }
40
+
41
+
42
+ // ------------------------- DADOS DIN�MICOS DO SEU CLIENTE PARA A GERA��O DO BOLETO (FIXO OU VIA GET) -------------------- //
43
+ // Os valores abaixo podem ser colocados manualmente ou ajustados p/ formul�rio c/ POST, GET ou de BD (MySql,Postgre,etc) //
44
+
45
+ // DADOS DO BOLETO PARA O SEU CLIENTE
46
+ $dias_de_prazo_para_pagamento = $_POST["prazo_pagamento"];
47
+ $taxa_boleto = $_POST["taxa_boleto"];
48
+ $taxa_boleto = str_replace(",", ".",$taxa_boleto);
49
+ $data_venc = date("d/m/Y", time() + ($dias_de_prazo_para_pagamento * 86400)); // Prazo de X dias OU informe data: "13/04/2006";
50
+ $valor_cobrado = $_POST["total_pedido"]; // Valor - REGRA: Sem pontos na milhar e tanto faz com "." ou "," ou com 1 ou 2 ou sem casa decimal
51
+ $valor_cobrado = str_replace(",", ".",$valor_cobrado);
52
+ $valor_boleto=number_format($valor_cobrado+$taxa_boleto, 2, ',', '');
53
+
54
+ $dadosboleto["nosso_numero"] = $_POST["ref_transacao"]; // Nosso numero sem o DV - REGRA: M�ximo de 7 caracteres!
55
+ $dadosboleto["numero_documento"] = $_POST["ref_transacao"]; // Num do pedido ou nosso numero
56
+ $dadosboleto["data_vencimento"] = $data_venc; // Data de Vencimento do Boleto - REGRA: Formato DD/MM/AAAA
57
+ $dadosboleto["data_documento"] = date("d/m/Y"); // Data de emiss�o do Boleto
58
+ $dadosboleto["data_processamento"] = date("d/m/Y"); // Data de processamento do boleto (opcional)
59
+ $dadosboleto["valor_boleto"] = $valor_boleto; // Valor do Boleto - REGRA: Com v�rgula e sempre com duas casas depois da virgula
60
+
61
+ // DADOS DO SEU CLIENTE
62
+ $dadosboleto["sacado"] = $_POST["cliente_nome"];
63
+ $dadosboleto["endereco1"] = $_POST["cliente_end"];
64
+ $dadosboleto["endereco2"] = $_POST["cliente_cep"] . " - " . $_POST["cliente_cidade"] . " - " .$_POST["cliente_uf"];
65
+
66
+ // INFORMACOES PARA O CLIENTE
67
+ $dadosboleto["demonstrativo1"] = $_POST["demonstrativo1"];
68
+ //$dadosboleto["demonstrativo2"] = "Mensalidade referente a nonon nonooon nononon<br>Taxa banc�ria - R$ ".number_format($taxa_boleto, 2, ',', '');
69
+ $dadosboleto["demonstrativo2"] = "- N� do pedido: ".$_POST["ref_transacao"].", para maiores detalhes e 2� via do boleto acesse o hist�rico do seu pedido.";
70
+ $dadosboleto["demonstrativo3"] = $_POST["demonstrativo3"];
71
+
72
+
73
+ if ($dadosboleto["demonstrativo2"] == '') {
74
+ $dadosboleto["demonstrativo2"] = "Taxa banc�ria - R$ " . number_format($taxa_boleto, 2, ',', '');
75
+ }
76
+ $dadosboleto["demonstrativo2"] = str_replace('$taxa_boleto', number_format($taxa_boleto, 2, ',', ''), $dadosboleto["demonstrativo2"]);
77
+
78
+
79
+ $dadosboleto["instrucoes1"] = $_POST["instrucoes1"];
80
+ $dadosboleto["instrucoes2"] = $_POST["instrucoes2"];
81
+ $dadosboleto["instrucoes3"] = $_POST["instrucoes3"];
82
+ $dadosboleto["instrucoes4"] = $_POST["instrucoes4"];
83
+
84
+ // DADOS OPCIONAIS DE ACORDO COM O BANCO OU CLIENTE
85
+ $dadosboleto["quantidade"] = "";
86
+ $dadosboleto["valor_unitario"] = $valor_boleto;
87
+ $dadosboleto["aceite"] = "N";
88
+ $dadosboleto["especie"] = "R$";
89
+ $dadosboleto["especie_doc"] = $_POST["especie"];
90
+
91
+
92
+ // ---------------------- DADOS FIXOS DE CONFIGURA��O DO SEU BOLETO --------------- //
93
+
94
+
95
+ // DADOS PERSONALIZADOS - SANTANDER BANESPA
96
+ $dadosboleto["codigo_cliente"] = $_POST["convenio"]; // C�digo do Cliente (PSK) (Somente 7 digitos) "2138611";
97
+ $dadosboleto["ponto_venda"] = $_POST["agencia"]; // Ponto de Venda = Agencia "033";
98
+ $dadosboleto["carteira"] = $_POST["carteira"]; // Cobran�a Simples - SEM Registro "102";
99
+ $dadosboleto["carteira_descricao"] = $_POST["variacao_carteira"]; // Descri��o da Carteira "102 - COBRAN�A SIMPLES";
100
+
101
+ // SEUS DADOS
102
+ $dadosboleto["identificacao"] = $_POST["identificacao"];
103
+ $dadosboleto["cpf_cnpj"] = $_POST["cpf_cnpj"];
104
+ $dadosboleto["endereco"] = $_POST["endereco"];
105
+ $dadosboleto["cidade_uf"] = $_POST["cidade_uf"];
106
+ $dadosboleto["cedente"] = $_POST["cedente"];
107
+
108
+ // N�O ALTERAR!
109
+ include("boleto_php/include/funcoes_santander_banespa.php");
110
+ include("boleto_php/include/layout_santander_banespa.php");
111
+ ?>
app/design/frontend/base/default/template/BoletoBancario/popup-segundavia.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>A segunda via foi enviada.</title>
6
+ <style>
7
+ body
8
+ {
9
+ font-family: sans-serif;
10
+ }
11
+ h1
12
+ {
13
+ font-size: 22px;
14
+ }
15
+ p, a
16
+ {
17
+ font-size: 14px;
18
+ }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <h1>Segunda via do Boleto</h1>
23
+ <p>A segunda via do boleto foi enviada para o cliente por e-mail.</p>
24
+
25
+ <a href="javascript:window.close()">Fechar</a>
26
+ </body>
27
+ </html>
app/design/frontend/base/default/template/BoletoBancario/standard/form.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <fieldset class="form-list">
22
+ <?php $_code=$this->getMethodCode();
23
+ // $cls = new Mage_Core_Model_Design_Package();
24
+ // $path = $cls->getSkinBaseUrl();
25
+ ?>
26
+
27
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
28
+ <li><img src="<?php echo $this->getSkinUrl('images/boleto/ct_boleto.gif') ?>" />&nbsp;&nbsp;&nbsp;&nbsp;</li>
29
+ <li><strong><?php echo $this->getCustomText() ?></strong></li>
30
+ </ul>
31
+ </fieldset>
app/design/frontend/base/default/template/BoletoBancario/standard/form2.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category design_default
16
+ * @package Mage
17
+ * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <fieldset class="form-list">
22
+ <?php $_code=$this->getMethodCode() ?>
23
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
24
+ <li><?php echo "ESTE MÓDULO NÃO FOI FEITO PARA ESTE SITE! ESTE PEDIDO NÃO SERÁ FINALIZADO! COMPRE O MÓDULO EM http://www.loja.magentobr.com" ?></li>
25
+ </ul>
26
+ </fieldset>
app/design/frontend/base/default/template/BoletoBancario/standard/info.phtml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <!-- PARTE GERAL -->
28
+ <p>
29
+
30
+
31
+ <?php if ($this->getOrder()) { ?>
32
+ <script type="text/javascript">
33
+ function abreJanelaBoleto(popup) {
34
+ var url = '<?php echo Mage::getUrl("BoletoBancario/standard/view/order_id/" . $this->getOrder()->getId()) ?>';
35
+ if (popup == true) {
36
+ window.open(url, 'boleto');
37
+ }
38
+ else {
39
+ window.location.href = url;
40
+ }
41
+ }
42
+ </script>
43
+ <?php } ?>
44
+
45
+ <?php if (strpos($_SERVER['REQUEST_URI'], 'success') !== false) { ?>
46
+ <p>Você será redirecionado para a página de impressão do boleto em 5 segundos. <br />
47
+ Se isso não ocorrer, clique no botão "Exibir Boleto".
48
+ </p>
49
+ <script type="text/javascript">
50
+ window.setTimeout('abreJanelaBoleto(false)', 5000);
51
+ </script>
52
+ <?php } ?>
53
+
54
+ <!-- INICIO DO IF PARA SE LIBERA A SEGUNDA VIA CASO CANCELADO -->
55
+ <?php
56
+ $standard=Mage::getModel('BoletoBancario/standard');
57
+ $order_id=$this->getRequest()->getParam('order_id');
58
+ $domain=$_SERVER['REQUEST_URI'];
59
+ $domain2=$_SERVER['HTTP_HOST'];
60
+ $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
61
+ $urlhttps="https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
62
+ $home_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
63
+ if (($url==$home_url .'index.php/sales/order/view/order_id/'. $order_id .'/') || ($url==$home_url .'sales/order/view/order_id/'. $order_id .'/') || ($urlhttps==$home_url .'sales/order/view/order_id/'. $order_id .'/') || ($urlhttps==$home_url .'sales/order/view/order_id/'. $order_id .'/')) : {
64
+ echo $this->getMethod()->getTitle();
65
+ echo "<br />";
66
+ $secancelado = $this->getStandard()->getConfigData('secancelado');
67
+ $statusordem = $this->getOrder()->getStatus();
68
+
69
+
70
+ if ($secancelado=="sim") { ?>
71
+ <button type="button" class="button" target="boleto" onclick="abreJanelaBoleto(true)"><img src="<?php echo($this->getSkinUrl('images/boleto/boleto.gif')) ?>" /><br /><span><span><?php echo $this->__('Emitir 2ª Via do Boleto') ?></span></span></button><br />
72
+
73
+ <?php }
74
+ else {
75
+
76
+ if($statusordem=="canceled") : {
77
+ echo "Este pedido foi cancelado."; }
78
+
79
+ else : { ?>
80
+
81
+ <button type="button" class="button" target="boleto" onclick="abreJanelaBoleto(true)"><img src="<?php echo($this->getSkinUrl('images/boleto/boleto.gif')) ?>" /><br /><span><span><?php echo $this->__('Emitir 2ª Via do Boleto') ?></span></span></button><br />
82
+
83
+ <?php } ?>
84
+ <?php endif; ?>
85
+ <?php } ?>
86
+ </p>
87
+ <!-- FIM DO IF PARA SE LIBERA A SEGUNDA VIA CASO CANCELADO -->
88
+ <!-- INICIO DO IF PARA ELSE -->
89
+ <?php }
90
+ else : { ?>
91
+ <p>
92
+
93
+ <?php if ($this->getOrder()) { ?>
94
+ <script type="text/javascript">
95
+ function abreJanelaBoleto(popup) {
96
+ var url = '<?php echo Mage::getUrl("BoletoBancario/standard/view/order_id/" . $this->getOrder()->getId()) ?>';
97
+ if (popup == true) {
98
+ window.open(url, 'boleto');
99
+ }
100
+ else {
101
+ window.location.href = url;
102
+ }
103
+ }
104
+ </script>
105
+
106
+ <?php if (strpos($_SERVER['REQUEST_URI'], 'success') !== false) { ?>
107
+ <p>Você será redirecionado para a página de impressão do boleto em 5 segundos. <br />
108
+ Se isso não ocorrer, clique no botão "Exibir Boleto".
109
+ </p>
110
+ <script type="text/javascript">
111
+ window.setTimeout('abreJanelaBoleto(false)', 5000);
112
+ </script>
113
+ <?php } ?>
114
+
115
+ <?php if (Mage::registry('current_order')) { ?>
116
+ <button type="button" class="form-button" target="boleto" onclick="abreJanelaBoleto(true)"><span>Exibir Boleto</span></button>
117
+ <?php } ?>
118
+ <?php } ?>
119
+ </p>
120
+ <?php } ?>
121
+ <?php endif; ?>
app/design/frontend/base/default/template/BoletoBancario/standard/info2.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <p>
28
+ <?php echo $this->getMethod()->getTitle() ?><br />
29
+
30
+ <?php
31
+ if($this->getOrder()->getStatus()=="canceled"): {
32
+ echo "Este pedido foi cancelado."; }
33
+
34
+ else : { ?>
35
+ <a target="boleto" href="<?php echo Mage::getUrl("BoletoBancario/standard/view/order_id/" . $this->getOrder()->getId()) ?>">(Emitir 2� via)</a>
36
+ <?php } ?>
37
+
38
+ <?php endif; ?>
39
+ </p>
app/design/frontend/base/default/template/BoletoBancario/standard/secan.phtml ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <p>
28
+ <?php echo $this->getMethod()->getTitle() ?><br />
29
+
30
+ <?php if ($this->getOrder()) { ?>
31
+ <script type="text/javascript">
32
+ function abreJanelaBoleto(popup) {
33
+ var url = '<?php echo Mage::getUrl("BoletoBancario/standard/view/order_id/" . $this->getOrder()->getId()) ?>';
34
+ if (popup == true) {
35
+ window.open(url, 'boleto');
36
+ }
37
+ else {
38
+ window.location.href = url;
39
+ }
40
+ }
41
+ </script>
42
+ <?php } ?>
43
+
44
+ <?php if (strpos($_SERVER['REQUEST_URI'], 'success') !== false) { ?>
45
+ <p>Voc� ser� redirecionado para a p�gina de impress�o do boleto em 5 segundos. <br />
46
+ Se isso n�o ocorrer, clique no bot�o "Exibir Boleto".
47
+ </p>
48
+ <script type="text/javascript">
49
+ window.setTimeout('abreJanelaBoleto(false)', 5000);
50
+ </script>
51
+ <?php } ?>
52
+
53
+ <?php
54
+ $standard = Mage::getSingleton('BoletoBancario/standard');
55
+ $secancelado = $this->getStandard()->getConfigData('secancelado');
56
+ $statusordem = $this->getOrder()->getStatus();
57
+
58
+ if ($secancelado=="sim") { ?>
59
+ <button type="button" class="form-button" target="boleto" onclick="abreJanelaBoleto(true)"><span>Emitir 2� Via do Boleto</span></button>
60
+ <?php }
61
+ else {
62
+
63
+ if($statusordem=="canceled") : {
64
+ echo "Este pedido foi cancelado."; }
65
+
66
+ else : { ?>
67
+ <button type="button" class="form-button" target="boleto" onclick="abreJanelaBoleto(true)"><span>Emitir 2� Via do Boleto</span></button>
68
+
69
+ <?php } ?>
70
+ <?php endif; ?>
71
+ <?php } ?>
72
+ </p>
app/design/frontend/base/default/template/BoletoBancario/standard/success.phtml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Academic Free License (AFL 3.0)
8
+ * that is bundled with this package in the file LICENSE_AFL.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/afl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design
22
+ * @package base_default
23
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <div class="page-title">
28
+ <h1><?php echo $this->__('Your order has been received') ?></h1>
29
+ </div>
30
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
31
+ <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2>
32
+
33
+ <?php if ($this->getOrderId()):?>
34
+ <?php if ($this->getCanViewOrder()) :?>
35
+ <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p>
36
+ <?php else :?>
37
+ <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?>.</p>
38
+ <?php endif;?>
39
+ <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p>
40
+
41
+
42
+ <?php /** INCIO GERAR BOLETO SE BOLETO */
43
+ $orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
44
+ Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
45
+ $order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
46
+ if($order->getPayment()->getMethod() == "BoletoBancario_standard"): ?>
47
+ <center>
48
+ <button type="button" class="button" onclick="window.open('<?php echo $this->getUrl('BoletoBancario/standard/view/order_id/' . $order->getId()) ?>')"><span><span><?php echo $this->__('Clique aqui para imprimir o Boleto') ?></span></span><img src="<?php echo($this->getSkinUrl('images/boleto/boleto.gif')) ?>" /></button><br />
49
+ </center>
50
+ <?php endif; /** FIM GERAR BOLETO SE BOLETO*/?>
51
+
52
+ <?php if ($this->getViewOrder() && $this->getCanPrintOrder()) :?>
53
+ <p>
54
+ <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?>
55
+ <?php echo $this->getChildHtml() ?>
56
+ </p>
57
+ <?php endif;?>
58
+ <?php endif;?>
59
+
60
+ <?php if ($this->getAgreementRefId()): ?>
61
+ <p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p>
62
+ <?php endif;?>
63
+
64
+ <?php if ($profiles = $this->getRecurringProfiles()):?>
65
+ <p><?php echo $this->__('Your recurring payment profiles:'); ?></p>
66
+ <ul class="disc">
67
+ <?php foreach($profiles as $profile):?>
68
+ <?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?>
69
+ <li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li>
70
+ <?php endforeach;?>
71
+ </ul>
72
+ <?php endif;?>
73
+
74
+ <div class="buttons-set">
75
+ <button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button>
76
+ </div>
app/design/frontend/base/default/template/BoletoBancario/standard/view.phtml ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category design_default
22
+ * @package Mage
23
+ * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+ ?>
27
+ <?php if ($this->helper('giftmessage/message')->getIsMessagesAvailable('items', $this->getOrder())): ?>
28
+ <script type="text/javascript">
29
+ //<![CDATA[
30
+ function giftMessageToogle(giftMessageIdentifier)
31
+ {
32
+ var link = $('order-item-gift-message-link-'+giftMessageIdentifier);
33
+ var container = $('order-item-gift-message-'+giftMessageIdentifier);
34
+ var row = $('order-item-row-'+giftMessageIdentifier);
35
+ if(link.expanded) {
36
+ link.expanded = false;
37
+ link.removeClassName('collapse');
38
+ link.addClassName('expand');
39
+ if(container.hasClassName('last')) {
40
+ row.addClassName('last');
41
+ }
42
+ container.hide();
43
+ } else {
44
+ link.expanded = true;
45
+ link.addClassName('collapse');
46
+ link.removeClassName('expand');
47
+ if(container.hasClassName('last')) {
48
+ row.removeClassName('last');
49
+ }
50
+ container.show();
51
+ }
52
+
53
+ return false;
54
+ }
55
+ //]]>
56
+ </script>
57
+ <?php endif; ?>
58
+ <?php $_order = $this->getOrder() ?>
59
+ <h4><?php echo $this->__('Items Ordered') ?>
60
+ <?php if ($_order->getTracksCollection()->count()) : ?>
61
+ <span class="separator">|</span> <a href="#" id="linkId" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByOrderId($_order->getId()) ?>','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php echo $this->__('Track your order') ?>"><?php echo $this->__('Track your order') ?></a>
62
+ <?php endif; ?>
63
+ </h4>
64
+
65
+ <?php echo $this->getChildHtml('order_items') ?>
66
+
67
+ <?php if($this->helper('giftmessage/message')->getIsMessagesAvailable('order', $_order) && $_order->getGiftMessageId()): ?>
68
+ <div class="giftmessage">
69
+ <?php $_giftMessage=$this->helper('giftmessage/message')->getGiftMessageForEntity($_order); ?>
70
+ <strong><?php echo $this->__('Gift Message for this Order') ?></strong>
71
+ <ul>
72
+ <li>
73
+ <label><?php echo $this->__('From') ?></label> <?php echo $this->htmlEscape($_giftMessage->getSender()) ?>
74
+ </li>
75
+ <li>
76
+ <label><?php echo $this->__('To') ?></label> <?php echo $this->htmlEscape($_giftMessage->getRecipient()) ?>
77
+ </li>
78
+ <li><?php echo $this->helper('giftmessage/message')->getEscapedGiftMessage($_order) ?></li>
79
+ </ul>
80
+ </div>
81
+ <?php endif; ?>
82
+ <?php $_history = $this->getOrder()->getVisibleStatusHistory() ?>
83
+ <?php if (count($_history)): ?>
84
+ <div class="clear"></div>
85
+ <h4><?php echo $this->__('About Your Order') ?></h4>
86
+ <div>
87
+ <dl>
88
+ <?php foreach ($_history as $_historyItem): ?>
89
+ <dt><?php echo $this->formatDate($_historyItem->getCreatedAt(), 'medium', true) ?></dt>
90
+ <dd><?php echo $_historyItem->getComment() ?></dd>
91
+ <?php endforeach; ?>
92
+ </dl>
93
+ </div>
94
+ <?php endif; ?>
95
+
96
+ <div class="button-set">
97
+ <a href="<?php echo $this->getBackUrl() ?>" class="left">&laquo; <?php echo $this->__('Back to My Orders') ?></a>
98
+ </div>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageBR_BoletoBancario</name>
4
- <version>1.6.4</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -18,12 +18,13 @@ Ita&#xFA; - (Carteira 175 / 174 / 178 / 104 / 109 - Sem Registro)&#xD;
18
  H&#xE1; op&#xE7;&#xE3;o de segunda via tanto no admin quanto na conta do cliente.&#xD;
19
  &#xD;
20
  Boletos sem registros. </description>
21
- <notes>==== 1.6.4 - 20/07/2014 ====&#xD;
22
- - Corrigido problema ao gerar o boleto sem a compila&#xE7;&#xE3;o ligada.</notes>
 
23
  <authors><author><name>Eric Cavalcanti</name><user>CajuCLC</user><email>cajuclc@gmail.com</email></author></authors>
24
- <date>2014-07-20</date>
25
- <time>07:56:00</time>
26
- <contents><target name="magecommunity"><dir name="MageBR"><dir name="BoletoBancario"><dir name="Block"><dir name="Standard"><file name="Form.php" hash="ccfb464e3d4e2c0c6bc2f458e0c2a01e"/><file name="Info.php" hash="422b2122afdeb3388f93eb4fead614f6"/><file name="Redirect.php" hash="8151ad781c0b5911d4b230ecf7bbb872"/><file name="Redirect_POPUP.php" hash="c47abbf77fadebf738058246e5e75827"/><file name="SendMail.php" hash="9f6dbda1c406847e2cc86e2df7c98f1a"/><file name="Success.php" hash="f2ee15cbc98a64eb39db376f049e7733"/><file name="Sucesso.php" hash="152d0564168cfef778f0c4b9d6fdbf94"/><file name="View.php" hash="6b991ea8e2c167990198d069acf0d77d"/><file name="gerar.php" hash="1e1f70f6a0ba740740a59c46987b984c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="bbb57bf99ee97cc9a00d97eee2f2d148"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="99746110af4081c21bfe1ab6a4179223"/></dir><file name="Session.php" hash="5539f36b1e3665aa6387b319e1a49e2e"/><dir name="Source"><file name="Bancos.php" hash="24c35853fbac3875475ab19b17a0318a"/><file name="Carteiras.php" hash="2c2d966bc8d9f63b903f9f1d1e3e83b7"/><file name="SeCancelado.php" hash="6990c64544c12bdd380a305d30fb6bf1"/><file name="StandardAction.php" hash="443f857e275eb8b762b5450761c28b45"/></dir><file name="Standard.php" hash="6c0dea63b4c0770af6efe1400b0f41b4"/></dir><dir name="controllers"><file name="StandardController.php" hash="05657c982ec959b6715229c62b493e70"/></dir><dir name="etc"><file name="config.xml" hash="af7b26430fdf32c7bde0876baf188b60"/><file name="system.xml" hash="e9614351d92d43dbd23f3d89d927d1e0"/></dir><dir name="sql"><dir name="BoletoBancario_setup"><file name="mysql4-install-0.7.0.php" hash="04041e7a576f28ddf94ecafe7fd22820"/><file name="mysql4-install-1.0.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.0.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.0.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.2.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.3.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.3.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.5.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.5.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.0.php" hash="96c590823aeff0091a9aed83cc141aee"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="BoletoBancario"><file name="BoletoBancario.phtml" hash="65f237d9f03e571b873546e6e3f631fd"/><dir name="standard"><file name="form.phtml" hash="4e79cda6e00fcaf09bf3fb4f6f3564cf"/><file name="info.phtml" hash="a0d1f2f566b2f57f34b39cf9d6b7091f"/><file name="success.phtml" hash="5b7ca0ba6bcbcb2cf260278865aa97b9"/><file name="view.phtml" hash="856ee2ea0418d82ab1a36bffb4b67dfc"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="BoletoBancario.xml" hash="b384aeb35b1b670b365227d0cb6bb332"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MageBR_BoletoBancario.xml" hash="42f7eb53d305de3e0c57b0ec414dfe0d"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="boletobancario"><file name="segunda_via.html" hash="3e6243127ce99c1da81e8da3b1d67ebf"/></dir></dir></dir></dir><dir name="pt_BR"><dir name="template"><dir name="email"><dir name="boletobancario"><file name="segunda_via.html" hash="3e6243127ce99c1da81e8da3b1d67ebf"/></dir></dir></dir></dir></target><target name="magelib"><dir name="boleto_php"><file name="BUGS.txt" hash="1fae1fc76d8350b59dffcd09bec18a3b"/><file name="COPYING" hash="c93c0550bd3173f4504b2cbd8991e50b"/><file name="COPYRIGHT" hash="aec35ca6d6c4bb68f99daa4d93cd8588"/><file name="CREDITOS.txt" hash="31bf3d7f0bfe3324f57224a204a6a26d"/><file name="LEIAME.txt" hash="7611f451b736b9a20b1879dbf7bb22c5"/><file name="boleto_bancoob.php" hash="1e77089b3c125c21d4895653192de179"/><file name="boleto_banespa.php" hash="b00d37b429537e5e516ab00e5caee856"/><file name="boleto_banestes.php" hash="e0367b31e61e1dee14c6dc9313865f97"/><file name="boleto_bb.php" hash="76b132649ff876442da8067d12a5ca2b"/><file name="boleto_besc.php" hash="2505ba9715dc1aab18ee33af6360ddb5"/><file name="boleto_bradesco.php" hash="64322685cd025ee03c785750de7d511f"/><file name="boleto_caixa.php" hash="c1df6491bbd4dbab21cc65c243acb81d"/><file name="boleto_cef.php" hash="23b2a5b228f06568c2e610e9728011ed"/><file name="boleto_cef_sigcb.php" hash="8e9969c7690ed7d42d00f5399d91ad55"/><file name="boleto_cef_sinco.php" hash="ab6e86d414fb3492b447159e50863405"/><file name="boleto_hsbc.php" hash="4bbb49ea6996620e4712793b3dc3840f"/><file name="boleto_itau.php" hash="1099c4a91b4f93b33cfa1a6a94687400"/><file name="boleto_itau2.php" hash="f82366bf33bffa21987d491ca921c35d"/><file name="boleto_nossacaixa.php" hash="021e77a31b33fe20da3ef219bf62ea3c"/><file name="boleto_real.php" hash="6dd2bfe329f6052c03d4ebf6f6712507"/><file name="boleto_santander_banespa.php" hash="532a362938bf7c5e66ee71e59b99e95d"/><file name="boleto_sicredi.php" hash="b3eeb8644b7aa3f62048704f5578b305"/><file name="boleto_sudameris.php" hash="98c3fd960558cd448e889aea5093ed55"/><file name="boleto_unibanco.php" hash="d781536cf7aa1391cb2ed641ae3d56af"/><dir name="funcoes"><file name="funcoes-caixa.php" hash="746f1ecaf01f8026681c94e85cdd90a2"/><file name="funcoes-caixa2.php" hash="dd68f836ba5576051999fa23970b285d"/><file name="funcoes-caixa3.php" hash="dd68f836ba5576051999fa23970b285d"/></dir><dir name="imagens"><file name="1.gif" hash="4f736dc9a19ff1ae0819c802095daa08"/><file name="1.png" hash="35431737cc2b564f99359297e77534e2"/><file name="2.gif" hash="916d43b08703931ba8c5551926e4b4d2"/><file name="2.png" hash="b4d1fc0b0f6e4840295213e9cce3ce3e"/><file name="3.gif" hash="16ffeff71e2fce001ce35db08689bfea"/><file name="3.png" hash="cc26d188f9b4b3d34067772efae40258"/><file name="5.gif" hash="cd3ab462df18a247c0d54b95586f94b6"/><file name="6.gif" hash="5e31e8214687f09fb95f40c47bb9f77e"/><file name="6.png" hash="76c9bfd564117e42b8015e3b53774761"/><file name="Thumbs.db" hash="0e54003616027d61c81e8bdee936b2b1"/><file name="b.gif" hash="8e8ee53a50035244f6c03d4c7c637aa0"/><file name="b.png" hash="16a2421946ffcb0107e117fc582cbf3b"/><file name="boleto.gif" hash="ff8deaf0ef7a0a4967be3c9b1997ae3d"/><file name="imgbrrazu.png" hash="5f1d138a8921017477b8a4a3cffb6e09"/><file name="imgbrrlrj.png" hash="2bbc048a948538e910d90cb07172830c"/><file name="imgpxlazu.png" hash="9d4a91b742fdcba740ffda7be5a7ef5d"/><file name="logo-caixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logo-netdinamica.gif" hash="1319c6cdb7d77396c3eab4d51a13d15f"/><file name="logo.jpg" hash="84f0c9265ca0ba351bc1cefafa18acd3"/><file name="logo_empresa.jpg" hash="75b9684e59ca4738a698b8b73c128bda"/><file name="logo_empresa.png" hash="bcf564df3b2ce8d7ff537e9b790a8b25"/><file name="logobancoob.jpg" hash="b16e044dda83da2d443dc15500434863"/><file name="logobanespa.jpg" hash="945f4f70d395fe6afd2254448ae81ce7"/><file name="logobanestes.jpg" hash="947d9b5c3e776e8ab4ebdae0c153bb08"/><file name="logobb.gif" hash="69bac286145600ee7503007a26ca2cea"/><file name="logobb.jpg" hash="1b83c863729121325d8d08ad2fcd3f0a"/><file name="logobesc.jpg" hash="6d91ce4a733f0450e6ead883435207b7"/><file name="logobradesco.jpg" hash="2cb3885e25e8cf7f715292fd0efe02d5"/><file name="logocaixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logohsbc.jpg" hash="d5f73a8c016caafe2b6da56fa64cd125"/><file name="logoitau.jpg" hash="81b5c130a1ae73f4f4b6c322649d116e"/><file name="logonossacaixa.jpg" hash="7b779fb496c6eb53818b0e3e122aff47"/><file name="logoreal.jpg" hash="4fafdc012bff6500f8253596689b3498"/><file name="logosantander.jpg" hash="e2aa97c82240dba62a6b3805305b99d1"/><file name="logosicredi.jpg" hash="ef0affdb0dd148e86fa726bfa0722348"/><file name="logosudameris.jpg" hash="911d87a90e039fc9fda24b5bf811a4dd"/><file name="logounibanco.jpg" hash="607beadd538def2029e012df9de7f50b"/><file name="p.gif" hash="441e909e947d9afb1fcf093c2c3b63cc"/><file name="p.png" hash="580599dc1b24a2c165fdea115a7bb566"/><file name="printer.gif" hash="e5a74ac478eefe5405d12f5084c8d190"/></dir><dir name="include"><file name="funcoes_bancoob.php" hash="5bcfd505ab6a235954ee166a5020625d"/><file name="funcoes_banespa.php" hash="30a1c2005e157ebdc2465e011473a694"/><file name="funcoes_banestes.php" hash="466c2393a8fde68990aae9c05846d059"/><file name="funcoes_bb.php" hash="dec3bf67e4375aa3b7705c6e8ecec604"/><file name="funcoes_besc.php" hash="8e50a84f45461913f87cbb61c760a45b"/><file name="funcoes_bradesco.php" hash="a603ee0dd349b1cb654e423031faa42b"/><file name="funcoes_cef.php" hash="a30369b6606fe152f73f02f705bc4cdb"/><file name="funcoes_cef_sigcb.php" hash="ee4fe9c2dca64d0a625af670f38842dd"/><file name="funcoes_cef_sinco.php" hash="b36b87c5e4f25965af7e7a31c440cc6d"/><file name="funcoes_hsbc.php" hash="57543e5c3d92b7762aa30ccbaaea58e3"/><file name="funcoes_itau.php" hash="8aad29a804cf9f4d0c75da29b6c9f1da"/><file name="funcoes_nossacaixa.php" hash="5570254213e53382a43790e48b7f81be"/><file name="funcoes_real.php" hash="9f502eae66357746e15dffd04e08af8e"/><file name="funcoes_santander_banespa.php" hash="7d5cc08c567575e5d9ccba63f18f2582"/><file name="funcoes_sicredi.php" hash="b0f9fc42a45c8e3d2ea3b627da308d4a"/><file name="funcoes_sudameris.php" hash="34e820802c914e7cf239f8273db7b5c3"/><file name="funcoes_unibanco.php" hash="e1c4f385d37fb51cc6800132cf8ac8fa"/><file name="layout_bancoob.php" hash="0b15c898ef9662b328b39b71e22d4f13"/><file name="layout_banespa.php" hash="dd9d8f049d78a3606722ca0d51ba8c1f"/><file name="layout_banestes.php" hash="526e2d4ee74aae043c08e8d2122a9756"/><file name="layout_bb.php" hash="f3ae3fd6606023721f42a9749300aaa6"/><file name="layout_besc.php" hash="54492c66ba815caecdb2615c528714d3"/><file name="layout_bradesco.php" hash="5bf1063daa495384445938df7034eaa9"/><file name="layout_cef.php" hash="978a257aa0de2d85d06905edeae91d0e"/><file name="layout_cef_sinco.php" hash="3bdfa1d341a92b63f585fd1348dc94d0"/><file name="layout_hsbc.php" hash="959fa6827aa23fb4585960d662eeb390"/><file name="layout_itau.php" hash="2a7b8c3d8aae16b3ede8635dafe080b0"/><file name="layout_nossacaixa.php" hash="dbc1ba96994d1ad527a221f27c4e520c"/><file name="layout_real.php" hash="9c13d775bf173861603b251853f2d9e1"/><file name="layout_santander_banespa.php" hash="80ae8ca8589be0ec08707cbd730bb256"/><file name="layout_sicredi.php" hash="5242592e46ed9a266cd38dd3a015d1e8"/><file name="layout_sudameris.php" hash="feb42f2ee87b1133de19d81ec86bc6d9"/><file name="layout_unibanco.php" hash="fa0f76b3cbde82f91075950240bc9367"/></dir><file name=".htaccess" hash="7b15cb52f9b1c0fba36de3516aeec3bb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="boleto"><file name="1.gif" hash="4f736dc9a19ff1ae0819c802095daa08"/><file name="1.png" hash="35431737cc2b564f99359297e77534e2"/><file name="2.gif" hash="916d43b08703931ba8c5551926e4b4d2"/><file name="2.png" hash="b4d1fc0b0f6e4840295213e9cce3ce3e"/><file name="3.gif" hash="16ffeff71e2fce001ce35db08689bfea"/><file name="3.png" hash="cc26d188f9b4b3d34067772efae40258"/><file name="5.gif" hash="cd3ab462df18a247c0d54b95586f94b6"/><file name="6.gif" hash="5e31e8214687f09fb95f40c47bb9f77e"/><file name="6.png" hash="76c9bfd564117e42b8015e3b53774761"/><file name="b.gif" hash="8e8ee53a50035244f6c03d4c7c637aa0"/><file name="b.png" hash="16a2421946ffcb0107e117fc582cbf3b"/><file name="boleto.gif" hash="ae7c81a0e1902e6fbfe61aed94488dd8"/><file name="boleto.png" hash="325758628ebb0109d2bcd87926608c0d"/><file name="boletocarregando.gif" hash="458e0eb0313634aee6d12d6d57c715b5"/><file name="ct_boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="imgbrrazu.png" hash="5f1d138a8921017477b8a4a3cffb6e09"/><file name="imgbrrlrj.png" hash="2bbc048a948538e910d90cb07172830c"/><file name="imgpxlazu.png" hash="9d4a91b742fdcba740ffda7be5a7ef5d"/><file name="logo-caixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logo-netdinamica.gif" hash="1319c6cdb7d77396c3eab4d51a13d15f"/><file name="logo.jpg" hash="84f0c9265ca0ba351bc1cefafa18acd3"/><file name="logo_boleto.png" hash="3a1e4b4970fe92d6da559987866ebd27"/><file name="logo_empresa.jpg" hash="75b9684e59ca4738a698b8b73c128bda"/><file name="logo_empresa.png" hash="bcf564df3b2ce8d7ff537e9b790a8b25"/><file name="logobancoob.jpg" hash="b16e044dda83da2d443dc15500434863"/><file name="logobanespa.jpg" hash="945f4f70d395fe6afd2254448ae81ce7"/><file name="logobanestes.jpg" hash="947d9b5c3e776e8ab4ebdae0c153bb08"/><file name="logobb.gif" hash="69bac286145600ee7503007a26ca2cea"/><file name="logobb.jpg" hash="1b83c863729121325d8d08ad2fcd3f0a"/><file name="logobesc.jpg" hash="6d91ce4a733f0450e6ead883435207b7"/><file name="logobradesco.jpg" hash="2cb3885e25e8cf7f715292fd0efe02d5"/><file name="logocaixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logohsbc.jpg" hash="d5f73a8c016caafe2b6da56fa64cd125"/><file name="logoitau.jpg" hash="81b5c130a1ae73f4f4b6c322649d116e"/><file name="logonossacaixa.jpg" hash="7b779fb496c6eb53818b0e3e122aff47"/><file name="logoreal.jpg" hash="4fafdc012bff6500f8253596689b3498"/><file name="logosantander.jpg" hash="e2aa97c82240dba62a6b3805305b99d1"/><file name="logosicredi.jpg" hash="ef0affdb0dd148e86fa726bfa0722348"/><file name="logosudameris.jpg" hash="911d87a90e039fc9fda24b5bf811a4dd"/><file name="logounibanco.jpg" hash="607beadd538def2029e012df9de7f50b"/><file name="p.gif" hash="441e909e947d9afb1fcf093c2c3b63cc"/><file name="p.png" hash="580599dc1b24a2c165fdea115a7bb566"/><file name="printer.gif" hash="e5a74ac478eefe5405d12f5084c8d190"/></dir><dir name="cards"><file name="am.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="amex.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="banco.gif" hash="87c37a3b51601abe0a11b8c52114991a"/><file name="boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_bb.jpg" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_bradesco.jpg.jpg" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_hsbc.jpg" hash="c03644d9d6ecef48c0bc8220c21986e1"/><file name="boleto_itau.jpg" hash="93d5f30f7b3825d9c6f8f54162463ed8"/><file name="bradesco.gif" hash="9f5bfb537000e3b124aca5db82d1f1b3"/><file name="ct_amex.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="ct_aura.gif" hash="934125705cd17e5057e7428d35a527aa"/><file name="ct_boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="ct_cred_virtual.gif" hash="57deb88e6b8795ab0cf3b14ae7242d93"/><file name="ct_deposito.gif" hash="eeb64fbaf1d5a27038418d499f4e2e5a"/><file name="ct_diners.gif" hash="2bc7988918fb06eb595a6c41c67a225d"/><file name="ct_discover.gif" hash="e79ecdc028c7980de0b183d92ee57edd"/><file name="ct_elo.gif" hash="fe13b7b750ed7daa23edab95bbf8326d"/><file name="ct_hiper.gif" hash="9ebe06e719384161b1ad1350dbb9865a"/><file name="ct_master.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="ct_pd.gif" hash="0c015b6863369d018dfffcbf89f09977"/><file name="ct_visa.gif" hash="2fdd1c894d88c9bb74497122efe0968b"/><file name="diners.gif" hash="35dbdd58a7c8a6cff532a8e42fbe029c"/><file name="diners.jpg" hash="638f955e37da0c4cbf76f20a30bb0f7b"/><file name="discover.gif" hash="e79ecdc028c7980de0b183d92ee57edd"/><file name="elo.gif" hash="fe13b7b750ed7daa23edab95bbf8326d"/><file name="itau.gif" hash="d6cd328696b115353ed2cd874cec044a"/><file name="itau.jpg" hash="1a87977a9561f395dbbf22d8cb9c27d7"/><file name="itaushopline.gif" hash="d6cd328696b115353ed2cd874cec044a"/><file name="itaushopline.jpg" hash="1a87977a9561f395dbbf22d8cb9c27d7"/><file name="mastercard.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="mastercard.jpg" hash="d8bebd795e23da1f44fef539ada2935d"/><file name="mc.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="pagseguro.png" hash="dd155c5d23600603a330a7d4f7332b5f"/><file name="vi.gif" hash="2fdd1c894d88c9bb74497122efe0968b"/><file name="visa.gif" hash="dd8270f887c3907c49e7db459f035394"/><file name="visa.jpg" hash="8062b1d5e564a2cdee07237525905713"/></dir></dir><dir name="imagens"><file name="boleto.gif" hash="ff8deaf0ef7a0a4967be3c9b1997ae3d"/></dir></dir></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.3.0</min><max>5.5.15</max></php></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageBR_BoletoBancario</name>
4
+ <version>1.6.5</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
18
  H&#xE1; op&#xE7;&#xE3;o de segunda via tanto no admin quanto na conta do cliente.&#xD;
19
  &#xD;
20
  Boletos sem registros. </description>
21
+ <notes>==== 1.6.5 - 27/07/2014 ====&#xD;
22
+ - Removido arquivos desnecess&#xE1;rios.&#xD;
23
+ - Atualizado tutorial.</notes>
24
  <authors><author><name>Eric Cavalcanti</name><user>CajuCLC</user><email>cajuclc@gmail.com</email></author></authors>
25
+ <date>2014-07-27</date>
26
+ <time>19:32:16</time>
27
+ <contents><target name="magecommunity"><dir name="MageBR"><dir name="BoletoBancario"><dir name="Block"><dir name="Standard"><file name="Form.php" hash="ccfb464e3d4e2c0c6bc2f458e0c2a01e"/><file name="Info.php" hash="422b2122afdeb3388f93eb4fead614f6"/><file name="Redirect.php" hash="8151ad781c0b5911d4b230ecf7bbb872"/><file name="SendMail.php" hash="9f6dbda1c406847e2cc86e2df7c98f1a"/><file name="Success.php" hash="f2ee15cbc98a64eb39db376f049e7733"/><file name="Sucesso.php" hash="152d0564168cfef778f0c4b9d6fdbf94"/><file name="View.php" hash="6b991ea8e2c167990198d069acf0d77d"/><file name="gerar.php" hash="1e1f70f6a0ba740740a59c46987b984c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="bbb57bf99ee97cc9a00d97eee2f2d148"/></dir><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="99746110af4081c21bfe1ab6a4179223"/></dir><file name="Session.php" hash="5539f36b1e3665aa6387b319e1a49e2e"/><dir name="Source"><file name="Bancos.php" hash="24c35853fbac3875475ab19b17a0318a"/><file name="Carteiras.php" hash="2c2d966bc8d9f63b903f9f1d1e3e83b7"/><file name="SeCancelado.php" hash="6990c64544c12bdd380a305d30fb6bf1"/><file name="StandardAction.php" hash="443f857e275eb8b762b5450761c28b45"/></dir><file name="Standard.php" hash="6c0dea63b4c0770af6efe1400b0f41b4"/></dir><dir name="controllers"><file name="StandardController.php" hash="05657c982ec959b6715229c62b493e70"/></dir><dir name="etc"><file name="config.xml" hash="c1601a2d751df04cd70cb1273940d4ba"/><file name="system.xml" hash="1ea7a97374b4a0c7ba2479e81b0e8b68"/></dir><dir name="sql"><dir name="BoletoBancario_setup"><file name="mysql4-install-0.7.0.php" hash="04041e7a576f28ddf94ecafe7fd22820"/><file name="mysql4-install-1.0.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.0.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.0.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.2.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.3.3.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.4.3.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.5.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.5.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.0.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.1.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.2.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.3.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.4.php" hash="96c590823aeff0091a9aed83cc141aee"/><file name="mysql4-install-1.6.5.php" hash="96c590823aeff0091a9aed83cc141aee"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="BoletoBancario"><file name="BoletoBancario.phtml" hash="65f237d9f03e571b873546e6e3f631fd"/><dir name="standard"><file name="form.phtml" hash="4e79cda6e00fcaf09bf3fb4f6f3564cf"/><file name="info.phtml" hash="a0d1f2f566b2f57f34b39cf9d6b7091f"/><file name="success.phtml" hash="5b7ca0ba6bcbcb2cf260278865aa97b9"/><file name="view.phtml" hash="856ee2ea0418d82ab1a36bffb4b67dfc"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="BoletoBancario"><file name="BoletoBancario.phtml" hash="993b732f71bc44a528b8532f65cf5ec0"/><dir name="banco"><file name="bb.phtml" hash="42d76328ae10f20725c380ba847f9a25"/><file name="bradesco.phtml" hash="0d614930cdae20c7dfd0f09fa4609d5f"/><file name="caixa.phtml" hash="72354fb25400cf51a602a8e5f5fca493"/><file name="cef.phtml" hash="57cc33ed2a2761562411ea9c76279688"/><file name="cef_sigcb.phtml" hash="e4a426d5c37fdaf3113cee9a8f323352"/><file name="cef_sinco.phtml" hash="5d88c8d336ba636fd375d1b922d48e7a"/><file name="hsbc.phtml" hash="fd313f41f3c95b5b6e0976fbba6e1122"/><dir name="include"><file name="funcoes_bancoob.php" hash="5bcfd505ab6a235954ee166a5020625d"/><file name="funcoes_banespa.php" hash="30a1c2005e157ebdc2465e011473a694"/><file name="funcoes_banestes.php" hash="466c2393a8fde68990aae9c05846d059"/><file name="funcoes_bb.php" hash="dec3bf67e4375aa3b7705c6e8ecec604"/><file name="funcoes_besc.php" hash="8e50a84f45461913f87cbb61c760a45b"/><file name="funcoes_bradesco.php" hash="a603ee0dd349b1cb654e423031faa42b"/><file name="funcoes_cef.php" hash="a30369b6606fe152f73f02f705bc4cdb"/><file name="funcoes_cef_sigcb.php" hash="ee4fe9c2dca64d0a625af670f38842dd"/><file name="funcoes_cef_sinco.php" hash="b36b87c5e4f25965af7e7a31c440cc6d"/><file name="funcoes_hsbc.php" hash="57543e5c3d92b7762aa30ccbaaea58e3"/><file name="funcoes_itau.php" hash="8aad29a804cf9f4d0c75da29b6c9f1da"/><file name="funcoes_nossacaixa.php" hash="5570254213e53382a43790e48b7f81be"/><file name="funcoes_real.php" hash="9f502eae66357746e15dffd04e08af8e"/><file name="funcoes_santander_banespa.php" hash="7d5cc08c567575e5d9ccba63f18f2582"/><file name="funcoes_sicredi.php" hash="b0f9fc42a45c8e3d2ea3b627da308d4a"/><file name="funcoes_sudameris.php" hash="34e820802c914e7cf239f8273db7b5c3"/><file name="funcoes_unibanco.php" hash="e1c4f385d37fb51cc6800132cf8ac8fa"/><file name="layout_bancoob.php" hash="0b15c898ef9662b328b39b71e22d4f13"/><file name="layout_banespa.php" hash="dd9d8f049d78a3606722ca0d51ba8c1f"/><file name="layout_banestes.php" hash="526e2d4ee74aae043c08e8d2122a9756"/><file name="layout_bb.php" hash="f3ae3fd6606023721f42a9749300aaa6"/><file name="layout_besc.php" hash="54492c66ba815caecdb2615c528714d3"/><file name="layout_bradesco.php" hash="5bf1063daa495384445938df7034eaa9"/><file name="layout_cef.php" hash="978a257aa0de2d85d06905edeae91d0e"/><file name="layout_cef_sinco.php" hash="3bdfa1d341a92b63f585fd1348dc94d0"/><file name="layout_hsbc.php" hash="959fa6827aa23fb4585960d662eeb390"/><file name="layout_itau.php" hash="2a7b8c3d8aae16b3ede8635dafe080b0"/><file name="layout_nossacaixa.php" hash="dbc1ba96994d1ad527a221f27c4e520c"/><file name="layout_real.php" hash="9c13d775bf173861603b251853f2d9e1"/><file name="layout_santander_banespa.php" hash="80ae8ca8589be0ec08707cbd730bb256"/><file name="layout_sicredi.php" hash="5242592e46ed9a266cd38dd3a015d1e8"/><file name="layout_sudameris.php" hash="feb42f2ee87b1133de19d81ec86bc6d9"/><file name="layout_unibanco.php" hash="fa0f76b3cbde82f91075950240bc9367"/></dir><file name="itau.phtml" hash="e23177f3b6a7c495029d92eceff235b3"/><file name="santander_banespa.phtml" hash="c483bf560ae68cefe8b9e499b52a0848"/></dir><file name="popup-segundavia.phtml" hash="542bd63c339155bcd8cbc137a5caf5c6"/><dir name="standard"><file name="form.phtml" hash="7aa917a473c3061c23b20bdb90a4b720"/><file name="form2.phtml" hash="edfd5351e9a4a651654f29416ca29585"/><file name="info.phtml" hash="861bedb48721f939cbc5e9de78746691"/><file name="info2.phtml" hash="f80052169c4013362fc3b688bea85005"/><file name="secan.phtml" hash="c5ff80ae6a83d84ae23391de98d7f0ca"/><file name="success.phtml" hash="3e6881d94047135e54bcd52c0d859899"/><file name="view.phtml" hash="856ee2ea0418d82ab1a36bffb4b67dfc"/></dir></dir></dir><dir name="layout"><file name="BoletoBancario.xml" hash="b384aeb35b1b670b365227d0cb6bb332"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MageBR_BoletoBancario.xml" hash="42f7eb53d305de3e0c57b0ec414dfe0d"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="boletobancario"><file name="segunda_via.html" hash="3e6243127ce99c1da81e8da3b1d67ebf"/></dir></dir></dir></dir><dir name="pt_BR"><dir name="template"><dir name="email"><dir name="boletobancario"><file name="segunda_via.html" hash="3e6243127ce99c1da81e8da3b1d67ebf"/></dir></dir></dir></dir></target><target name="magelib"><dir name="boleto_php"><file name="BUGS.txt" hash="1fae1fc76d8350b59dffcd09bec18a3b"/><file name="COPYING" hash="c93c0550bd3173f4504b2cbd8991e50b"/><file name="COPYRIGHT" hash="aec35ca6d6c4bb68f99daa4d93cd8588"/><file name="CREDITOS.txt" hash="31bf3d7f0bfe3324f57224a204a6a26d"/><file name="LEIAME.txt" hash="7611f451b736b9a20b1879dbf7bb22c5"/><file name="boleto_bancoob.php" hash="1e77089b3c125c21d4895653192de179"/><file name="boleto_banespa.php" hash="b00d37b429537e5e516ab00e5caee856"/><file name="boleto_banestes.php" hash="e0367b31e61e1dee14c6dc9313865f97"/><file name="boleto_bb.php" hash="76b132649ff876442da8067d12a5ca2b"/><file name="boleto_besc.php" hash="2505ba9715dc1aab18ee33af6360ddb5"/><file name="boleto_bradesco.php" hash="64322685cd025ee03c785750de7d511f"/><file name="boleto_caixa.php" hash="c1df6491bbd4dbab21cc65c243acb81d"/><file name="boleto_cef.php" hash="23b2a5b228f06568c2e610e9728011ed"/><file name="boleto_cef_sigcb.php" hash="8e9969c7690ed7d42d00f5399d91ad55"/><file name="boleto_cef_sinco.php" hash="ab6e86d414fb3492b447159e50863405"/><file name="boleto_hsbc.php" hash="4bbb49ea6996620e4712793b3dc3840f"/><file name="boleto_itau.php" hash="1099c4a91b4f93b33cfa1a6a94687400"/><file name="boleto_itau2.php" hash="f82366bf33bffa21987d491ca921c35d"/><file name="boleto_nossacaixa.php" hash="021e77a31b33fe20da3ef219bf62ea3c"/><file name="boleto_real.php" hash="6dd2bfe329f6052c03d4ebf6f6712507"/><file name="boleto_santander_banespa.php" hash="532a362938bf7c5e66ee71e59b99e95d"/><file name="boleto_sicredi.php" hash="b3eeb8644b7aa3f62048704f5578b305"/><file name="boleto_sudameris.php" hash="98c3fd960558cd448e889aea5093ed55"/><file name="boleto_unibanco.php" hash="d781536cf7aa1391cb2ed641ae3d56af"/><dir name="funcoes"><file name="funcoes-caixa.php" hash="746f1ecaf01f8026681c94e85cdd90a2"/><file name="funcoes-caixa2.php" hash="dd68f836ba5576051999fa23970b285d"/><file name="funcoes-caixa3.php" hash="dd68f836ba5576051999fa23970b285d"/></dir><dir name="imagens"><file name="1.gif" hash="4f736dc9a19ff1ae0819c802095daa08"/><file name="1.png" hash="35431737cc2b564f99359297e77534e2"/><file name="2.gif" hash="916d43b08703931ba8c5551926e4b4d2"/><file name="2.png" hash="b4d1fc0b0f6e4840295213e9cce3ce3e"/><file name="3.gif" hash="16ffeff71e2fce001ce35db08689bfea"/><file name="3.png" hash="cc26d188f9b4b3d34067772efae40258"/><file name="5.gif" hash="cd3ab462df18a247c0d54b95586f94b6"/><file name="6.gif" hash="5e31e8214687f09fb95f40c47bb9f77e"/><file name="6.png" hash="76c9bfd564117e42b8015e3b53774761"/><file name="Thumbs.db" hash="0e54003616027d61c81e8bdee936b2b1"/><file name="b.gif" hash="8e8ee53a50035244f6c03d4c7c637aa0"/><file name="b.png" hash="16a2421946ffcb0107e117fc582cbf3b"/><file name="boleto.gif" hash="ff8deaf0ef7a0a4967be3c9b1997ae3d"/><file name="imgbrrazu.png" hash="5f1d138a8921017477b8a4a3cffb6e09"/><file name="imgbrrlrj.png" hash="2bbc048a948538e910d90cb07172830c"/><file name="imgpxlazu.png" hash="9d4a91b742fdcba740ffda7be5a7ef5d"/><file name="logo-caixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logo-netdinamica.gif" hash="1319c6cdb7d77396c3eab4d51a13d15f"/><file name="logo.jpg" hash="84f0c9265ca0ba351bc1cefafa18acd3"/><file name="logo_empresa.jpg" hash="75b9684e59ca4738a698b8b73c128bda"/><file name="logo_empresa.png" hash="bcf564df3b2ce8d7ff537e9b790a8b25"/><file name="logobancoob.jpg" hash="b16e044dda83da2d443dc15500434863"/><file name="logobanespa.jpg" hash="945f4f70d395fe6afd2254448ae81ce7"/><file name="logobanestes.jpg" hash="947d9b5c3e776e8ab4ebdae0c153bb08"/><file name="logobb.gif" hash="69bac286145600ee7503007a26ca2cea"/><file name="logobb.jpg" hash="1b83c863729121325d8d08ad2fcd3f0a"/><file name="logobesc.jpg" hash="6d91ce4a733f0450e6ead883435207b7"/><file name="logobradesco.jpg" hash="2cb3885e25e8cf7f715292fd0efe02d5"/><file name="logocaixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logohsbc.jpg" hash="d5f73a8c016caafe2b6da56fa64cd125"/><file name="logoitau.jpg" hash="81b5c130a1ae73f4f4b6c322649d116e"/><file name="logonossacaixa.jpg" hash="7b779fb496c6eb53818b0e3e122aff47"/><file name="logoreal.jpg" hash="4fafdc012bff6500f8253596689b3498"/><file name="logosantander.jpg" hash="e2aa97c82240dba62a6b3805305b99d1"/><file name="logosicredi.jpg" hash="ef0affdb0dd148e86fa726bfa0722348"/><file name="logosudameris.jpg" hash="911d87a90e039fc9fda24b5bf811a4dd"/><file name="logounibanco.jpg" hash="607beadd538def2029e012df9de7f50b"/><file name="p.gif" hash="441e909e947d9afb1fcf093c2c3b63cc"/><file name="p.png" hash="580599dc1b24a2c165fdea115a7bb566"/><file name="printer.gif" hash="e5a74ac478eefe5405d12f5084c8d190"/></dir><dir name="include"><file name="funcoes_bancoob.php" hash="5bcfd505ab6a235954ee166a5020625d"/><file name="funcoes_banespa.php" hash="30a1c2005e157ebdc2465e011473a694"/><file name="funcoes_banestes.php" hash="466c2393a8fde68990aae9c05846d059"/><file name="funcoes_bb.php" hash="dec3bf67e4375aa3b7705c6e8ecec604"/><file name="funcoes_besc.php" hash="8e50a84f45461913f87cbb61c760a45b"/><file name="funcoes_bradesco.php" hash="a603ee0dd349b1cb654e423031faa42b"/><file name="funcoes_cef.php" hash="a30369b6606fe152f73f02f705bc4cdb"/><file name="funcoes_cef_sigcb.php" hash="ee4fe9c2dca64d0a625af670f38842dd"/><file name="funcoes_cef_sinco.php" hash="b36b87c5e4f25965af7e7a31c440cc6d"/><file name="funcoes_hsbc.php" hash="57543e5c3d92b7762aa30ccbaaea58e3"/><file name="funcoes_itau.php" hash="8aad29a804cf9f4d0c75da29b6c9f1da"/><file name="funcoes_nossacaixa.php" hash="5570254213e53382a43790e48b7f81be"/><file name="funcoes_real.php" hash="9f502eae66357746e15dffd04e08af8e"/><file name="funcoes_santander_banespa.php" hash="7d5cc08c567575e5d9ccba63f18f2582"/><file name="funcoes_sicredi.php" hash="b0f9fc42a45c8e3d2ea3b627da308d4a"/><file name="funcoes_sudameris.php" hash="34e820802c914e7cf239f8273db7b5c3"/><file name="funcoes_unibanco.php" hash="e1c4f385d37fb51cc6800132cf8ac8fa"/><file name="layout_bancoob.php" hash="0b15c898ef9662b328b39b71e22d4f13"/><file name="layout_banespa.php" hash="dd9d8f049d78a3606722ca0d51ba8c1f"/><file name="layout_banestes.php" hash="526e2d4ee74aae043c08e8d2122a9756"/><file name="layout_bb.php" hash="f3ae3fd6606023721f42a9749300aaa6"/><file name="layout_besc.php" hash="54492c66ba815caecdb2615c528714d3"/><file name="layout_bradesco.php" hash="5bf1063daa495384445938df7034eaa9"/><file name="layout_cef.php" hash="978a257aa0de2d85d06905edeae91d0e"/><file name="layout_cef_sinco.php" hash="3bdfa1d341a92b63f585fd1348dc94d0"/><file name="layout_hsbc.php" hash="959fa6827aa23fb4585960d662eeb390"/><file name="layout_itau.php" hash="2a7b8c3d8aae16b3ede8635dafe080b0"/><file name="layout_nossacaixa.php" hash="dbc1ba96994d1ad527a221f27c4e520c"/><file name="layout_real.php" hash="9c13d775bf173861603b251853f2d9e1"/><file name="layout_santander_banespa.php" hash="80ae8ca8589be0ec08707cbd730bb256"/><file name="layout_sicredi.php" hash="5242592e46ed9a266cd38dd3a015d1e8"/><file name="layout_sudameris.php" hash="feb42f2ee87b1133de19d81ec86bc6d9"/><file name="layout_unibanco.php" hash="fa0f76b3cbde82f91075950240bc9367"/></dir><file name=".htaccess" hash="7b15cb52f9b1c0fba36de3516aeec3bb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="boleto"><file name="1.gif" hash="4f736dc9a19ff1ae0819c802095daa08"/><file name="1.png" hash="35431737cc2b564f99359297e77534e2"/><file name="2.gif" hash="916d43b08703931ba8c5551926e4b4d2"/><file name="2.png" hash="b4d1fc0b0f6e4840295213e9cce3ce3e"/><file name="3.gif" hash="16ffeff71e2fce001ce35db08689bfea"/><file name="3.png" hash="cc26d188f9b4b3d34067772efae40258"/><file name="5.gif" hash="cd3ab462df18a247c0d54b95586f94b6"/><file name="6.gif" hash="5e31e8214687f09fb95f40c47bb9f77e"/><file name="6.png" hash="76c9bfd564117e42b8015e3b53774761"/><file name="b.gif" hash="8e8ee53a50035244f6c03d4c7c637aa0"/><file name="b.png" hash="16a2421946ffcb0107e117fc582cbf3b"/><file name="boleto.gif" hash="ae7c81a0e1902e6fbfe61aed94488dd8"/><file name="boleto.png" hash="325758628ebb0109d2bcd87926608c0d"/><file name="boletocarregando.gif" hash="458e0eb0313634aee6d12d6d57c715b5"/><file name="ct_boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="imgbrrazu.png" hash="5f1d138a8921017477b8a4a3cffb6e09"/><file name="imgbrrlrj.png" hash="2bbc048a948538e910d90cb07172830c"/><file name="imgpxlazu.png" hash="9d4a91b742fdcba740ffda7be5a7ef5d"/><file name="logo-caixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logo-netdinamica.gif" hash="1319c6cdb7d77396c3eab4d51a13d15f"/><file name="logo.jpg" hash="84f0c9265ca0ba351bc1cefafa18acd3"/><file name="logo_boleto.png" hash="3a1e4b4970fe92d6da559987866ebd27"/><file name="logo_empresa.jpg" hash="75b9684e59ca4738a698b8b73c128bda"/><file name="logo_empresa.png" hash="bcf564df3b2ce8d7ff537e9b790a8b25"/><file name="logobancoob.jpg" hash="b16e044dda83da2d443dc15500434863"/><file name="logobanespa.jpg" hash="945f4f70d395fe6afd2254448ae81ce7"/><file name="logobanestes.jpg" hash="947d9b5c3e776e8ab4ebdae0c153bb08"/><file name="logobb.gif" hash="69bac286145600ee7503007a26ca2cea"/><file name="logobb.jpg" hash="1b83c863729121325d8d08ad2fcd3f0a"/><file name="logobesc.jpg" hash="6d91ce4a733f0450e6ead883435207b7"/><file name="logobradesco.jpg" hash="2cb3885e25e8cf7f715292fd0efe02d5"/><file name="logocaixa.jpg" hash="7843edd30f184172b736bd94e15a8253"/><file name="logohsbc.jpg" hash="d5f73a8c016caafe2b6da56fa64cd125"/><file name="logoitau.jpg" hash="81b5c130a1ae73f4f4b6c322649d116e"/><file name="logonossacaixa.jpg" hash="7b779fb496c6eb53818b0e3e122aff47"/><file name="logoreal.jpg" hash="4fafdc012bff6500f8253596689b3498"/><file name="logosantander.jpg" hash="e2aa97c82240dba62a6b3805305b99d1"/><file name="logosicredi.jpg" hash="ef0affdb0dd148e86fa726bfa0722348"/><file name="logosudameris.jpg" hash="911d87a90e039fc9fda24b5bf811a4dd"/><file name="logounibanco.jpg" hash="607beadd538def2029e012df9de7f50b"/><file name="p.gif" hash="441e909e947d9afb1fcf093c2c3b63cc"/><file name="p.png" hash="580599dc1b24a2c165fdea115a7bb566"/><file name="printer.gif" hash="e5a74ac478eefe5405d12f5084c8d190"/></dir><dir name="cards"><file name="am.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="amex.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="banco.gif" hash="87c37a3b51601abe0a11b8c52114991a"/><file name="boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_bb.jpg" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_bradesco.jpg.jpg" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="boleto_hsbc.jpg" hash="c03644d9d6ecef48c0bc8220c21986e1"/><file name="boleto_itau.jpg" hash="93d5f30f7b3825d9c6f8f54162463ed8"/><file name="bradesco.gif" hash="9f5bfb537000e3b124aca5db82d1f1b3"/><file name="ct_amex.gif" hash="d439d12cbbeeb8ae54500141ddbe437c"/><file name="ct_aura.gif" hash="934125705cd17e5057e7428d35a527aa"/><file name="ct_boleto.gif" hash="e2e1cc8a706b25fdbd62f75fe459e679"/><file name="ct_cred_virtual.gif" hash="57deb88e6b8795ab0cf3b14ae7242d93"/><file name="ct_deposito.gif" hash="eeb64fbaf1d5a27038418d499f4e2e5a"/><file name="ct_diners.gif" hash="2bc7988918fb06eb595a6c41c67a225d"/><file name="ct_discover.gif" hash="e79ecdc028c7980de0b183d92ee57edd"/><file name="ct_elo.gif" hash="fe13b7b750ed7daa23edab95bbf8326d"/><file name="ct_hiper.gif" hash="9ebe06e719384161b1ad1350dbb9865a"/><file name="ct_master.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="ct_pd.gif" hash="0c015b6863369d018dfffcbf89f09977"/><file name="ct_visa.gif" hash="2fdd1c894d88c9bb74497122efe0968b"/><file name="diners.gif" hash="35dbdd58a7c8a6cff532a8e42fbe029c"/><file name="diners.jpg" hash="638f955e37da0c4cbf76f20a30bb0f7b"/><file name="discover.gif" hash="e79ecdc028c7980de0b183d92ee57edd"/><file name="elo.gif" hash="fe13b7b750ed7daa23edab95bbf8326d"/><file name="itau.gif" hash="d6cd328696b115353ed2cd874cec044a"/><file name="itau.jpg" hash="1a87977a9561f395dbbf22d8cb9c27d7"/><file name="itaushopline.gif" hash="d6cd328696b115353ed2cd874cec044a"/><file name="itaushopline.jpg" hash="1a87977a9561f395dbbf22d8cb9c27d7"/><file name="mastercard.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="mastercard.jpg" hash="d8bebd795e23da1f44fef539ada2935d"/><file name="mc.gif" hash="affeb7e9d998b12f201fefa2a7f44d81"/><file name="pagseguro.png" hash="dd155c5d23600603a330a7d4f7332b5f"/><file name="vi.gif" hash="2fdd1c894d88c9bb74497122efe0968b"/><file name="visa.gif" hash="dd8270f887c3907c49e7db459f035394"/><file name="visa.jpg" hash="8062b1d5e564a2cdee07237525905713"/></dir></dir><dir name="imagens"><file name="boleto.gif" hash="ff8deaf0ef7a0a4967be3c9b1997ae3d"/></dir></dir></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.3.0</min><max>5.5.15</max></php></required></dependencies>
30
  </package>