<?php include_once('include/main.inc.php');

$hover = "home";

$homepage = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='1' and status='Y'");

$home_res = mysqli_fetch_array($homepage);

@extract($_REQUEST);

$ca_nam1 = $_REQUEST['cid'];

$ca_nam1 = ucwords(str_replace("-", " ", $cid));

$sql_locas = mysqli_query($GLOBALS['dbconn'], "select locationID,locationName from location_tbl where locationName='$ca_nam1' and status='Y'");

$location = mysqli_fetch_array($sql_locas);

$location_id = $location['locationID'];

$ca_nam1 = $location['locationName'];

$category_sub_general = mysqli_query($GLOBALS['dbconn'], "select location_ids,meta_title,meta_keyword,meta_description,description,short_description from location_content_tbl where category_id='0' AND location_id='0'");

$content_count = mysqli_num_rows($category_sub_general);

if ($content_count > 0) {

    while ($categorysubdomain = mysqli_fetch_array($category_sub_general)) {

        $locati = explode(",", $categorysubdomain['location_ids']);

        if (in_array($location_id, $locati)) {

            if ($categorysubdomain['meta_title'] != '') {

                $page_metatitle = $categorysubdomain['meta_title'];
            }

            if ($categorysubdomain['meta_keyword'] != '') {

                $page_metakey = $categorysubdomain['meta_keyword'];
            }

            if ($categorysubdomain['meta_description']) {

                $page_metadesc = $categorysubdomain['meta_description'];
            }

            $page_desc = html_entity_decode($categorysubdomain['description']);
        }
    }

    //    specific location content

}

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

    $m_title = "hotkeyword1 Manufacturers in location, hotkeyword2 Suppliers, Exporters location";

    $page_metatitle = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2],  str_replace('location', $ca_nam1, $m_title)));

    $m_keyword = "hotkeyword1 Manufacturers in location, hotkeyword2 Manufacturers in location, hotkeyword1 Suppliers in location, hotkeyword2 Suppliers in location, hotkeyword1 Exporters in location, hotkeyword2 Exporters in location, hotkeyword1 in location, hotkeyword2 in location";

    $page_metakey = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2],  str_replace('location', $ca_nam1, $m_keyword)));

    $m_desc = "companyName leading hotkeyword1 Manufacturers in location. Best Quality hotkeyword2 Suppliers and Exporters in location at Factory Price. Call phone";

    $page_metadesc = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile_meta], str_replace('location', $ca_nam1, $m_desc)))));
}

$page_desc = str_replace('countryname', $ca_nam1, $page_desc);

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

$page_desc = str_replace('catname', $pid, $page_desc);

$page_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc);

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

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

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

$home_sub_uncheck_loc = mysqli_query($GLOBALS['dbconn'], "select description,short_description,meta_title,meta_description,meta_keyword from location_content_tbl where category_id='0' AND location_id='0'");

$home_sub_uncheck_res = mysqli_fetch_array($home_sub_uncheck_loc);

$page_desc1 = $home_sub_uncheck_res['description'];

$page_metatitle1 = $home_sub_uncheck_res['meta_title'];

$page_metakey1 = $home_sub_uncheck_res['meta_keyword'];

$page_metadesc1 = $home_sub_uncheck_res['meta_description'];

$page_desc1 = str_replace('{location}', $ca_nam1,  $page_desc1);

$page_metatitle1 = str_replace('{location}', $ca_nam1, $page_metatitle1);

$page_metakey1 = str_replace('{location}', $ca_nam1, $page_metakey1);

$page_metadesc1 = str_replace('{location}', $ca_nam1, $page_metadesc1);

$page_metatitle = ($page_metatitle != '') ? $page_metatitle : $page_metatitle1;

$page_metakey = ($page_metakey != '') ? $page_metakey : $page_metakey1;

$page_metadesc = ($page_metadesc != '') ? $page_metadesc : $page_metadesc1;

$page_desc1 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc1);

if (mysqli_num_rows($sql_locas) > 0) {
} else {

    header("Location: " . site_url);

    exit;
}

$page_metadesc = str_ireplace('{companyName}', $admin_res['companyName'], $page_metadesc);

?>

<!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.php"; ?>

    <div class="home_slider">

        <div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">

            <div class="carousel-inner">

                <?php

                $i = 1;

                $sql_banner = mysqli_query($GLOBALS['dbconn'], "Select bannerImage, personName,Decs,bannerUrl from banner_tbl where status='Y' order by slno DESC");

                while ($res_banner = mysqli_fetch_array($sql_banner)) { ?>

                    <div class="carousel-item <?= $i == 1 ? 'active' : ''; ?>">

                        <img src="<?= site_url; ?>/uploaded-files/banner-image/<?= $res_banner['bannerImage']; ?>" class="d-block w-100" alt="<?= $res_banner['personName']; ?> in <?= $ca_nam1; ?>" title="<?= $res_banner['personName']; ?> in <?= $ca_nam1; ?>">

                    </div>

                <?php $i++;
                } ?>





            </div>

            <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">

                <span class="carousel-control-prev-icon" aria-hidden="true"></span>

                <span class="visually-hidden">Previous</span>

            </button>

            <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">

                <span class="carousel-control-next-icon" aria-hidden="true"></span>

                <span class="visually-hidden">Next</span>

            </button>

        </div>

    </div>

    <!-- <div class="video-banner">

        <video autoplay="" muted="" loop="" id="myVideo">

            <source src="designer/images/video/6X-Keyvisual-Clean-medium.mp4" type="video/mp4">

        </video>

    </div> -->

    <div class="abt-sec">
        <div class="container">
            <div class="why-imgs">
                <div class="row g-0">

                    <div class="col-md-12 p-0 wow fadeInDown">

                        <div class="img-1">

                            <img src="<?= site_url; ?>/designer/images/about/about3.jpg" alt="Best Radar Level Transmitter Manufacturers in <?= $ca_nam1; ?>" title="Best Radar Level Transmitter Manufacturers in <?= $ca_nam1; ?>">

                        </div>

                    </div>

                    <div class="col-md-5 exp-bx wow fadeInLeft">

                        <div class="steel-year">

                            <span class="no-title"><span id="count1">49</span>+</span>

                            <spans class="title">Years Industrial Experience </spans>

                        </div>

                    </div>

                    <div class="col-md-7 wow fadeInRight">

                        <div class="img-2">

                            <img src="<?= site_url; ?>/designer/images/about/about4.jpg" class="img-cover" alt="Best Radar Level Transmitter Manufacturers in <?= $ca_nam1; ?>" title="Best Radar Level Transmitter Manufacturers in <?= $ca_nam1; ?>">

                        </div>

                    </div>

                </div>
            </div>
            <div class="why-tx">

                <h1 class="main-tt">Best Radar Level Transmitter Manufacturers in <?= $ca_nam1; ?></h1>
                <?php if ($page_desc != '') { ?>

                    <?= html_entity_decode($page_desc); ?>

                <?php } else { ?>

                    <?= html_entity_decode($page_desc1); ?>

                <?php   } ?>

                <a href="<?= site_url; ?>/about-us.htm" title="Know More Us" class="main-btn">Know More Us</a>

            </div>
        </div>
    </div>

    <div class="homeAbout">

        <div class="container">

            <div class="row align-items-center wow fadeInDown" data-wow-delay="0s">

                <div class="col-md-6 col-12">

                    <div class="tt-bx">

                        <div class="tt text-start">Explore Our, <span>Quality Products</span></div>

                        <p class="text-start mx-0">Discover precision-engineered solutions crafted to elevate your operations. Explore innovation, reliability, and excellence in every product for your industry needs.</p>

                    </div>

                </div>

                <div class="col-md-6 col-12 text-md-end">

                    <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/radar-level.htm" class="main-btn" title="View All Products">View All Products <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">

                            <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8">

                            </path>

                        </svg></a>

                </div>

            </div>



            <div id="featuredProducts" class="owl-carousel pt-2">

                <?php

                $home_cat1 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName, catDesc, catID,catBanner from category_tbl where home_category='1' and status='Y' order by catOrder asc limit 0,6");

                while ($home_cat_res2 = mysqli_fetch_assoc($home_cat1)) {

                    if ($home_cat_res2['catImage'] != '') {

                        $imglink = getImage($home_cat_res2[catImage], 300, 300, $home_cat_res2[catName], "/uploaded-files/category/images/");
                    } else {

                        $imglink = site_url . "/uploaded-files/category/images/noimage.jpg";
                    }

                    $catIdss = $home_cat_res2['catID'];

                    $sql_content = mysqli_query($dbconn, "select short_description from location_content_tbl where category_id ='$catIdss'");

                    $res_content = mysqli_fetch_array($sql_content);

                    $subcontent_descc = html_entity_decode($res_content['short_description']);

                    $subcontent_desccc = str_replace('{location}', $ca_nam1, $subcontent_descc);

                    $subcontent_descccc = str_replace('catname', $res_cat['catName'], $subcontent_desccc);

                    $subcontent_descccc = str_ireplace('{companyName}', $admin_res['companyName'], $subcontent_descccc);

                ?>

                    <div class="bx-pr wow fadeInRight" data-wow-delay="0s">

                        <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" class="img" title="<?= $home_cat_res2['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">

                            <img src="<?= $imglink; ?>" alt="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>" title="<?= $home_cat_res2['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>">

                        </a>

                        <div class="des">

                            <div class="tt"><a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="<?= $home_cat_res2['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>"><?= $home_cat_res2['displayName']; ?></a></div>

                            <p><?= substr($subcontent_descccc, 0, 70); ?>...</p>

                            <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="<?= $home_cat_res2['displayName']; ?> Manufacturers in <?= $ca_nam1; ?>" class="read-more">

                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">

                                    <path fill-rule="evenodd" d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z">

                                    </path>

                                </svg>

                            </a>

                        </div>

                    </div>

                <?php } ?>



            </div>

        </div>

    </div>

    <?php $sn = 1;

    $home_cat11 = mysqli_query($GLOBALS['dbconn'], "select catImage, catBanner, catName, displayName, catDesc, catID,catBanner from category_tbl where topBusinessCategory='Y' and status='Y' order by catOrder asc limit 0,2");

    while ($home_cat_res2 = mysqli_fetch_assoc($home_cat11)) {

        if ($home_cat_res2['catBanner'] != '') {

            $imglink = getImage($home_cat_res2[catBanner], 677, 400, $home_cat_res2[catName], "/uploaded-files/category/banners/");
        } else {

            $imglink = site_url . "/uploaded-files/category/images/noimage.jpg";
        }

        $catIdss = $home_cat_res2['catID'];

        $sql_content = mysqli_query($dbconn, "select short_description from location_content_tbl where category_id ='$catIdss'");

        $res_content = mysqli_fetch_array($sql_content);

        $subcontent_descc = html_entity_decode($res_content['short_description']);

        $subcontent_desccc = str_replace('{location}', $ca_nam1, $subcontent_descc);

        $subcontent_descccc = str_replace('catname', $res_cat['catName'], $subcontent_desccc);

        $subcontent_descccc = str_ireplace('{companyName}', $admin_res['companyName'], $subcontent_descccc);

        if ($sn % 2 == '1') {

    ?>

            <div class="vid-abt-sec">

                <div class="row g-0 align-items-center">

                    <div class="col-lg-6 col-12 vid-bx order-lg-1">

                        <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>">

                            <img src="<?= $imglink; ?>" alt="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>" title="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>">

                        </a>

                    </div>

                    <div class="col-lg-6 col-12 order-lg-0">

                        <div class="tx-bx p-3 py-5 p-lg-5 wow fadeInLeft" data-wow-delay="0s">

                            <div class="tt"><?= $home_cat_res2['displayName']; ?></div>

                            <p><?= $subcontent_descccc; ?></p>

                            <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" class="main-btn" title="Read More"> Read More</a>

                        </div>

                    </div>

                </div>

            </div>

        <?php } else { ?>

            <div class="vid-abt-sec bg-grey">

                <div class="row g-0 align-items-center">

                    <div class="col-lg-6 col-12 vid-bx">

                        <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" title="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>">

                            <img src="<?= $imglink; ?>" alt="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>" title="<?= $home_cat_res2['displayName']; ?> in <?= $ca_nam1; ?>">

                        </a>

                    </div>

                    <div class="col-lg-6 col-12">

                        <div class="tx-bx p-3 py-5 p-lg-5 wow fadeInRight" data-wow-delay="0s">

                            <div class="tt"><?= $home_cat_res2['displayName']; ?></div>

                            <p><?= $subcontent_descccc; ?></p>

                            <a href="<?= site_url; ?>/<?= getValidFileName($ca_nam1); ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm" class="main-btn" title="Read More"> Read More</a>

                        </div>

                    </div>

                </div>

            </div>

    <?php }
        $sn++;
    } ?>

    <div class="industry-sec">

        <div class="container">

            <div class="tt-bx wow fadeInDown" data-wow-delay="0s">

                <div class="tt">Industries <span>We Serve</span></div>

                <p>Empower diverse sectors with tailored automation solutions. From manufacturing to healthcare, our expertise enhances efficiency and performance across industries.</p>

            </div>

            <div class="row g-3">

                <div class="col-md-3 col-6 wow fadeInRight" data-wow-delay="0s">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Chemical-&-Fertilizer.jpg" alt="Chemical Industry" title="Chemical & Fertilizer" width="196" height="103"></div>

                        <div class="overlay">Chemical & Fertilizer</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInRight" data-wow-delay="100ms">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Food-&-Beverages.jpg" alt="Food & Beverages" title="Food & Beverages"></div>

                        <div class="overlay">Food & Beverages</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInRight" data-wow-delay="200ms">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/OEM-&-Machines.jpg" alt="OEM & Machines" title="OEM & Machines"></div>

                        <div class="overlay">OEM & Machines</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInRight" data-wow-delay="300ms">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Paper.jpg" alt="Paper" title="Paper">

                        </div>

                        <div class="overlay">Paper</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInLeft" data-wow-delay="0s">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Power-&-Cement.jpg" alt="Power & Cement" title="Power & Cement" width="196" height="103"></div>

                        <div class="overlay">Power & Cement</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInLeft" data-wow-delay="100ms">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Petrochemical.jpg" alt="Petrochemical" title="Petrochemical" width="196" height="103"></div>

                        <div class="overlay">Petrochemical</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInLeft" data-wow-delay="200ms">

                    <div class="hover">

                        <div class="content">

                            <img src="<?= site_url; ?>/designer/images/industries/Pharmaceutical.jpg" alt="Pharmaceutical" title="Pharmaceutical" width="196" height="103">

                        </div>

                        <div class="overlay">Pharmaceutical</div>

                    </div>

                </div>

                <div class="col-md-3 col-6 wow fadeInLeft" data-wow-delay="300ms">

                    <div class="hover">

                        <div class="content"><img src="<?= site_url; ?>/designer/images/industries/Sugar.jpg" alt="Sugar" title="Sugar" width="196" height="103"></div>

                        <div class="overlay">Sugar</div>

                    </div>

                </div>

            </div>

        </div>

    </div>

    <div class="add-banner">

        <div class="container">

            <div class="row align-items-center g-3">

                <div class="col-lg-9 col-12">

                    <div class="tt">See Automation & Engineers, passion for innovation and a commitment to quality !</div>

                </div>

                <div class="col-lg-3 col-12 text-lg-end">

                    <a href="<?= site_url; ?>/contact-us.htm" title="Contact Us" class="main-btn"> Contact Us</a>

                </div>

            </div>

        </div>

    </div>


    <?php include "app_gallery_home_sub.php"; ?>
    <?php include "app_enquiry_faq.php"; ?>



    <?php include "app_footer_sub.php"; ?>

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

</body>



</html>