Server IP : 103.53.40.154 / Your IP : 18.191.200.114 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/generalmotorsju.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 ?> <!-- End Header --> <?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); } ?> <!-- page-banner-section ================================================== --> <section class="page-banner-section"> <div class="container"> <h1><?=$CAT_DATA['category_name']?></h1> <ul class="page-depth"> <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><a href=""><?=$CAT_DATA['category_name']?></a></li> </ul> </div> </section> <!-- End page-banner section --> <!-- services section ================================================== --> <section class="services-section"> <div class="container"> <div class="services-box"> <div class="row"> <div class="col-md-4"> <div class="services-tabs"> <ul> <li> <a href="<?=$site_url?>/products.html" style="background:#a0ce4e; font-size:20px;"><?php if($compDATA['admin_product_option']=='Yes'){ ?> All Products <? }else{ ?> All Services <? } ?></a> </li> <?php $sql_category=db_query("select * from tbl_category where 1 and category_parent_id='0' and category_status='Active' order by category_order_by asc"); if(mysqli_num_rows($sql_category)>0){ while($MAIN_CAT=mysqli_fetch_array($sql_category)){ @extract($MAIN_CAT); ?> <li> <a href="<?=$site_url?>/<?=$MAIN_CAT['category_url']?>.html"><?=$MAIN_CAT['category_name'];?></a> </li> <? }} ?> </ul> </div> </div> <div class="col-md-8"> <div class="blog-box"> <div class="blog-post single-post"> <a href="<?=$site_url?>/uploaded_files/<?=$CAT_DATA['category_image_name']?>" data-lightbox="example-1"><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']; ?> <? } ?>" class="img-responsive" style="width:100%; height:380px;"></a> <?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="row"> <div class="col-md-12"> <?php while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); ?> <div class="col-md-3 col-sm-3 col-xs-6" style="margin-top:15px;"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1"><img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$CAT_DATA['category_name']?> Images" title="<?=$CAT_DATA['category_name']?> Images" class="img-responsive" style="width:100%; height:100px;"></a> </div> <? } ?> </div> </div> <? } ?> <div class="post-content-text" style="margin-top:25px;"> <h1 class="amiClass"><?=$CAT_DATA['category_name']?></h1> <div><?=$CAT_DATA['category_description']?></div> </div> </div> <?php $sql_hot=db_query("select * from tbl_category where 1 and category_status='Active' and category_parent_id='$catID' order by category_order_by"); if(mysqli_num_rows($sql_hot)>0){ ?> <div class="row" style="margin-top:25px;"> <h3 class="amiClass"><?=$CAT_DATA['category_name']?> <?php if($compDATA['admin_product_option']=='Yes'){ ?>Products<? }else{ ?>Services<? } ?></h3> <div class="services-box"> <div class="row"> <?php while($HOT_DATA=mysqli_fetch_array($sql_hot)){ @extract($HOT_DATA); ?> <div class="col-md-4 col-xs-12"> <div class="services-post"> <img src="<?=$site_url?>/uploaded_files/<?=$HOT_DATA['category_image_name']?>" alt="<?php if($HOT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$HOT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$HOT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($HOT_DATA['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$HOT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$HOT_DATA['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" style="width:100%; height:160px;"> <div class="services-content"> <h2><?=$HOT_DATA['category_name']?></h2> <?php $description=strip_tags($HOT_DATA['category_description']);?> <p><?=substr($description,0,100);?>...</p> <a href="<?=$site_url?>/<?=$HOT_DATA['category_url']?>.html">Read More <i class="fa fa-angle-right"></i></a> </div> </div> </div> <? } ?> </div> </div> </div> <? } ?> </div> </div> </div> </div> </div> </section> <!-- End services section --> <? }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_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']; } ?> <section class="page-banner-section"> <div class="container"> <h1><?=$productName?></h1> <ul class="page-depth"> <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><a href=""><?=$productName?></a></li> </ul> </div> </section> <div class="col-md-12"> <div align="center" style="font-size:17px; color:<?=$clrerr?>; font-weight:bold; margin-bottom:10px; margin-top:20px;"> <?=display_sess_msg()?> </div> </div> <section class="services-section"> <div class="container"> <div class="services-box"> <div class="row"> <div class="col-md-4"> <div class="services-tabs"> <ul> <li> <a href="<?=$site_url?>/products.html" style="background:#a0ce4e; font-size:20px;"><?php if($compDATA['admin_product_option']=='Yes'){ ?> All Products <? }else{ ?> All Services <? } ?></a> </li> <?php $sql_category=db_query("select * from tbl_category where 1 and category_parent_id='0' and category_status='Active' order by category_order_by asc"); if(mysqli_num_rows($sql_category)>0){ while($MAIN_CAT=mysqli_fetch_array($sql_category)){ @extract($MAIN_CAT); ?> <li> <a href="<?=$site_url?>/<?=$MAIN_CAT['category_url']?>.html"><?=$MAIN_CAT['category_name'];?></a> </li> <? }} ?> </ul> </div> </div> <div class="col-md-8"> <div class="blog-box"> <div class="blog-post single-post"> <a href="<?=$site_url?>/uploaded_files/<?=$productImageName?>" data-lightbox="example-1"><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']; ?> <? } ?>" class="img-responsive" style="width:100%; height:380px;"></a> <?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="row"> <div class="col-md-12"> <?php while($CAT_IMAGE=mysqli_fetch_array($sql_catimage)){ @extract($CAT_IMAGE); ?> <div class="col-md-3 col-sm-3 col-xs-6" style="margin-top:15px;"> <a href="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" data-lightbox="example-1"><img src="<?=$site_url?>/category_more_images/<?=$CAT_IMAGE['category_image_name']?>" alt="<?=$productName?> Images" title="<?=$productName?> Images" class="img-responsive" style="width:100%; height:100px;"></a> </div> <? } ?> </div> </div> <? } ?> <div class="post-content-text" style="margin-top:25px;"> <h1 class="amiClass"><?=$productName?></h1> <div><?=$productDescription?></div> </div> </div> <form name="prdFrm" action="" method="post" enctype="multipart/form-data" onsubmit="return EnqValidation()" id="contact-form" style="margin-top:25px;"> <h3 class="amiClass" style="font-size:17px;">Send enquiry for <?=$productName?></h3> <div class="row"> <div class="col-md-4"> <input name="enquiry_name" id="enquiry_name" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_name']?>" <? } ?> type="text" placeholder="Name" maxlength="80"> </div> <div class="col-md-4"> <input name="enquiry_email" id="enquiry_email" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_email']?>" <? } ?> type="text" placeholder="Email" maxlength="80"> </div> <div class="col-md-4"> <input name="enquiry_mobile" id="enquiry_mobile" <?php if($clrerr=="red"){ ?> value="<?=$_POST['enquiry_mobile']?>" <? } ?> type="text" placeholder="Mobile" maxlength="15"> </div> </div> <div class="row"> <div class="col-md-12"><textarea name="enquiry_detail" id="enquiry_detail" placeholder="Message"><?php if($clrerr=="red"){ ?><?=$_POST['enquiry_detail']?><? } ?></textarea></div> <div class="col-md-8"><input type="text" id="security_code" name="captcha" maxlength="4" autocomplete="off" placeholder="Security Code"></div> <div class="col-md-4"><img src="<?=$site_url?>/amitabhcaptcha.php" width="79" height="38" alt="Captcha" /></div> <div class="col-md-12"><input type="submit" name="EnqSubmit" value="Send Enquiry" style="margin-top:15px;"></div> </div> </form> </div> </div> </div> </div> </div> </section> <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_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> <? } ?> <!-- footer ================================================== --> <?php include("site-footer.php");?>