Server IP : 103.53.40.154 / Your IP : 18.117.232.215 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/azeenaagriculture.in/../generalmotorsju.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php");?> <!-- End Header --> <?php if(isset($_POST['ContactSubmit'])){ @extract($_POST); if($_SESSION["code"]!=$_POST['captcha']){ $clrerr="red"; set_session_msg("The Security Code does not match !"); }else{ $sql="insert into tbl_enquiry set enquiry_name='$cname', enquiry_email='$cmail', enquiry_mobile='$cmobile', enquiry_detail='$cmessage', enquiry_source='Contact Us', enquiry_add_date=now()"; db_query($sql); $clrerr="green"; ///////////////****** Mailer to client start here **********************////////////// $hostName = $_SERVER['HTTP_HOST']; $msgmail="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <title>TradeKeyIndia.com-Largest B2B Portal In India</title> </head> <body> <table align='center' cellSpacing='0' cellPadding='0' width='87%' border='1' style='border:1px solid #e61938'> <tbody> <tr> <td vAlign='top' style='background-color:#e61938; padding:10px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#ffffff; text-align:center; font-weight:bold; text-decoration:none;' colspan='3' >Contact Us Enquiry From $hostName</td> </tr> <tr> <td width='30%' vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Name</strong> </td> <td vAlign='top' width='70%' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$cname</td> </tr> <tr> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Mobile </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$cmobile</td> </tr> <tr> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Email-Id</strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$cmail</td> </tr> <tr> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Detail </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$cmessage</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; $subject = "Enquiry from $hostName"; $from="$cmail"; $Headers1 = "From: $cname<$from>\n"; $Headers1 .= "X-Mailer: PHP/". phpversion(); $Headers1 .= "X-Priority: 3 \n"; $Headers1 .= "MIME-version: 1.0\n"; $Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com"); //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com"); $toEmail."<br>"; ///////////////****** Mailer to client end here **********************////////////// ///////////////// Mail To Admin ////////////////////////////////// $mail_to_admin="client_enquiry@tradekeyindia.com"; $sub_admin="Business Enquiry From $hostName"; $mail_admin_body = "$msgmail"; $sender_admin =$cmail; $headers_admin = "MIME-Version: 1.0" . "\r\n"; $headers_admin .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers_admin .= "from: ".$sender_admin."\n"; if($cmail){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); } ///////////////// Mail To Admin End////////////////////////////////// set_session_msg("Thanks for your interest. We will contact you soon."); //header("Location:$site_url/contact-us.html"); // exit; } } ?> <!-- page-banner-section ================================================== --> <section class="page-banner-section"> <div class="container"> <h1>Contact Us</h1> <ul class="page-depth"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <li class="active"><a href="<?=$site_url?>/contact-us.html"><?=ucwords(strtolower($pgHeading));?></a></li> </ul> </div> </section> <!-- End page-banner section --> <!-- End Header --> <!-- map ================================================== --> <div class="layer-overlay"><div class="amioverlay"> <?php if($compDATA['admin_contactus_map']=='Yes'){ ?> <?php $mapLINK=$compDATA['admin_contactus_map_link'];?> <?=str_replace('width="600" height="450"','width="100%" height="350"',$mapLINK);?> <? } ?> </div></div> <!-- map --> <!-- contact section ================================================== --> <section class="contact-section"> <div class="container"> <div class="col-md-4"> <div class="contact-info"> <h2>Contact Info</h2> <p>You can contact or visit us in our office from Monday to Saturday from 8:00 - 20:00</p> <ul class="information-list"> <?php if(!empty($compDATA['admin_company_name'])){ ?> <li><i class="fa fa-globe"></i> <span><?=$compDATA['admin_company_name'];?></span></li> <? } ?> <li><i class="fa fa-map-marker"></i><span><?=$compDATA['admin_address']?><?php if(!empty($compDATA['admin_city'])){ ?>, <?=$compDATA['admin_city']?><? } ?><?php if(!empty($compDATA['admin_state'])){ ?>, <?=$compDATA['admin_state']?><? } ?><?php if(!empty($compDATA['admin_country'])){ ?>, <?=$compDATA['admin_country']?><? } ?><?php if(!empty($compDATA['admin_zip_code'])){ ?>, <?=$compDATA['admin_zip_code']?><? } ?></span></li> <?php if(!empty($compDATA['admin_mobile'])){ ?> <li><i class="fa fa-mobile"></i><span><?=$compDATA['admin_mobile']?></span></li> <? } ?> <?php if(!empty($compDATA['admin_phone'])){ ?> <li><i class="fa fa-phone"></i><span><?=$compDATA['admin_phone']?></span></li> <? } ?> </li> <?php if(!empty($compDATA['admin_email'])){ ?> <li><i class="fa fa-envelope-o"></i><a href="mailto:<?=$compDATA['admin_email']?>"><?=$compDATA['admin_email']?></a></li> <? } ?> <?php if(!empty($compDATA['admin_alt_email'])){ ?> <li><i class="fa fa-envelope-o"></i><a href="mailto:<?=$compDATA['admin_alt_email']?>"><?=$compDATA['admin_alt_email']?></a></li> <? } ?> </ul> </div> </div> <div class="col-md-8"> <div class="col-md-12"><div align="center" style="font-size:17px; color:<?=$clrerr?>; font-weight:bold; margin-bottom:10px;"><?=display_sess_msg()?></div></div> <form name="ContactFrm" id="contact-form" action="" method="post" enctype="multipart/form-data" onsubmit="return ContactValidation();"> <h2>Send us a message</h2> <div class="row"> <div class="col-md-4"> <input name="cname" id="cname" <?php if($_POST['cname']){ ?> value="<?=$_POST['cname']?>" <? } ?> type="text" placeholder="Name"> </div> <div class="col-md-4"> <input id="cmobile" name="cmobile" <?php if($_POST['cname']){ ?> value="<?=$_POST['cmobile']?>" <? } ?> type="text" placeholder="Mobile"> </div> <div class="col-md-4"> <input id="cmail" name="cmail" type="text" <?php if($_POST['cmail']){ ?> value="<?=$_POST['cmobile']?>" <? } ?> placeholder="Email"> </div> </div> <div class="row"> <div class="col-md-12"><textarea name="contactMessage" id="contactMessage" placeholder="Message"> <?php if($_POST['contactMessage']){ ?><?=$_POST['contactMessage']?><? } ?></textarea></div> <div class="col-md-8"><input type="text" id="security_co" name="captcha" maxlength="4" autocomplete="off"></div> <div class="col-md-4"><img src="<?=$site_url?>/amitabhcaptcha.php" width="79" height="37" alt="Captcha" /></div> <div class="col-md-12"><input type="submit" name="ContactSubmit" value="Send Message" style="margin-top:15px;"></div> </div> </form> </div> </div> </section> <script type="text/javascript"> function ContactValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('cname').value)==0){ alert("Enter Your Name !"); document.getElementById('cname').focus(); return false; } if (!document.getElementById('cname').value.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/)){ alert("Please enter only alphabets !"); document.getElementById('cname').value=''; document.getElementById('cname').focus(); return false; } var mobno=trim(document.getElementById('cmobile').value); if(trim(document.getElementById('cmobile').value)==0){ alert("Enter your mobile no.!"); document.getElementById('cmobile').focus(); return false; } if(isNaN(document.getElementById('cmobile').value)){ alert("Mobile no. should be no.!"); document.getElementById('cmobile').focus(); return false; } if(mobno.length < 10){ alert("Mobile no. should be 10 digit long !"); document.getElementById('cmobile').focus(); return false; } var email=trim(document.getElementById('cmail').value); var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(email=='') { alert('Please Enter Email Id'); document.getElementById('cmail').focus(); return false; }else if(!email.match(mailformat)){ alert("You have entered an invalid email address!"); document.getElementById('cmail').focus(); return false; } if(trim(document.getElementById('contactMessage').value)==0){ alert("Enter your message!"); document.getElementById('contactMessage').focus(); return false; } if(trim(document.getElementById('security_co').value)==0){ alert("Enter security code !"); document.getElementById('security_co').focus(); return false; } } </script> <!-- End contact section --><!-- footer ================================================== --> <?php include("site-footer.php");?>