<?php
ob_start();
include_once("include/main.inc.php");
@extract($_REQUEST);
if (preg_match('webpulse\.co$/', $_SERVER['HTTP_HOST'], $match)) {
  $match1 = $match[1];
  $vanity_url = 'http://' . $_SERVER['HTTP_HOST'];
}

$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee = explode('/', $actual_link);
$mm = $ee[3];
$ss = explode('.', $mm);
$ca_nam1 = $ss[0];
$ca_nam1 = ucwords(str_replace("-", " ", $ca_nam1));
$pid = ucwords(str_replace("-", " ", $_REQUEST['pid']));
$cat_s = "select * from category_tbl where catName='$pid'";
$cat_q = mysqli_query($dbcon, $cat_s);
$num = mysqli_num_rows($cat_q);
$cat_r = mysqli_fetch_array($cat_q);
$category_id = $cat_r['catID'];
$hover = $category_id;
$catn = $cat_r['catName'];

$cat_sql = "select * from category_tbl where parentID='$category_id' and status='Y'";
$cat_qry = mysqli_query($dbcon, $cat_sql);
$cccnum = mysqli_num_rows($cat_qry);
$cat_sql1 = "select * from category_tbl where catID='$category_id'";
$cat_qry1 = mysqli_query($dbcon, $cat_sql1);
$cat_res = mysqli_fetch_array($cat_qry1);
$title = $cat_res['pageTitle'];
$keyword = $cat_res['pageKeywords'];
$desc = $cat_res['pageDescription'];
$pageTitles = $cat_res['catName'];
$disTitles = $cat_res['displayName'];
$pdes = $cat_res['catDesc'];
$pdes1 = $cat_res['catDesc1'];

$parent = $cat_res['parentID'];

$cat_sql2 = "select * from category_tbl where catID='$parent'";

$cat_qry2 = mysqli_query($dbcon, $cat_sql2);

$num2 = mysqli_num_rows($cat_qry2);

$cat_res2 = mysqli_fetch_array($cat_qry2);

$mparent = $cat_res2['parentID'];

$cat_sql3 = "select * from category_tbl where catID='$mparent'";

$cat_qry3 = mysqli_query($dbcon, $cat_sql3);

$num3 = mysqli_num_rows($cat_qry3);

$cat_res3 = mysqli_fetch_array($cat_qry3);

$mmparent = $cat_res3['parentID'];

$cat_sql4 = "select * from category_tbl where catID='$mmparent'";

$cat_qry4 = mysqli_query($dbcon, $cat_sql4);

$num4 = mysqli_num_rows($cat_qry4);

$cat_res4 = mysqli_fetch_array($cat_qry4);

$loc_sql = mysqli_query($dbcon, "SELECT * FROM location_tbl where locationName='$ca_nam1'");
// echo $ca_nam1;
// echo mysqli_num_rows($loc_sql);die;
if (mysqli_num_rows($loc_sql) == 0) {
  header('location:' . SITE_URL_PATH);
}
$location = mysqli_fetch_array($loc_sql);
$location_id = $location['locationID'];
$category_sub_specific = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$category_id' AND location_id='$location_id'");
$category_sub_general = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$category_id' AND location_id='0'");

$content_count = mysqli_num_rows($category_sub_specific);
if ($content_count > 0) {
  $categorysubdomain = mysqli_fetch_array($category_sub_specific);
  $page_metatitle = $categorysubdomain['meta_title'];
  $page_metakey = $categorysubdomain['meta_keyword'];
  $page_metadesc = $categorysubdomain['meta_description'];
  $page_desc = $categorysubdomain['description'];
  $page_short_desc = $categorysubdomain['short_description'];
  //    specific location content
} else {
  $categorysubdomain = mysqli_fetch_array($category_sub_general);
  $page_metatitle = $categorysubdomain['meta_title'];
  $page_metakey = $categorysubdomain['meta_keyword'];
  $page_metadesc = $categorysubdomain['meta_description'];
  $page_desc = $categorysubdomain['description'];
  $page_short_desc = $categorysubdomain['short_description'];
  //    general content
}
$page_desc = str_replace('{location}', $ca_nam1, $page_desc);
$page_desc = str_replace('catname', $pid, $page_desc);

$page_metatitle = str_replace('{location}', $ca_nam1, $page_metatitle);
$page_metatitle = str_replace('catname', $pid, $page_metatitle);

$page_metakey = str_replace('{location}', $ca_nam1, $page_metakey);
$page_metakey = str_replace('catname', $pid, $page_metakey);

$page_metadesc = str_replace('{location}', $ca_nam1, $page_metadesc);
$page_metadesc = str_replace('catname', $pid, $page_metadesc);

$page_short_desc = str_replace('{location}', $ca_nam1, $page_short_desc);
$page_short_desc = str_replace('catname', $pid, $page_short_desc);

$admin_sql = mysqli_query($dbcon, "select * from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);
$mobile = $admin_res['mobile'];
$city = $admin_res['city'];
$state = $admin_res['state'];
$country = $admin_res['country'];
$companyName = $admin_res['companyName'];
$address = $admin_res['address'];
$titles = $cat_res['pageTitle'];



if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '' && $cat_res['keyword3'] != '') {
  // echo "3";
  // exit;
  $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers and Exporters in location";
  $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2],  str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_title))));

  $m_keyword = "hotkeyword1 Manufacturers, hotkeyword2 Suppliers, hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers in location, hotkeyword2 Exporters in location, hotkeyword1 in location, hotkeyword2 in location";
  $page_metakey = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('hotkeyword3', $cat_res[keyword3], str_replace('location', $ca_nam1, $m_keyword))));

  $m_desc = "companyName is leading hotkeyword1 Manufacturers in location. Premium Quality hotkeyword2 Suppliers, Exporters in location. Get the best quality product at factory price. Call +91-9354441044, ✓Fast Delivery ✓Good Price ✓Premium Quality";
  $page_metadesc = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile], str_replace('hotkeyword3', $cat_res[keyword3], str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_desc)))))));
} else if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '') {
  // echo "2";
  // exit;
  $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers and Exporters in location";
  $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2],  str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_title))));

  $m_keyword = "hotkeyword1 Manufacturers, hotkeyword2 Suppliers, hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers in location, hotkeyword2 Exporters in location, hotkeyword1 in location, hotkeyword2 in location";
  $page_metakey = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2],  str_replace('location', $ca_nam1, $m_keyword)));

  $m_desc = "companyName is leading hotkeyword1 Manufacturers in location. Premium Quality hotkeyword2 Suppliers, Exporters in location. Get the best quality product at factory price. Call +91-9354441044, ✓Fast Delivery ✓Good Price ✓Premium Quality";
  $page_metadesc = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile], str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_desc))))));
} else if ($cat_res['keyword1'] != '') {
  // echo "1";
  // exit;
  $m_title = "hotkeyword1 Manufacturers in location, hotkeyword1 Suppliers and Exporters in location";
  $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_title)));

  $m_keyword = "hotkeyword1 Manufacturers, hotkeyword2 Suppliers, hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers in location, hotkeyword2 Exporters in location,hotkeyword1 in location, hotkeyword2 in location";
  $page_metakey = str_replace('hotkeyword1', $cat_res[keyword1],  str_replace('location', $ca_nam1, $m_keyword));

  $m_desc = "companyName is leading hotkeyword1 Manufacturers in location. Premium Quality hotkeyword2 Suppliers, Exporters in location. Get the best quality product at factory price. Call +91-9354441044, ✓Fast Delivery ✓Good Price ✓Premium Quality";
  $page_metadesc = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile], str_replace('location', $ca_nam1, str_replace('location', $ca_nam1, $m_desc)))));
} else {
  // echo "0";
  // exit;
  $page_metatitle = $page_metatitle1;
  $page_metakey = $page_metakey1;
  $page_metadesc = $page_metadesc1;
}

$tt = explode(',', $page_metatitle);
$t1s = $tt[0];
$t2s = $tt[1];
if (mysqli_num_rows($cat_q) > 0) {
?>
  <!DOCTYPE html>
  <html lang="en" itemscope>

  <head itemscope itemtype="http://www.mangla-plastic.webpulse.site/">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- <?php if ($page_metatitle != '') { ?>
      <title><?//php echo $page_metatitle; ?></title>
      <meta name=description content="<?php echo $page_metadesc; ?>">
      <meta name=keywords content="<?php echo $page_metakey; ?>">
    <?php } else { ?>
      <title><?php echo $disTitles; ?></title>
      <meta name=description content="<?php echo $disTitles; ?>">
      <meta name=keywords content="<?php echo $disTitles; ?>">
    <?php } ?> -->
    <?php include "top.php"; ?>
  </head>

  <body>
    <div class="webpulse-main-wrapper wrapper-wide">
      <!-- <a id="web-pulse-scroll-up" title="Go to Top"><i class="fa fa-angle-up"></i></a> -->
      <?php include "header_sub.php"; ?>
      <div class="clearfix"></div>
      <!-- Heading Banner -->
      <?php
      if ($cat_res['catBanner'] != '') { ?>
        <div class="heading_banner " style="background-image:url(<?= SITE_URL_PATH; ?>/uploaded-files/category/banners/<?php echo $cat_res['catBanner']; ?>)">
        <?php } else { ?>
          <div class="heading_banner" style="background-image: url(<?= SITE_URL_PATH; ?>/images/about.jpg)">
          <?php } ?>
          <div class="container">
            <div class="row">
              <div class="col-lg-12 text-center">
                <!-- <h1 class="cat_title"><?php echo $t1s; ?></h1> -->
                <div class="clearfix"></div>
              </div>
            </div>
          </div>
          </div>
          <!-- Breadcrumb -->
          <div class="inner_breadcrumb hidden-xs">
            <div class="container">
              <div class="row">
                <div class="col-lg-12">
                  <ul class="breadcrumb">
                    <li><a href="<?= SITE_URL_PATH; ?>" title="Home">Home</a></li>
                    <?php if ($num4 > 0) { ?>
                      <li><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($cat_res4['catName']); ?>.htm"
                          title="<?php echo $cat_res4['catName']; ?> "><?php echo $cat_res4['catName']; ?></a>
                      </li>
                    <?php } ?>
                    <?php if ($num3 > 0) { ?>
                      <li><a href="javascript:void(0)"
                          title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['catName']; ?></a></li>
                    <?php } ?>
                    <?php if ($num2 > 0) { ?>
                      <?php if ($cat_res2['parentID'] == '0') { ?>
                        <li><a href="javascript:void(0)"
                            title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['catName']; ?></a></li>
                      <?php } else { ?>
                        <li><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($cat_res2['catName']); ?>.htm"
                            title="<?php echo $cat_res2['catName']; ?>"><?php echo $cat_res2['catName']; ?></a></li>
                    <?php }
                    } ?>
                    <li class="active"><?php echo $cat_res['displayName']; ?></li>
                  </ul>
                </div>
              </div>
            </div>
          </div>
          <?php
          if ($cat_res['parentID'] == '0') { ?>
            <section class="about_page webpulse_tm_universal_title_holder">
              <div class="container">
                <div class="row">
                  <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 col-12">
                    <div class="right_side">
                      <div class="title_holder_inner">
                        <h1><?php echo $t1s; ?></h1>
                      </div>
                      <div class="wps_right">
                        <div class="product_right_image">
                          <a href="javascript:void(0);" class="popupEnqBtn" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');$('.catImg').attr('alt','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src',$('.mycatimg_<?php echo $cat_res['catImage']; ?> ').attr('src'));">
                            <div class="product_dimage">
                              <div class="detail_image">
                                <img class="img-responsive mycatimg_<?php echo $cat_res['catID']; ?>" src="<?= getImage($cat_res['catImage'], 400, 400, $cat_res['catName'], "/uploaded-files/category/images/"); ?>" alt="<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                              </div>
                            </div>
                          </a>

                          <a class="detail_enq_btn" title="Send Enquiry" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');$('.catImg').attr('alt','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src',$('.mycatimg_<?php echo $cat_res['catImage']; ?> ').attr('src'));">
                            Get A Quote</a>


                        </div>
                        <?php echo html_entity_decode($page_desc); ?>
                        <div class="clearfix"></div>
                        <div class="you_may">You may also like:</div>
                        <?php

                        while ($sub_res = mysqli_fetch_array($cat_qry)) {
                          if ($sub_res['catImage'] != '') {
                            $img_link = getImage($sub_res[catImage], 366, 214, $sub_res[catName], "/uploaded-files/category/images/");
                            $img_link1 = getImage($sub_res[catImage], 500, 500, $sub_res[catName], "/uploaded-files/category/images/");
                          } else {
                            $img_link = NO_IMG_URL;
                            $img_link1 = NO_IMG_URL;
                          }
                          $cat_id1 = $sub_res['catID'];
                          $category_sub_specific1 = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
                          $category_sub_general1 = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$cat_id1' AND location_id='0'");

                          $content_count = mysqli_num_rows($category_sub_specific1);
                          if ($content_count > 0) {
                            $categorysubdomain = mysqli_fetch_array($category_sub_specific1);
                            $page_short_desc = $categorysubdomain['short_description'];
                          } else {
                            $categorysubdomain = mysqli_fetch_array($category_sub_general1);
                            $page_short_desc = $categorysubdomain['short_description'];
                          }
                          $page_short_desc = str_replace('{location}', $ca_nam1, $page_short_desc);
                          $page_short_desc = str_replace('catname', $pid, $page_short_desc);
                        ?>
                          <div class="product_listing">
                            <div class="row">
                              <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">
                                <div class="product">
                                  <a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?>">
                                    <div class="image1">
                                      <img src="<?= $img_link; ?>" alt="<?php echo $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?php echo $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" class="img-responsive mycatimg_<?php echo $sub_res['catID']; ?>">
                                    </div>
                                  </a>
                                  <p>Interested in this product?</p>
                                  <a class="read_more_product popupEnqBtn" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');$('.catImg').attr('src','<?php echo $sub_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('src','<?php echo $sub_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                      <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z" />
                                    </svg> Get Best Quote</a>
                                </div>
                              </div>

                              <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                                <div class="right-content">
                                  <h4><a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?> in <?= $ca_nam1; ?>"><?php echo $sub_res['displayName']; ?></a>
                                  </h4>
                                  <div class="blue-line1"></div>
                                  <?php echo html_entity_decode($page_short_desc); ?> 
                                  <a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="read_more_product" title="">Read More <i class="fa-solid fa-arrow-right"></i></a>
                                </div>
                              </div>
                            </div>
                          </div>
                        <?php } ?>
                      </div>
                    </div>
                  </div>
                  <?php include 'about-left-sub.php'; ?>
                </div>
              </div>
            </section>
            <!-- Home About -->

          <?php } else {
            if ($cat_res['catImage'] != '') {
              $img_link = getImage($cat_res['catImage'], 400, 400, $cat_res['catName'], "/uploaded-files/category/images/");
              $img_link1 = getImage($cat_res['catImage'], 500, 500, $cat_res['catName'], "/uploaded-files/category/images/");
            } else {
              $img_link = NO_IMG_URL;
              $img_link1 = NO_IMG_URL;
            }
          ?>
            <section class="about_page webpulse_tm_universal_title_holder">
              <div class="container">
                <div class="row">
                  <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 col-12">
                    <div class="right_side">
                      <div class="title_holder_inner">
                        <h1><?php echo $t1s; ?></h1>
                      </div>
                      <div class="wps_right">
                        <div class="product_right_image">
                          <a href="javascript:void(0);" class="popupEnqBtn" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');$('.catImg').attr('alt','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');">
                            <div class="product_dimage">
                              <div class="detail_image">
                                <img class="img-responsive mycatimg_<?php echo $cat_res['catID']; ?>" src="<?= $img_link; ?>" alt="<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?php echo $cat_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                              </div>
                            </div>
                          </a>

                          <a class="detail_enq_btn" title="Send Enquiry" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>'); $('.catImg').attr('alt','<?php echo $cat_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>'); $('.catImg').attr('title','<?php echo $cat_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');">
                            Get A Quote</a>
                        </div>
                        <?php echo html_entity_decode($page_desc); ?>

                        <a class="interestedbtn detail_enq_btn text-center" title="Send Enquiry" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $cat_res['catID']; ?>');$('.catImg').attr('alt','<?php echo $cat_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $cat_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $cat_res['catName']; ?>');
                                 $('.catName').html('<?php echo $cat_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');">
                          Yes, I am Interested</a>
                        <div class="clearfix"></div>
                        <div class="row">
                          <?php
                          $sql_pros = mysqli_query($dbcon, "select * from product_tbl where product_subsubcat='$category_id'");
                          while ($res_pros = mysqli_fetch_array($sql_pros)) {
                          ?>

                            <div class="col-lg-12 col-md-12 col-sm-12 col-12">
                              <div class="product-specification-listing">
                                <div class="row">
                                  <div class="col-lg-5 col-sm-12">
                                    <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $res_pros['product_id']; ?>');
            $('.catName').html('<?php echo $res_pros['product_title']; ?>'); $('.catImg').attr('src',$('.mycatimg_<?php echo $res_pros['product_id']; ?> ').attr('src'));">
                                      <div class="spec_thumb">
                                        <img src="<?= getImage($res_pros['product_image'], 400, 234, $res_pros['product_title'], "/uploaded-files/product/images/"); ?>" alt="<?php echo $res_pros['product_title']; ?> Manufacturers in <?= $ca_nam1; ?>" class="img-responsive mycatimg_<?php echo $res_pros['product_id']; ?>" title="<?php echo $res_pros['product_title']; ?> Manufacturers in <?= $ca_nam1; ?>">
                                      </div>
                                    </a>
                                    <div class="clearfix"></div>

                                  </div>
                                  <div class="col-lg-7 col-sm-12">
                                    <div class="spec_content">
                                      <span class="title_smalll"><?php echo $res_pros['product_title']; ?> in <?= $ca_nam1; ?></span>
                                      <div class="content-spec-details">
                                        <?php echo html_entity_decode($res_pros['product_desc']); ?>
                                         


                                      </div>
                                      <div class="clearfix"></div>

                                      <a class="read_more_product popupEnqBtn" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $res_pros['product_id']; ?>');$('.catImg').attr('alt','<?php echo $res_pros['product_title']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $res_pros['product_title']; ?> Manufacturers in <?= $ca_nam1; ?>');
            $('.catName').html('<?php echo $res_pros['product_title']; ?>'); $('.catImg').attr('src',$('.mycatimg_<?php echo $res_pros['product_id']; ?> ').attr('src'));" title="Send Enquiry">Send Enquiry<i class="fa fa-envelope"></i></a>



                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          <?php } ?>
                        </div>
                        <div class="clearfix"></div>
                        <div class="you_may">You may also like:</div>
                        <div id="prodListingContainer">
                          <?php
                          $category_id = $cat_res['catID'];
                          $cat_final = mysqli_query($dbcon, "select * from category_tbl where parentID='$parent' and status='Y' and catID!='$category_id' order by catOrder Asc");

                          while ($sub_res = mysqli_fetch_array($cat_final)) {
                            if ($sub_res['catImage'] != '') {
                              $img_link = getImage($sub_res['catImage'], 324, 324, $sub_res['catName'], "/uploaded-files/category/images/");
                              $img_link1 = getImage($sub_res['catImage'], 500, 500, $sub_res['catName'], "/uploaded-files/category/images/");
                            } else {
                              $img_link = NO_IMG_URL;
                              $img_link1 = NO_IMG_URL;
                            }
                            $cat_id1 = $sub_res['catID'];
                            $category_sub_specific1 = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
                            $category_sub_general1 = mysqli_query($dbcon, "select * from location_content_tbl where category_id='$cat_id1' AND location_id='0'");

                            $content_count = mysqli_num_rows($category_sub_specific1);
                            if ($content_count > 0) {
                              $categorysubdomain = mysqli_fetch_array($category_sub_specific1);
                              $page_short_desc = $categorysubdomain['short_description'];
                            } else {
                              $categorysubdomain = mysqli_fetch_array($category_sub_general1);
                              $page_short_desc = $categorysubdomain['short_description'];
                            }
                            $page_short_desc = str_replace('{location}', $ca_nam1, $page_short_desc);
                            $page_short_desc = str_replace('catname', $pid, $page_short_desc);
                          ?>

                            <div class="product_listing listpager" style="opacity: 1;">
                              <div class="row">
                                <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-xs-12 col-12">
                                  <div class="product">
                                    <a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?>">
                                      <div class="image1">
                                        <img src="<?= $img_link; ?>" alt="<?php echo $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?php echo $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" class="img-responsive mycatimg_<?php echo $sub_res['catID']; ?>">
                                      </div>
                                    </a>
                                  </div>
                                </div>
                                <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-8 col-xs-12 col-12">
                                  <div class="right-content">
                                    <h4 class="title_h3">
                                      <a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?> in <?= $ca_nam1; ?>"><?php echo $sub_res['displayName']; ?></a>
                                    </h4>
                                    <div class="blue-line1"></div>
                                    <?php echo html_entity_decode($page_short_desc); ?> 
                                    <a href="<?= SITE_URL_PATH; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="read_more_product" title="Read More">Read More <i class="fa-solid fa-arrow-right"></i></a>
                                    <a class="read_more_product popupEnqBtn" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('#catID').val('<?php echo $sub_res['catID']; ?>');$('.catImg').attr('alt','<?php echo $sub_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');$('.catImg').attr('title','<?php echo $sub_res['catName']; ?> Manufacturers in <?= $ca_nam1; ?>');
                                 $('#catName').val('<?php echo $sub_res['catName']; ?>');
                                 $('.catName').html('<?php echo $sub_res['catName']; ?>');  $('.catImg').attr('src','<?= $img_link1; ?>');" title="Get A Quote">Get A Quote</a>
                                  </div>
                                </div>
                              </div>
                            </div>

                          <?php } ?>
                        </div>
                      </div>
                    </div>
                  </div>
                  <?php //include 'about-left-sub.php'; 
                  ?>
                </div>
              </div>

            </section>

          <?php } ?>
          <?php include "award_video.php"; ?>
          <!-- Footer -->
          <?php include "footer_sub.php"; ?>
        </div>
        <?php include "bottom.php"; ?>
  </body>

  </html>
<?php
} else {
  header("Location: " . SITE_URL_PATH);
  exit;
}
?>