<?php include('admin/db.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <?php include("includes/metatags.php"); ?> <title>Contact Us - MAHIRUHAM || The Knowledge Tree</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet"> <link href="css/prettyPhoto.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/main.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]--> <link rel="shortcut icon" href="images/ico/favicon.ico"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png"> </head><!--/head--> <body oncontextmenu="return false"> <header class="navbar navbar-inverse navbar-fixed-top wet-asphalt" role="banner"> <div class="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" href="index.php"><img src="images/logo.png" alt="Mahi Ruham" style="height:90px !important;"></a> </div> <div class="collapse navbar-collapse"> <?php $menu = 7; include("includes/menu.php"); ?> </div> </div> </header><!--/header--> <section id="title" class="emerald"> <div class="container"> <br><br> <div class="row"> <div class="col-sm-6"> <h1>Contact Us</h1> </div> <div class="col-sm-6"> <ul class="breadcrumb pull-right"> <li><a href="index.php">Home</a></li> <li class="active">Contact Us</li> </ul> </div> </div> </div> </section><!--/#title--> <section id="contact-page" class="container"> <div class="row"> <div class="col-sm-8"> <h4>Contact Form</h4> <div class="status alert alert-success" style="display: none"></div> <form id="main-contact-form" class="contact-form" name="contact-form" method="post" action="#" role="form"> <div class="row"> <div class="col-sm-5"> <label>Name <span class="mandatory"> *</span> </label> <div class="form-group"> <input type="text" class="form-control" name="name" id="name" required placeholder="Your Name"> </div> <div class="form-group"> <label>Email <span class="mandatory"> *</span> </label> <input type="email" class="form-control" name="email" id="email" required placeholder="Enter Email"> </div> <div class="form-group"> <label>Subject <span class="mandatory"> *</span> </label> <input type="text" class="form-control" name="subject" id="subject" required placeholder="Write Subject"> </div> <div class="form-group"> <input type="submit" class="btn btn-primary btn-lg" value="Send Message" onClick="SendMail()" /> <span id="status_loader"><img src="images/loader.gif" width="40"/></span> <br> <span id="status_update" style="color:green; font-weight:bold;"></span> </div> </div> <div class="col-sm-7"> <div class="form-group"> <label>Contact Number</label> <input type="text" class="form-control" name="contact" id="contact" required placeholder="Your Contact Number"> </div> <label>Message <span class="mandatory"> *</span> </label> <textarea name="message" id="message" required class="form-control" rows="5" style="height:200px !important;" placeholder="Write your Message"></textarea> </div> </div> </form> </div><!--/.col-sm-8--> <div class="col-sm-4"> <h3 style="color:#183DC9"><strong>MahiRuham</strong></h3> <h5>The Knowledge Tree</h5> <hr/> <h4> Reach Us @</h4> <i class="icon icon-envelope"></i> <strong>info@mahiruham.com</strong><br> <i class="icon icon-envelope"></i> <strong>chitrabhanuv@gmail.com</strong><br> <br> <i class="icon icon-phone"></i> <strong>+91-9849362266</strong><br/> <i class="icon icon-phone"></i> <strong>+91-9440629590</strong> </div><!--/.col-sm-4--> </div> </section><!--/#services--> <footer id="footer" class="midnight-blue"> <div class="container"> <?php include('includes/footer.php'); ?> </div> </footer><!--/#footer--> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.prettyPhoto.js"></script> <script src="js/main.js"></script> <script type="text/javascript" language="javascript"> $(window).load(function () { $("#status_loader").hide(); $("#status_update").empty(); }); function SendMail() { if ($("#name").val() == '') { $("#name").css("border", "1px red solid"); $("#name").focus(); return false; } else { $("#name").css("border", "1px #CCC solid"); } if ($("#email").val() == '') { $("#email").css("border", "1px red solid"); $("#email").focus(); return false; } else { $("#email").css("border", "1px #CCC solid"); } if ($("#subject").val() == '') { $("#subject").css("border", "1px red solid"); $("#subject").focus(); return false; } else { $("#subject").css("border", "1px #CCC solid"); } if ($("#message").val() == '') { $("#message").css("border", "1px red solid"); $("#message").focus(); return false; } else { $("#message").css("border", "1px #CCC solid"); jQuery.ajax({ type:"post", url:"submit_form.php", data:jQuery("#main-contact-form").serializeArray(), success:function(result) { //alert(result); //jQuery("#contactBtn").val("Send Message"); if(result==1) { alert(result) //jQuery("#contact_error").hide(); jQuery("#main-contact-form")[0].reset(); // jQuery("#contact_success").show(); //jQuery("#contact_success").html("Thanks for contacting us. We Will Be In Touch With You Soon"); } if(result==0) { jQuery("#contact_error").show(); jQuery("#contact_error").html("Problem in seding mail, please try again"); } } }); } $("#status_loader").show(); // phpurl = "http://<?php echo($_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI'])) ?>/AjaxPopulator.php?f=3"; } </script> </body> </html>