<?php
if(isset($_POST['send']))
{
            $from = "info@therisingstars.org";
            $to = "jay.shankar1992@yahoo.com";
            $subject =  "From:".$_POST['email']."\n\n";
            $message = "Hello Admin, \n Dear Admin You Have a New Enquery For Contact You\n\n";
            $message .= "Name: ".$_POST['name']."\n\n";
            $message .= "Email Id: ".$_POST['email']."\n\n";
            $message .= "Mobile Number: ".$_POST['phone']."\n\n";
            $message .= "Subject: ".$_POST['subject']."\n\n";
            $message .= "Message: ".$_POST['message']."\n\n";
            //$message .= "\n-------\n Thanks & Regard\n";
            //$message .= "SCL Groups";
            $headers = "From: $from";
    
    $semi_rand = md5(time());
            $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
            
          

            // headers for attachment
            $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\"";

            // multipart boundary
          
            $message .= "--{$mime_boundary}--";

           // $returnpath = "-f" . $from;
          // echo "hi"; exit;
         if(mail($to, $subject, $message, $headers))
         { 
           echo "<script>alert('Thank You – Your Details Submitted Successfully.');
window.location.href='index.php';
</script>";}else{
    echo "<script>alert('Message Not Send');
</script>";
}
}


?>


<!DOCTYPE HTML>
<html class="no-js" 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">
    <meta name="description" content="Rising Stars :: Special Education Therapy">
    <meta name="keywords" content="Rising Stars :: Special Education Therapy">
    <meta name="robots" content="index,follow">
    <link rel="icon" href="images/favicone.png">

    <title>Rising Stars :: Special Education Therapy</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/revolution/settings.css">
    <link rel="stylesheet" type="text/css" href="css/revolution/layers.css">
    <link rel="stylesheet" type="text/css" href="css/revolution/navigation.css">
    <link href="css/style.css" rel="stylesheet">
    <link id="skin" href="skins/default.css" rel="stylesheet">

</head>

<body>

    <?php

    include 'include/header.php';

    ?>

        <style>
            .innerheader-wrapp {
                background-image: url(images/bg-top.png);
            }
        </style>

        <div class="innerheader-wrapp">
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        <h2><i class="fa fa-laptop"></i> Contact <span>Us</span></h2>
                        <ol class="breadcrumb">
                            <li><a href="index.php"><i class="fa fa-home"></i> Home</a></li>
                            <li><a href="about.php"><i class="fa fa-clone"></i> Page</a></li>
                            <li class="active"><i class="fa fa-laptop"></i> Services</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- End inner page header -->

        <div class="clearfix"></div>
<script language="Javascript" type="text/javascript">

        function onlyAlphabets(e, t) {
            try {
                if (window.event) {
                    var charCode = window.event.keyCode;
                }
                else if (e) {
                    var charCode = e.which;
                }
                else { return true; }
                if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123))
                    return true;
                else
                    return false;
            }
            catch (err) {
                alert(err.Description);
            }
        }
        function onlynumeric(e, t) {
            try {
                if (window.event) {
                    var charCode = window.event.keyCode;
                }
                else if (e) {
                    var charCode = e.which;
                }
                else { return true; }
                if (charCode > 47 && charCode < 58)
                    return true;
                else
                    return false;
            }
            catch (err) {
                alert(err.Description);
            }
        }

    </script>
        <!-- Start contain wrapp -->
        <div class="contain-wrapp padding-top50 padding-bot40">
            <div class="container">
                <div class="row marginbot10">
                    <div class="col-md-9">
                        <div class="section-heading text-left">
                            <h5>Get intouch with us</h5>
                            <p>Let us know how we can assist you.<br>Rest assured you will get a response with-in 24 hours</p>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-4 col-sm-6">
                        <div class="contact-detail">
                            <ul class="list-unstyled">
                                <li>
                                    <div class="abslute-icon ai-2x">
                                        <i class="fa fa-map icon-circle icon-primary fa-2x"></i>
                                        <h6>Our location</h6>
                                        <p>P- 41 first floor Mayur Vihar phase 1 New Delhi India 110091</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="abslute-icon ai-2x">
                                        <i class="fa fa-phone icon-circle icon-primary fa-2x"></i>
                                        <h6>Call center</h6>
                                        <p>+91 9899539983</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="abslute-icon ai-2x">
                                        <i class="fa fa-envelope icon-circle icon-primary fa-2x"></i>
                                        <h6>Email address</h6>
                                        <p><a href="mailto:info@therisingstars.com">info@therisingstars.com</a>
                                        </p>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-8 col-sm-6">
                        <!-- Start Form -->
                        <form method="post" class="form-group" enctype="multipart/form-data">
                            <div class="clearfix"></div>
                            <div id="success"></div>
                            <div class="row wrap-form">
                                <div class="form-group col-md-6 col-sm-6">
                                    <h6>Full Name <span class="primary">*</span></h6>
                                    <input type="text" onkeypress="return onlyAlphabets(event,this);" name="name" id="name" class="form-control input-lg required" placeholder="Enter your full Name...">
                                    <span data-for="name" class="error"></span>
                                </div>
                                <div class="form-group col-md-6 col-sm-6">
                                    <h6>Email Address <span class="primary">*</span></h6>
                                    <input type="email" name="email" id="email" class="form-control input-lg required" placeholder="Enter your email address...">
                                    <span data-for="email" class="error"></span>
                                </div>

                                <div class="form-group col-md-6 col-sm-6">
                                    <h6>Phone No <span class="primary">*</span></h6>
                                    <input type="text" onkeypress="return onlynumeric(event,this);" maxlength="10" name="phone" id="email" class="form-control input-lg required" placeholder="Enter your Phone No ...">
                                    <span data-for="email" class="error"></span>
                                </div>

                                <div class="form-group col-md-6 col-sm-6">
                                    <h6>Subject <span class="primary">*</span></h6>
                                    <input type="text" name="subject" id="email" class="form-control input-lg required" placeholder="Subject">
                                    <span data-for="email" class="error"></span>
                                </div>
                                <div class="form-group col-md-12">
                                    <h6>Your Message <span class="primary">*</span></h6>
                                    <textarea name="message" id="message" class="form-control input-lg required" placeholder="Write something for us..." rows="9" style="resize: none;"></textarea>
                                    <span data-for="message" class="error"></span>
                                </div>
                                <div class="form-group col-md-12 margintop15">
                                    <input type="submit" name="send" value="Send Message" id="submit" class="btn btn-primary btn-lg" />
                                    <div class="status-progress"></div>
                                </div>
                            </div>
                        </form>
                        <!-- End Form -->
                    </div>

                </div>
            </div>
        </div>
        <!-- End contain wrapp -->

        <!-- Start google map -->
        <div class="map-wrapper">
            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d4164.9425385942395!2d77.28106040214246!3d28.621211714720765!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390ce4985be22e81%3A0xc62ca78a6b5b29a0!2sRising+Stars+%7C+Therapy+Center+for+Special+Need+Children+-+Speech+Therapy%2C+OT%2C+Special+Education%2C+ABA!5e0!3m2!1sen!2sin!4v1546939057050" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>
        </div>
        <!-- End google map -->

        <!-- Start footer -->
        <?php

        include 'include/footer.php';

    ?>
            <!-- End footer -->

            <!-- Start to top -->
            <a href="#" class="toTop">
                <i class="fa fa-chevron-up"></i>
            </a>
            <!-- End to top -->

            <!-- START JAVASCRIPT -->
            <!-- Placed at the end of the document so the pages load faster -->
            <script type="text/javascript" src="js/jquery.min.js"></script>
            <script src="js/loading.js"></script>

            <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
            <!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->
            <script src="js/ie-emulation-modes-warning.js"></script>

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

            <!-- bootstrap -->
            <script src="js/bootstrap.min.js"></script>

            <!-- easing -->
            <script src="js/jquery.easing-1.3.min.js"></script>

            <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
            <script src="js/ie10-viewport-bug-workaround.js"></script>

            <!-- Bootsnavs -->
            <script src="js/bootsnav.js"></script>

            <!-- Custom form -->
            <script src="js/form/jcf.js"></script>
            <script src="js/form/jcf.scrollable.js"></script>
            <script src="js/form/jcf.select.js"></script>

            <!-- Custom checkbox and radio -->
            <script src="js/checkator/fm.checkator.jquery.js"></script>
            <script src="js/checkator/setting.js"></script>

            <!-- Select language -->
            <script src="js/selectdropdown/jquery.dd.min.js"></script>
            <script src="js/selectdropdown/setting.js"></script>

            <!-- Start Form Plugin -->
            <script src="js/validation/jquery.validate.min.js"></script>
            <script src="js/validation/setting.js"></script>

            <!-- Maps -->
            <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyADpdJUnd29G9Med1DSswZ29NDIewX_N3k"></script>
            <script src="js/maps/setting.js"></script>

            <!-- Twitter -->
            <script src="js/twitter/tweetie.min.js"></script>
            <script src="js/twitter/ticker.js"></script>
            <script src="js/twitter/setting.js"></script>

            <!-- Custom -->
            <script src="js/custom.js"></script>

            <!-- Theme option-->
            <script src="js/template-option/demosetting.js"></script>
</body>

</html>