kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
aadharshilasouth.in
/
Upload FileeE
HOME
<?php session_start(); require_once("includes/settings.php"); require_once("includes/database.php"); require_once("includes/classes/db.cls.php"); require_once("includes/classes/sitedata.cls.php"); require_once("includes/functions/common.php"); require_once("includes/classes/Pages.cls.php"); require_once("includes/classes/Menus.cls.php"); require_once("includes/classes/DBquery.cls.php"); $conn = mysqli_connect(SYSTEM_DBHOST,SYSTEM_DBUSER,SYSTEM_DBPWD,SYSTEM_DBNAME); $db = new SiteData(); $pageObj = new Pages(); $menuObj = new Menus(); $dbObj = new dbquery(); $Dbqur = new dbquery(); $project_sql = mysqli_query($conn, "select * from tbl_homecontent where id = 1 "); $hedrow = mysqli_fetch_array($project_sql); if($_REQUEST['act']=='sendMail'){ if($_REQUEST['vercode']==$_SESSION["vercode"]){ $name = $_REQUEST['name']; $email = $_REQUEST['email']; $phone = $_REQUEST['phone']; $message = $_REQUEST['message']; $city = $_REQUEST['city']; $result = mysqli_query($conn, "SELECT MAX(id) FROM tbl_registration"); $row = mysqli_fetch_row($result); $highest_id = $row[0]+1; $new_val = sprintf("%04d",$highest_id); $roll = date('Y').$new_val; $query = $dbObj->insertToDb("tbl_registration","rollno='$roll',`name`='$name', `fname`='$fname', `phone`='$phone', `email`='$email', `studyingin`='$courses', `city`='$city', `message`='$message'"); $email_from = $email; // Who the email is from $email_subject = "New Enquiry From Aadharshila"; // The Subject of the email $email_message .= "Name: ".$name."<br>"; $email_message .= "email: ".$email."<br>"; $email_message .= "Phone Number : ".$phone."<br>"; $email_message .= "City : ".$city."<br>"; $email_message .= "Message: ".$message." "; //$a = $Email; $a = "adhsupport@gmail.com"; // Who the email is to $email_to=$a; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: ".$email_from; $headers .= "CC: ".$email. "\r\n"; $ok = @mail($email_to, $email_subject, $email_message, $headers); header("location:contact-us.php?msg=success"); }else{ header("location:contact-us.php?msg=errcode"); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <title>Aadharshila Education & Charitable Trust Gujarat</title> <meta name="keywords" content="Aadharshila Education & Charitable Trust Gujarat" /> <meta name="description" content="Aadharshila Education & Charitable Trust Gujarat" /> <meta name="copyright" content="Copyright 2022 Aadharshila Education & Charitable Trust"/> <meta name="ROBOTS" content="index,follow"/> <meta name="revisit-after" content="7 days"/> <meta name="document-classification" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="publisher" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="author" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="copyright" content="Aadharshila Education & Charitable Trust Gujarat"/> <meta name="language" content="en-us"/> <meta name="distribution" content="GLOBAL"/> <meta name="geo.region" content="INDIA"/> <meta name="geo.placename" content="Aadharshila Education & Charitable Trust At. & Po. Valad, Opp. Reliance Petrol Pump, Naroda-Himmatnagar N. H. No. 48 Gandhinagar, Gujarat, India 382355"/> <?php include("css.php");?> </head> <body> <div id="page"> <?php include("header.php");?> <div class="page-header" style="background-image: url(img/bggg.jpg);"> <div class="breadcrumb-box"> <div class="container"> <div class="section-title text-left animated fadeInUp visible" data-animation="fadeInUp"> <h2 class="title" style="font-size: 33px; font-weight: 600;">Contact Us</h2> </div> </div> </div> </div> <section id="additional" class="page-section"> <div class="container"> <div class="row"> <div class="col-md-6"> <div data-animation="fadeInDown" class="animated fadeInDown visible"> <style> .contact input{ font-size:15px; } .contact textarea{ font-size:15px; } </style> <div> <?php if($_REQUEST['msg'] == "success") { ?> <div class="alert alert-success"> <strong><img src="img/right-sign.png" alt="Divine Buds | CBSE School Maninagar Ahmedabad Gujarat" title="Divine Buds | CBSE School Maninagar Ahmedabad Gujarat"> Thank You! We'll get back to you soon.</strong> </div> <?php } ?> <form action="#" method="post" class="contact" > <input type="hidden" name="act" value="sendMail"> <div class="form-group"><input type="text" name="name" placeholder="Your Name" autofocus="" class="form-control" required></div> <div class="form-group"><input type="email" name="email" placeholder="Your Email" autofocus="" class="form-control" required></div> <div class="form-group"><input type="text" name="phone" placeholder="Your Phone" pattern="[0-9]{10}" class="form-control" required></div> <div class="form-group"><input type="text" name="city" placeholder="City" autofocus="" required class="form-control"></div> <div class="form-group"><textarea name="message" placeholder="Your Message" rows="4" cols="40" class="form-control" style="resize:none;" required></textarea></div> <div class=""><label> <span style="float:left; padding:0px 0px 0 0"><img src="captcha.php" align="absmiddle" style="border:1px solid #d9d9d9;" alt="captcha"></span> <input name="vercode" type="text" class="form-control" id="textfield6" style="width:150px;font-weight:500" placeholder="Enter Code" required=""></label></div> <div class="form-group"><input type="submit" value="Submit" class="btn btn-primary"></div> </form> </div> </div> </div> <div class="col-md-6"> <div> <iframe src="<?php echo $hedrow['map_url']?>" frameborder="0" style="border:0;width:100%;height:200px;" allowfullscreen></iframe> </div> <div><?php echo $hedrow['office_add']?> </div> <div class="clearfix"></div> <div><i class="fa fa-phone"></i> <?php echo $hedrow['phone']?></div> <div ><i class="fa fa-envelope"></i> <?php echo $hedrow['emailid']?></div> </div> </div> </div> <div class="clearfix"></div> </section> <br> <?php include("footer.php"); ?> <!-- footer --> </div> <?php include("js.php");?> </body> </html>