Mini Shell
Direktori : /home/emypro/www/ |
|
Current File : /home/emypro/www/canal-de-denuncia.php |
<?php include('header.php') ?>
<?php
$flash = array();
// MAIL
if(isset($_POST['action']) && $_POST['action'] == 'send'):
if(strlen($_POST['name']) > 3 && strlen($_POST['email']) > 5 && strlen($_POST['phone']) >= 8 && strlen($_POST['message']) > 3):
$mailer = new Mailer('contato@emypro.com.br', 'Emypro Site - Canal de Denúncia', $_POST['email'], $_POST);
if($mailer->send()):
$flash = Helper::flash('success');
else:
$flash = Helper::flash('error');
endif;
else:
$flash = Helper::flash('error');
endif;
endif;
?>
<div class="blue-wrapper">
<b>Canal de Denúncia</b>
</div>
<div id="pages" class="container">
<div class="row">
<?php if($flash): ?>
<div class="col-lg-12">
<div class="alert alert-<?= $flash['class'] ?> alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<?= $flash['message'] ?>
</div>
</div>
<?php endif ?>
<div class="col-sm-6">
<blockquote>
<p>Entre em contato conosco. Teremos o prazer de atendê-lo(a). </p>
</blockquote>
<br>
<form method="post" action="https://www.locawebsite.com/freeform.php" name="script" id="form" >
<input type="hidden" name="redirect" value="back">
<input type="hidden" name="titulo" value="MENSAGEM ENVIADA COM SUCESSO!">
<input type="hidden" name="assunto" value="Compliance - EMYPRO">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="to" value="compliance@emypro.com.br">
<small>* Todos os campos são obrigatórios</small>
<div class="form-group">
<label for="name">Nome:</label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="form-group">
<label for="email">E-mail:</label>
<input type="email" name="from" class="form-control" required>
</div>
<div class="form-group">
<label for="phone">Telefone:</label>
<input type="text" name="phone" class="form-control">
</div>
<div class="form-group">
<label for="message">Mensagem:</label>
<textarea name="message" class="form-control" cols="30" rows="5" required></textarea>
</div>
<div class="form-group">
<!-- <input type="hidden" name="action" value="send"> -->
<input type="submit" class="btn btn-primary" value="Enviar">
</div>
</form>
</div>
<div class="col-sm-6">
<blockquote>
<p><small>Rua Engenheiro José Brandão Cavalcante, 117 - Imbiribeira - Recife - PE.</small></p>
</blockquote>
<br>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3950.0833200639227!2d-34.91224858562009!3d-8.09298568317278!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x7ab1ee0f0f546c7%3A0xf5f934921e953310!2sR.+Eng.+Jos%C3%A9+Brand%C3%A3o+Cavalcante%2C+117+-+Imbiribeira%2C+Recife+-+PE%2C+51170-130!5e0!3m2!1spt-BR!2sbr!4v1450707118057" width="100%" height="400" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
<?php include('footer.php') ?>
Zerion Mini Shell 1.0