<?php

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]";

if (preg_match('#(--|/-|-/|--/|/--)#', $actual_link)) {
    header("Location: " . site_url);
    exit;
}
$ee = explode('/', $actual_link);
$ca_nam1 = $ee[3];

$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($GLOBALS['dbconn'], $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($GLOBALS['dbconn'], $cat_sql);

$cccnum = mysqli_num_rows($cat_qry);

$cat_sql1 = "select * from category_tbl where catID='$category_id'";

$cat_qry1 = mysqli_query($GLOBALS['dbconn'], $cat_sql1);

$cat_res = mysqli_fetch_array($cat_qry1);

$pageTitles = $cat_res['catName'];

$disTitles = $cat_res['keyword1'];
$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($GLOBALS['dbconn'], $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($GLOBALS['dbconn'], $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($GLOBALS['dbconn'], $cat_sql4);

$num4 = mysqli_num_rows($cat_qry4);

$cat_res4 = mysqli_fetch_array($cat_qry4);


$admin_sql = mysqli_query($GLOBALS['dbconn'], "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'];
$loc_sql = mysqli_query($GLOBALS['dbconn'], "select * from location_tbl where locationName='$ca_nam1'");
$location = mysqli_fetch_array($loc_sql);
$location_id = $location['locationID'];

$category_sub_general = mysqli_query($GLOBALS['dbconn'], "select * from location_content_tbl where category_id='$category_id' AND location_id='0'");



$categorysubdomain = mysqli_fetch_array($category_sub_general);
$page_desc = $categorysubdomain['description'];
$page_short_desc = $categorysubdomain['short_description'];

if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '' && $cat_res['keyword3'] != '') {

    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Authorised Dealers in location";
    $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1, $m_title)));

    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Authorised Dealers in location, hotkeyword1 in location, hotkeyword2 in location";
    $page_keyword = 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))));

    $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyname - Leading Authorised Dealers of hotkeyword2 Since 2006, Supplying hotkeyword3 in location at ✓Factory Price. Call +91-9810031296.";
    $page_metadesc = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('hotkeyword3', $cat_res[keyword3], str_replace('companyname', $admin_res['companyName'], str_replace('phone', $admin_res['mobile'], str_replace('location', $ca_nam1, $meta_des))))));
} else if ($cat_res['keyword1'] != '' && $cat_res['keyword2'] != '') {



    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Authorised Dealers in location";
    $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1, $m_title)));

    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Authorised Dealers in location, hotkeyword1 in location, hotkeyword2 in location";
    $page_keyword = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('hotkeyword2', $cat_res[keyword2], str_replace('location', $ca_nam1, $m_keyword)));

    $meta_des = "Simplex Furniture leading hotkeyword1 Manufacturers in location, since 2006. Premium Quality hotkeyword2 Authorised Dealers in location, Get latest factory price for hotkeyword1. Call +91-9810031296, ✓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, $meta_des)))));
} else if ($cat_res['keyword1'] != '') {

    $m_title = "hotkeyword1 in Manufacturers location, hotkeyword1 Authorised Dealers location";
    $page_metatitle = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('location', $ca_nam1, $m_title));

    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword1 Authorised Dealers in location, hotkeyword1 in location";
    $page_keyword = str_replace('hotkeyword1', $cat_res[keyword1], str_replace('location', $ca_nam1, $m_keyword));

    $meta_des = "Looking for Premium Quality hotkeyword1 Manufacturers in location? companyname - Leading Authorised Dealers of hotkeyword1 Since 2006, Supplying hotkeyword1 in location at ✓Factory Price. Call +91-9810031296.";
    $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, $meta_des))));
} else {

    $page_metatitle = $categorysubdomain['meta_title'];
    $page_keyword = $categorysubdomain['meta_keyword'];
    $page_metadesc = $categorysubdomain['meta_description'];
}


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

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

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

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

$page_short_desc = str_replace('countryname', $ca_nam1, $page_short_desc);
$page_short_desc = str_replace('catname', $pid, $page_short_desc);
$page_short_desc = str_replace('{location}', $ca_nam1, $page_short_desc);
$alt = explode(',', $page_metatitle);

if (strpos($_SERVER['REQUEST_URI'], "?") !== false) {
    $uri_parts = explode('?', $_SERVER['REQUEST_URI']);
    $linksLoc = $uri_parts[0];
    header("Location: " . site_url . $linksLoc);
    exit;
}


if ($categorysubdomain['headingtwosub'] != '') {
    $heading2 = $categorysubdomain['headingtwosub'] . '';
} else {
    $heading2 = $disTitles . ' Manufacturers ';
}
if (mysqli_num_rows($loc_sql) > 0) {
} else {
    header("Location: " . site_url);

    exit;
}
if (mysqli_num_rows($cat_q) > 0) {
?>
    <!DOCTYPE html>
    <html lang="en">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <?php include "app_top.php"; ?>
    </head>

    <body>

        <?php include "app_header_sub_new.php"; ?>
        <?php if ($cat_res['catBanner'] != '') { ?>
            <section class="heading_banner" style="background-image: url(<?= site_url; ?>/uploaded-files/category/banners/<?= $cat_res['catBanner']; ?>)">
            <?php } else { ?>
                <section class="heading_banner" style="background-image: url(<?= site_url; ?>/designer/images/category-banner.webp)">
                <?php } ?>
                <div class="container">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">

                        <?php if ($cat_res['catID'] == '1') { ?>


                            <h1 class="cat_title"><?= $cat_res['keyword3']; ?> Manufacturers in <?= $ca_nam1; ?></h1>
                            <?php } else { ?>
                            <h1 class="cat_title"><?= $disTitles; ?> Manufacturers in <?= $ca_nam1; ?></h1>
                            <?php } ?>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
                </section>

                <div class="inner_breadcrumb hidden_xs">
                    <div class="container">
                        <div class="row">
                            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                <ul class="breadcrumb">
                                    <li><a href="<?= site_url; ?>" 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="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($cat_res3['catName']); ?>.htm"
                                                title="<?php echo $cat_res3['catName']; ?>"><?php echo $cat_res3['catName']; ?></a></li>
                                    <?php } ?>
                                    <?php if ($num2 > 0) { ?>
                                        <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['catName']; ?></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <?php if ($cat_res['parentID'] == '0') { ?>
                    <section class="category_page">
                        <div class="container">
                            <h2 class="title_2 h2_title aboutTitle mt-0 d-flow-root wow fadeInDown animated"><?= $heading2; ?> in <?= $ca_nam1; ?></h2>
                            <div class="clearfix"></div>
                            <div class="row">
                                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                    <div class="wps_right">
                                        <div class="product_right_image">
                                            <?php if ($cat_res['catImage'] != '') {
                                                $imglink = getImage($cat_res[catImage], 500, 500, $cat_res[catName], "/uploaded-files/category/images/");
                                            } else {
                                                $imglink = NO_IMG_URL;
                                            } ?>
                                            <a href="#productID" data-bs-toggle="modal" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');$('.catName').html('<?php echo $cat_res['catName']; ?>');$('.catImg').attr('src','<?= $imglink; ?>');" title="Get Best Quote">
                                                <div class="detail_image">
                                                    <img class="img-responsive" src="<?= $imglink; ?>" alt="<?php echo $alt[0]; ?>" title="<?php echo $alt[0]; ?>">
                                                </div>
                                            </a>
                                            <div class="btn-bx mt-3">
                                                <a class="b-t-n btn-call" href="tel:+91-981-003-1296" title="+91-981-003-1296">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-telephone-fill" viewBox="0 0 16 16">
                                                        <path fill-rule="evenodd" d="M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"></path>
                                                    </svg> Call us
                                                </a>
                                                <button class="b-t-n btn-enquiry" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');$('.catName').html('<?php echo $cat_res['catName']; ?>');$('.catImg').attr('src','<?= $imglink; ?>');" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote">
                                                    <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"></path>
                                                    </svg> Get Best Quote
                                                </button>
                                                <button class="b-t-n btn-whatsapp" data-bs-target="#whatsapp" data-bs-toggle="modal">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-whatsapp" viewBox="0 0 16 16">
                                                        <path d="M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"></path>
                                                    </svg>
                                                    WhatsApp
                                                </button>
                                            </div>
                                        </div>
                                        <?php echo html_entity_decode($page_desc); ?>
                                    
                                        
                                        
                                        <div class="you_may">All Category Range</div>
                                        <div class="allListing">
                                            <?php
                                            $numrow = mysqli_num_rows($cat_qry);
                                            if ($numrow > 0) {
                                                while ($sub_res = mysqli_fetch_array($cat_qry)) {
            
                                                    if ($sub_res['catImage'] != '') {
                                                        $img_link = getImage($sub_res['catImage'], 374, 374, $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($GLOBALS['dbconn'], "select * from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
                                                    $category_sub_general1 = mysqli_query($GLOBALS['dbconn'], "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('countryname', $ca_nam1, $page_short_desc);
                                                    $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-4 col-xl-4 col-lg-4 col-md-4 col-sm-5 col-12">
                                                                <div class="product">
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?>">
                                                                        <div class="image1">
                                                                            <img src="<?= urlencode($img_link); ?>" alt="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                                                                        </div>
                                                                    </a>
                                                                </div>
                                                            </div>
                                                            <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-7 col-12">
                                                                <div class="right-content">
                                                                    <div class="tt"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>"><?= $sub_res['displayName']; ?></a></div>
                                                                    <div class="blue-line1"></div>
                                                                    <div class="more_info">
                                                                        <p> <?= html_entity_decode($page_short_desc); ?></p>

                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                    <a class="btn-style-one  bg-dark" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><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>
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="btn-style-one" title="View More">View More</a>

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                            <?php }
                                            } ?>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>
                <?php } else { ?>
                    <section class="category_page">
                        <div class="container">
                            <h2 class="title_2 h2_title aboutTitle mt-0 d-flow-root wow fadeInDown animated"><?= $heading2; ?> in <?= $ca_nam1; ?></h2>
                            <div class="clearfix"></div>
                            <div class="row">
                                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                                    <div class="wps_right">
                                        <div class="product_right_image">
                                            <?php if ($cat_res['catImage'] != '') {
                                                $imglink = getImage($cat_res['catImage'], 500, 500, $cat_res['catName'], "/uploaded-files/category/images/");
                                            } else {
                                                $imglink = NO_IMG_URL;
                                            } ?>
                                            <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');$('.catName').html('<?php echo $cat_res['catName']; ?>');$('.catImg').attr('src','<?= $imglink; ?>');" title="Get Best Quote">
                                                <div class="detail_image">
                                                    <img class="img-responsive" src="<?= $imglink; ?>" alt="<?php echo $alt[0]; ?>" title="<?php echo $alt[0]; ?>">
                                                </div>
                                            </a>
                                            <div class="btn-bx mt-3">
                                                <a class="b-t-n btn-call" href="tel:+91-981-003-1296" title="91-981-003-1296">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-telephone-fill" viewBox="0 0 16 16">
                                                        <path fill-rule="evenodd" d="M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"></path>
                                                    </svg> Call us
                                                </a>
                                                <button class="b-t-n btn-enquiry" onclick="$('.catID').val('<?php echo $cat_res['catID']; ?>');$('.catName').html('<?php echo $cat_res['catName']; ?>');$('.catImg').attr('src','<?= $imglink; ?>');" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote">
                                                    <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"></path>
                                                    </svg> Get Best Quote
                                                </button>
                                                <button class="b-t-n btn-whatsapp" data-bs-target="#whatsapp" data-bs-toggle="modal">
                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-whatsapp" viewBox="0 0 16 16">
                                                        <path d="M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"></path>
                                                    </svg>
                                                    WhatsApp
                                                </button>
                                            </div>
                                        </div>

                                        <?php echo html_entity_decode($page_desc); ?>

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


                                        <div class="row">
                                            <?php $product_ss = mysqli_query($GLOBALS['dbconn'], "select * from product_tbl where  FIND_IN_SET('" . $cat_res['catID'] . "',product_cat) ");
                                            while ($product_r1 = mysqli_fetch_array($product_ss)) {
                                                $pro_image1 =  explode(',', $product_r1['product_image']);
                                                $probig_img1 = $pro_image1[0];
                                                if ($product_r1['product_specfi'] == '') { ?>
                                                    <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12">
                                                        <div class="product_more">
                                                            <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $product_r1['product_id']; ?>');
            $('.catName').html('<?php echo $product_r1['product_title']; ?>');  $('.catImg').attr('src','<?= site_url; ?>/uploaded-files/product-images/<?= $probig_img1; ?>'); $('.catImg').attr('alt','<?php echo $product_r1['product_title']; ?> Manufacturers, Suppliers in <?= $ca_nam1; ?>'); $('.catImg').attr('title','<?php echo $product_r1['product_title']; ?> Manufacturers, Suppliers in <?= $ca_nam1; ?>')" title="Get Best Quote">
                                                                <div class="may_image">
                                                                    <div class="image">
                                                                        <img src="<?= site_url; ?>/uploaded-files/product-images/<?php echo $pro_image1[0]; ?>" alt="<?= $product_r1['product_title']; ?> Manufacturers, Suppliers in <?= $ca_nam1; ?>" title="<?= $product_r1['product_title']; ?> Manufacturers, Suppliers in <?= $ca_nam1; ?>">
                                                                    </div>
                                                                </div>

                                                                <div class="may_describe">
                                                                    <div class="fheading"><?= $product_r1['product_title']; ?></div>
                                                                    <div class="clearfix"></div>
                                                                    <div class="btn-style-one" title="View More">
                                                                        <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"></path>
                                                                        </svg> Get Best Quote
                                                                    </div>
                                                                </div>
                                                            </a>
                                                        </div>
                                                    </div>
                                            <?php }
                                            } ?>

                                        </div>



  <!-- <div class="title_2 h2_title aboutTitle mt-4 mb-3 d-flow-root wow fadeInDown animated">Photo
                                <span> Gallery </span></div> -->

                                <div class="row g-3">
                            <?php $gallery_122 = mysqli_query($GLOBALS['dbconn'], "select gallery_image,gallery_title,image_name,id,gallery_cat from catgallery_tbl where FIND_IN_SET('" . $cat_res['catID'] . "',gallery_cat) order by id ASC");

while ($gallery_res1 = mysqli_fetch_assoc($gallery_122)) {
    $galImg = getImage($gallery_res1['gallery_image'], 500, 500, $gallery_res1['gallery_title'] . $gallery_res1['id'], "/uploaded-files/catgallery/");
    $galImg1 = getImage($gallery_res1['gallery_image'], 1000, 1000, $gallery_res1['galery_title'] . $gallery_res1['id'], "/uploaded-files/catgallery/");
?>

                                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-4 col-sm-6 col-12">
                                    <div class="gallery_item mb-3">
                                        <a class="hover_effect h_yellow" data-fancybox="<?= $gallery_res1['gallery_title']; ?>"
                                            href="<?= $galImg1; ?>" title="<?= $gallery_res1['gallery_title']; ?> ">
                                            <img src="<?= $galImg; ?>" alt="<?= $gallery_res1['gallery_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>" 
                                            title="<?= $gallery_res1['gallery_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>">
                                        </a>

                                    </div>
                                </div>
                                <?php } ?>

                            </div>

                            <!-- <div class="title_2 h2_title aboutTitle mt-0 d-flow-root wow fadeInDown animated">Video
                                <span> Gallery </span></div> -->

                                

                                <div class="row video_gallery g-4 pt-3 pb-0 mb-0">
                                    
                                    <?php 
                                   
                                    $gallery_video = mysqli_query($GLOBALS['dbconn'], "select * from video_tbl where FIND_IN_SET('" . $cat_res['catID'] . "',video_cat) order by id Asc");
    
                                      while ($video_res = mysqli_fetch_assoc($gallery_video)) {
    
                                      ?>
    
                                    <div class="col-lg-6 col-md-6 col-12">
                                        <div class="vd_bx">
                                            <img loading="lazy" src="https://img.youtube.com/vi/<?= $video_res['slink_url']; ?>/mqdefault.jpg"
                                                alt="<?= $video_res['slink_title']; ?>" 
                                                title="<?= $video_res['slink_title']; ?>"
                                                width="480" height="360">
                                            <a href="https://www.youtube.com/embed/<?= $video_res['slink_url']; ?>" data-fancybox="" class="video-play-icon"
                                                title="<?= $video_res['slink_title']; ?>">
                                                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
                                                    fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
                                                    <path
                                                        d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z">
                                                    </path>
                                                </svg>
                                            </a>
                                        
                                        </div>
                                    </div>
                                    <?php } 
                                    ?>
                                    </div>



                                        <?php $product_s = mysqli_query($GLOBALS['dbconn'], "select * from product_tbl where  FIND_IN_SET('" . $cat_res['catID'] . "',product_cat) and product_specfi!='' ");
                                        $num = mysqli_num_rows($product_s);
                                        if ($num > 0) {    ?>

                                            <div class="you_may">Product Related to <?= $cat_res['displayName']; ?></div>
                                            <div class="allListing">
                                                <?php $i = 1;
                                                while ($product_r = mysqli_fetch_array($product_s)) {
                                                    $pro_image =  explode(',', $product_r['product_image']);
                                                    $probig_img = $pro_image[0]; ?>


                                                    <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">
                                                                    <div class="single_image">
                                                                        <a class="largeImage" id="bigImage<?= $i; ?>" 
                                                                        href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" 
                                                                        onclick="$('.catID').val('<?php echo $product_r['product_id']; ?>');
            $('.catName').html('<?php echo $product_r['product_title']; ?>');  $('.catImg').attr('src','<?= site_url; ?>/uploaded-files/product-images/<?= $probig_img; ?>'); $('.catImg').attr('alt','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>'); $('.catImg').attr('title','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>');" title="<?= $product_r['product_title']; ?>">

                                                                            <img src="<?= site_url; ?>/uploaded-files/product-images/<?php echo $pro_image[0]; ?>" alt="<?= $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>" title="<?= $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>">
                                                                        </a>
                                                                    </div>
                                                                    <div id="small<?= $i; ?>" class="small">
                                                                        <?php
                                                                        if (!empty($pro_image[1])) {
                                                                            foreach ($pro_image as $pro_imag_vals) { ?>
                                                                                <img class="item active"
                                                                                    src="<?= site_url; ?>/uploaded-files/product-images/<?php echo $pro_imag_vals; ?>"
                                                                                    alt="<?= $product_r['product_title']; ?>"
                                                                                    title="<?= $product_r['product_title']; ?>">
                                                                        <?php }
                                                                        } ?>
                                                                        <?php if ($product_r['product_video'] != '') { ?>
                                                                            <div class="item youtube">
                                                                                <a data-fancybox href="https://www.youtube.com/watch?v=<?= $product_r['product_video']; ?>">
                                                                                    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                                                        <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z" />
                                                                                    </svg></a>
                                                                            </div>
                                                                        <?php } ?>
                                                                    </div>
                                                                </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">
                                                                    <div class="tt"><?= $product_r['product_title']; ?> in <?= $ca_nam1; ?></div>
                                                                    <div class="blue-line1"></div>
                                                                    <div class="more_info">
                                                                        <!-- <h3> Specifications</h3> -->
                                                                        <?= html_entity_decode($product_r['product_specfi']); ?>
                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                    <a class="btn-style-one  bg-dark" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $product_r['product_id']; ?>');
            $('.catName').html('<?php echo $product_r['product_title']; ?>');  $('.catImg').attr('src','<?= site_url; ?>/uploaded-files/product-images/<?= $probig_img; ?>'); $('.catImg').attr('alt','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>'); $('.catImg').attr('title','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>');" title="Get Best Quote"><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>
                                                                    <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#callback" class="btn-style-one callback" onclick="$('.catID').val('<?php echo $product_r['product_id']; ?>');
            $('.catName').html('<?php echo $product_r['product_title']; ?>');  $('.catImg').attr('src','<?= site_url; ?>/uploaded-files/product-images/<?= $probig_img; ?>'); $('.catImg').attr('alt','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>'); $('.catImg').attr('title','<?php echo $product_r['product_title']; ?> Manufacturers, Authorised Dealers in <?= $ca_nam1; ?>');" title="Request A Callback">
                                                                        <svg fill="currentColor" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                                                                            <g data-name="Layer 2">
                                                                                <g data-name="phone-call">
                                                                                    <rect width="24" height="24" opacity="0" />
                                                                                    <path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z" />
                                                                                    <path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z" />
                                                                                    <path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.54.28c-.86.45-1.54.81-1.18 1.59a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z" />
                                                                                </g>
                                                                            </g>
                                                                        </svg> Request A Callback</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <script>
                                                        $('#small<?= $i; ?> .item').click(function() {
                                                            $('#bigImage<?= $i; ?> img').attr('src', $(this).attr('src').replace('thumb', 'large'));
                                                            if ($(this).hasClass("active")) {
                                                                $("#small<?= $i; ?> .item").removeClass("active");
                                                            } else {
                                                                $("#small<?= $i; ?> .item").removeClass("active");
                                                                $(this).addClass("active");
                                                            }
                                                        });
                                                    </script>
                                                <?php $i++;
                                                }  ?>
                                            </div>
                                        <?php } ?>

                                        <?php $numrow = mysqli_num_rows($cat_qry);
                                        if ($numrow > 0) {  ?>

                                            <div class="you_may">All Category Range</div>
                                            <div class="allListing">
                                                <?php


                                                while ($sub_res = mysqli_fetch_array($cat_qry)) {
                                                    if ($sub_res['catImage'] != '') {
                                                        $img_link = getImage($sub_res['catImage'], 374, 374, $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($GLOBALS['dbconn'], "select * from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
                                                    $category_sub_general1 = mysqli_query($GLOBALS['dbconn'], "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('countryname', $ca_nam1, $page_short_desc);
                                                    $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-4 col-xl-4 col-lg-4 col-md-4 col-sm-5 col-12">
                                                                <div class="product">
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="">
                                                                        <div class="image1">
                                                                            <img src="<?= $img_link; ?>" alt="<?= $sub_res['displayName']; ?>" Manufacturers in <?= $ca_nam1; ?> title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                                                                        </div>
                                                                    </a>
                                                                </div>
                                                            </div>
                                                            <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-7 col-12">
                                                                <div class="right-content">
                                                                    <div class="tt"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>"><?= $sub_res['displayName']; ?></a></div>
                                                                    <div class="blue-line1"></div>
                                                                    <div class="more_info">
                                                                        <p> <?= html_entity_decode($page_short_desc); ?></p>

                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                    <a class="btn-style-one  bg-dark" href="javascript:void(0);" onclick="$('.catID').val('<?php echo $sub_res['catID']; ?>');
            $('.catName').html('<?php echo $sub_res['catName']; ?>');
            $('.catImg').attr('src','<?= $img_link1; ?>');" data-bs-toggle="modal" data-bs-target="#productID" title="Get Best Quote"><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>
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="btn-style-one" title="View More">View More</a>

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                <?php } ?>

                                            </div>
                                        <?php } else { ?>
                                            <div class="you_may">All Category Range</div>
                                            <div class="allListing">
                                                <?php

                                                $cat_final = mysqli_query($GLOBALS['dbconn'], "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'], 374, 374, $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($GLOBALS['dbconn'], "select * from location_content_tbl where category_id='$cat_id1' AND location_id='$location_id'");
                                                    $category_sub_general1 = mysqli_query($GLOBALS['dbconn'], "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('countryname', $ca_nam1, $page_short_desc);
                                                    $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-4 col-xl-4 col-lg-4 col-md-4 col-sm-5 col-12">
                                                                <div class="product">
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                                                                        <div class="image1">
                                                                            <img src="<?= $img_link; ?>" alt="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">
                                                                        </div>
                                                                    </a>
                                                                </div>
                                                            </div>
                                                            <div class="col-xxl-8 col-xl-8 col-lg-8 col-md-8 col-sm-7 col-12">
                                                                <div class="right-content">
                                                                    <div class="tt"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?= $sub_res['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>"><?= $sub_res['displayName']; ?></a></div>
                                                                    <div class="blue-line1"></div>
                                                                    <div class="more_info">
                                                                        <p> <?= html_entity_decode($page_short_desc); ?></p>

                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                    <a class="btn-style-one bg-dark" href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#productID" onclick="$('.catID').val('<?php echo $sub_res['catID']; ?>');
            $('.catName').html('<?php echo $sub_res['catName']; ?>');
            $('.catImg').attr('src','<?= $img_link1; ?>');" title="Get Best Quote"><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>
                                                                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" class="btn-style-one" title="View More">View More</a>

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                <?php } ?>
                                            </div>

                                        <?php } ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </section>

                <?php } ?>
                <?php include "app_footer_sub_new.php"; ?>
                <?php include "app_bottom.php"; ?>

    </body>

    </html>

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