<?php

	if (isset($_POST["submit"])) {
		$name = $_POST['name'];
		$organization = $_POST['organization'];
		$email = $_POST['email'];
		$phone = $_POST['phone'];
		$subject = $_POST['subject'];
		$subject = "Innomantra Contact Form";
		$message = $_POST['message'];
		$from = '$email';
		$to = 'contact@innomantra.com';

		//$to = 'rajasekhar@designesthetics.com';

		$body ="Name: $name\n Organization: $organization\n E-Mail: $email\n Phone: $phone\n Subject: $subject\n Message: $message";
		// Check if name has been entered
		if (!$_POST['name']) {
			$errName = 'Please enter your name';
		}

		//Check if organization has been entered
		if (!$_POST['organization']) {
			$errOrganization = 'Enter your Organization name';
		}

		// Check if email has been entered and is valid
		if (!$_POST['email'] || !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
			$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
			$errEmail = 'Please enter a valid email address';
		}

		//Check if Phone number has been entered
		if (!$_POST['phone']) {
			$errPhone = 'Enter your Contact number';
		}

		//Check if subject has been entered
		if (!$_POST['subject']) {
			$errSubject = 'Enter a subject';
		}

		//Check if message has been entered
		if (!$_POST['message']) {
			$errMessage = 'Please enter your message';
		}

		// If there are no errors, send the email
		if (!$errName && !$errOrganization && !$errEmail && !$errMessage && !$errSubject) {
		if (mail ($to, $subject, $body)) {
		$result='<div class="alert alert-success">Thank You for your mail! We will get in touch with you shortly</div>';
			} else {
		$result='<div class="alert alert-danger">Sorry there was an error sending your message. Please try again later.</div>';
		}
		}
	}
?>
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Innomantra Consulting Private Limited</title>
<link href="css/reset.css" rel="stylesheet" type="text/css">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js does not 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]-->
</head>
<body>
<div class="container">
  <div class="topnav media pull-right">
    <ul class="nav navbar-right">
      <li class="active"><a href="index.html">Home</a></li>
      <li><a class="current" href="contact.php">Contact us</a></li>
      <span>
      <form class="search-sec">
        <input type="search">
        <a href="contact.html"><span class="glyphicon glyphicon-search pull-right" aria-hidden="true"></span></a>
      </form>
      </span>
    </ul>
  </div>
  <div class="clear"></div>
  <div class="col-xs-12 navbar-header">
    <nav class="mainnav col-lg-12 navbar" role="navigation">
      <button type="button" class="navbar-default navbar-toggle" data-toggle="collapse" data-target="#example-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="col-lg-4 col-md-4" href="index.html"><img class="logo" width="252" height="66" src="images/logo-innomantra.jpg" alt="Innomantra Consulting"></a>
      <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav navbar-right">
          <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">About us</a>
            <ul class="dropdown-menu">
              <li><a href="about.html">About us</a></li>
              <li><a href="profiles.html">Profiles</a></li>
              <li><a href="clients.html">Clients</a></li>
              <li><a href="social-impact.html">Social Impact</a></li>
            </ul>
          </li>
          <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Services</a>
            <ul class="dropdown-menu">
              <li><a href="innovation-3x.html">Innovation 3x</a></li>
              <li><a href="strategic-innovation.html">Strategic Innovation</a></li>
              <li><a href="CILT.html">CILT</a></li>
              <li><a href="people-innovation.html">People Innovation</a></li>
              <li><a href="functional-innovation.html">Functional Innovation</a></li>
              <li><a href="functional-innovation/design-thinking.html">Design Thinking</a></li>
              <li><a href="functional-innovation/digital-transformation.html">Digital Transformation</a></li>
              <li><a href="intellectual-property.html">Intellectual Property</a></li>
            </ul>
          </li>
          <li><a href="expertise.html">Expertise</a></li>
          <li><a href="case-studies.html">Case studies</a></li>
          <li><a href="media-centre.html">Media centre</a> </li>
          <li><a href="careers.html">Careers</a></li>
        </ul>
      </div>
    </nav>
  </div>
  <div class="clear"></div>
  <!-- Carousal starts here-->
  <div id="myCarousel" class="carousel slide media col-lg-12" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
      <li data-target="#myCarousel" data-slide-to="3"></li>
      <li data-target="#myCarousel" data-slide-to="4"></li>
      <li data-target="#myCarousel" data-slide-to="5"></li>
      <li data-target="#myCarousel" data-slide-to="6"></li>
    </ol>
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
      <div class="item active"> <img src="images/slider/01.jpg" alt="" width="100%" height="100%"> </div>
      <div class="item"> <img src="images/slider/02.jpg" alt="" width="100%" height="100%"> </div>
      <div class="item"> <img src="images/slider/03.jpg" alt="" width="100%" height="100%"> </div>
      <div class="item"><a href="functional-innovation/design-thinking.html"><img src="images/slider/06.jpg" alt="" width="100%" height="100%"></a></div>
      <div class="item"><a href="functional-innovation/digital-transformation.html"><img src="images/slider/07.jpg" alt="" width="100%" height="100%"></a></div>
      <div class="item"><img src="images/slider/04.jpg" alt="" width="100%" height="100%"></div>
      <div class="item"><img src="images/slider/05.jpg" alt="" width="100%" height="100%"></div>
      <div class="item"><img src="images/slider/09.jpg" alt="" width="100%" height="100%"></div>
    </div>

    <!-- Left and right controls -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
  <!-- Carousel ends here -->
  <div class="col-lg-12 col-md-12 col-sm-12">
    <h3>Contact Us</h3>
  </div>
  <div class="col-lg-5 col-md-12 col-sm-12 media">
    <form class="form-horizontal" role="form" method="post" action="contact.php">
      <div class="form-group">
        <label for="name" class="col-sm-12 control-label">Name <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <input type="text" class="form-control" id="name" name="name" placeholder="Enter your name" value="<?php echo htmlspecialchars($_POST['name']); ?>">
          <?php echo "<p class='text-danger'>$errName</p>";?> </div>
      </div>
      <div class="form-group">
        <label for="name" class="col-sm-12 control-label">Organization <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <input type="text" class="form-control" id="organization" name="organization" placeholder="Enter your Organization name" value="<?php echo htmlspecialchars($_POST['organization']); ?>">
          <?php echo "<p class='text-danger'>$errOrganization</p>";?> </div>
      </div>
      <div class="form-group">
        <label for="email" class="col-sm-12 control-label">Email <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <input type="email" class="form-control" id="email" name="email" placeholder="Enter your email address" value="<?php echo htmlspecialchars($_POST['email']); ?>">
          <?php echo "<p class='text-danger'>$errEmail</p>";?> </div>
      </div>
      <div class="form-group">
        <label for="phone" class="col-sm-12 control-label">Phone <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <input type="number" class="form-control" id="phone" name="phone" placeholder="Enter your contact number" minlength="10" value="<?php echo htmlspecialchars($_POST['phone']); ?>">
          <?php echo "<p class='text-danger'>$errPhone</p>";?> </div>
      </div>
      <div class="form-group">
        <label for="subject" class="col-sm-12 control-label">Subject <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <input type="text" class="form-control" id="subject" name="subject" placeholder="Enter a subject" value="<?php echo htmlspecialchars($_POST['subject']); ?>">
          <?php echo "<p class='text-danger'>$errSubject</p>";?> </div>
      </div>
      <div class="form-group">
        <label for="message" class="col-sm-12 control-label">Message <span class="mandatory">*</span></label>
        <div class="col-sm-12">
          <textarea class="form-control" rows="4" name="message" style="resize:none;"><?php echo htmlspecialchars($_POST['message']);?></textarea>
          <?php echo "<p class='text-danger'>$errMessage</p>";?> </div>
      </div>
      <div class="form-group">
        <div class="col-sm-5">
          <input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary btn-block">
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10 col-sm-offset-2"> <?php echo $result; ?> </div>
      </div>
    </form>
  </div>
  <div class="col-lg-7">
    <h4>Innomantra Consulting Private Limited </h4>
    <div class="col-lg-6 col-md-3 col-sm-3">
      <h5 class="media">Bengaluru</h5>
      <p><strong>Head office:</strong><br> Level 9, Raheja Towers | M.G. Road, <br>
        Bengaluru - 560 001, India </p>
      <p><strong>Landline:</strong> +91 80 4125 3444 <br>
        <strong>Mobile:</strong> +91 98452 72555</p>
      <p><strong>Email:</strong> <a href="mailto:contact@innomantra.com"> contact@innomantra.com</a></p>
    </div>
    <div class="col-lg-6 col-md-3 col-sm-3">
      <h5 class="media">Mysuru</h5>
      <p><strong>Regd Office:</strong><br> 204, 'Faraday Labs' | Level 2 | 1<sup>st</sup> Main,<br>
        1<sup>st</sup> Cross | Brindavan Extension I 2<sup>nd</sup> Stage,<br>
        Mysuru - 570 020, India</p>
      <p><strong>Landline:</strong> +91 821 241 4556 <br>
        <strong>Mobile:</strong> +91 9342119667</p>
      <p><strong>Email:</strong> <a href="mailto:contact@innomantra.com"> contact@innomantra.com</a></p>
    </div>
    <hr>
    <div class="col-lg-6 col-md-3 col-sm-3">
      <h5 class="media">Zurich</h5>
      <p>Rutistrasse 15, Adliswil,<br>
        Zurich,​ Switzerland 8134</p>
      <p><strong>Landline:</strong> 41 445364268 <br>
      <strong>Mobile:</strong> +41 764267269</p>
      <p><strong>Email:</strong> <a href="mailto:innovate@innomantra.com​">innovate@innomantra.com​</a></p>
    </div>
    <div class="col-lg-6 col-md-3 col-sm-3">
      <h5 class="media">Colombo</h5>
      <p>18A,'Nicola Tesla Labs', Lane 17,<br>
        Colombo - 00300, Sri Lanka</p>
      <p><strong>Landline:</strong> +94 11 2394666<br>
      <strong>Mobile:</strong> +94 714483923</p>
      <p><strong>Email:</strong> <a href="mailto:contact@innomantra.com​">contact@innomantra.com​</a></p>
    </div>
		<hr>
    <div class="col-lg-6 col-md-3 col-sm-3">
      <h5 class="media">USA</h5>
      <p>905 Academy Lane,<br>
        West Chicago, IL – 60185, USA</p>
      <p><strong>Mobile:</strong> +1 847-532-9651</p>
      <p><strong>Email:</strong> <a href="mailto:contact@innomantra.com​">contact@innomantra.com​</a></p>
    </div>
  </div>
  <!-- main content ends here-->
  <div class="clear"></div>
  <hr style="border-color:#008796; margin:30px 0px 10px 0px;">
  <footer>
    <div class="col-md-12 col-lg-12 col-sm-12">
      <ul class="nav navbar-nav">
        <li><a href="privacy.html">Privacy</a></li>
        <li><a href="terms-of-use.html">Terms of Use</a></li>
        <li><a href="#">Sitemap</a></li>
        <li><a href="index.html">Innomantra.com</a></li>
        <li><a href="contact.php">ContactUs</a></li>
      </ul>
      <ul class="nav social-media">
        <li><a href="https://www.facebook.com/InnomantraConsulting" target="_blank"><img src="images/fb-icon.png" alt="Innomantra - Facebook"></a></li>
        <li><a href="https://twitter.com/innomantra" target="_blank"><img src="images/twtr-icon.png" alt="Innomantra - Twitter"></a></li>
        <li><a href="https://www.linkedin.com/company/515897?trk=tyah&trkInfo=clickedVertical%3Acompany%2Cidx%3A1-1-1%2CtarId%3A1434785624409%2Ctas%3AInnomantra" target="_blank"><img src="images/lnkd-in-icon.png" alt="Innomantra - Linked In"></a></li>
      </ul>
    </div>
    <!--/.nav-collapse -->
    <div class="clear"></div>
    <div class="col-lg-12 media">
      <p class="copyright">Copyright &copy; 2015, Innomantra Consulting Private Limited</p>
    </div>
  </footer>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>

<!-- Live Chat code -->
<script type="text/javascript"> var $zoho=$zoho || {};$zoho.salesiq = $zoho.salesiq || {widgetcode:"6efa609e869687f67e7fd4cc0244bfd65a373a3c72abc9db935409e52b965c47", values:{},ready:function(){}}; var d=document;s=d.createElement("script");s.type="text/javascript";s.id="zsiqscript";s.defer=true; s.src="https://salesiq.zoho.com/widget";t=d.getElementsByTagName("script")[0];t.parentNode.insertBefore(s,t);d.write("<div id='zsiqwidget'></div>"); </script>
<!--./ Live Chat code -->
</body>
</html>
