Ir para conteúdo

Rogerio Pancini

Members
  • Total de itens

    93
  • Registro em

  • Última visita

Reputação

0 Comum

Sobre Rogerio Pancini

  • Data de Nascimento 02/04/1981

Informações Pessoais

  • Sexo
    Masculino
  • Localização
    São João da Boa Vista - SP
  • Interesses
    Jquery, PHP, MySql, Bootstrap

Contato

  1. Boa noite pessoal. Há duas partes de uma tela que estão prontas, funcionando, mas não corretamente. Nessa parte, faço um cálculo. Sem a máscara de Real, ótimo. Se coloco a máscara 'valor'no input, retorna NaN. /****** maskMoney ******/ $(function(){ $(".valor").maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true}); }) /****** Função percentual ******/ function funcao_percentual(valor_1, destino, percentual) { $(valor_1).on("click", function() { $(destino).val(''); }); function arredondar(valor,casas){ var novo = Math.round(valor*Math.pow(10,casas))/Math.pow(10,casas); return(novo); } $(valor_1).blur(function() { valor = $(this).val(); porcentagem = percentual; // PORCENTAGEM A SER ADICIONADA total = (parseFloat((valor*porcentagem)/100)); $(destino).val(arredondar(total, 2)); }); } /****** Função subtrair ******/ function funcao_subtrair(valor_1, valor_2, inicio, destino) { $(inicio).on("click", function() { $(destino).val(''); }); function arredondar(valor,casas){ var novo = Math.round(valor*Math.pow(10,casas))/Math.pow(10,casas); return(novo); } $(inicio).blur(function() { valor_1_v = $(valor_1).val(); valor_2_v = $(valor_2).val(); total = (parseFloat((valor_1_v-valor_2_v))); $(destino).val(arredondar(total, 2)); }); } /****** Percentual de Provisão - Royalties (franchising) ******/ funcao_percentual("#valor", "#provisao_royalties_franchising", 39.85) /****** Percentual de Provisão Fundo Propaganda ******/ funcao_percentual("#valor", "#provisao_fundo_propaganda", 3) /****** Subtração de Provisão - Royalties ( franchising) ******/ funcao_subtrair("#provisao_royalties_franchising", "#provisao_fundo_propaganda", "#valor", "#provisao_royalties_franchising_2") E o outro BO é quando somo datas. Dá um resultado que não tem nada haver com a planilha que tenho de modelo: /****** Função calcular a data ******/ function funcao_calcular_data(data_inicial, data_final, dias) { $(data_inicial).blur(function() { $(data_inicial).on("click", function() { $(data_final).val(''); }); var data_ini = $(data_inicial).val(); var date = new Date(data_ini); date.setDate(date.getDate() + dias); var futDate=date.getDate() + "/" + date.getMonth() + "/" + date.getFullYear(); $(data_final).val(futDate); }); } /****** 1º vencimento ******/ funcao_calcular_data("#data_emissao", "#1_venc", 28) /****** 2º vencimento ******/ funcao_calcular_data("#data_emissao", "#2_venc", 42) /****** 3º vencimento ******/ funcao_calcular_data("#data_emissao", "#3_venc", 56) Se alguém puder colaborar com alguma luz. Confesso que preciso melhorar ainda mais em Jquery, mas essas funções ficaram boas para a necessidade. Faltam apenas esses ajustes. Obrigado!
  2. Rogerio Pancini

    Impressão de relatório

    Vou dar uma olhada no DOMPdf. Obrigado!
  3. Rogerio Pancini

    Impressão de relatório

    Boa noite pessoal, tudo blz? Preciso de alguma ideia... Hoje estou usando um relatório que é montado em html e depois impresso. Para um relatório até que serve o que tenho hoje. Mas surgiu a necessidade de imprimir vário relatórios, e o resultado foi esse (imagem1, imagem2, imagem3 está em png apenas para demonstrar, mas o original é em pdf). Estou montando outro relatório, baseado no Fpdf. Preciso fazer um ajuste para testar ele, mas estou com o receio de dar o mesmo problema dos relatório começarem no meio da folha. Enfim, se alguém já fez algo semelhante e puder compartilhar a ideia, para que eu possa desenvolver o relatório de outra maneira, eu agradeço. Att Rogério Pancini PS: Se precisar eu coloco aqui o que fiz até agora.
  4. Rogerio Pancini

    Mudar link da header fixa

    Pessoal, passei o final de semana procurando. Estava esta configuração em "microwidgets". Foi meio que uma agulha no palheiro, mas deu certo. De certa forma era um widget. Obrigado!
  5. Rogerio Pancini

    Mudar link da header fixa

    Bom dia pessoal. Eu trabalho com com PHP, Html, Css e Jquery, mas, depois de um pouco de resistência, estou fazendo um curso de Wordpress. Tenho site pronto que posso mexer, feito por outra pessoa. Ainda não cheguei na parte mais avançada, mas estou com uma dúvida em uma parte da header. Na imagem em anexo tem o link "Sobre nós" (na tarja verde, mais ao lado direito). Eu gostaria de mudar o link dele, mas na parte de menus, ele não está. Procurei nas opções do tema (The 7 - https://the7.io/), mas também não encontrei. Onde poderia estar a opção para mudar esse link? Obrigado!
  6. Rogerio Pancini

    Fazer uma função com algumas linhas do PhpMailer

    Boa noite pessoal. Esse é sonho de consumo, nunca consegui parar para estudar como fazer... mas, chegou a hora. Uso o PhpMailer para enviar e-mail pelo site. Eu customizei o zero um template de e-mail, pois o retorno dos formulários de contato estava utilizando texto. Na unha está funcionando muito bem, mas gostaria de otimizar o processo, pois para todos os formulário, tenho que configurar o script de e-mail. A solução mais viável é fazer uma function. Eu fiz, e parece que vai dar certo. A dúvida que fique é que preciso começar com o parâmetro do PhpMailer ($mail->Body = ') e depois concatenar em algumas partes do construtor do e-mail. Vou colocar o que eu fiz até agora, mas o bo está no return. Será que minha ideia é possível de ser executada? Obrigado!! PS: O "1, 1, 1, 1" abaixo é só teste, desconsiderem. <?php function corpo_email($empresa_sel, $cor_topo_sel, $cor_rodape_sel, $cor_topo_sel, $site_sel, $logo_sel, $titulo_sel, $nome, $email, $telefone, $mensagem, $data, $hora, $empresa_sel, $cor_rodape_sel, $site_sel, $site_link, $config) { $mail->Body = ' <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <!-- NAME: FOLLOW UP --> <!--[if gte mso 15]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>'.$empresa_sel.'</title> <style type="text/css"> p{ margin:10px 0; padding:0; } table{ border-collapse:collapse; } h1,h2,h3,h4,h5,h6{ display:block; margin:0; padding:0; } img,a img{ border:0; height:auto; outline:none; text-decoration:none; } body,#bodyTable,#bodyCell{ height:100%; margin:0; padding:0; width:100%; } #outlook a{ padding:0; } img{ -ms-interpolation-mode:bicubic; } table{ mso-table-lspace:0pt; mso-table-rspace:0pt; } .ReadMsgBody{ width:100%; } .ExternalClass{ width:100%; } p,a,li,td,blockquote{ mso-line-height-rule:exactly; } a[href^=tel],a[href^=sms]{ color:inherit; cursor:default; text-decoration:none; } p,a,li,td,body,table,blockquote{ -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; } .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ line-height:100%; } a[x-apple-data-detectors]{ color:inherit !important; text-decoration:none !important; font-size:inherit !important; font-family:inherit !important; font-weight:inherit !important; line-height:inherit !important; } .templateContainer{ max-width:600px !important; } a.mcnButton{ display:block; } .mcnImage{ vertical-align:bottom; } .mcnTextContent{ word-break:break-word; } .mcnTextContent img{ height:auto !important; } .mcnDividerBlock{ table-layout:fixed !important; } /* @tab Page @section Heading 1 @style heading 1 */ h1{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:40px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 2 @style heading 2 */ h2{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:34px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:88%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Page @section Heading 3 @style heading 3 */ h3{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:22px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 4 @style heading 4 */ h4{ /*@editable*/color:#999999; /*@editable*/font-family:Georgia; /*@editable*/font-size:20px; /*@editable*/font-style:italic; /*@editable*/font-weight:normal; /*@editable*/line-height:125%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Header @section Header Container Style */ #templateHeader{ /*@editable*/ /* header */ /*@editable*/background: #'.$cor_topo_sel.'; /* For browsers that do not support gradients */ /*@editable*//*background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:9px; /*@editable*/padding-bottom:9px; } /* @tab Header @section Header Interior Style */ .headerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Header @section Header Text */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Header @section Header Link */ .headerContainer .mcnTextContent a,.headerContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Body @section Body Container Style */ #templateBody{ /*@editable*/background-color:#FFFFFF; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:21px; /*@editable*/padding-bottom:21px; } /* @tab Body @section Body Interior Style */ .bodyContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Body @section Body Text */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Body @section Body Link */ .bodyContainer .mcnTextContent a,.bodyContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Footer @section Footer Style */ #templateFooter{ /*@editable*/ /* Rodapé */ background: #'.$cor_rodape_sel.'; /* For browsers that do not support gradients */ /* background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0px; /*@editable*/padding-bottom:0px; } /* @tab Footer @section Footer Interior Style */ .footerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Footer @section Footer Text */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/color:#FFFFFF; /*@editable*/font-family:Helvetica; /*@editable*/font-size:12px; /*@editable*/line-height:150%; /*@editable*/text-align:center; } /* @tab Footer @section Footer Link */ .footerContainer .mcnTextContent a,.footerContainer .mcnTextContent p a{ /*@editable*/color:#FFFFFF; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } @media only screen and (min-width:768px){ .templateContainer{ width:600px !important; } } @media only screen and (max-width: 480px){ body,table,td,p,a,li,blockquote{ -webkit-text-size-adjust:none !important; } } @media only screen and (max-width: 480px){ body{ width:100% !important; min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImage{ width:100% !important; } } @media only screen and (max-width: 480px){ .mcnCartContainer,.mcnCaptionTopContent,.mcnRecContentContainer,.mcnCaptionBottomContent,.mcnTextContentContainer,.mcnBoxedTextContentContainer,.mcnImageGroupContentContainer,.mcnCaptionLeftTextContentContainer,.mcnCaptionRightTextContentContainer,.mcnCaptionLeftImageContentContainer,.mcnCaptionRightImageContentContainer,.mcnImageCardLeftTextContentContainer,.mcnImageCardRightTextContentContainer{ max-width:100% !important; width:100% !important; } } @media only screen and (max-width: 480px){ .mcnBoxedTextContentContainer{ min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupContent{ padding:9px !important; } } @media only screen and (max-width: 480px){ .mcnCaptionLeftContentOuter .mcnTextContent,.mcnCaptionRightContentOuter .mcnTextContent{ padding-top:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardTopImageContent,.mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent{ padding-top:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardBottomImageContent{ padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockInner{ padding-top:0 !important; padding-bottom:0 !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockOuter{ padding-top:9px !important; padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnTextContent,.mcnBoxedTextContentColumn{ padding-right:18px !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardLeftImageContent,.mcnImageCardRightImageContent{ padding-right:18px !important; padding-bottom:0 !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcpreview-image-uploader{ display:none !important; width:100% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 1 @tip Make the first-level headings larger in size for better readability on small screens. */ h1{ /*@editable*/font-size:30px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 2 @tip Make the second-level headings larger in size for better readability on small screens. */ h2{ /*@editable*/font-size:26px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 3 @tip Make the third-level headings larger in size for better readability on small screens. */ h3{ /*@editable*/font-size:20px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 4 @tip Make the fourth-level headings larger in size for better readability on small screens. */ h4{ /*@editable*/font-size:18px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Boxed Text @tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .mcnBoxedTextContentContainer .mcnTextContent,.mcnBoxedTextContentContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Header Text @tip Make the header text larger in size for better readability on small screens. */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Body Text @tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Footer Text @tip Make the footer content text larger in size for better readability on small screens. */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } </style> </head> <body> <center> <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"> <tr> <td align="center" valign="top" id="bodyCell"> <!-- BEGIN TEMPLATE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="background: #'.$cor_topo_sel.';" align="center" valign="top" id="templateHeader" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="headerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 0px 18px 9px; line-height: 100%;"> <h4 class="null"><img data-file-id="20865" height="39" src="'.$site_sel.'/images/email/'.$logo_sel.'" style="border: 0px; height: 39px; margin: 3% 0 0 0;" width="196"></h4> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 16px 18px 9px; line-height: 100%;"> <h2 class="mc-toc-title" style="text-align: left;"><span style="font-size:25px"><span style="color:#ffffff; text-transform: uppercase;"><strong>'.$titulo_sel.'</strong></span></span></h2> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td align="center" valign="top" id="templateBody" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="bodyContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px; text-align: center; color: #FFFFFF;"> <p> <span style="font-size:18px"> <i>Enviado por</i>:<br /><br /> Nome: '.$nome.'<br /> E-mail: '.$email.'<br /> Telefone: '.$telefone.'<br /> <u>Mensagem</u>: '.$mensagem.'<br /><br /> Enviado em: '.$data.', às '.$hora.' </span> <br /><br /> &nbsp; </p> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnBoxedTextBlock" style="min-width:100%;"> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"> <![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td valign="top" class="mcnBoxedTextBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;background-color: #F7F7F7;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #000000;font-family: Helvetica;font-size: 16px;line-height: 200%;text-align: center;"> <h3 style="text-align: left;">'.$empresa_sel.'</h3> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <!--[if gte mso 9]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td style="background: #'.$cor_rodape_sel.';" align="center" valign="top" id="templateFooter" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="footerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock" style="min-width:100%;"> <tbody class="mcnFollowBlockOuter"> <tr> <td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #FFFFFF;font-family: Helvetica;font-size: 20px;line-height: 200%;text-align: center;"> <a href="'.$site_sel.'" style="text-decoration: none;"><h3 style="color: #FFFFFF; ">'.$site_link.'</h3></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentContainer" style="min-width:100%;"> <tbody><tr> <td align="center" style="padding-left:9px;padding-right:9px;"> <table border="0" cellpadding="0" cellspacing="0" class="mcnFollowContent"> <tbody><tr> <td align="center" valign="top" style="padding-top:9px; padding-right:9px; padding-left:9px;"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td align="center" valign="top"> <!--[if mso]> <table align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <![endif]--> '; if(!empty($rede_social_1_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_1_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/facebook.png" alt="Facebook" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_2_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_2_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/instagram.png" alt="Instagram" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_3_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_3_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/linkedin.png" alt="Linkedin" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_4_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_4_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/twitter.png" alt="Twitter" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_5_sel)){ ' $mail->Body .= <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_5_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/google-plus.png" alt="Google Plus" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_6_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_6_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/youtube.png" alt="Youtube" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } $mail->Body .= ' </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width:100%; padding:18px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-top: 2px solid #FFFFFF;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px; text-align: center; color: #FFFFFF;"> <em> '; if(!empty($cep_sel)){ if(!empty($complemento_sel)){ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $complemento_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; }else{ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; } } $mail->Body .= ' <br /> '; $sql_tel_emp = mysqli_query($config, "SELECT telefone FROM tb_email_home_telefone WHERE id_item = '1'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_tel_emp) <= '0'){ echo ""; }else{ $y_info = 1; $allRows_info = mysqli_num_rows($sql_tel_emp); while($r_sql_tel_emp = mysqli_fetch_array($sql_tel_emp)){ if($allRows_info == 1){ $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0].' '; }else{ if ($allRows_info == $y_info) { $x_info = 1; } else { $x_info = 2; } $y_info++; if ($y_info == 2) { $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0] . " | ".' '; }else{ $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0].' '; } } } } $mail->Body .= ' </em> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> </table> <!-- // END TEMPLATE --> </td> </tr> </table> </center> </body> </html> '; //return $resultado; } echo corpo_email(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); ?>
  7. Rogerio Pancini

    Problema com accessToken no Instafees

    Muito obrigado!
  8. Rogerio Pancini

    Problema com accessToken no Instafees

    Boa tarde pessoal. Sempre usei o Instafeed (http://instafeedjs.com/) para exibir o Instagram no site. Agora o Facebook está mudando a plataforma e, além de bloquear meu aplicativo do nada, não permite que eu crie outro na plataforma atual, não explica (pelo menos eu não entendi nada do tal do Graph (https://developers.facebook.com/apps/). Está tudo no mesmo balaio (Facebook e Instagram) e o cliente está sem o feed do Insta e eu não faço a menor ideia por onde começar. Alguém já fez o Instafeed funcionar com essa nova plataforma? Obrigado!
  9. Rogerio Pancini

    Ideia para imprimir documento

    Boa noite pessoal. Estou refazendo uma intranet e surgiu uma dúvida. Fiz um teste com vários campos (o documento pode ter mais ou menos campos). Estou testando imprimir via javascript (window.print()) e pelo FPDF. Em ambos os casos, me deparei com essa característica (na imagem). A parte da assinatura dos responsáveis corta ao meio. Alguém já se deparou com algo parecido? Seria possível, na impressão, não quebrar as assinaturas? Obrigado! Segue o código atual (versão não FPDF) <?php /******* Conexão com o bando de dados *******/ include "Conexao/config.php"; mysqli_select_db($config, $database_config); mysqli_set_charset($config,"utf8"); /******* Conexão com o bando de dados *******/ $info = "Não há itens cadastrados no momento"; $erro = "Erro ao acessar dados"; include "php/restrict.php"; $id_item = $array_pgn[5]; $sql_2 = mysqli_query($config, "SELECT ma.titulo, ma.datadecadastro, usr.nome, usr.id_estabelecimento, ma.datadecadastro, ma.protocolo, ma.id_usuario_envio, ma.datadeenvio, ma.id_transportadora, ma.id_usuario_recebimento, ma.dataderecebimento, ma.datadefechamento, ma.id_estabelecimento_destino, ma.id_estabelecimento_origem, ma.id_usuario_cadastro FROM malote ma LEFT JOIN usuario AS usr ON (ma.id_usuario_cadastro = usr.id) WHERE ma.id = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_2) <= '0'){ echo " <div class=\"row\"> <div class=\"col-lg-6\"> <div class=\"alert alert-danger\"> <strong>Erro!</strong> $erro </div> </div> </div> "; }else{ while($r_sql_2 = mysqli_fetch_array($sql_2)){ $titulo = $r_sql_2[0]; $datadecadastro = date("d/m/Y", strtotime($r_sql_2[1])); $nome_usuario_cadastro = $r_sql_2[2]; $id_usuario_estabalecimento = $r_sql_2[3]; $datadecadastro_malote = date("d/m/Y", strtotime($r_sql_2[4])); $hora_datadecadastro_malote = date("H:i", strtotime($r_sql_2[4])); $protocolo = $r_sql_2[5]; $id_usuario_envio = $r_sql_2[6]; $datadeenvio_malote = date("d/m/Y", strtotime($r_sql_2[7])); $hora_datadeenvio_malote = date("H:i", strtotime($r_sql_2[7])); $id_transportadora = $r_sql_2[8]; $id_usuario_recebimento = $r_sql_2[9]; $dataderecebimento_malote_c = $r_sql_2[10]; $dataderecebimento_malote = date("d/m/Y", strtotime($r_sql_2[10])); $hora_dataderecebimento_malote = date("H:i", strtotime($r_sql_2[10])); $datadefechamento_malote = date("d/m/Y", strtotime($r_sql_2[11])); $hora_datadefechamento_malote = date("H:i", strtotime($r_sql_2[11])); $id_estabelecimento_destino = $r_sql_2[12]; $id_estabelecimento_origem = $r_sql_2[13]; $id_usuario_cadastro = $r_sql_2[14]; $sql_3_a = mysqli_query($config, "SELECT id_estabelecimento FROM usuario WHERE id = '$id_usuario_cadastro'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_a) <= '0'){ $estabelecimento_destino = ""; }else{ while($r_sql_3_a = mysqli_fetch_array($sql_3_a)){ $id_estabelecimento_origem_usuario = $r_sql_3_a[0]; } } $sql_3_b = mysqli_query($config, "SELECT titulo FROM estabelecimento WHERE id = '$id_estabelecimento_origem_usuario'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_b) <= '0'){ $estabelecimento_destino = ""; }else{ while($r_sql_3_b = mysqli_fetch_array($sql_3_b)){ $estabelecimento_cadastro = $r_sql_3_b[0]; } } /****** Origem ******/ $sql_3_c = mysqli_query($config, "SELECT titulo FROM estabelecimento WHERE id = '$id_estabelecimento_origem'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_c) <= '0'){ $estabelecimento_origem = ""; }else{ while($r_sql_3_c = mysqli_fetch_array($sql_3_c)){ $estabelecimento_origem = $r_sql_3_c[0]; } } $sql_3_d = mysqli_query($config, "SELECT titulo FROM estabelecimento WHERE id = '$id_usuario_estabalecimento'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_a) <= 0){ echo ""; }else{ while($r_sql_3_d = mysqli_fetch_array($sql_3_d)){ $usuario_estabalecimento_origem = $r_sql_3_d[0]; } } /****** Origem ******/ /****** Envio ******/ $sql_3_e = mysqli_query($config, "SELECT nome FROM usuario WHERE id = '$id_usuario_envio'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_e) <= 0){ echo ""; }else{ while($r_sql_3_e = mysqli_fetch_array($sql_3_e)){ $nome_usuario_envio = $r_sql_3_e[0]; } } $sql_3_e = mysqli_query($config, "SELECT titulo FROM transportadora WHERE id = '$id_transportadora'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_e) <= 0){ echo ""; }else{ while($r_sql_3_e = mysqli_fetch_array($sql_3_e)){ $transportadora = $r_sql_3_e[0]; } } /****** Envio ******/ /****** Recebimento ******/ $sql_3_f = mysqli_query($config, "SELECT nome FROM usuario WHERE id = '$id_usuario_recebimento'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_f) <= 0){ echo ""; }else{ while($r_sql_3_f = mysqli_fetch_array($sql_3_f)){ $nome_usuario_recebimento = $r_sql_3_f[0]; } } $sql_3_g = mysqli_query($config, "SELECT titulo FROM estabelecimento WHERE id = '$id_estabelecimento_destino'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_g) <= '0'){ $estabelecimento_destino = ""; }else{ while($r_sql_3_g = mysqli_fetch_array($sql_3_g)){ $estabelecimento_destino = $r_sql_3_g[0]; } } /****** Recebimento ******/ } } if(isset($_POST['voltar']) && $_POST['voltar'] == 'ok'){ header("location:http://localhost/projetos/intranet/listar-malotes"); } ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Properità Negócios</title> <link href="<?php echo $dir_base; ?>fonts/OpenSans/stylesheet.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $dir_base; ?>assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $dir_base; ?>assets/global/css/components-imprime.min.css" rel="stylesheet" id="style_components" type="text/css" /> <style type="text/css"> /* reset */ *{ border: 0; color: inherit; font-family: "Open Sans",sans-serif; font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; list-style: none; margin: 0; padding: 0; text-decoration: none; vertical-align: top; } body{ margin: initial; padding: initial; } /* content editable */ *[contenteditable] { min-width: 1em; outline: 0; } *[contenteditable] { cursor: pointer; } *[contenteditable]:hover, *[contenteditable]:focus, td:hover *[contenteditable], td:focus *[contenteditable], img.hover { background: #DEF; box-shadow: 0 0 1em 0.5em #DEF; } span[contenteditable] { display: inline-block; } /* heading */ h1 { text-align: center; text-transform: uppercase; } /* table */ html { font: 16px/1 'Open Sans', sans-serif; overflow: auto; padding: 0.5in; } html { background: #999; cursor: default; } body { box-sizing: border-box; /* height: 11in;*/ margin: 0 auto; overflow: hidden; padding: 0.5in; /* width: 8.5in;*/ } body { background: #FFF; box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5); } /* header */ header { margin: 0 0 1em; } header:after { clear: both; content: ""; display: table; } header h1 {font-size: 26px; background: #000; color: #FFF; margin: 0 0 1em; padding: 0.5em 0; } header address { float: left; font-size: 75%; font-style: normal; line-height: 1.25; margin: 0 1em 1em 0; } header address p { margin: 0 0 0.25em; } header span, header img { display: block; float: right; } header span { margin: 0 0 1em 1em; max-height: 25%; max-width: 60%; position: relative; } header img { max-height: 100%; max-width: 100%; } header input { cursor: pointer; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; height: 100%; left: 0; opacity: 0; position: absolute; top: 0; width: 100%; } /* article */ article, article address, table.meta, table.inventory { margin: 0 0 3em; } article:after { clear: both; content: ""; display: table; } article h1 { clip: rect(0 0 0 0); position: absolute; } article address { float: left; font-size: 125%; font-weight: bold; } /* table meta & balance */ table.meta, table.balance { float: right; width: 36%; } table.meta:after, table.balance:after { clear: both; content: ""; display: table; } /* table meta */ table.meta th { width: 40%; } table.meta td { width: 60%; } /* table items */ table.inventory { clear: both; width: 100%; } table.inventory th { font-weight: bold; text-align: center; } table.inventory td:nth-child(1) { width: 26%; } table.inventory td:nth-child(2) { width: 38%; } table.inventory td:nth-child(3) { text-align: right; width: 12%; } table.inventory td:nth-child(4) { text-align: right; width: 12%; } table.inventory td:nth-child(5) { text-align: right; width: 12%; } /* table balance */ table.balance th, table.balance td { width: 50%; } table.balance td { text-align: right; } /* aside */ aside h1 { border: none; border-width: 0 0 1px; margin: 0 0 1em; } aside h1 { border-color: #999; border-bottom-style: solid; } /* javascript */ .add, .cut { border-width: 1px; display: block; font-size: .8rem; padding: 0.25em 0.5em; float: left; text-align: center; width: 0.6em; } .add, .cut { background: #9AF; box-shadow: 0 1px 2px rgba(0,0,0,0.2); background-image: -moz-linear-gradient(#00ADEE 5%, #0078A5 100%); background-image: -webkit-linear-gradient(#00ADEE 5%, #0078A5 100%); border-color: #0076A3; color: #FFF; cursor: pointer; font-weight: bold; text-shadow: 0 -1px 2px rgba(0,0,0,0.333); } .add { margin: -2.5em 0 0; } .add:hover { background: #00ADEE; } .cut { opacity: 0; position: absolute; top: 0; left: -1.5em; } .cut { -webkit-transition: opacity 100ms ease-in; } tr:hover .cut { opacity: 1; } @media print { * { -webkit-print-color-adjust: exact; } html { background: none; padding: 0; } body { box-shadow: none; margin: 0; } span:empty, .btn.blue { display: none; } .add, .cut { display: none; } } @page { margin: 0; } .sepador_div{ border-bottom: 1px solid #000000; } .responsaveis{ display: block; margin-bottom: 60px; } .responsavel_1{ border-top: 1px solid #000000; padding-top: 10px; } .responsavel_2{ border-top: 1px solid #000000; margin-top: 80px; padding-top: 10px; } .responsaveis_div{ width: 50%; margin: 0 auto; } </style> <link rel="license" href="http://www.opensource.org/licenses/mit-license/"> </head> <body> <form role="form" id="form_voltar" name="form_voltar" action="" method="post" enctype="multipart/form-data" class="text-right" style="margin-bottom: 20px;"> <button type="submit" class="btn blue" tabindex="7"> <i class="fa fa-check"></i> Fechar </button> <input type="hidden" name="voltar" value="ok" /> </form> <header> <h1>Malote <?php echo $titulo; ?></h1> <div> <h4>Origem: <?php echo $estabelecimento_origem; ?></h4> <p>Cadastrado por: <?php echo $nome_usuario_cadastro; ?> (<?php echo $usuario_estabalecimento_origem; ?>)</p> <p>Data de cadastro: <?php echo $datadecadastro_malote; ?> às <?php echo $hora_datadecadastro_malote; ?></p> <p>Protocolo: <?php echo $protocolo; ?></p> </div> <hr /> <div> <p>Enviado por: <?php echo $nome_usuario_envio; ?> (<?php echo $estabelecimento_cadastro; ?>)</p> <p>Data de envio: <?php echo $datadeenvio_malote; ?> às <?php echo $hora_datadeenvio_malote; ?></p> <p>Transportadora: <?php echo $transportadora; ?></p> </div> <hr /> <div> <h4>Destino: <?php echo $estabelecimento_destino; ?></h4> <!-- <p>Enviado para: <?php //echo $nome_usuario_recebimento; ?></p> --> </div> </div> </header> <article> <?php $sql_3_aux = mysqli_query($config, "SELECT bm.fornecedor, bm.vencimento, bm.valor, bm.datadecadastro, usr.nome FROM boletosdomalote bm LEFT JOIN usuario AS usr ON (bm.id_usuario = usr.id) WHERE bm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3_aux) > 0){ ?> <div class="portlet-body"> <h4 class="block">Boletos do malote</h4> <table class="table table-bordered table-striped"> <thead> <tr class="bg-default bg-font-default"> <th> Fornecedor </th> <th> Vencimento </th> <th> Valor </th> <th> Data de Cadastro </th> <th> Cadastrado Por </th> </tr> </thead> <tbody> <?php $sql_3 = mysqli_query($config, "SELECT bm.fornecedor, bm.vencimento, bm.valor, bm.datadecadastro, usr.nome FROM boletosdomalote bm LEFT JOIN usuario AS usr ON (bm.id_usuario = usr.id) WHERE bm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_3) <= 0){ echo ""; }else{ while($r_sql_3 = mysqli_fetch_array($sql_3)){ $forcenedor_1 = $r_sql_3[0]; $vencimento_1 = date("d/m/Y", strtotime($r_sql_3[1])); $valor_1 = "R$ " . number_format($r_sql_3[2],2, ',', '.'); $datadecadastro_1 = date("d/m/Y", strtotime($r_sql_3[3])); $hora_datadecadastro_1 = date("H:i", strtotime($r_sql_3[3])); $usuario_1 = $r_sql_3[4]; ?> <tr> <td class="alinhamento_central"> <?php echo $forcenedor_1; ?> </td> <td class="alinhamento_central"> <?php echo $vencimento_1; ?> </td> <td class="alinhamento_central"> <?php echo $valor_1; ?> </td> <td class="alinhamento_central"> <?php echo $datadecadastro_1 . " às " . $hora_datadecadastro_1; ?> </td> <td class="alinhamento_central"> <?php echo $usuario_1; ?> </td> </tr> <?php } } ?> </tbody> </table> </div> <?php } ?> <?php $sql_4_aux = mysqli_query($config, "SELECT cm.pdv, cm.datadecadastro, cm.datadeemissao, usr.nome FROM caixasdomalote cm LEFT JOIN usuario AS usr ON (cm.id_usuario = usr.id) WHERE cm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_4_aux) > 0){ ?> <div class="portlet-body"> <h4 class="block">Caixas do malote</h4> <table class="table table-bordered table-striped"> <thead> <tr class="bg-default bg-font-default"> <th> PDV </th> <th> Data de Emissão </th> <th> Data de Cadastro </th> <th> Cadastrado Por </th> </tr> </thead> <tbody> <?php $sql_4 = mysqli_query($config, "SELECT cm.pdv, cm.datadecadastro, cm.datadeemissao, usr.nome FROM caixasdomalote cm LEFT JOIN usuario AS usr ON (cm.id_usuario = usr.id) WHERE cm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_4) <= 0){ echo ""; }else{ while($r_sql_4 = mysqli_fetch_array($sql_4)){ $pdv_2 = $r_sql_4[0]; $datadecadastro_2 = date("d/m/Y", strtotime($r_sql_4[1])); $hora_datadecadastro_2 = date("H:i", strtotime($r_sql_4[1])); $emissao_2 = date("d/m/Y", strtotime($r_sql_4[2])); $usuario_2 = $r_sql_4[3]; ?> <tr> <td class="alinhamento_central"> <?php echo $pdv_2; ?> </td> <td class="alinhamento_central"> <?php echo $emissao_2; ?> </td> <td class="alinhamento_central"> <?php echo $datadecadastro_2 . " às " . $hora_datadecadastro_2; ?> </td> <td class="alinhamento_central"> <?php echo $usuario_2; ?> </td> </tr> <?php } } ?> </tbody> </table> </div> <?php } ?> <?php $sql_5_aux = mysqli_query($config, "SELECT nfm.numero, nfm.fornecedor, nfm.datadeemissao, nfm.datadecadastro, usr.nome, nfm.valor FROM notasfiscaisdomalote nfm LEFT JOIN usuario AS usr ON (nfm.id_usuario = usr.id) WHERE nfm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_5_aux) > 0){ ?> <div class="portlet-body"> <h4 class="block">Notas Fiscais do malote</h4> <table class="table table-bordered table-striped"> <thead> <tr class="bg-default bg-font-default"> <th> Número da nota fiscal </th> <th> Fornecedor </th> <th> Data de Emissão </th> <th> Valor </th> <th> Data de cadastro </th> <th> Cadastrado por </th> </tr> </thead> <tbody> <?php $sql_5 = mysqli_query($config, "SELECT nfm.numero, nfm.fornecedor, nfm.datadeemissao, nfm.datadecadastro, usr.nome, nfm.valor FROM notasfiscaisdomalote nfm LEFT JOIN usuario AS usr ON (nfm.id_usuario = usr.id) WHERE nfm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_5) <= '0'){ echo ""; }else{ while($r_sql_5 = mysqli_fetch_array($sql_5)){ $numero_3 = $r_sql_5[0]; $fornecedor_3 = $r_sql_5[1]; $emissao_3 = date("d/m/Y", strtotime($r_sql_5[2])); $datadecadastro_3 = date("d/m/Y", strtotime($r_sql_5[3])); $hora_datadecadastro_3 = date("H:i", strtotime($r_sql_5[3])); $usuario_3 = $r_sql_5[4]; $valor_3 = "R$ " . number_format($r_sql_5[5],2, ',', '.'); ?> <tr> <td class="alinhamento_central"> <?php echo $numero_3; ?> </td> <td class="alinhamento_central"> <?php echo $fornecedor_3; ?> </td> <td class="alinhamento_central"> <?php echo $emissao_3; ?> </td> <td class="alinhamento_central"> <?php echo $valor_3; ?> </td> <td class="alinhamento_central"> <?php echo $datadecadastro_3 . " às " . $hora_datadecadastro_3; ?> </td> <td class="alinhamento_central"> <?php echo $usuario_3; ?> </td> </tr> <?php } } ?> </tbody> </table> </div> <?php } ?> <?php $sql_6_aux = mysqli_query($config, "SELECT dm.titulo, dm.datadecadastro, usr.nome FROM documentosdomalote dm LEFT JOIN usuario AS usr ON (dm.id_usuario = usr.id) WHERE dm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_6_aux) > 0){ ?> <div class="portlet-body"> <h4 class="block">Documentos do malote</h4> <table class="table table-bordered table-striped"> <thead> <tr class="bg-default bg-font-default"> <th> Título </th> <th> Data de cadastro </th> <th> Cadastrado por </th> </tr> </thead> <tbody> <?php $sql_6 = mysqli_query($config, "SELECT dm.titulo, dm.datadecadastro, usr.nome FROM documentosdomalote dm LEFT JOIN usuario AS usr ON (dm.id_usuario = usr.id) WHERE dm.id_malote = '$id_item'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_6) <= '0'){ echo ""; }else{ while($r_sql_6 = mysqli_fetch_array($sql_6)){ $titulo_4 = $r_sql_6[0]; $datadecadastro_4 = date("d/m/Y", strtotime($r_sql_6[1])); $hora_datadecadastro_4 = date("H:i", strtotime($r_sql_6[1])); $usuario_4 = $r_sql_6[2]; ?> <tr> <td class="alinhamento_central"> <?php echo $titulo_4; ?> </td> <td class="alinhamento_central"> <?php echo $datadecadastro_4 . " às " . $hora_datadecadastro_4; ?> </td> <td class="alinhamento_central"> <?php echo $usuario_4; ?> </td> </tr> <?php } } ?> </tbody> </table> </div> <?php } ?> </article> <aside> <div class="row text-center"> <div class="responsaveis_div"> <h4 class="responsaveis">Responsáveis</h4> <div class="responsavel_1"><?php echo $nome_usuario_envio; ?> (<?php echo $estabelecimento_cadastro; ?>)</div> <div class="responsavel_2"><?php echo $estabelecimento_destino; ?> (<?php //echo $nome_usuario_recebimento; ?>)</div> </div> </div> </aside> <script src="<?php echo $dir_base; ?>assets/global/plugins/jquery.min.js" type="text/javascript"></script> <script src="<?php echo $dir_base; ?>assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script> $(document).ready(function() { window.print(); }) </script> </body> </html>
  10. Rogerio Pancini

    Remover # da url no script

    Bom dia pessoal. Tive que adaptar um menu que, ao clicar, vai para uma parte da home. Este é o script: $("a.menu__item").on('click', function(event) { // Make sure this.hash has a value before overriding default behavior if (this.hash !== "") { // Prevent default anchor click behavior event.preventDefault(); // Store hash var hash = this.hash; // Using jQuery's animate() method to add smooth page scroll // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area $('html, body').animate({ scrollTop: $(hash).offset().top }, 800, function(){ // Add hash (#) to URL when done scrolling (default click behavior) window.location.hash = hash; }); } // End if }); Este é o menu: <header class="codrops-header"> <div class="container-geral"> <div class="logo-box"> <div class="logo"><a href="#"><img src="images/logo_branco.png" alt=""></a></div> </div> <nav class="menu menu--adsila"> <a class="menu__item" href="#home"> <span class="menu__item-name">Home</span> <!-- <span class="menu__item-label">Explore all artists' portfolios</span> --> </a> <a class="menu__item" href="#quem-somos"> <span class="menu__item-name">Quem somos</span> <!-- <span class="menu__item-label">Discover their stories</span> --> </a> <a class="menu__item" href="#o-que-fazemos"> <span class="menu__item-name">O que fazemos</span> <!-- <span class="menu__item-label">View our event calendar</span> --> </a> <a class="menu__item" href="#blog"> <span class="menu__item-name">Blog</span> <!-- <span class="menu__item-label">Read our mission statement</span> --> </a> <a class="menu__item" href="#eventos"> <span class="menu__item-name">Eventos</span> <!-- <span class="menu__item-label">Get to know our eco village</span> --> </a> <a class="menu__item" href="#contato"> <span class="menu__item-name">Contato</span> <!-- <span class="menu__item-label">Get in touch and find us</span> --> </a> </nav> </div> </header> E esta é uma das partes: <section class="bloco_historia" id="quem-somos">Conteúdo</section> Hoje, ao clicar em "Quem somos", vai para a parte "Quem somos" corretamente, mas na url fica "http://localhost/projetos/site/#quem-somos". Se eu tentar mudar o window.location.hash (na parte "// Add hash (#) to URL when done scrolling (default click behavior)"), eu consigo que fique "http://localhost/projetos/llene/quem-somos" (sem o #), mas dá erro, dizendo que a página não existe. É possível manter a mecânica, mas tirando o # da url? Obrigado!
  11. Rogerio Pancini

    Ferramenta de scrool

    Boa noite pessoal. Alguém já viu algum template html com essa performance: http://themenectar.com/demo/salient-service/ Costumo comprar templates no Themeforest, mas só encontrei essa performance em WordPress. A performance que me refiro é o scroll do site, que não é "seco", fazendo uma divisão ao rolar os blocos. Obrigado!
  12. Rogerio Pancini

    Gráfico em css ou jquery

    Boa noite pessoal. Será que é possível criar uma gráfico assim com jquery, html ou css? Na verdade, acho que o problema seria criar as setas. Se alguém já fez algo do tipo e puder dar uma luz, eu agradeço.
  13. Rogerio Pancini

    PHPMailer e foreach

    Vixi. Ficou meio grande. Mas vamos lá. Tudo está funcionando. É só o email de retorno que, por estar no foreach não funciona. if(isset($_POST['enviar_email']) && $_POST['enviar_email'] == 'env'){ date_default_timezone_set("America/Sao_Paulo"); $nome = strip_tags(trim($_POST['nome'])); $email = strip_tags(trim($_POST['email'])); $telefone = strip_tags(trim($_POST['telefone'])); $cidade_cli = strip_tags(trim($_POST['cidade'])); $estado_cli = strip_tags(trim($_POST['estado'])); $pesquisa = strip_tags(trim($_POST['pesquisa'])); $mensagem = strip_tags(trim($_POST['mensagem'])); $assunto = "Mensagem enviada pelo site"; $data = date("d/m/Y"); $data_email = date("Y-m-d"); $hora = date("H:i"); $captcha_data = $_POST['g-recaptcha-response']; $exibir_apos_enviar = " <script type=\"text/javascript\"> swal({ title: \"Enviado\", text: \"Agradecemos seu contato!\", confirmButtonColor: \"#FF6000\", type: \"success\" }); </script> "; $exibir_apos_nao_enviar = " <script type=\"text/javascript\"> swal({ title: \"Oopss...\", text: \"Ocorreu um erro ao enviar a mensagem\", confirmButtonColor: \"#e74c3c\", type: \"error\" }); </script> "; if(!$captcha_data){ echo " <script type=\"text/javascript\"> swal({ title: \"Oopss...\", text: \"O reCAPTCHA não foi habilitado\", confirmButtonColor: \"#e74c3c\", type: \"error\" }); </script> "; }else{ $resposta = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Lez2zAUAAAAADVJuF0M6asyKTMTIHEumkR0Ecvd&response=".$captcha_data."&remoteip=".$_SERVER['REMOTE_ADDR']); if($resposta.success){ $sel_cid = mysqli_query($config, "SELECT nome FROM tb_cidades WHERE id = '$cidade_cli'") or die(mysqli_error($config)); if(@mysqli_num_rows($sel_cid) <= '0'){ echo "<p>$info</p>"; }else{ while($res_sel_cid = mysqli_fetch_array($sel_cid)){ $cidade_cli_conv = $res_sel_cid[0]; } } $sel_uf = mysqli_query($config, "SELECT uf FROM tb_estados WHERE id = '$estado_cli'") or die(mysqli_error($config)); if(@mysqli_num_rows($sel_uf) <= '0'){ echo "<p>$info</p>"; }else{ while($res_sel_uf = mysqli_fetch_array($sel_uf)){ $estado_cli_conv = $res_sel_uf[0]; } } /****** Configurações do e-mail de retorno ******/ $sql_d_emp = mysqli_query($config, "SELECT empresa, cep, cidade, estado, endereco, numero, bairro, complemento, rede_social_1, rede_social_2, rede_social_3, rede_social_4, rede_social_5, rede_social_6, imagem, cor_topo, cor_rodape, texto, titulo FROM tb_email_home") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_d_emp) <= '0'){ echo " <div class=\"col-lg-6\"> <div class=\"alert alert-danger\"> <strong>Erro!</strong> $erro </div> </div> "; }else{ while($r_sql_d_emp = mysqli_fetch_array($sql_d_emp)){ $empresa_sel = $r_sql_d_emp[0]; $cep_sel = $r_sql_d_emp[1]; $cidade_sel = $r_sql_d_emp[2]; $estado_sel = $r_sql_d_emp[3]; $endereco_sel = $r_sql_d_emp[4]; $numero_sel = $r_sql_d_emp[5]; $bairro_sel = $r_sql_d_emp[6]; $complemento_sel = $r_sql_d_emp[7]; $rede_social_1_sel = $r_sql_d_emp[8]; $rede_social_2_sel = $r_sql_d_emp[9]; $rede_social_3_sel = $r_sql_d_emp[10]; $rede_social_4_sel = $r_sql_d_emp[11]; $rede_social_5_sel = $r_sql_d_emp[12]; $rede_social_6_sel = $r_sql_d_emp[13]; $logo_sel = $r_sql_d_emp[14]; $cor_topo_sel = $r_sql_d_emp[15]; $cor_rodape_sel = $r_sql_d_emp[16]; $texto_sel = $r_sql_d_emp[17]; $titulo_sel = $r_sql_d_emp[18]; } } /****** Configurações do e-mail de retorno ******/ $sql_config = mysqli_query($config, "SELECT email_form, email_form_senha, conexao_segura, serv_saida_smtp, porta_smtp, site FROM tb_configuracoes") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_config) <= '0'){ echo "<p>$info</p>"; }else{ while($r_sql_config = mysqli_fetch_array($sql_config)){ $email_formulario = $r_sql_config[0]; $email_formulario_senha = $r_sql_config[1]; $metodo_criptografia = $r_sql_config[2]; $servidor_saida_smtp = $r_sql_config[3]; $porta_smtp = $r_sql_config[4]; $site_sel = $r_sql_config[5]; } } $contagem = strripos($site_sel, "//"); $site_link = substr($site_sel, $contagem + 2); /****** Configurações gerais ******/ /****** E-mails dos destinatários ******/ $sql_email_dest = mysqli_query($config, "SELECT email FROM tb_email_home_email WHERE id_item = '1'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_email_dest) <= '0'){ echo ""; }else{ while($r_sql_email_dest = mysqli_fetch_array($sql_email_dest)){ $email_email_home_sel[] = $r_sql_email_dest[0]; } } /****** E-mails dos destinatários ******/ include("php/phpmailer/PHPMailerAutoload.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = $servidor_saida_smtp; // Endereço do servidor SMTP $mail->SMTPAuth = true; // Requer autenticação? $mail->Username = $email_formulario; // Usuário SMTP $mail->Password = $email_formulario_senha; // Senha do usuário SMTP $mail->SMTPSecure = $metodo_criptografia; // Tipo de comunicação segura $mail->Port = $porta_smtp; // Porta do SMTP $mail->From = $email_formulario; // E-mail do remetente $mail->FromName = "Contato - " . $empresa_sel; // Nome do remetente // ERRO AQUI foreach($email_email_home_sel as $email_contato){ $mail->AddAddress($email_contato); // E-mail do destinatário } $mail->SetLanguage("br", "libs/"); // Linguagem $mail->CharSet = 'UTF-8'; $mail->IsHTML(true); $mail->Subject = $assunto; $mail->Body = ' <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <!-- NAME: FOLLOW UP --> <!--[if gte mso 15]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>'.$empresa_sel.'</title> <style type="text/css"> p{ margin:10px 0; padding:0; } table{ border-collapse:collapse; } h1,h2,h3,h4,h5,h6{ display:block; margin:0; padding:0; } img,a img{ border:0; height:auto; outline:none; text-decoration:none; } body,#bodyTable,#bodyCell{ height:100%; margin:0; padding:0; width:100%; } #outlook a{ padding:0; } img{ -ms-interpolation-mode:bicubic; } table{ mso-table-lspace:0pt; mso-table-rspace:0pt; } .ReadMsgBody{ width:100%; } .ExternalClass{ width:100%; } p,a,li,td,blockquote{ mso-line-height-rule:exactly; } a[href^=tel],a[href^=sms]{ color:inherit; cursor:default; text-decoration:none; } p,a,li,td,body,table,blockquote{ -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; } .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ line-height:100%; } a[x-apple-data-detectors]{ color:inherit !important; text-decoration:none !important; font-size:inherit !important; font-family:inherit !important; font-weight:inherit !important; line-height:inherit !important; } .templateContainer{ max-width:600px !important; } a.mcnButton{ display:block; } .mcnImage{ vertical-align:bottom; } .mcnTextContent{ word-break:break-word; } .mcnTextContent img{ height:auto !important; } .mcnDividerBlock{ table-layout:fixed !important; } /* @tab Page @section Heading 1 @style heading 1 */ h1{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:40px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 2 @style heading 2 */ h2{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:34px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:88%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Page @section Heading 3 @style heading 3 */ h3{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:22px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 4 @style heading 4 */ h4{ /*@editable*/color:#999999; /*@editable*/font-family:Georgia; /*@editable*/font-size:20px; /*@editable*/font-style:italic; /*@editable*/font-weight:normal; /*@editable*/line-height:125%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Header @section Header Container Style */ #templateHeader{ /*@editable*/ /* header */ /*@editable*/background: #'.$cor_topo_sel.'; /* For browsers that do not support gradients */ /*@editable*//*background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:9px; /*@editable*/padding-bottom:9px; } /* @tab Header @section Header Interior Style */ .headerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Header @section Header Text */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Header @section Header Link */ .headerContainer .mcnTextContent a,.headerContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Body @section Body Container Style */ #templateBody{ /*@editable*/background-color:#FFFFFF; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:21px; /*@editable*/padding-bottom:21px; } /* @tab Body @section Body Interior Style */ .bodyContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Body @section Body Text */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Body @section Body Link */ .bodyContainer .mcnTextContent a,.bodyContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Footer @section Footer Style */ #templateFooter{ /*@editable*/ /* Rodapé */ background: #'.$cor_rodape_sel.'; /* For browsers that do not support gradients */ /* background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0px; /*@editable*/padding-bottom:0px; } /* @tab Footer @section Footer Interior Style */ .footerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Footer @section Footer Text */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/color:#FFFFFF; /*@editable*/font-family:Helvetica; /*@editable*/font-size:12px; /*@editable*/line-height:150%; /*@editable*/text-align:center; } /* @tab Footer @section Footer Link */ .footerContainer .mcnTextContent a,.footerContainer .mcnTextContent p a{ /*@editable*/color:#FFFFFF; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } @media only screen and (min-width:768px){ .templateContainer{ width:600px !important; } } @media only screen and (max-width: 480px){ body,table,td,p,a,li,blockquote{ -webkit-text-size-adjust:none !important; } } @media only screen and (max-width: 480px){ body{ width:100% !important; min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImage{ width:100% !important; } } @media only screen and (max-width: 480px){ .mcnCartContainer,.mcnCaptionTopContent,.mcnRecContentContainer,.mcnCaptionBottomContent,.mcnTextContentContainer,.mcnBoxedTextContentContainer,.mcnImageGroupContentContainer,.mcnCaptionLeftTextContentContainer,.mcnCaptionRightTextContentContainer,.mcnCaptionLeftImageContentContainer,.mcnCaptionRightImageContentContainer,.mcnImageCardLeftTextContentContainer,.mcnImageCardRightTextContentContainer{ max-width:100% !important; width:100% !important; } } @media only screen and (max-width: 480px){ .mcnBoxedTextContentContainer{ min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupContent{ padding:9px !important; } } @media only screen and (max-width: 480px){ .mcnCaptionLeftContentOuter .mcnTextContent,.mcnCaptionRightContentOuter .mcnTextContent{ padding-top:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardTopImageContent,.mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent{ padding-top:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardBottomImageContent{ padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockInner{ padding-top:0 !important; padding-bottom:0 !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockOuter{ padding-top:9px !important; padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnTextContent,.mcnBoxedTextContentColumn{ padding-right:18px !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardLeftImageContent,.mcnImageCardRightImageContent{ padding-right:18px !important; padding-bottom:0 !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcpreview-image-uploader{ display:none !important; width:100% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 1 @tip Make the first-level headings larger in size for better readability on small screens. */ h1{ /*@editable*/font-size:30px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 2 @tip Make the second-level headings larger in size for better readability on small screens. */ h2{ /*@editable*/font-size:26px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 3 @tip Make the third-level headings larger in size for better readability on small screens. */ h3{ /*@editable*/font-size:20px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 4 @tip Make the fourth-level headings larger in size for better readability on small screens. */ h4{ /*@editable*/font-size:18px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Boxed Text @tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .mcnBoxedTextContentContainer .mcnTextContent,.mcnBoxedTextContentContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Header Text @tip Make the header text larger in size for better readability on small screens. */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Body Text @tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Footer Text @tip Make the footer content text larger in size for better readability on small screens. */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } </style> </head> <body> <center> <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"> <tr> <td align="center" valign="top" id="bodyCell"> <!-- BEGIN TEMPLATE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" id="templateHeader" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="headerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 0px 18px 9px; line-height: 100%;"> <h4 class="null"><img data-file-id="20865" height="39" src="'.$site_sel.'/images/email/'.$logo_sel.'" style="border: 0px; height: 39px; margin: 3% 0 0 0;" width="196"></h4> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 16px 18px 9px; line-height: 100%;"> <h2 class="mc-toc-title" style="text-align: left;"><span style="font-size:25px"><span style="color:#ffffff; text-transform: uppercase;"><strong>'.$titulo_sel.'</strong></span></span></h2> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td align="center" valign="top" id="templateBody" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="bodyContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;"> <p> <span style="font-size:18px"> <i>Enviado por</i>:<br /><br /> Nome: '.$nome.'<br /> E-mail: '.$email.'<br /> Telefone: '.$telefone.'<br /> Cidade: '.$cidade_cli_conv.' - '.$estado_cli_conv.'<br /> Como nos encontrou? '.$pesquisa.'<br /><br /> <u>Mensagem</u>: '.$mensagem.'<br /><br /> Enviado em: '.$data.', às '.$hora.' </span> <br /><br /> &nbsp; </p> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnBoxedTextBlock" style="min-width:100%;"> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"> <![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td valign="top" class="mcnBoxedTextBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;background-color: #F7F7F7;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #000000;font-family: Helvetica;font-size: 16px;line-height: 200%;text-align: center;"> <h3 style="text-align: left;">'.$empresa_sel.'</h3> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <!--[if gte mso 9]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td align="center" valign="top" id="templateFooter" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="footerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock" style="min-width:100%;"> <tbody class="mcnFollowBlockOuter"> <tr> <td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #FFFFFF;font-family: Helvetica;font-size: 14px;line-height: 200%;text-align: center;"> <a href="'.$titulo_sel.'" style="text-decoration: none;"><h3 style="color: #FFFFFF; ">'.$site_link.'</h3></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentContainer" style="min-width:100%;"> <tbody><tr> <td align="center" style="padding-left:9px;padding-right:9px;"> <table border="0" cellpadding="0" cellspacing="0" class="mcnFollowContent"> <tbody><tr> <td align="center" valign="top" style="padding-top:9px; padding-right:9px; padding-left:9px;"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td align="center" valign="top"> <!--[if mso]> <table align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <![endif]--> '; if(!empty($rede_social_1_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_1_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/facebook.png" alt="Facebook" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_2_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_2_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/instagram.png" alt="Instagram" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_3_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_3_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/linkedin.png" alt="Linkedin" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_4_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_4_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/twitter.png" alt="Twitter" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_5_sel)){ ' $mail->Body .= <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_5_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/google-plus.png" alt="Google Plus" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_6_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_6_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/youtube.png" alt="Youtube" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } $mail->Body .= ' </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width:100%; padding:18px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-top: 2px solid #FFFFFF;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;"> <em> '; if(!empty($complemento_sel)){ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $complemento_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; }else{ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; } $mail->Body .= ' <br /> '; $sql_tel_emp = mysqli_query($config, "SELECT telefone FROM tb_email_home_telefone WHERE id_item = '1'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_tel_emp) <= '0'){ echo ""; }else{ $y_info = 1; $allRows_info = mysqli_num_rows($sql_tel_emp); while($r_sql_tel_emp = mysqli_fetch_array($sql_tel_emp)){ if ($allRows_info == $y_info) { $x_info = 1; } else { $x_info = 2; } $y_info++; if ($y_info == 2) { $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0] . " | ".' '; }else{ $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0].' '; } } } $mail->Body .= ' </em> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> </table> <!-- // END TEMPLATE --> </td> </tr> </table> </center> </body> </html> '; if(!$mail->Send()){ echo $exibir_apos_nao_enviar; }else{ $mail->ClearAddresses(); $mail->SetLanguage("br", "libs/"); // Linguagem $mail->From = $email_formulario; // E-mail do remetente $mail->FromName = "Contato - " . $empresa_sel; // Nome do remetente $mail->Subject = "Recebemos sua mensagem"; $mail->IsHTML(true); $mail->Body = ' <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <!-- NAME: FOLLOW UP --> <!--[if gte mso 15]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>'.$empresa_sel.'</title> <style type="text/css"> p{ margin:10px 0; padding:0; } table{ border-collapse:collapse; } h1,h2,h3,h4,h5,h6{ display:block; margin:0; padding:0; } img,a img{ border:0; height:auto; outline:none; text-decoration:none; } body,#bodyTable,#bodyCell{ height:100%; margin:0; padding:0; width:100%; } #outlook a{ padding:0; } img{ -ms-interpolation-mode:bicubic; } table{ mso-table-lspace:0pt; mso-table-rspace:0pt; } .ReadMsgBody{ width:100%; } .ExternalClass{ width:100%; } p,a,li,td,blockquote{ mso-line-height-rule:exactly; } a[href^=tel],a[href^=sms]{ color:inherit; cursor:default; text-decoration:none; } p,a,li,td,body,table,blockquote{ -ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; } .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ line-height:100%; } a[x-apple-data-detectors]{ color:inherit !important; text-decoration:none !important; font-size:inherit !important; font-family:inherit !important; font-weight:inherit !important; line-height:inherit !important; } .templateContainer{ max-width:600px !important; } a.mcnButton{ display:block; } .mcnImage{ vertical-align:bottom; } .mcnTextContent{ word-break:break-word; } .mcnTextContent img{ height:auto !important; } .mcnDividerBlock{ table-layout:fixed !important; } /* @tab Page @section Heading 1 @style heading 1 */ h1{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:40px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 2 @style heading 2 */ h2{ /*@editable*/color:#222222; /*@editable*/font-family:Helvetica; /*@editable*/font-size:34px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:88%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Page @section Heading 3 @style heading 3 */ h3{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:22px; /*@editable*/font-style:normal; /*@editable*/font-weight:bold; /*@editable*/line-height:150%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:center; } /* @tab Page @section Heading 4 @style heading 4 */ h4{ /*@editable*/color:#999999; /*@editable*/font-family:Georgia; /*@editable*/font-size:20px; /*@editable*/font-style:italic; /*@editable*/font-weight:normal; /*@editable*/line-height:125%; /*@editable*/letter-spacing:normal; /*@editable*/text-align:left; } /* @tab Header @section Header Container Style */ #templateHeader{ /*@editable*/ /* header */ /*@editable*/background: #'.$cor_topo_sel.'; /* For browsers that do not support gradients */ /*@editable*//*background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:9px; /*@editable*/padding-bottom:9px; } /* @tab Header @section Header Interior Style */ .headerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Header @section Header Text */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Header @section Header Link */ .headerContainer .mcnTextContent a,.headerContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Body @section Body Container Style */ #templateBody{ /*@editable*/background-color:#FFFFFF; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:21px; /*@editable*/padding-bottom:21px; } /* @tab Body @section Body Interior Style */ .bodyContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Body @section Body Text */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/color:#000000; /*@editable*/font-family:Helvetica; /*@editable*/font-size:16px; /*@editable*/line-height:150%; /*@editable*/text-align:left; } /* @tab Body @section Body Link */ .bodyContainer .mcnTextContent a,.bodyContainer .mcnTextContent p a{ /*@editable*/color:#00ADD8; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } /* @tab Footer @section Footer Style */ #templateFooter{ /*@editable*/ /* Rodapé */ background: #'.$cor_rodape_sel.'; /* For browsers that do not support gradients */ /* background: linear-gradient(to bottom right, #1a2980, #26d0cd); /* Standard syntax (must be last) */ /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0px; /*@editable*/padding-bottom:0px; } /* @tab Footer @section Footer Interior Style */ .footerContainer{ /*@editable*/background-color:transparent; /*@editable*/background-image:none; /*@editable*/background-repeat:no-repeat; /*@editable*/background-position:center; /*@editable*/background-size:cover; /*@editable*/border-top:0; /*@editable*/border-bottom:0; /*@editable*/padding-top:0; /*@editable*/padding-bottom:0; } /* @tab Footer @section Footer Text */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/color:#FFFFFF; /*@editable*/font-family:Helvetica; /*@editable*/font-size:12px; /*@editable*/line-height:150%; /*@editable*/text-align:center; } /* @tab Footer @section Footer Link */ .footerContainer .mcnTextContent a,.footerContainer .mcnTextContent p a{ /*@editable*/color:#FFFFFF; /*@editable*/font-weight:normal; /*@editable*/text-decoration:underline; } @media only screen and (min-width:768px){ .templateContainer{ width:600px !important; } } @media only screen and (max-width: 480px){ body,table,td,p,a,li,blockquote{ -webkit-text-size-adjust:none !important; } } @media only screen and (max-width: 480px){ body{ width:100% !important; min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImage{ width:100% !important; } } @media only screen and (max-width: 480px){ .mcnCartContainer,.mcnCaptionTopContent,.mcnRecContentContainer,.mcnCaptionBottomContent,.mcnTextContentContainer,.mcnBoxedTextContentContainer,.mcnImageGroupContentContainer,.mcnCaptionLeftTextContentContainer,.mcnCaptionRightTextContentContainer,.mcnCaptionLeftImageContentContainer,.mcnCaptionRightImageContentContainer,.mcnImageCardLeftTextContentContainer,.mcnImageCardRightTextContentContainer{ max-width:100% !important; width:100% !important; } } @media only screen and (max-width: 480px){ .mcnBoxedTextContentContainer{ min-width:100% !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupContent{ padding:9px !important; } } @media only screen and (max-width: 480px){ .mcnCaptionLeftContentOuter .mcnTextContent,.mcnCaptionRightContentOuter .mcnTextContent{ padding-top:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardTopImageContent,.mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent{ padding-top:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardBottomImageContent{ padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockInner{ padding-top:0 !important; padding-bottom:0 !important; } } @media only screen and (max-width: 480px){ .mcnImageGroupBlockOuter{ padding-top:9px !important; padding-bottom:9px !important; } } @media only screen and (max-width: 480px){ .mcnTextContent,.mcnBoxedTextContentColumn{ padding-right:18px !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcnImageCardLeftImageContent,.mcnImageCardRightImageContent{ padding-right:18px !important; padding-bottom:0 !important; padding-left:18px !important; } } @media only screen and (max-width: 480px){ .mcpreview-image-uploader{ display:none !important; width:100% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 1 @tip Make the first-level headings larger in size for better readability on small screens. */ h1{ /*@editable*/font-size:30px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 2 @tip Make the second-level headings larger in size for better readability on small screens. */ h2{ /*@editable*/font-size:26px !important; /*@editable*/line-height:125% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 3 @tip Make the third-level headings larger in size for better readability on small screens. */ h3{ /*@editable*/font-size:20px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Heading 4 @tip Make the fourth-level headings larger in size for better readability on small screens. */ h4{ /*@editable*/font-size:18px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Boxed Text @tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .mcnBoxedTextContentContainer .mcnTextContent,.mcnBoxedTextContentContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Header Text @tip Make the header text larger in size for better readability on small screens. */ .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Body Text @tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px. */ .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ /*@editable*/font-size:16px !important; /*@editable*/line-height:150% !important; } } @media only screen and (max-width: 480px){ /* @tab Mobile Styles @section Footer Text @tip Make the footer content text larger in size for better readability on small screens. */ .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ /*@editable*/font-size:14px !important; /*@editable*/line-height:150% !important; } } </style> </head> <body> <center> <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"> <tr> <td align="center" valign="top" id="bodyCell"> <!-- BEGIN TEMPLATE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" id="templateHeader" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="headerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 0px 18px 9px; line-height: 100%;"> <h4 class="null"><img data-file-id="20865" height="39" src="'.$site_sel.'/images/email/'.$logo_sel.'" style="border: 0px; height: 39px; margin: 3% 0 0 0;" width="196"></h4> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> <td valign="top" width="300" style="width:300px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:300px;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding: 16px 18px 9px; line-height: 100%;"> <h2 class="mc-toc-title" style="text-align: left;"><span style="font-size:25px"><span style="color:#ffffff; text-transform: uppercase;"><strong>'.$titulo_sel.'</strong></span></span></h2> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td align="center" valign="top" id="templateBody" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="bodyContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;"> <p> <span style="font-size:18px"> Olá <strong>'.$nome.'</strong>, <br> <br> '.$texto_sel.' </span> <br> &nbsp; </p> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 9px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width: 100%; padding: 18px 18px 0px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnBoxedTextBlock" style="min-width:100%;"> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"> <![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td valign="top" class="mcnBoxedTextBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;background-color: #F7F7F7;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #000000;font-family: Helvetica;font-size: 16px;line-height: 200%;text-align: center;"> <h3 style="text-align: left;">'.$empresa_sel.'</h3> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <!--[if gte mso 9]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> <tr> <td align="center" valign="top" id="templateFooter" data-template-container> <!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"> <![endif]--> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" class="footerContainer"><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowBlock" style="min-width:100%;"> <tbody class="mcnFollowBlockOuter"> <tr> <td align="center" valign="top" style="padding:9px" class="mcnFollowBlockInner"> <!--[if gte mso 9]> <td align="center" valign="top" "> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width:100%;" class="mcnBoxedTextContentContainer"> <tbody> <tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table border="0" cellpadding="18" cellspacing="0" class="mcnTextContentContainer" width="100%" style="min-width: 100% !important;"> <tbody> <tr> <td valign="top" class="mcnTextContent" style="color: #FFFFFF;font-family: Helvetica;font-size: 14px;line-height: 200%;text-align: center;"> <a href="'.$titulo_sel.'" style="text-decoration: none;"><h3 style="color: #FFFFFF; ">'.$site_link.'</h3></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--[if gte mso 9]> </td> <![endif]--> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnFollowContentContainer" style="min-width:100%;"> <tbody><tr> <td align="center" style="padding-left:9px;padding-right:9px;"> <table border="0" cellpadding="0" cellspacing="0" class="mcnFollowContent"> <tbody><tr> <td align="center" valign="top" style="padding-top:9px; padding-right:9px; padding-left:9px;"> <table align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td align="center" valign="top"> <!--[if mso]> <table align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <![endif]--> '; if(!empty($rede_social_1_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_1_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/facebook.png" alt="Facebook" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_2_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_2_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/instagram.png" alt="Instagram" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_3_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_3_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/linkedin.png" alt="Linkedin" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_4_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_4_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/twitter.png" alt="Twitter" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_5_sel)){ ' $mail->Body .= <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_5_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/google-plus.png" alt="Google Plus" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } if(!empty($rede_social_6_sel)){ $mail->Body .= ' <!--[if mso]> <td align="center" valign="top"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnFollowStacked" style="display:inline;"> <tbody> <tr> <td align="center" valign="top" class="mcnFollowIconContent" style="padding-right:10px; padding-bottom:9px;"> <a href="'.$rede_social_6_sel.'" target="_blank"><img src="'.$site_sel.'/images/email/youtube.png" alt="Youtube" class="mcnFollowBlockIcon" width="48" style="width:48px; max-width:48px; display:block;"></a> </td> </tr> </tbody> </table> <!--[if mso]> </td> <![endif]--> '; } $mail->Body .= ' </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnDividerBlock" style="min-width:100%;"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width:100%; padding:18px;"> <table class="mcnDividerContent" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-top: 2px solid #FFFFFF;"> <tbody><tr> <td> <span></span> </td> </tr> </tbody></table> <!-- <td class="mcnDividerBlockInner" style="padding: 18px;"> <hr class="mcnDividerContent" style="border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;" /> --> </td> </tr> </tbody> </table><table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width:100%;"> <tbody class="mcnTextBlockOuter"> <tr> <td valign="top" class="mcnTextBlockInner" style="padding-top:9px;"> <!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr> <![endif]--> <!--[if mso]> <td valign="top" width="600" style="width:600px;"> <![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" style="max-width:100%; min-width:100%;" width="100%" class="mcnTextContentContainer"> <tbody><tr> <td valign="top" class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;"> <em> '; if(!empty($complemento_sel)){ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $complemento_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; }else{ $mail->Body .= ' '.$endereco_sel . " | " . $numero_sel . " | " . $bairro_sel . " | " . $cidade_sel . " | " . $estado_sel.' '; } $mail->Body .= ' <br /> '; $sql_tel_emp = mysqli_query($config, "SELECT telefone FROM tb_email_home_telefone WHERE id_item = '1'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_tel_emp) <= '0'){ echo ""; }else{ $y_info = 1; $allRows_info = mysqli_num_rows($sql_tel_emp); while($r_sql_tel_emp = mysqli_fetch_array($sql_tel_emp)){ if ($allRows_info == $y_info) { $x_info = 1; } else { $x_info = 2; } $y_info++; if ($y_info == 2) { $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0] . " | ".' '; }else{ $mail->Body .= ' '.$telefone_email_home_sel = $r_sql_tel_emp[0].' '; } } } $mail->Body .= ' </em> </td> </tr> </tbody></table> <!--[if mso]> </td> <![endif]--> <!--[if mso]> </tr> </table> <![endif]--> </td> </tr> </tbody> </table></td> </tr> </table> <!--[if gte mso 9]> </td> </tr> </table> <![endif]--> </td> </tr> </table> <!-- // END TEMPLATE --> </td> </tr> </table> </center> </body> </html> '; $mail->AddAddress($email); if($mail->Send()){ /******************************** Salvar e-mails ********************************/ $salvar_emails = mysqli_query($config, "INSERT INTO tb_emails (nome, email, fone, cidade, estado, pesquisa, mensagem, data_cadastro) VALUES ('$nome', '$email', '$telefone', '$cidade_cli', '$estado_cli', '$pesquisa', '$mensagem', '$data_email')") or die(mysqli_error($config)); if($salvar_emails >= '1'){ echo $exibir_apos_enviar; }else{ echo "<div class=\"erro\">Erro no sistema</div>"; } /******************************** Salvar e-mails ********************************/ }else{ echo $exibir_apos_nao_enviar; } } }else{ echo $exibir_apos_enviar; } } } Coloquei uma marcação "// ERRO AQUI" no código. Obrigado!
  14. Rogerio Pancini

    PHPMailer e foreach

    Boa tarde. Retornou: array(1) { [0]=> string(30) "email@dominio.com.br" } * Não retornou este e-mail fictício. Parece que não está vazia. Mas obrigado pela atenção.
  15. Rogerio Pancini

    PHPMailer e foreach

    Bom dia pessoal. Eu refiz o e-mail do meu site. Dentre as novidades, agora pode-se enviar uma mensagem para mais de um e=mail. Tenho esse select que busca quais e-mails serão dos destinatários: /****** E-mails dos destinatários ******/ $sql_email_dest = mysqli_query($config, "SELECT email FROM tb_email_home_email WHERE id_item = '1'") or die(mysqli_error($config)); if(@mysqli_num_rows($sql_email_dest) <= '0'){ echo ""; }else{ while($r_sql_email_dest = mysqli_fetch_array($sql_email_dest)){ $email_email_home_sel[] = $r_sql_email_dest[0]; } } /****** E-mails dos destinatários ******/ E no PHPMailer, este foreach para enviar: foreach($email_email_home_sel as $email_contato){ $mail->AddAddress($email_contato); // E-mail do destinatário } É simples, mas tentei de várias formas... Se eu colocar da forma antiga, com um e-mail (sem estar no foreach) funciona. Mas da forma acima, sem chance. Alguém já viu algum caso parecido? Tem alguma idéia? Obrigado!
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.