<?php
require_once('class.phpmailer.php');
require_once('config.php');
?>
<!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.0,  maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="images/favicon.ico">

    <title>MOYA TECHNOLOGIES INC</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/sticky-footer-navbar.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">
	<link href="css/dev.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <!-- Wrap all page content here -->
    <div id="wrap" class="m0 p0">

      <!-- Fixed navbar -->
      <div class="navbar navbar-default navbar-fixed-top heady" role="navigation">
        <div class="container moya_container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand pull-left" href="index.html"><img src="images/logo.png" class="logo">
			<img src="images/logo_back.png" class="logo_back"></a>
          </div>
          <div class="navbar-collapse pull-right p0">
            <ul class="nav navbar-nav social_top">
              <li class="soc1"><a href="#fb"></a></li>
              <li class="soc2"><a href="#tw"></a></li>
              <li class="soc3"><a href="#li"></a></li>
              <li class="soc4"><a href="#go"></a></li>
            </ul>
          </div><!--/.nav-collapse -->
		  <div class="collapse navbar-collapse pull-right p0">
            <ul class="nav navbar-nav">
              <li><a href="services.html">services &amp; solutions</a>
			  <div class="dropy">
				  <div class="dropy_top">
				  <h4>services &amp; solutions</h4>
				  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing.</p>
				  </div>
				  <div class="dropy_bottom">
				  <ul class="pull-left">
				  <li><a href="services.html">Our services</a></li>
				  <li><a href="partners.html">Our Partners</a></li>
				  </ul>
				  </div>
			  </div>
			  </li>
              <li><a href="federal.html">markets</a></li>
              <li><a href="about.html">about</a>
			  <div class="dropy">
				  <div class="dropy_top">
				  <h4>About</h4>
				  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing.</p>
				  </div>
				  <div class="dropy_bottom">
				  <ul class="pull-left">
				  <li><a href="about.html">Our Company</a></li>
				  <li><a href="news.html">Latest News</a></li>
				  <!-- <li><a href="publications.php">Our Publications</a></li> -->
				  </ul>
				  </div>
			  </div>
			  </li>
              <li><a href="contact.php">contact</a></li>
            </ul>
          </div>
        </div>
      </div>
	  <div class="row maps">
	 <iframe class="mappy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.in/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=2700+Prosperity+Ave+Suite+270+Fairfax,+VA+22031+&amp;aq=&amp;sll=13.138328,80.172729&amp;sspn=0.346372,0.617294&amp;ie=UTF8&amp;hq=&amp;hnear=2700+Prosperity+Ave+%23270,+Fairfax,+Virginia+22031,+United+States&amp;t=m&amp;ll=38.885488,-77.237749&amp;spn=0.023384,0.036564&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br />
	   <div class="container moya_container">
	   <div class="map_contact">
	   <p class="f24">+1.703.378.3595 </p>
	   <a href="mailto:mhaile@moyatech.com" >mhaile@moyatech.com</a>
	   </div>
	   </div>
	   </div>
      <!-- Begin page content -->
      <div class="clear"></div>
	  <div class="row conty">
	  <div class="container moya_container dis_tab int_cont p0">
	  <div class="left_container pull-left hidden-xs">
	  <div class="qcontact">
	  <ul class="social_footy">
              <li class="soc1"><a href="#fb"></a></li>
              <li class="soc2"><a href="#tw"></a></li>
              <li class="soc3"><a href="#li"></a></li>
              <li class="soc4"><a href="#go"></a></li>
            </ul>
	  </div>
	  </div>
	  <div class="right_container pull-right">
	  <h4>How can we help?</h4>
	  <p class="f16">Lorem sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	  Ut wisi enim ad minim veniam, quis nostrud</p>
	  <div class="formy">
	  <form id='contact_form' method="post" action="contact.php">
	  	<span class='val-container pull-left'>
	  		<input type="text" name='full_name' id='full_name' placeholder="Full Name*">
	  		<span class="help-block error"></span>
	  	</span>

	  	<span class='val-container pull-right clearfix'>
	  		<input type="text" name='title' id='title'  placeholder="Title*">
	  		<span class="help-block error"></span>
	  	</span>

	  	<span class='val-container pull-left'>
	  		<input type="text" name='company_name' id='company_name' placeholder="Company*">
	  		<span class="help-block error"></span>
	  	</span>

	  	<span class='val-container pull-right'>
	  		<input type="text" name='about_us' id='about_us' placeholder="How did you hear about us?">
	  		<span class="help-block"></span>
	  	</span>

	  	<span class='val-container pull-left'>
	  		<input type="text" name='email' id='email' placeholder="Email*">
	  		<span class="help-block error"></span>
	  	</span>

	  	<span class='val-container pull-right'>
	  		<input type="text" name='phone' id='phone' placeholder="Phone">
	  		<span class="help-block"></span>
	  	</span>

	  	<span class='val-container'>
	  		<textarea name='declaration' id='declaration' placeholder="Anything else to declare?"></textarea>
	  		<span class="help-block"></span>
	  	</span>

	  	<input type="submit" id='contact_form_btn' value="Send Message" class="pull-right send_msg">

	  	<?php
		  	if( isset($_POST) && !empty( $_POST ) )
		  	 {
		  		try {

					$mail = new PHPMailer(true); //New instance, with exceptions enabled



					$to = TO_MAIL;

					$mail->AddAddress($to);

					$mail->From       = $_POST['email'];

					$mail->FromName   = $_POST['full_name'];

					$mail->Subject  = $_POST['title'];

					$_POST['about_us'] = empty( $_POST['about_us'] )? 'N/A': $_POST['about_us'];
					$_POST['phone'] = empty( $_POST['phone'] )? 'N/A': $_POST['phone'];
					$_POST['declaration'] = empty( $_POST['declaration'] )? 'N/A': $_POST['declaration'];


					$body             = "<table>

					                         <tr>

											    <th colspan='2'>".$_POST['title']."</th>

											 </tr>



											 <tr>

											    <td style='font-weight:bold'>Name :</td>

												<td>".$_POST['full_name']."</td>

											 </tr>

    										<tr>
											    <td style='font-weight:bold'>Company Name :</td>
												<td>".$_POST['company_name']."</td>
											 </tr>



											 <tr>

											  <td style='font-weight:bold'>E-mail : </td>

											  <td>".$_POST['email']."</td>

											</tr>



											<tr>

											  <td style='font-weight:bold'>Phone : </td>

											  <td>".$_POST['about_us']."</td>

											</tr>

											<tr>
											  <td style='font-weight:bold'>About Us : </td>
											  <td>".$_POST['phone']."</td>
											</tr>



											<tr>

											  <td style='font-weight:bold'>Message : </td>

											  <td>".$_POST['declaration']."</td>

											</tr>

					                     <table>";

					$body             = preg_replace('/\\\\/','', $body); //Strip backslashes

					$mail->MsgHTML($body);





					$mail->IsSMTP();                           // tell the class to use SMTP

					$mail->SMTPAuth   = true;                  // enable SMTP authentication

					$mail->Port       = 25;                    // set the SMTP server port

					//$mail->Host       = "mail.yourdomain.com"; // SMTP server

					//$mail->Username   = "name@domain.com";     // SMTP server username

					//$mail->Password   = "password";            // SMTP server password



					$mail->IsSendmail();  // tell the class to use Sendmail

					$mail->AddReplyTo("mhaile@moyatech.com");

					$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

					$mail->WordWrap   = 80; // set word wrap





					$mail->IsHTML(true); // send as HTML

					$mail->Send();

					echo 'Message has been sent.';

				} catch (phpmailerException $e) {

					echo $e->errorMessage();

				}
		  	}

	  	?>
	  </form>
	  </div>
	  </div>
	  </div>
	  </div>

	<div class="clear"></div>
	<div class="row big_footy internal">
      <div class="container moya_container">
        <div class="footy_in pull-left">
		<h4>SERVICES &amp; SOLUTIONS</h4>
		<ul>
		<li><a href="services.html">Our Services</a></li>
		<li><a href="partners.html">Our Partners</a></li>
		</ul>
		</div>
		<div class="footy_in pull-left">
		<h4>ABOUT MOYA TECH</h4>
		<ul>
		<li><a href="about.html">Our Company</a></li>
		<li><a href="news.html">Latest News</a></li>
		<!-- <li><a href="publications.php">Our Publications</a></li> -->
		</ul>
		</div>
		<div class="footy_in pull-left">
		<h4>MARKETS</h4>
		<ul>
		<li><a href="federal.html">Our Contract Vehicles</a></li>
		</ul>
		</div>
		<div class="footy_in pull-left con">
		<h4>CONTACT</h4>
		<p class="m0">2700 Prosperity Ave<br>Suite 270<br>Fairfax, VA 22031 </p>
		</div>
		<div class="footy_in pull-right">
		<h4>&nbsp;</h4>
		<p class="m0">+1.703.378.3595 </p>
		<a href="mailto:mhaile@moyatech.com">mhaile@moyatech.com</a>
		<ul class="social_footy">
              <li class="soc1"><a href="#fb"></a></li>
              <li class="soc2"><a href="#tw"></a></li>
              <li class="soc3"><a href="#li"></a></li>
              <li class="soc4"><a href="#go"></a></li>
            </ul>
		</div>
      </div>
    </div>
<div class="clear"></div>
    <div id="footer" class="footy internal">
      <div class="container moya_container">
        <p>2014 &copy; <a href="#" class="moya">Moya Technologies, Inc.</a> All Rights Reserved </p>
		<ul class="p0">
			<li><span>|</span> <a href="privacy.html">Privacy Policy</a></li>
			<li><span>|</span> <a href="copyright.html">Copyright</a></li>
		</ul>
      </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/contact.js"></script>
<script>
if ($(window).width() > 768) {
$('.heady.navbar-default .navbar-nav > li').hover(function(){
  $(this).children('div.dropy').show();
},
function(){
  $(this).children('div.dropy').hide();
});
}
</script>
  </body>
</html>
