
PK 
<head>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDfVwyehLRRggxOwZW6t3YiY0hPMhJpkdM&libraries=places&sensor=false"></script>
<script src="http://www.google.com/recaptcha/api.js"></script>
</head>
<?php
session_start();
include('header.php');
if(isset($_POST['submit']))
{
date_default_timezone_set("Asia/Calcutta");
$current_date=date("Y-m-d");
$name=$_POST['name'];
$email=$_POST['email'];
$message=$_POST['message'];
$sql="INSERT into jeff_contactform (name,email,comments,contactdate,status) values ('".$name."','".$email."','".$message."','".$current_date."','1')";
/*mysqli_query($conn,$sql)
$email_to='jeffharrismusic@aol.com';
$subject="$name want to contact You";
$headers .="MIME-Version: 1.0\r\n";
$headers .='content-type:text/html; charset=iso-8859-1\r\n'.PHP_EOL;
$headers .="X-Priority: 3".PHP_EOL;
$headers .="X-MSMail-Priority: High".PHP_EOL;
$headers .='From:'.$email."\r\n";
$formcontent ='<table cellspacing="0" style="width:300px;height:200px;">
<tr>
<th>Name:</th><td> '.$name.'</td>
</tr>
<tr style="background-color: #e0e0e0;">
<th>Email:</th><td> '.$email.'</td>
</tr>
<tr>
<th>Message:</th><td> '.$message.'</td>
</tr>
</table>';
@mail($email_to,$subject,$formcontent,$headers,'-finfo@vettritech.com');
$subject1="Thanks For Contact Us";
$headers1 .="MIME-Version : 1.0\r\n";
$headers1 .="X-Priority: 3".PHP_EOL;
$headers1 .="X-MSMail-Priority:High".PHP_EOL;
$headers1 .='From:'.$email_to."\r\n";
$formcontent1='<table cellspacing="0" style="width:300px;height:200px;">
<p style="color:green;font-size:25px;text-align:center;"> Thanks For Contact Us// we Will Contact You Soon</p>
</table>';
@mail($email,$subject1,$formcontent1,$headers1,'-finfo@vettritech.com');
*/
$result=mysqli_query($conn,$sql);
echo "<script>window.location='contact.php?msg=success';</script>";
}
?>
<script>
function validation()
{
if(document.contactform.name.value=="")
{
document.getElementById("error_message").innerHTML='<p style="color:red">Enter Your Name</p>';
contactform.name.focus();
return false;
}
else
{
document.getElementById("error_message").innerHTML='<span><font color:"#FF0000"></font></span>';
}
if(document.contactform.email.value=="")
{
document.getElementById("error_message").innerHTML='<p style="color:red">Enter Your Email</p>';
contactform.email.focus();
return false;
}
else
{
document.getElementById("error_message").innerHTML='<span0<font color:"#FF0000"></font>></span>';
}
if(document.contactform.message.value=="")
{
document.getElementById("error_message").innerHTML='<p style="color:red">Enter Message</p>';
contactform.message.focus();
return false;
}
else
{
document.getElementById("error_message").innerHTML='<span><font color:"#FF0000"></font></span>'
}
return true;
}
</script>
<div id="ajaxArea">
<div class="pageContentArea">
<!--=================================
bread crums
=================================-->
<div class="clearfix"></div>
<!--=================================
videos
=================================-->
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-9 col-md-9 col-sm-9">
<!--<div id="google-map" class="xv-gmap contact-map" data-theme="pink" data-address="Key West, Florida 33040, USA" data-zoomlvl="13" data-maptype="HYBRID"></div><br>-->
<iframe width="700" height="350" id="gmap_canvas" src="https://maps.google.com/maps?q=Key West, Florida 33040, USA.&t=k&z=19&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" style="padding-top:15px;"></iframe>
<br>
<div id="error_message" style="font-size:14px;text-align:center;font-weight:600; color: #e62948;"></div>
<form name="contactform" action="" method="POST" onsubmit="return validation();">
<div class="row">
<div class="col-lg-5 col-md-5 col-sm-5">
<h5>Name :</h5>
<input type="text" id="name" name="name" />
</div>
<div class="col-lg-5 col-md-5 col-sm-5">
<h5>E-Mail :</h5>
<input type="text" name="email" id="email" />
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h5>Subject :</h5>
<textarea name="message" id="message"></textarea>
</div>
</div><br/>
<div class="g-recaptcha" data-sitekey="6LcgmZsjAAAAAAxZnH9iD5VuuFStSMk38I7A4NZr"></div>
<!--<button id="submit1" type="submit" name="submit" value="submit">Submit</button>-->
<button type="submit" id="submit1" name="submit">Submit</button>
</form>
<br>
</div>
<?php
$query="select * from jeff_settings where id='1'";
$db=mysqli_query($conn,$query);
$row=mysqli_fetch_array($db);
?>
<div class="col-lg-3 col-md-3 col-sm-3">
<h3>Contact info:</h3>
<i class="fa fa-mobile-phone" style="padding-left:4px;"></i>
<p><?php echo $row['address']; ?></p>
<b class=" fa fa-envelope"></b>
<p><?php echo $row['email']; ?></p>
</div>
</div><!--row-->
</div><!--//container-->
</section>
</div><!--pageContent-->
</div><!--ajaxwrap-->
<?php
include('footer.php');
?>


PK 99