File: /home/dh_ncpy7d/beitarbeersheva.com/campaign/index.php
<?php
	session_start();
	header('Content-Type: text/html; charset=utf-8');
	$mobile = false;
	$useragent=$_SERVER['HTTP_USER_AGENT'];
	if(preg_match('/android|ipad|KFAPWI|avantgo|meego|playbook|bb10|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
	{
		$mobile = true;
	}
	If(isset($_POST['name']))
	{
		$Thanks = true;
	}
	If(isset($_GET['src']))
	{
		$leedSrc = $_GET['src'];
	}
	
	$ref=@$_SERVER[HTTP_REFERER];
?>
<!DOCTYPE html>
<html lang="en">
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <meta name="description" content="">
		<meta name="keywords" content="">
		<meta name="author" content="">
		
		<!-- Facebook Pixel Code -->
		<script>
		!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
		n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
		n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
		t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
		document,'script','https://connect.facebook.net/en_US/fbevents.js');
		fbq('init', '102964016795948');
		fbq('track', "PageView");</script>
		<noscript><img height="1" width="1" style="display:none"
		src="https://www.facebook.com/tr?id=102964016795948&ev=PageView&noscript=1"
		/></noscript>
		<!-- End Facebook Pixel Code -->
	    <title>טניס שולחן בית''ר באר שבע</title>
	    <!-- CSS -->
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<link rel="stylesheet" href="http://cdn.rawgit.com/morteza/bootstrap-rtl/master/dist/cdnjs/3.3.1/css/bootstrap-rtl.min.css"> <!-- Bootstrap RTL Support -->
		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic|Montserrat:700,400|Varela+Round">
		<!-- Font Icon -->
		<link rel="stylesheet" href="fonts/icomoon/icomoon.css">
		<!-- Swipebox -->
		<link rel="stylesheet" href="css/swipebox.css">
		<!-- Animate CSS -->
		<link rel="stylesheet" href="css/animate.min.css">
		<!-- Custom CSS -->
		<link rel="stylesheet" href="css/style-v2.css">
		<link rel="stylesheet" href="css/rtl.css"> <!-- RTL Style -->
		<link rel="stylesheet" href="css/style-responsive-v2.css">
		<link rel="stylesheet" href="css/style-responsive-rtl.css"> <!-- RTL Style Responsive -->
		<link rel="stylesheet" href="css/expandableGallery.css">
	    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	    <!--[if lt IE 9]>
	      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	    <![endif]-->
	    <script src="js/modernizr.js"></script> <!-- Modernizr -->
	    <!-- FAV AND TOUCH ICONS -->
	    <link rel="shortcut icon" href="images/favicon/favicon.ico">
	    <link rel="icon" type="image/png" href="images/favicon/favicon-32.png">
	    <!-- For iPad with high-resolution Retina display running iOS ≥ 7: -->
		<link rel="apple-touch-icon-precomposed" sizes="152x152" href="images/favicon/apple-touch-icon-152.png">
		<!-- For iPad with high-resolution Retina display running iOS ≤ 6: -->
		<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/favicon/apple-touch-icon-144.png">
		<!-- For iPhone with high-resolution Retina display running iOS ≥ 7: -->
		<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/favicon/apple-touch-icon-114.png">
		<!-- For iPad and iPad mini models with a 1× display -->
		<link rel="apple-touch-icon-precomposed" sizes="76x76" href="images/favicon/apple-touch-icon-76.png">
		<!-- For first- and second-generation iPad: -->
		<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/favicon/apple-touch-icon-72.png">
		<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
		<link rel="apple-touch-icon-precomposed" href="images/favicon/apple-touch-icon-57.png">
		<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-58952265-31', 'auto');
		  ga('send', 'pageview');
		</script>
		<!-- Facebook Pixel Code -->
		<script>
		!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
		n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
		n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
		t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
		document,'script','//connect.facebook.net/en_US/fbevents.js');
		fbq('init', '1539914282974596');
		fbq('track', "PageView");</script>
		<noscript><img height="1" width="1" style="display:none"
		src="https://www.facebook.com/tr?id=1539914282974596&ev=PageView&noscript=1"
		/></noscript>
		<!-- End Facebook Pixel Code -->
		
  	</head>
  	<body>
	  	<!--
		==========================
		== BEGIN HEADER CONTENT ==
		==========================
		-->
	  	<header id="main-header" class="the-header the-origin-header">
			<div class="container">
				<div class="row">
					<div class="col-lg-12" style="color:#FFF;">
					
					</div> <!--/ .col-lg-12 -->
				</div> <!--/ .row -->
			</div> <!--/ .container -->
	  	</header>
	  	<!--
		=========================
		==/ END HEADER CONTENT ==
		=========================
		-->
		<!--
		========================
		== BEGIN MAIN CONTENT ==
		========================
		-->
		<main id="main-content" class="hero-form-layout" style="margin-bottom: 234px;">
			<!--
			========================
			== BEGIN HERO SECTION ==
			========================
			-->
			<section id="hero" class="breaking" data-stellar-background-ratio="0.5" data-stellar-vertical-offset="50">
				<div class="hero-split-right"></div>
				<div class="container">
					<div class="vertical-center-wrapper">
						<div class="vertical-center-table">
							<div class="vertical-center-content">
								<!-- BEGIN Hero Content -->
								<div class="hero-content row">
									<div class="col-lg-6 col-md-6 col-sm-6 margin-top-40">
										<p class="lead zero-bottom text-shadow-xsmall" data-sr="enter top over 1s and move 50px wait 0.4s">בית''ר באר שבע - טניס שולחן</p>
										<h2 class="text-shadow-medium" data-sr="enter top over 1s and move 50px wait 0.3s">טניס שולחן בבאר שבע</h2>
										<div class="row">
											<div class="col-lg-10">
												<div class="embed-responsive embed-responsive-16by9" data-sr="enter bottom over 1s and move 75px">
												</div> <!--/ .embed-responsive -->
											</div>
										</div> <!--/ .row -->
									</div> <!--/ .col-lg-6 -->
									<div class="hero-form-wrapper col-lg-5 col-lg-offset-1 col-md-6 col-md-offset-0 col-sm-6 col-sm-offset-0 col-xs-10 col-xs-offset-1 centered" data-sr="over 1.25s">
										<h4 class="all-caps margin-bot-15" style="font-size:26px; font-weight: bold;">אימון ראשון חינם</h4>
										<p id="filed" style="font-size:20px;">
											מתאים לכל הגילאים (כמעט) 8-65. <br/>
											משפר קורדינאציה.<br/>
											משפר חשיבה מהירה ויכולת תגובה מהירה. <br/>
											ספורט שמתאים לכולם מחובבנים עד למקצוענים. <br/>
											עוד לא מלאתם פרטים ?<br/>
										</p>
										<p id="filed0" class="zero-bottom">
											מלאו את הפרטים ונחזור אליכם
										</p>
										<form class="register-form margin-top-32 margin-bot-5" id="register-form" method="post">
											<div class="row">
												<div class="col-lg-12 col-md-12">
													<p  id="thanks" class="zero-bottom" style="font-size: 30px; display: none;">
														<br/>
														תודה,
														נחזור
														<br/>
														<br/>
														אליכם
														בהקדם :-)
														<br/>
														<br/>
														<br/>
													</p>	
												</div>
												
												<div id="filed1" class="col-lg-12 col-md-12">
													<div class="required-field">
														<input name="heroFname" id="hero-fname" class="hero-input"  type="text" placeholder="שם מלא">
													</div> <!--/ .required-field -->
												</div>
												<div id="filed2" class="col-lg-12 col-md-12">
													<div class="required-field">
														<input name="heroEmail" id="hero-email" class="hero-input"  type="text" placeholder="דוא''ל (לא חובה)">
													</div> <!--/ .required-field -->
												</div>
												<div id="filed3" class="col-lg-8 col-md-8">
													<div class="required-field">
														<input name="heroUsername" id="hero-username" class="hero-input"  type="text" placeholder="פלאפון">
													</div> <!--/ .required-field -->
												</div>
												<div id="filed4" class="col-lg-4 col-md-4">
													<button id="hero-submit" type="submit" class="submit-btn">שלח</button>
												</div>
											</div>
											<input type="hidden" name="leedSrc" id="leedSrc" value="<?php echo $leedSrc;?>">
											<input type="hidden" name="mobile" id="mobile" value="<?php echo $mobile;?>">
											<input type="hidden" name="ref" id="ref" value="<?php echo $ref;?>">
										</form> <!--/ .register-form -->
										<p class="zero-bottom">מקווים לראות אותכם איתנו :-)</p>
									</div> <!--/ .hero-form-wrapper -->
								</div> <!--/ .row -->
								<!-- END Hero Content -->
							</div> <!--/ .vertical-center-content -->
						</div> <!--/ .vertical-center-table -->
					</div> <!-- / .vertical-center-wrapper -->
				</div> <!--/ .container -->
			</section>
			<!--
			=======================
			==/ END HERO SECTION ==
			=======================
			-->
		</main> <!--/ #main-content -->
		<!--
		=======================
		==/ END MAIN CONTENT ==
		=======================
		-->
		<!--
		==========================
		== BEGIN FOOTER CONTENT ==
		==========================
		-->
		<footer id="main-footer">
			<div class="container">
				<div class="row">
					<div class="copyright">
						<p dir="ltr">Copyright 2015 <a href="http://eransimtob.com" target="_blank">Eran Simtob</a> - All rights reserved.</p>
						
					</div> <!--/ .copyright -->
				</div> <!--/ .row -->
			</div> <!--/ .container -->
		</footer>
		<!--
		=========================
		==/ END FOOTER CONTENT ==
		=========================
		-->
		<!--
		=================================
		== BEGIN CONTACT MODAL CONTENT ==
		=================================
		-->
		<div class="contact-overlay overlay-scale">
			<a class="overlay-close">Close</a>
			<div class="container">
				<div class="row">
					<div class="contact-content col-lg-10 col-lg-offset-1 centered">
						<h2 class="all-caps"> Contact Us </h2>
						<p>Vestibulum id ligula porta felis euismod semper. Nulla vitae elit libero, a pharetra augue. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas mollis interdum!</p>
						<!-- BEGIN Contact Form -->
						<div class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3">
							<form class="contact-form" id="contact-form" method="post">
								<div class="row">
									<div class="col-lg-6 col-md-6">
										<div class="required-field">
											<input name="fname" id="fname" class="contact-input"  type="text" placeholder="First Name">
										</div> <!--/ .required-field -->
									</div> <!--/ .col-lg-6 -->
									<div class="col-lg-6 col-md-6">
										<input name="lname" id="lname" class="contact-input" type="text" placeholder="Last Name">
									</div> <!--/ .col-lg-6 -->
									<div class="col-lg-12 col-md-12">
										<div class="required-field">
											<input name="email" id="email" class="contact-input" type="email" placeholder="Email Address">
										</div> <!--/ .required-field -->
									</div> <!--/ .col-lg-12 -->
									<div class="col-lg-12 col-md-12">
										<input name="subject" id="subject" class="contact-input" type="text" placeholder="Subject">
									</div> <!--/ .col-lg-12 -->
									<div class="col-lg-12 col-md-12">
										<div class="required-field">
											<textarea name="message" id="message" rows="9" placeholder="Message"></textarea>
										</div> <!--/ .required-field -->
									</div> <!--/ .col-lg-12 -->
									<div class="col-lg-12 col-md-12 all-caps centered">
										<button id="submit" type="submit" class="submit-btn">Submit</button>
									</div> <!--/ .col-lg-12 -->
								</div>
							</form> <!--/ .contact-form -->
						</div> <!--/ .col-lg-6 -->
						<!--/ END Contact Form -->
					</div> <!--/ .contact-content -->
				</div> <!--/ .row -->
			</div> <!--/ .container -->
		</div> <!--/ .contact-overlay -->
		<!--
		================================
		==/ END CONTACT MODAL CONTENT ==
		================================
		-->
		<!--
		======================================
		== BEGIN FORM NOTIFICATIONS CONTENT ==
		======================================
		-->
		<!-- BEGIN Subscribe Form Alert/Notification -->
		<div id="subscribe-error-notification" class="notif-box">
			<span class="icon-bullhorn notif-icon"></span>
			<p>Subscribe error, please review your email address.</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #error-notification -->
		<div id="subscribe-success-notification" class="notif-box">
			<span class="icon-checkmark notif-icon"></span>
			<p>You're now subscribed, thank you!</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #success-notification -->
		<!-- END Subscribe Form Alert/Notifications -->
		<!-- BEGIN Contact Form Alert/Notifications -->
		<div id="error-notification" class="notif-box">
			<span class="icon-bullhorn notif-icon"></span>
			<p>נא למלא את כל השדות :-). תודה.</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #error-notification -->
		<div id="success-notification" class="notif-box">
			<span class="icon-checkmark notif-icon"></span>
			<p>Your message has been sent. We'll get back to you soon!</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #success-notification -->
		<!-- END Contact Form Alert/Notifications -->
		<!-- BEGIN Hero Form Alert/Notifications -->
		<div id="hero-error-notification" class="notif-box">
			<span class="icon-bullhorn notif-icon"></span>
			<p>נא למלא את כל השדות :-). תודה.</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #error-notification -->
		<div id="hero-success-notification" class="notif-box">
			<span class="icon-checkmark notif-icon"></span>
			<p>Your account details has been submitted. Please check your email for verification.</p>
			<a class="notification-close"><span class="icon-cross2"></span></a>
		</div> <!--/ #success-notification -->
		<!-- END Hero Form Alert/Notifications -->
		<!--
		=====================================
		==/ END FORM NOTIFICATIONS CONTENT ==
		=====================================
		-->
	    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
	    <!-- Latest compiled and minified JavaScript -->
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
		<!-- SmoothScroll -->
		<script src="js/minified/SmoothScroll.min.js"></script>
		<!-- Classie -->
		<script src="js/minified/classie.min.js"></script>
		<!-- One Page Nav -->
		<script src="js/minified/jquery.nav.min.js"></script>
		<!-- AjaxChimp -->
		<script src="js/minified/jquery.ajaxchimp.min.js"></script>
		<!-- Swipebox -->
		<script src="js/minified/jquery.swipebox.min.js"></script>
		<!-- Expandable Gallery on 2 Block Column -->
		<script src="js/minified/expandableGallery.min.js"></script>
		<!-- Counter Up -->
		<script src="http://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js"></script>
		<script src="js/minified/jquery.counterup.min.js"></script>
		<!-- Quicksand JS -->
		<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
		<script src="js/minified/jquery-css-transform.min.js"></script>
		<script src="js/minified/jquery-animate-css-rotate-scale.min.js"></script>
		<script src="js/minified/jquery.quicksand.min.js"></script>
		<!-- Headhesive -->
		<script src="js/minified/headhesive.min.js"></script>
		<!-- ScrollReveal -->
		<script src="js/minified/scrollReveal.min.js"></script>
		<!-- Stellar JS -->
		<script src="js/jquery.stellar.js"></script>
		<!-- Custom JS -->
		<script src="js/urip-v2.js"></script>
		<!-- Expandable Navigation Menu -->
		<script src="js/minified/expandableNav.min.js"></script>
	</body>
</html>
<script type="text/javascript">
	/*
		$("#filed").hide();
		$("#filed0").hide();
		$("#filed1").hide();
		$("#filed2").hide();
		$("#filed3").hide();
		$("#filed4").hide();
		$("#thanks").show();
	*/
	//submit form
	
	// process the form
	$(document).ready(function(){
		$("#hero-submit").click(function(){
					
			var name = $("#hero-fname").val();
			var phone = $("#hero-username").val();
			var leedSrc = $("#leedSrc").val();
			var mobile = $("#mobile").val();
			var ref = $("#ref").val();
			var email = $("#hero-email").val();
			
			//var phone = document.getElementById('phone').value;
			phone = phone.replace(/[ \\D]+/g,'');
			var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;			
			
			// chack filds
			if(name == '')
			{
				alert("נא למלא שם");
				return false;
			}
			else if(phone.length < 9 || phone.charAt(0)!=0) { // 10 digits, fist a zero
				alert("נא למלא מספר טלפון או פלאפון תקין");
				return false;
			}
			else
			{
				$("#filed").hide();
				$("#filed3").hide();
				$("#filed4").hide();
				$("#filed0").hide();
				$("#filed1").hide();
				$("#filed2").hide();				
			}
			
			// Returns successful data submission message when the entered information is stored in database.
			var dataString = 'name='+ name + '&phone='+ phone + '&leedSrc='+ leedSrc + '&mobile='+ mobile + '&ref='+ ref + '&email='+ email;
			// AJAX Code To Submit Form.
			$.ajax({
				type: "POST",
				url: "send.php",
				data: dataString,
				cache: false,
				success: function(result){
					$("#hero-error-notification").hide();
					$("#thanks").show();
				}
			});
			return false;
		});
	});
</script>