<?php

$msg1="";
$msg2="";

if(isset($_POST['submit']))
{					
		$name = $_POST['fullname'];
		$comp_name = $_POST['companyname'];
		$address = $_POST['address'];
		if(strlen($_POST['website'])!=0)
		     $website = $_POST['website'];
		else
			$website = "--------";
		$email = $_POST['email'];
		$contact = $_POST['contact'];
		$message = $_POST['message'];
		$recaptcha=$_POST['g-recaptcha-response'];
		
		if($name=='')
		{
		  $msg1="Please enter the name";
		}
		elseif($email=='') 
		{
		  $msg1="please enter the email id"; 
		}
		else
		{
		   if(!empty($recaptcha))
		   {
					include("getCurlData.php");
					$google_url="https://www.google.com/recaptcha/api/siteverify";
					$secret='6LcPHRUTAAAAAKBpcMtonCfYXJAtONIzsxbqDkD0'; // Secrete key
					$ip=$_SERVER['REMOTE_ADDR'];
					$url=$google_url."?secret=".$secret."&response=".$recaptcha."&remoteip=".$ip;
					$res=getCurlData($url);
					$res= json_decode($res, true);
					if($res['success'])
					{	
					   
					$message_body = '<html><body>';
					$message_body .= '<h3>Contact Details :</h3><table rules="all" style="border:1px solid #000000;" cellpadding="10">';
					$message_body .= "<tr style='background: #eee;'><td colspan='2'><strong>Contact Information Details :</strong> </td></tr>";
					$message_body .= "<tr><td><strong>Name:</strong> </td><td>" .$name. "</td></tr>";
					$message_body .= "<tr><td><strong>Company Name:</strong> </td><td>" .$comp_name. "</td></tr>";
					$message_body .= "<tr><td><strong>Address:</strong> </td><td>" .$address. "</td></tr>";
					$message_body .= "<tr><td><strong>Contact No.:</strong> </td><td>" .$contact. "</td></tr>";
					$message_body .= "<tr><td><strong>Email Id:</strong> </td><td>" .$email. "</td></tr>";
					$message_body .= "<tr><td><strong>Website:</strong> </td><td>" .$website. "</td></tr>";
					$message_body .= "<tr><td><strong>Message:</strong> </td><td>" .$message. "</td></tr>";
					$message_body .= "</table>";
					$message_body .= "</body></html>";
					
					$to="suryatechnocrats@gmail.com";
					//$to="anils@omwebsolution.com";
					$from="info@suryatechnocrats.com";
					$bcc="sales@dotphi.com";
					
					$subject = 'Generate Enquiry for Surya Technocrats';
					
					$headers = "From: " . $from . "\r\n";
					$headers .= "Bcc: ".$bcc . "\r\n"; 
					//$headers .= "Reply-To: ". strip_tags($_POST['req-email']) . "\r\n";
					$headers .= "MIME-Version: 1.0\r\n";
					$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
					
					mail($to, $subject, $message_body, $headers);
					$msg2="Thank you for contacting us";
					
				// -------------------------------Replay ---------------------------------
					$subject_replay="Thank you for getting in touch!  Surya techno-Crats ";

    				$body_replay = "Dear ".$name." \n\tWe have received your message and would like to thank you for writing to us.  \n".
                    "If your inquiry is urgent, please use the telephone number, to talk to one of our staff members. \n".
                    "Otherwise, we will reply by email shortly. \n\n".
					"\tTalk to you soon, \n".
					"\tSurya techno-Crats \n\n".
                   
                    $header_replay ="From: ".$from."\r\n" ;
					//$headers ="From: " .$_POST['from']. "\r\n" .
					//Cc: sales@dotphi.com'. "\r\n" .
			 
					   'MIME-Version: 1.0\r\n' .
					   'Content-Type: text/html; charset=ISO-8859-1\r\n' .
					   'X-Mailer: PHP/' . phpversion();
						mail($email,$subject_replay,$body_replay,$header_replay);	
					
					
					
				}
				else{
				 echo 'mail could not send';
				}
		
		   }else{
			$msg1="Please re-enter your reCAPTCHA.";
		   }
		 }
}
?>

<!doctype html>
<!--[if IE 7 ]>    <html lang="en-gb" class="isie ie7 oldie no-js"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en-gb" class="isie ie8 oldie no-js"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en-gb" class="isie ie9 no-js"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en-gb" class="no-js"> <!--<![endif]-->

<head>
    <title>Equiry - Surya Technocrats</title>
    <meta charset="utf-8">
    <meta name="keywords" content="Water Based Inks, Water Based Inks Manufacturers, Ruling Inks, Ruling Inks Manufacturers, Marking Inks, Marking Inks Manufacturers, Water Based Varnishes, Water Based Varnishes Manufacturers, Paints Inks Manufacturers, Water Repellent Coatings, Water Repellent Coatings Manufacturers" />
    <meta name="description" content="We are manufacturing of Water Based Inks, Ruling Inks, Marking Inks, Water Based Varnishes, Paints, Water Repellent Coatings is widely used in packaging, stationary, pharmaceutical, Abrasive, paper and food packaging industries." />
    <!-- Favicon -->
    <!--<link rel="shortcut icon" href="images/favicon.ico">-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- Google fonts - witch you want to use - (rest you can just remove) -->
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,800,700italic,700,600italic,600,400italic,300italic,300|Roboto:100,300,400,500,700&amp;subset=latin,latin-ext" type="text/css" />
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- ######### CSS STYLES ######### -->
    <link rel="stylesheet" href="css/reset.css" type="text/css" />
    <link rel="stylesheet" href="css/style.css" type="text/css" />
    <link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">
    <!-- responsive devices styles -->
    <link rel="stylesheet" media="screen" href="css/responsive-leyouts.css" type="text/css" />
    <!-- sticky menu -->
    <link rel="stylesheet" href="js/sticky-menu/core.css">
    <!-- REVOLUTION SLIDER -->
    <link rel="stylesheet" type="text/css" href="js/revolutionslider/rs-plugin/css/settings.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="js/revolutionslider/css/slider_main.css" media="screen" />
    <!-- jquery jcarousel -->
    <link rel="stylesheet" type="text/css" href="js/jcarousel/skin3.css" />
    <!-- faqs -->
    <link rel="stylesheet" href="js/accordion/accordion.css" type="text/css" media="all">
	  <!-- captcha -->
	<script src='https://www.google.com/recaptcha/api.js'></script>

	<!-- HEADER -->
		<?php include("header.php"); ?>
	<!-- end header -->
	
<div class="clearfix"></div>

<div class="page_title">

	<div class="container">
		<div class="title"><h1>Enquiry</h1></div>
        <div class="pagenation">&nbsp;<a href="index.html">Home</a> <i>/</i> <a href="#">Pages</a> <i>/</i> Enquiry</div>
	</div>
</div><!-- end page title --> 


<!-- Contant
======================================= -->

<div class="container">

	<div class="content_fullwidth">
        	
    <div class="one_half">
        

    <!--<p>Feel free to talk to our online representative at any time you please using our Live Chat system on our website or one of the below instant messaging programs.</p>
    <br />
    <p>Please be patient while waiting for response. (24/7 Support!)
    <strong>Phone General Inquiries: 1-888-123-4567-8900</strong></p>

    <br />-->
    <h3>Enquiry <strong>Form</strong></h3>
   <p><?php  if($msg1!=''){echo '<span style="color:red; font-size:20px;">'.$msg1.'</span>';}elseif($msg2!=''){echo '<span style="color:green; font-size:20px;">' .$msg2. '</span>';}?></p>
    <form action="" method="post">
    
        <fieldset>
        
                
        <label for="name" class="blocklabel">Full Name*</label>
        <p class="" ><input name="fullname" class="input_bg"  type="text" id="name" value="" pattern="[a-z A-Z,.]+" required/></p>
        
        <label for="name" class="blocklabel">Company Name</label>
        <p class="" ><input name="companyname" class="input_bg" type="text" id="company" value="" /></p>
        
        <label for="message" class="blocklabel">Address*</label>
        <p class=""><textarea name="address" class="textarea_bg" id="address" cols="20" rows="4" required ></textarea></p>
        
        <label for="email" class="blocklabel">Website</label>
        <p class="" ><input name="website" class="input_bg" type="text" id="website" value="" /></p>
        
        <label for="email" class="blocklabel">E-Mail*</label>
        <p class="" ><input name="email" class="input_bg" type="email" id="email" value="" required/></p>
        
        <label for="website" class="blocklabel">Contact No.*</label>
        <p><input name="contact" class="input_bg" type="text" pattern="[0-9]+" id="contact" value="" required/></p>
        
        <label for="message" class="blocklabel">Enquiry Details*</label>
        <p class=""><textarea name="message" class="textarea_bg" id="message" cols="20" rows="4" required></textarea></p>
        
        <div class="clearfix"></div> <!-- Site key: 6LcPHRUTAAAAAD9mi3qJeG3fM7ZzEBKRtfJ8fW5v
									Secret key: 6LcPHRUTAAAAAKBpcMtonCfYXJAtONIzsxbqDkD0 -->
		<div class="g-recaptcha" data-sitekey="6LcPHRUTAAAAAD9mi3qJeG3fM7ZzEBKRtfJ8fW5v"></div>
        <div class="clearfix"></div><br/>
        <p>
        <input name="submit" type="submit" value="SUBMIT" class="comment_submit" id="send"/> 
        <input name="reset" type="reset" value="Reset" class="comment_submit" id="reset"/></p>
                
        </fieldset>
        
        </form> 
    
    </div>
               
    <div class="one_half last">
        <h3>Address <strong>Info</strong></h3>
        <div class="address-info">
            <h3><strong>Factory</strong></h3>
                <ul>
                <li>
                <strong> Mr. Rajendra Sonawane</strong><br />
                M-78, Additional Industrial Area,<br />
                MIDC Ambad, Nashik,<br />
                Maharashtra-422010, India.<br />
                Mobile/Cell : +91 - 9422284754<br />
                E-mail: <a href="mailto:suryatechnocrats@gmail.com ">suryatechnocrats@gmail.com</a>
                </li>
            </ul>
        </div>

         <h3>Find the <strong>Address</strong></h3>
            <iframe class="google-map" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d10607.445594157332!2d73.74082369733671!3d19.953951178721532!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bddecafb71b21c9%3A0xa6dab4828bb274df!2sMIDC+Ambad%2C+Nashik%2C+Maharashtra!5e0!3m2!1sen!2sin!4v1439469194945"></iframe><br /><small><a href="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d10607.445594157332!2d73.74082369733671!3d19.953951178721532!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bddecafb71b21c9%3A0xa6dab4828bb274df!2sMIDC+Ambad%2C+Nashik%2C+Maharashtra!5e0!3m2!1sen!2sin!4v1439469194945" target="_blank">View Larger Map</a></small>
        
    </div>
            
</div>

</div><!-- end content area -->


<div class="clearfix mar_top5"></div>

    <div class="clearfix"></div>
    <div class="joosa punch_text03">
      <div class="container">
        <div class="right_img">
          <b>We're focused on maintaining the highest quality standards <em>to meet the demands for environmentally-safe inks and coatings, and for today's fast-moving process...</em></b><br />
          <a href="#" class="pur_link"><i class="fa fa-location-arrow"></i>&nbsp; Get a Quote Now !!!</a>
        </div>
      </div>
    </div>
    <div class="clearfix"></div>
    <div class="joosa bottom_section contact_info">
      <div class="container">
        <div class="one_half">
          <h1>Get in Touch With Us
            <i>If you prefer to contact us, just direct message or contact info below.</i>
          </h1>
          <div class="clearfix"></div>
          <div class="one_full">
            <div class="one_half">
              <ul class="address">
                <li><i class="fa fa-map-marker fa-lg"></i>Mr. Rajendra Sonawane<br>Banglow No. 5, Arunoday Society, Near Charwak Chowk, Indira Nagar, Nashik, MH - 422 009, India</li>
                <li class="last"><i class="fa fa-envelope"></i> <a href="mailto:gsrthemes9@gmail.com">info@suryatechnocrates.com</a></li>
                <li><i class="fa fa-phone"></i> +91 - 253 - 2326207</li>
                <li class="last"><i class="fa fa-mobile"></i> +91 - 9422284754</li>
              </ul>
            </div>
            <div class="one_half last">
              <div class="map">
                <iframe frameborder="0" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d6306.424387896421!2d73.7807966115897!3d19.973970855548906!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bddeb3cbd130937%3A0x120b125521b9162b!2sCharvak+Chowk+Bus+Station%2C+Indira+Nagar%2C+Nashik%2C+Maharashtra+422009!5e0!3m2!1sen!2sin!4v1441884738657" marginwidth="0" marginheight="0" scrolling="no" class="google-map"></iframe>
              </div>
            </div>
          </div>
        </div>
        <div class="one_half last">
          <h1>Helpful Links
            <i>Check out what our Clients says about us</i>
          </h1>
          <div class="testimonials">
            <!--<div class="people_says">
              <ul id="mycarousel" class="jcarousel-skin-tango">
                <li>
                  <div class="picture"><img src="images/people1.png" alt="People img01" /></div>
                  <div class="who_pic">
                    <p>"There are many variations of passages lorem Ipsum available but the majority suffered alteration in some form by injected they humo rando smised  you need tobes long establishe readeas."</p>
                    <div class="name"><strong>- Clients Name</strong> <i>custmer</i></div>  
                  </div>
                </li>
                <li>
                  <div class="picture"><img src="images/people2.png" alt="People img02" /></div>
                  <div class="who_pic">
                    <p>" There are many variations of passages lorem Ipsum available but the majority suffered alteration in some form by injected they humo rando smised  you need tobes long establishe readeas."</p>
                    <div class="name"><strong>- Clients Name</strong> <i>custmer</i></div>  
                  </div>
                </li>
                <li>
                  <div class="picture"><img src="images/people3.png" alt="People img03" /></div>
                    <div class="who_pic">
                    <p>" There are many variations of passages lorem Ipsum available but the majority suffered alteration in some form by injected they humo rando smised  you need tobes long establishe readeas."</p>
                    <div class="name"><strong>- Clients Name</strong> <i>custmer</i></div>  
                  </div>
                </li>
              </ul>
            </div>-->
            <ul class="list_empty">
              <li><a class="but_wifi" target="_blank" href="http://www.cal-print.com/InkColorChart.htm">PMS Colors For Printing Labels</a></li>
              <li><a class="but_wifi" target="_blank" href="http://www.pantone-colours.com">PANTONE® Colours</a></li>
              <li><a class="but_wifi" target="_blank" href="http://www.nwreinc.com/PMS_Color_Chart.pdf">Panton Color Chart</a></li>
              <li><a class="but_wifi" target="_blank" href="http://it.labelpartners.com/pantone_coated_table.html">All Pantone C colors with HEX & RGB codes</a></li>
              <li><a class="but_wifi" target="_blank" href="http://artdudecreative.com/pms">Color Matching System</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
     <?php include("footer.php"); ?>
