MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.21.247.78
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/emogli.com/../drckjon.in/../irshadwoodenscrap.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/emogli.com/../drckjon.in/../irshadwoodenscrap.com/contact-us.php
<?php include("site-header.php");?>
<?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;
}
 }
?>
  <div class="bg7 p5px">
    <div class="mt10px">
      <h3>
        <p class="gray large"><?=ucwords(strtolower($pgHeading));?></p>
      </h3>
      <p class="bd2 mt5px"></p>
      <p class="fr black2 mr3px"><span class="mr5px"><a href="<?=$site_url?>/index.html">Home</a></span>&raquo; <span class="ml5px"><?=ucwords(strtolower($pgHeading));?></span></p>
      <p class="cb"></p>
    </div>
    <div align="center" style="font-size:14px; color:<?=$clrerr?>; font-weight:bold;"><?=display_sess_msg()?></div>
    <div class="w690px fl mt10px ">
      <div class=" ml10px mt30px mr5px">
       <?php if(!empty($compDATA['admin_company_name'])){ ?>
        <h4>
          <p class="b   black"><?=$compDATA['admin_company_name']?></p>
        </h4>
        <? } ?>
        <p class="bd mt5px"></p>
        <div class="mt10px">
          <div class="fl w300px">
          <?php if(!empty($compDATA['admin_name'])){ ?>
            <p class="black1  large"><?=$compDATA['admin_name']?></p>
            <? } ?>
             <?php if(!empty($compDATA['admin_mobile'])){ ?>
            <p class="black1 mt4px xlarge"><?=$compDATA['admin_mobile']?></p>
            <? } ?>
            <?php if(!empty($compDATA['admin_phone'])){ ?>
            <p class="black1 mt4px xlarge"><?=$compDATA['admin_phone']?></p>
            <? } ?>
            <?php if(!empty($compDATA['admin_email'])){ ?>
            <p class="black1 mt4px large"><?=$compDATA['admin_email']?></p>
            <? } ?>
            <?php if(!empty($compDATA['admin_alt_email'])){ ?>
            <p class="black1 mt4px large"><?=$compDATA['admin_alt_email']?></p>
            <? } ?>
            <?php if(!empty($compDATA['admin_website_url'])){ ?>
            <p class="blue mt4px large b u"><a href="<?=$compDATA['admin_website_url']?>" class="u" target="_blank"><?=$compDATA['admin_website_url']?></a></p>
             <? } ?>
              <?php if(!empty($compDATA['admin_catalog_url'])){ ?>
            <p class="blue mt4px large b u"><a href="<?=$compDATA['admin_catalog_url']?>" class="u" target="_blank"><?=$compDATA['admin_catalog_url']?></a></p>
             <? } ?>
          </div>
           <?php if(!empty($compDATA['admin_address'])){ ?>
          <div class="fl w300px">
            <p class="b xlarge black1">Address:</p>
            <p class="mt5px black1"><?=$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']?><? } ?></p>
          </div>
          <? } ?>
          <p class="cb"></p>
        </div>
        <!--<div class="mt35px"><span class="b xlarge black1 ">Follow Us:</span> <span class="ml2px mr2px"><img src="images/fac.png" height="30" width="30" alt="" title="" class="vam" /></span> <span class="ml2px mr2px"><img src="images/lin.png" height="30" width="30" alt="" title="" class="vam" /></span> <span class="ml2px mr2px"><img src="images/twi.png" height="30" width="30" alt="" title="" class="vam" /></span> <span class="ml2px mr2px"><img src="images/you.png" height="30" width="30" alt="" title="" class="vam" /></span> </div>-->
      </div>
      <p class="cb"></p>
    </div>
    <div class="w300px  mt10px fl">
      <form name="ContactFrm" action="" method="post" enctype="multipart/form-data" onsubmit="return ContactValidation();">
<div class="bd2 mt15px  radius5 ml20px">
        <div class="w250px mt3px ml2px p5px fl">
          <p class="b black2">Name:</p>
          <p class="mt3px">
            <input type="text" name="cname" id="cname" <?php if($clrerr=="red"){ ?> value="<?=$_POST['cname']?>" <? } ?> maxlength="80" class="bd2 radius2"   style="height:25px;width:260px;" />
          </p>
        </div>
        <div class="w250px mt1px p5px ml2px fl">
          <p class="b black2">Email:</p>
          <p class="mt3px">
            <input type="text" name="cmail" id="cmail" <?php if($clrerr=="red"){ ?> value="<?=$_POST['cmail']?>" <? } ?> maxlength="70" class="bd2 radius2"  style="height:25px;width:260px;" />
          </p>
        </div>
        <div class="w250px mt1px p5px ml2px fl">
          <p class="b black2">Mobile:</p>
          <p class="mt3px">
            <input type="text" name="cmobile" id="cmobile" <?php if($clrerr=="red"){ ?> value="<?=$_POST['cmobile']?>" <? } ?> maxlength="15" class="bd2 radius2"   style="height:25px;width:260px;" />
          </p>
        </div>
        <div class="w250px mt1px p5px ml2px fl">
          <p class="b black2">Message:</p>
          <p class="mt3px">
            <textarea name="cmessage" id="cmessage" style="height:65px; width:255px;"><?php if($clrerr=="red"){ ?><?=$_POST['cmessage']?><? } ?></textarea>
          </p>
        </div>
        <div class="w250px mt1px p5px ml2px fl">
          <p class="b black2">Security Code:</p>
          <p class="mt3px">
            <input type="text" name="captcha" maxlength="4" autocomplete="off" id="security_co" class="bd2 radius2"   style="height:25px;width:179px;" />
            <span class="ml5px"><img src="<?=$site_url?>/amitabhcaptcha.php" class="vam" width="60" height="29" alt="Captcha" /> </span>
          </p>
        </div>
        <div class="ml5px mt10px">
          <p class="ml5px">
            <input type="submit" name="ContactSubmit" value="Send" class="bbnt3 " style="width:80px;margin-top:5px;" />
          </p>
        </div>
        <p class="cb"></p>
        <p><img src="<?=$site_url?>/images/spacer.gif" height="10" /></p>
      </div>
</form>
    </div>
    <p class="cb"></p>
    <p><img src="<?=$site_url?>/images/spacer.gif" height="30" /></p>
  </div>
</div>
<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 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;
}
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;
}

if(trim(document.getElementById('cmessage').value)==0){
	alert("Enter your message!");
	document.getElementById('cmessage').focus();
	return false;
 }
 if(trim(document.getElementById('security_co').value)==0){
	alert("Enter security code !");
	document.getElementById('security_co').focus();
	return false;
 } 	
}
</script>
<?php include("site-footer.php");?>

MMCT - 2023