<?php
include"initialize_page.php";
include"systemfunctions.php";
$redirect_url=$website_url."user/welcome.php";
	     $test_q=mysqli_query($con,"SELECT * FROM x_fundtransfer WHERE x_userid='$user_id' and x_trtype='local' and x_step='step4' ORDER by x_id DESC");
	  $test_row=mysqli_num_rows($test_q);
	       if($test_row==0)
		     {
				 
			//header("location:$redirect_url");	 
			echo "<script>window.location ='" . $redirect_url . "';</script>";
			
				exit();
			 }
			 else
			 {
				 $test_array=mysqli_fetch_array($test_q);
				 
				 
				 //test for time
				 $test_id=$test_array['x_id'];

?>
<?php include('resources/header.php') ?>
	<title>Anti-Terrorism Code</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
<?php include('resources/css-file.php') ?>
<?php include('resources/navigation.php') ?> 
<!-- Dashboard wrapper starts -->
<div class="dashboard-wrapper">
	<div class="main-container">				
		<div class="row">
			<div class="col-sm-12 ac-summ">
				<h2>Anti-Terrorism Code</h2>
			</div>
		</div>
		<div class="row gutter">
			<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
				<ul class="boxli">
				<li>
					<h4>Anti-Terrorism Code</h4>
					  <p>Under Switzerland

 Patriot Act, if any one wants to send more than a certain amount of money to or from Switzerland

, the bank located in Switzerland

 is required to search the names of the parties to the transaction in a database set up by Switzerland

 government of persons that Switzerland

 believes may be involved in terrorist activities. If any of the names appear on the list, the bank is required to notify the FBI and Switzerland

 Department of Homeland Security.</p>
					  <p>If the names are XXXXX XXXXX issue a notice to the other bank that is party to the transaction outside of Switzerland

 that the transaction is acceptable under the Patriot Act.</p>
					<div class="panel">
						<div class="panel-heading">
							<h4>Transfer Funds</h4>
						</div>
						<div class="panel-body">
							<label>Anti-Terrorist Code</label>
							 <form method="post" action="" id="local4form">           
								<div class="form-group">
									 <input type="hidden" name="q" class="form-control" value="validate_step_local4">
                           <input type="hidden" name="id" class="form-control" value="<?php  echo $test_id;  ?>">
                           <input type="text" required placeholder="" class="form-control" name="pinopin">
                           </div>
                           <div class="form-group">
                           <input type="submit" value="Validate Anti-Terrorist Code" class="buttonacvali btn btn-info">
								</div>
							</form>
						</div>
					</div>
				</li>
				</ul>	
			</div>
		</div>	
		</br>
	</div>
	<!-- Main container ends -->
</div>
<!-- Dashboard wrapper ends -->
<?php include('resources/footer.php') ?>
<?php include('resources/js-file.php') ?>
<script src="js/jQuery.style.switcher.js"></script>
<script type="text/javascript">
	 $(document).ready(function() {
    $("#local4form").on('submit',(function(e) {
e.preventDefault();

$.ajax({
url: "controller.php", // Url to which the request is send
type: "POST",             // Type of request to be send, called as method
data: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. form fields and values)
contentType: false,       // The content type used when sending data to the server.
cache: false,             // To unable request pages to be cached
processData:false,        // To send DOMDocument or non processed data file it is set to false
success: function(data)   // A function to be called if request succeeds
{
	//alert(data);
	if(data==0)
	{
		alert("Please fill all fields...");
	}
	if(data==1)
	{
		//alert("Validated Successfully..");
		window.location.href='<?php  echo website_settingdata('x_weburl'); ?>user/process.php?url=local5.php';
	}
	if(data==2)
	{
	alert("Invalid Code..");	
	}
	
}
});
}));
});
	
	</script>

<?php
			 }
			 ?>
