kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
ashokacycle.com
/
Upload FileeE
HOME
<?php //index.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"); require_once("includes/classes/News.cls.php"); require_once("includes/classes/Announcement.cls.php"); $conn = mysqli_connect(SYSTEM_DBHOST, SYSTEM_DBUSER, SYSTEM_DBPWD, SYSTEM_DBNAME); $newsObj = new News(); $res = $newsObj->getNewsLimit(6); $total = $res['NO_OF_ITEMS']; $annoObj = new Announcement(); $resa = $annoObj->getAnnoLimit(6); $totaly = $resa['NO_OF_ITEMS']; $db = new SiteData(); $pageObj = new Pages(); $menuObj = new Menus(); $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"]) { $todate=date('Y-m-d'); $salutation = $_REQUEST['salutation']; $mobile = $_REQUEST['mobile']; $firstname = $_REQUEST['firstname']; $address = $_REQUEST['address']; $lastname = $_REQUEST['lastname']; $country = $_REQUEST['country']; $designation = $_REQUEST['designation']; $city = $_REQUEST['city']; $companyname = $_REQUEST['companyname']; $website = $_REQUEST['website']; $email = $_REQUEST['email']; $businesscategory = $_REQUEST['businesscategory']; $query="INSERT INTO `tbl_registration`(`salutation`,`firstname`,`lastname`, `email`, `mobile`, `address`, `country`, `designation`, `city`, `companyname`, `website`, `businesscategory`,`status`, `applydate`) VALUES ('$salutation','$firstname','$lastname','$email', '$mobile','$address','$country','$designation','$city','$companyname','$website','$businesscategory','1','$todate')"; $rs2=mysqli_query($conn, $query); $email_from = $email; // Sender EMAIL ID $email_subject = "New Visitor Enquiry for Ashoka Cycle"; // The Subject of the email $email_message = "Hi,<br>Find the New Visitor Enquiry details below:<br><br>"; $email_message .= "Full Name : ".$salutation.$firstname.$lastname."<br>"; $email_message .= "Phone No. : ".$mobile."<br>"; $email_message .= "E-Mail ID : ".$email."<br>"; $email_message .= "Address : ".$address."<br>"; $email_message .= "City : ".$city."<br>"; $email_message .= "Country : ".$country."<br>"; $email_message .= "Company Name : ".$companyname."<br>"; $email_message .= "Designation : ".$designation."<br>"; $email_message .= "Website : ".$website."<br>"; $email_message .= "Business Category : ".$businesscategory."<br>"; $email_to = "ahwebsolutions@gmail.com"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: ".$email_from; $result = mail($email_to,$email_subject,$email_message,$headers); try { if($result) { print "<script>"; print "self.location = '?msg=success'"; print "</script>"; } else { print "<script>"; print "self.location = '?msg=errcode'"; print "</script>"; } } catch(Exception $e) { print "<script>"; print "self.location = '?msg=errcode'"; print "</script>"; } } else { print "<script>"; print "self.location = '?msg=invcode'"; print "</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]--> <title>Ashoka Cycle</title> <meta name="keywords" content="Ashoka Cycle" /> <meta name="description" content="Ashoka Cycle" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="copyright" content="Copyright 2020 Ashoka Cycle"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="shortcut icon" href="img/<?=$hedrow['site_logo']?>"> <meta name="ROBOTS" content="index,follow"/> <meta name="revisit-after" content="7 days"/> <meta name="document-classification" content="Ashoka Cycle"/> <meta name="publisher" content="Ashoka Cycle"/> <meta name="author" content="Ashoka Cycle"/> <meta name="copyright" content="Ashoka Cycle"/> <meta name="language" content="en-us"/> <meta name="distribution" content="GLOBAL"/> <meta name="geo.region" content="INDIA"/> <meta name="geo.placename" content="Gujarat, India"/> <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" /> <?php include("css.php");?> </head> <body> <?php include("header.php");?> <div class="page-header"> <div class="container"> </div> <div class="breadcrumb-box" style="background:url(img/page-bg-img.jpg);"> <div class="container"> <div class="section-title text-left animated fadeInUp visible" data-animation="fadeInUp"> <h2 class="title">Visitor Registration</h2> </div> </div> </div> </div> <section style="margin-top: 30px;"> <div class="col-md-8 col-md-offset-2"> <?php if ($_GET['strmsg1']) { ?> <?php print $_GET['strmsg1']; ?> <?php } ?> <form role="form" name="visitorform" method="post" class="visitor"> <input type="hidden" name="act" value="sendMail"> <div class="form-group" > <?php if($_REQUEST['msg'] == "success") { ?> <div class="alert alert-success" align="center" > <strong><img src="img/right-sign.png"> Thank You! We will get back to you soon.</strong> </div> <?php } else if($_REQUEST['msg'] == "errcode"){ ?> <div class="alert alert-success" align="center" > <strong><img src="img/warning.png"> Sorry! We are unable to register your details.</strong> </div> <?php } else if($_REQUEST['msg'] == "invcode"){ ?> <div class="alert alert-success" align="center" > <strong><img src="img/warning.png"> Sorry! Invalid code.</strong> </div> <?php } ?> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"> <select class="form-control" name="salutation"> <option value="Mr.">Mr.</option> <option value="Mrs.">Mrs.</option> <option value="Ms.">Ms.</option> </select> </div> </div> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="mobile" placeholder="Mobile" pattern="[6-9]{1}[0-9]{9}" autofocus="" class="form-control" required></div> </div> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="firstname" placeholder="First Name" autofocus="" class="form-control" required></div> </div> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="address" placeholder="Address" autofocus="" class="form-control" required></div> </div> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="lastname" placeholder="Last Name" autofocus="" class="form-control" required></div> </div> <div class="col-md-6 col-sm-12"> <div class="form-group"> <select class="form-control" name="country"> <option value="">Select Country</option> <option value="India">India</option> <option value="USA">USA</option> <option value="Africa">Africa</option> </select> </div> </div> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="designation" placeholder="Designation" autofocus="" class="form-control" required></div> </div> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="city" placeholder="City" autofocus="" class="form-control" required></div> </div> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="companyname" placeholder="Company Name" autofocus="" class="form-control" required></div> </div> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="text" name="website" placeholder="Website" autofocus="" class="form-control"></div> </div> </div> <div class="row"> <div class="col-md-6 col-sm-12"> <div class="form-group"><input type="email" name="email" placeholder="Email Address" autofocus="" class="form-control" required></div> </div> <div class="col-md-6 col-sm-12"> <select class="form-control" name="businesscategory" required> <option value="">Select Business Category</option> <option value="Cycle">Cycle</option> <option value="Cycle Accessories">Cycle Accessories</option> </select> </div> </div> <div class="form-group"> <img src="captcha.php" align="absmiddle" style="padding:0;width:100px;" alt="captcha" class="pull-left"> <input name="vercode" type="text" class="form-control form-field pull-left" id="textfield6" style="width:120px;margin: 0 15px 0 0px;" placeholder="Enter Code" required=""> <input type="Submit" value="Register" class="btn btn-primary btn-info"></div> </form> </div> </section> <?php include("footer.php");?> <?php include("js.php");?> </body> </html>