Server IP : 103.53.40.154 / Your IP : 3.133.123.162 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/awningsmanufacturenoida.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php");?> <?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> <li><a href="<?=$site_url?>/products.html"><?php if($compDATA['admin_product_option']=='Yes'){ ?> Products <? }else{ ?> Services <? } ?></a></li> <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"><img src="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" alt="<?php if($CAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$CAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$CAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($CAT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$CAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$CAT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" width="100%"></div> </aside> <div class="col-md-8 blog-page-content post-details"> <div> <?=$CAT_DATA['category_description']?> </div> </div> </div> <div class="row" style="margin-top:70px;"> <section> <h3 class="widget-title"><?=$CAT_DATA['category_name']?> Products</h3> </section> <?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"); while($SUBCAT_DATA=mysqli_fetch_array($sql_subcat)){ @extract($SUBCAT_DATA); ?> <div class="col-md-3" style="border:1px solid #E2E2E2; padding:5px; margin-top:20px;"> <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:60px; height:60px;"></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><?=substr($description,0,40);?></div> </section> </div> <? } ?> </div> <?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){ ?> <div class="portfolio-items"> <?php while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); ?> <div class="portfolio-item width-25"> <a href="#"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="" class="img-responsive"> </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> <? } ?> </div> <? } ?> </div> </div> <? }else { ?> <?php if(isset($_POST['EnqSubmit'])){ @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='$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; } } ?> <?php if(!empty($catID)){ $sql_final=db_query("select * from tbl_category where 1 and category_id='$catID'"); $FINAL_DATA=mysqli_fetch_array($sql_final); @extract($FINAL_DATA); $productName=$FINAL_DATA['category_name']; $productImageName=$FINAL_DATA['category_image_name']; $productDescription=$FINAL_DATA['category_description']; } ?> <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><?=$productName?></h2> <ol class="breadcrumb text-center"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <li><a href="<?=$site_url?>/products.html"><?php if($compDATA['admin_product_option']=='Yes'){ ?> Products <? }else{ ?> Services <? } ?></a></li> <li class="active"><?=$productName?></li> </ol> </section> </div> </div> </div> <div id="blog" class="page blog-details-page"> <div class="container"> <div class="row"> <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> <aside class="col-md-4 blog-page-sidebar"> <div class="post-img"><img src="<?=$site_url?>/uploaded_files/<?=$productImageName?>" alt="<?php if($FINAL_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$FINAL_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$FINAL_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($FINAL_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$FINAL_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$FINAL_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" width="100%"></div> </aside> <div class="col-md-8 blog-page-content post-details"> <div><?=$productDescription?></div> </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"> <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"> <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"> <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"> <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"></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> <?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){ ?> <div class="portfolio-items"> <?php while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); ?> <div class="portfolio-item width-25"> <a href="#"> <img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" class="img-responsive"> </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> <? } ?> </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> <?php include("site-footer.php");?>