<!DOCTYPE html>
<html lang="en">

	<head>

		<meta charset="utf-8">
		<title>Homlokzati hőszigetelés - Professzionális hőszigetelés, garanciával</title>
		<meta name="author" content="Pro Carpenter">
		<meta name="description" content="Hőszigetelt, újraszínezett ház akár egy héten belüli kezdéssel, választható homlokzati hőszigetelő rendszerrel és garanciával.">	

		<!-- Mobile Specific Metas -->
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">			
		   
		<!-- Libs CSS -->
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
		<link href="css/tomato.css" rel="stylesheet">
		<!-- Favicons -->	
		<link rel="shortcut icon" href="img/icons/favicon.ico">
		<link rel="apple-touch-icon" sizes="144x144" href="img/icons/apple-touch-icon-144x144.png">
		<link rel="apple-touch-icon" sizes="114x114" href="img/icons/apple-touch-icon-114x114.png">
		<link rel="apple-touch-icon" sizes="72x72" href="img/icons/apple-touch-icon-72x72.png">
		<link rel="apple-touch-icon" href="img/icons/apple-touch-icon.png">
			
		<!-- Google Fonts -->	
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300italic,800italic,800,700italic,700,600italic,600,400italic,300' rel='stylesheet' type='text/css'>
		<link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>	
		
	</head>

	<body>
	
		<div id="contentForm">

	<div id="contentForm">

			<?php
			//header('Content-Type: text/html; charset=utf-8');

			if(isset($_POST['email']) && isset($_POST['phone']) && ($_POST['phone']!='') && isset($_POST['helyszin']) && isset($_POST['uzenet'])  ) {
				 
					 
				// EDIT THE 2 LINES BELOW AS REQUIRED
				 
				$email_to = "info@hoszigeteles.co";
				 
				$email_subject = "Hőszigetelés érdeklődés";
				 
				   
				$first_name = $_POST['first_name']; // required 
				$email_from = $_POST['email']; // required
				$phone = $_POST['phone']; // required
				 
				$helyszin = $_POST['helyszin']; // required
				$uzenet = $_POST['uzenet']; // required
				 
				$email_message = "Visszahívni a következő adatokkal:.\n\n";
				 
					
				function clean_string($string) {
					$bad = array("content-type","bcc:","to:","cc:","href");
					return str_replace($bad,"",$string);
				}
				 
				 
				$email_message .= "Név: ".clean_string($first_name)."\n";
				$email_message .= "Email cím: ".clean_string($email_from)."\n";
				$email_message .= "Telefonszám: ".clean_string($phone)."\n";
				$email_message .= "Helyszín: ".clean_string($helyszin)."\n";
				$email_message .= "Üzenet: ".clean_string($uzenet)."\n";
				 
					 
				// create email headers
				 
				$headers = 'From: '.$email_from."\r\n".
				 
				'Reply-To: '.$email_from."\r\n" .
				 
				'X-Mailer: PHP/' . phpversion();
				 
				@mail($email_to, $email_subject, $email_message, $headers); 
				 
				?>
				 
				<!-- Message sent! (change the text below as you wish)-->
				<div class="container">
					<div class="row">
						<div class="col-sm-6 col-sm-offset-3">
							<div id="form_response" class="text-center">
								<img class="img-responsive" src="img/thumbs/mail_sent.png" alt="image" />
								<h1>Köszönjük!</h1>
								<p>Kollegáink egy munkanapon belül keresni fogják!</p>
								<a class="btn btn-theme" href="/">Vissza az oldalra</a>
							</div>
						</div>	
					</div>					
				</div>
				 <!--End Message Sent-->

				<?php
				 
				}

				?>

		</div>
			<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-70811958-5', 'auto');
  ga('send', 'pageview');

</script>
        
	</body>

</html>