Mini Shell

Direktori : /home/emypro/www/en/
Upload File :
Current File : /home/emypro/www/en/contato-bkp-2018-06-26.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@emyprobrasil.com.br', 'Emypro Site - 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>Contact</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">&times;</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 action="" method="post">
				<small>* All fields are mandatory</small>
				<div class="form-group">
					<label for="name">Name:</label>
					<input type="text" name="name" class="form-control">
				</div>
				<div class="form-group">
					<label for="email">E-mail:</label>
					<input type="text" name="email" class="form-control">
				</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"></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