Mini Shell
Direktori : /home/emypro/www/en/ |
|
Current File : /home/emypro/www/en/ouvidoria.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('ouvidoria@emypro.com.br', 'Emypro Site Ouvidoria - Inglês', $_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>Ombudsman</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>Contact us. We would be pleased to serve you. </p>
</blockquote>
<br>
<form method="post" action="http://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="Ouvidoria - EMYPRO">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="to" value="ouvidoria@emypro.com.br">
<small>* All fields are mandatory</small>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="form-group">
<label for="email">E-mail:</label>
<input type="text" name="from" class="form-control" required>
</div>
<div class="form-group">
<label for="phone">Phone:</label>
<input type="text" name="phone" class="form-control">
</div>
<div class="form-group">
<label for="message">Message:</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="Send">
</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