MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.141.21.199
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/asksolution.in/../tmp/../lizatilessolution.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/asksolution.in/../tmp/../lizatilessolution.com/contact-us.php
<?php include("site-header.php"); ?>
    
<?php include("inner-banner.php"); ?>
 
    
 <?php
 if(isset($_POST['EnqSubmitContact']))
 {
  @extract($_REQUEST);

  
  $sql="insert into tbl_enquiry set
      enquiry_name='$contact_name',
      enquiry_mobile='$contact_phone',
      enquiry_email='$contact_email',
      enquiry_detail='$contact_message',
      enquiry_source='Contact Us',
      enquiry_add_date=now()";
      db_query($sql);
      
      
      
       ///////////////****** 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>$compDATA[admin_company_name]</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;' 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;'>$contact_name</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;'>$contact_phone</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;'>$contact_email</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;'>$contact_message</td>
    </tr>    
  </tbody>
</table>
</body>
</html>";

$toEmail = $compDATA['admin_email'];
//$toEmail="rehantki@gmail.com";
$subject = "Contact Us Enquiry From $hostName";
            $from="$contact_email";
        $Headers1 = "From: $contact_name<$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 User **********************//////////////
$toEmail2 = $contact_email;
$subject2 = "Contact Us Enquiry of $hostName";
            $from2="$compDATA[admin_email]";
        $Headers12 = "From: $compDATA[admin_company_name]<$from2>\n";
        $Headers12 .= "X-Mailer: PHP/". phpversion();
        $Headers12 .= "X-Priority: 3 \n";
        $Headers12 .= "MIME-version: 1.0\n";
        $Headers12 .= "Content-Type: text/html; charset=iso-8859-1\n"; 
        @mail("$toEmail2", "$subject2", "$msgmail","$Headers12","-fenquiry@tradekeyindia.com");
        //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com");
         $toEmail2."<br>";
         
///////////////****** Mailer to client end here **********************//////////////
///////////////// Mail To Admin //////////////////////////////////

$mail_to_admin="enquirylizatiles@gmail.com";
//$mail_to_admin="arif.tradekeyindia@gmail.com";
$sub_admin="Business Enquiry From $hostName";
$mail_admin_body = "$msgmail";  
$sender_admin =$contact_email;   
$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($contact_email){
@mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin);
?>
<script>//alert("Enquiry form submitted successfully. We will contact you soon.");

  swal("Successfull", "Enquiry form submitted successfully, We will contact you soon", "success");</script>
<?
}
}

 
?>

          <style>
#error_style_contact{
    color:white; 
    font-size:13px;
    font-family:arial;
    background-color:#c32323;
    border-radius:7px; 
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-sizing: border-box;
    padding:7px;

}

.error_name_contact{
       display:none;
}
.error_email_contact{
       display:none;
}


.error_phone_contact{
       display:none;
}


.error_message_contact{
       display:none;
}


   </style>

    <main class="main-content ">  
      
        <div class="grid__item">           
          <div class="grid">
  <div class="grid__item">	
      <div id="shopify-section-contact" class="shopify-section">




        
<div class="contact-address">
  <div class="container">
    <div class="dt-sc-hr-invisible-large"></div>
    <div class="grid__item">
      
      <ul>
        <li class="grid__item wide--one-quarter post-large--one-half large--one-half">
          <div class="icon-wrapper">
            <div class="icon">
              <i class="fa fa-phone"></i> 
            </div>
             
            <h4>CALL US</h4>
             <?php if($compDATA['admin_phone']!=""){?>
       <p><a href="tel:<?=$compDATA['admin_phone']?>"><?=$compDATA['admin_phone']?></a></p>
       <?}?>
        <?php if($compDATA['admin_mobile']!=""){?>
            <p><?=$compDATA['admin_mobile']?></p>
<?}?>
            <mark></mark> 
            
          </div>
        </li>
        <li class="grid__item wide--one-quarter post-large--one-half large--one-half">
          <div class="icon-wrapper">
            
            <div class="icon">
              <i class="fa fa-envelope"></i>
            </div>
            <h4>Contact Us</h4>
             <?php if($compDATA['admin_email']!="" || $compDATA['admin_alt_email']!=""){?>
              <p><a href="mailto:<?=$compDATA['admin_email']?>"><?=$compDATA['admin_email']?></a>
                                    <?php if($compDATA['admin_alt_email']!=""){?>
                                     <br> <a href="mailto:<?=$compDATA['admin_alt_email']?>"><?=$compDATA['admin_alt_email']?></a>
                                     <?}?></p>
            <?}?>
            
          </div>
        </li>
         
        <li class="address grid__item wide--one-quarter post-large--one-half large--one-half"> 
          <div class="icon-wrapper">
            <div class="icon">
              <i class="fa fa-home"></i>
            </div> 
            <h4>LOCATION</h4>
            <?php if($compDATA['admin_address']!=""){?>
                             <p><?=$compDATA['admin_address']?>, <?=$compDATA['admin_city']?>, <?=$compDATA['admin_state']?>, <?=$compDATA['admin_country']?> - <?=$compDATA['admin_zip_code']?></p>
<mark></mark> 
            <?}?>
          </div>
        </li>
        
         
        <li class="hours grid__item wide--one-quarter post-large--one-half large--one-half"> 
          <div class="icon-wrapper">
            <div class="icon">
              <i class="fa fa-clock-o"></i>
            </div> 
            <h4>OPENING HOURS</h4>
            <p> Timing : 7 Days Open<br> (9AM - 7PM)</p>
          </div>
        </li>
        
      </ul>
      
    </div>
    <div class="dt-sc-hr-invisible-large"></div>
    <div class="grid__item">
      <div class="contact-form-section">
<form action="" method="post" enctype="multipart/form-data" onsubmit="return checkValidationContact();" class="contact-form">
<div class="section-title">
<h2 class="mt-1 mb-5">Contact Us</h2>
<?=db_scalar("select site_pages_description from tbl_site_pages where site_pages_link='contact-us'");?>
</div>

<label class="label--hidden">Name *</label>
<input type="text" placeholder="Name *" name="contact_name" id="contact_name" onkeyup="errNameContact();">
    <p id="error_style_contact" class="error_name_contact" style="width:255px;"></p>

<label class="label--hidden">Email *</label>
<input type="text" placeholder="Email *" name="contact_email" id="contact_email" onkeyup="errEmailContact();">
 <p id="error_style_contact" class="error_email_contact" style="width:250px;"></p>

<label class="label--hidden">Phone *</label>
<input type="text" placeholder="Phone *" maxlength="10" name="contact_phone" id="contact_phone" onkeyup="errPhoneContact();">
  <p id="error_style_contact" class="error_phone_contact" style="width:250px;"></p>

<label class="label--hidden">Message</label>
<textarea rows="7" placeholder="Message *" name="contact_message" id="contact_message" onkeyup="errMessageContact();" style="resize: none;"></textarea>
 <p id="error_style_contact" class="error_message_contact" style="width:250px;"></p>

<button type="submit" class="btn" name="EnqSubmitContact">Send</button>
</form>
      </div>
    </div>
  </div>
  
  <style>
    .contact-address .icon {display: inline-block;font-size: 20px;height: 70px;line-height: 70px;margin-bottom: 25px;position: relative;text-align: center;width: 70px;color:#ffffff;}

    .contact-address { float:left;width:100%; }
    .contact-address .icon::after {background: #e81a46; border-radius: 50%; content: ""; height: 50px;left: 0;margin: 0 auto; position: absolute;right: 0; top: 10px;width: 50px;z-index: -1;}
    .contact-form-section .contact-form {background:rgba(0,0,0,0); }
    .contact-address .social-icons li a:hover { background:;border-color:;}
.contact-address .icon-wrapper{padding: 30px 10px;border:1px solid #e81a46;float:left;width:100%;}
.contact-address h4 { font-size: 18px;text-transform:uppercase;letter-spacing:1px;color:#3e454c; }

  
  </style>
  
  
</div>

 <?php
if($compDATA['admin_contactus_map_link']!="")
{?>
   <br>
<?=$compDATA['admin_contactus_map_link']?>
<?}
?>



</div>
  </div>
</div>
		          
        </div>          
        
      
       <div class="dt-sc-hr-invisible-large"></div>
    </main>  



<script>

  function trimfield(str) 
        { 
            return str.replace(/^\s+|\s+$/g,''); 
        }
    function checkValidationContact(){
      
        var name=document.getElementById("contact_name");
         var email=document.getElementById("contact_email");
        var phone=document.getElementById("contact_phone");
       var message=document.getElementById("contact_message");
         
        if(name.value==""){
            $('#contact_name').css({"border-color":"red"});
            name.focus();
            $('.error_name_contact').fadeIn('slow');
             $(".error_name_contact").html("Please enter your name !");
            return false;
        }

        if(name.value.length<=3){
             $('#contact_name').css({"border-color":"red"});
            name.focus();
            $(".error_name_contact").html("Name should be greater than 3 alphabet !");
            $('.error_name_contact').fadeIn('slow');
            return false;
        }

        if (/[0-9]/g.test(name.value)) {
            $('#contact_name').css({"border-color":"red"});
                name.focus();
         $(".error_name_contact").html("Use alphabet only !");
            $('.error_name_contact').fadeIn('slow');
                return false;
        }

       if(email.value==""){
             $('#contact_email').css({"border-color":"red"});
            email.focus();
             $(".error_email_contact").html("Please enter your email !");
            $('.error_email_contact').fadeIn('slow');
            return false;            
        }
        if(!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value)){
             $('#contact_email').css({"border-color":"red"});
            email.focus();
             $(".error_email_contact").html("Please enter valid email address !");
            $('.error_email_contact').fadeIn('slow');
            return false;
        }

  
    
     
           if(phone.value==""){
             $('#contact_phone').css({"border-color":"red"});
            phone.focus();
            $(".error_phone_contact").html("Please enter phone number !");
            $('.error_phone_contact').fadeIn('slow');
            return false;
        }

        if(isNaN(phone.value)){
             $('#contact_phone').css({"border-color":"red"});
            phone.focus();
             $(".error_phone_contact").html("Please enter numeric value !");
            $('.error_phone_contact').fadeIn('slow');
            return false;
        }

        if(phone.value.length<10 || phone.value.length>10){
             $('#contact_phone').css({"border-color":"red"});
            phone.focus();
            $(".error_phone_contact").html("Phone number should be 10 digit long !");
            $('.error_phone_contact').fadeIn('slow');
            return false;
        }

        
        if(trimfield(message.value)==""){
             $('#contact_message').css({"border-color":"red"});
            message.focus();
             $(".error_message_contact").html("Please leave your message !");
            $('.error_message_contact').fadeIn('slow');
            return false;
        }

    }
    
    function errNameContact(){
        $('#contact_name').css({"border-color":"#49aecc"});
          $('.error_name_contact').css({"display":"none"});
    }

      function errEmailContact(){
        $('#contact_email').css({"border-color":"#49aecc"});
        $('.error_email_contact').css({"display":"none"});
    }
    
       function errPhoneContact(){
        $('#contact_phone').css({"border-color":"#49aecc"});
        $('.error_phone_contact').css({"display":"none"});
    }
    

   
    
      function errMessageContact(){
        $('#contact_message').css({"border-color":"#49aecc"});
        $('.error_message_contact').css({"display":"none"});
    }
</script>
    <?php include("site-footer.php"); ?>

MMCT - 2023