/
seja-um-franqueado.php
149 lines (132 loc) · 5.01 KB
/
seja-um-franqueado.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
#######################################
require('header.php');
#######################################
#######################################
$franquia = franqueado();
$franquiadados = $franquia['array'];
$franquiacount = $franquia['contador'];
#######################################
$deps = depoimentos();
$depsdados = $deps['array'];
$depscount = $deps['contador'];
#######################################
if(isset($_POST['sjf_enviar'])){
$nome = strip_tags(trim($_POST['sjf_nome']));
$email = strip_tags(trim($_POST['sjf_email']));
$cidade = strip_tags(trim($_POST['sjf_cidade']));
$fone = strip_tags(trim($_POST['sjf_fone']));
$mensagem = strip_tags(trim($_POST['sjf_mensagem']));
$asunto = "Seja um franqueado";
$sql = "INSERT INTO tb_contatos VALUES('', '$nome', '$email', '$cidade', '$fone', '$mensagem', '$asunto', '0', NOW())";
$exc = $pdo->query($sql);
if($exc){
echo "
<META HTTP-EQUIV=REFRESH CONTENT = '0;URL=home'>
<script type=\"text/javascript\">
alert(\"Sua mensagem foi enviada com sucesso. Entraremos em contato em breve.\");
window.location = \"home\";
</script>
";
} else {
echo "
<META HTTP-EQUIV=REFRESH CONTENT = '0;URL=home'>
<script type=\"text/javascript\">
alert(\"Sua mensagem não foi enviada. Tente mais tarde.\");
window.location = \"home\";
</script>
";
}
}
?>
<div id="aparelhos">
<div id="aparelhos-titulo-pagina">
<p class="Oswald fs-38 azul fw700">
<?php foreach ($franquiadados as $franquiadado) { ?>
<?php echo $franquiadado['titulo']; ?>
<?php } ?>
</p>
</div>
<div class="aparelhos-content">
<div class="p-topo Cycle fs-20" >
<?php foreach ($franquiadados as $franquiadado) { ?>
<?php $id = $franquiadado['ID']; ?>
<?php echo $franquiadado['conteudo']; ?>
<?php } ?>
</div>
<div class="pqdentalarte">
<p class="Oswald fs-26 azul fw700 upper textcenter upper">porque a dental arte</p>
<div id="franquia" class="videos-dental">
<iframe width="487" height="274" src="https://www.youtube.com/embed/hRH7gdhferQ" frameborder="0" allowfullscreen></iframe>
<iframe width="487" height="274" src="https://www.youtube.com/embed/hRH7gdhferQ" frameborder="0" allowfullscreen></iframe>
</div>
<img src="imagens/new-video-fanrqueado.png" style="margin-top:-40px" alt="">
</div>
<?php
#######################################
$tratfaqs = trat_faqs( $id );
$tratdados = $tratfaqs['array'];
$contador = $tratfaqs['contador'];
#######################################
?>
<?php if($contador > 0) { ?>
<p class="Oswald fs-26 azul fw700 upper textcenter" style="padding:40px 0">perguntas frenquentes</p>
<?php foreach ($tratdados as $tratdado) : ?>
<div id="faq" class="clear2 faqhome">
<div class="question">
<div class="q">
<p class="fs-16 Cycle"><?=$tratdado['pergunta']?></p>
</div>
<div class="s">
<a href="" class="mostra_resposta">
<img class="ativar" src="imagens/acessa-servico-desativado.png" alt="">
</a>
</div>
<div class="resposta">
<p class="Cycle fs-16"><?=$tratdado['resposta']?></p>
</div>
<div class="clear"></div>
</div>
</div>
<?php endforeach ?>
<?php } ?>
<div id="depoimentos-franqueados" style="padding-bottom:50px">
<div class="slider-trat">
<p class="Oswald fs-26 azul fw700 upper textcenter">depoimentos franqueados</p>
</div>
<div id="depoimentos-suf">
<?php foreach ($depsdados as $depsdado) { ?>
<div class="deps-unity">
<p class="Cycle fs-16 cinza"><?php echo $depsdado['depoimento']; ?></p>
<p class="Cycle fs-12">
<span class="Cycle fs-18 azul"><?php echo $depsdado['nome']; ?></span>
<br /><span class="cinza"><?php echo $depsdado['profissao']; ?>
<br><?php echo $depsdado['idade']; ?> anos</span>
</p>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="aparelhos-sidebar">
<p class="tform Oswald fs-24 fw700 branco">Estou interessado<br /> nesse tratamento</p>
<p class="Cycle fs-18 branco titleContato">Preencha o formulário para mais informações sobre como ser o nosso franqueado.</p>
<form action="" id="contato" method="POST" enctype="application/x-www-form-urlencoded">
<input type="text" name="sjf_nome" id="nome" placeholder="Nome*" required />
<input type="text" name="sjf_email" id="email" placeholder="Email*" required />
<input type="text" name="sjf_cidade" id="cidade" placeholder="Cidade*" required />
<input type="text" name="sjf_fone" id="fone" placeholder="Telefone*" required />
<input type="hidden" name="sjf_enviar" />
<textarea name="sjf_mensagem" id="mensagem" placeholder="Insira uma mensagem"></textarea>
<button type="submit" class="enviar" style="margin-top:20px">
<img src="imagens/bota_contato.png" alt="Enviar contato para Dental Arte">
</button>
</form>
<div class="clear"> </div>
<a href="/contato">
<img class="icon" src="imagens/tenho_duvidas.png" alt="Perguntas Frequentes">
</a>
<div class="clear"> </div>
</div>
</div>
<?php include('footer.php'); ?>