<?php include_once("include/main.inc.php");
$hover="home";
$homepage = mysqli_query($GLOBALS['dbconn'], "select * from static_pages where pageID='1' and status='Y'");
$home_res = mysqli_fetch_array($homepage);
$homepage2 = mysqli_query($GLOBALS['dbconn'], "select * from static_pages where pageID='3' and status='Y'");
$home_res2 = mysqli_fetch_array($homepage2);
@extract($_REQUEST);
$ca_nam1=$_REQUEST['cid'];
$ca_nam1=ucwords(str_replace("-"," ",$cid));
$page_metatitle = str_replace('{location}',$ca_nam1,$home_res2['page_metatitle']);
$page_metakey = str_replace('{location}',$ca_nam1,$home_res2['page_keyword']);
$page_metadesc = str_replace('{location}',$ca_nam1,$home_res2['page_metadesc']);
$admin_sql = mysqli_query($GLOBALS['dbconn'], "select * from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);

$sql_locas=mysqli_query($GLOBALS['dbconn'], "select * from location_tbl where locationName='$ca_nam1'");
if(mysqli_num_rows($sql_locas) > 0)
{
}else 
    {
        header("Location: ".site_url);

				exit;
}


$about_page= mysqli_query($GLOBALS['dbconn'],"select * from static_pages where pageID='2'");
$about_res= mysqli_fetch_array($about_page);

$blog = mysqli_query($GLOBALS['dbconn'], "select * from blog_tbl  limit 0,2");
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><?php echo $page_metatitle; ?></title>
    <meta name="description" content="<?php echo $page_metadesc; ?>" >
    <meta name="keywords" content="<?php echo $page_metakey; ?>" >
    


    <?php include "app_top.php";?>
</head>

<body>
    <?php include "app_header_sub.php";?>

    <div class="home_slider">
        <div id="slider" class="owl-carousel">
            <?php
          $sql_banner = mysqli_query($GLOBALS['dbconn'], "Select personName,bannerImage from banner_tbl where status='Y' order by bannerorder Asc");
          while ($res_banner = mysqli_fetch_array($sql_banner)) {
            ?>
            <div class="slide">
                <img src="<?= getImage($res_banner['bannerImage'], 1920, 800, $res_banner['personName'], "/uploaded-files/banner-image/"); ?>"
                    alt="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>" title="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>" >
            </div>
            <?php } ?>

        </div>
    </div>
    <div class="wps_right wps_righttt">
        <div class="container">
            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 wow fadeInDown" data-wow-delay=".1s">
                <h1> <span>Dairy Equipments Manufacturers in <?=$ca_nam1;?></span></h1>
                <p>Expertise in this field Since 2017</p>
                <!--<h2 class="light hidden_xs">MilkMan</h2>-->
            </div>
            <div class="product_left_image">
                <div class="detail_image">
                    <img src="<?= getImage($about_res['pageImage'], 310, 354, $about_res['pageTitle'], "/uploaded-files/page-images/"); ?>"
                        class="img-responsive img-1" alt="Dairy Equipments Manufacturers in <?=$ca_nam1;?>" title="Dairy Equipments Manufacturers in <?=$ca_nam1;?>">
                    <img src="<?= getImage($home_res['pageImage'], 286, 358, $home_res['pageTitle'], "/uploaded-files/page-images/"); ?>"
                        class="img-responsive img-2" alt="Dairy Equipments Manufacturers in <?=$ca_nam1;?>" title="Dairy Equipments Manufacturers in <?=$ca_nam1;?>">
                </div>
            </div>
           
            <?php echo html_entity_decode(str_replace('{location}',$ca_nam1,$home_res2['pageDesc'])); ?>

            <a href="<?=site_url;?>/about-us.htm" class="read_more01" title="Read More">Read More <i
                    class="fa fa-arrow-right"></i></a>




        </div>
    </div>
    <section class="home_services">
        <div class="container">
            <div class="sec-title centered wow fadeInDown" data-wow-delay=".4s">
                <h2>Our <span>Hot Products</span></h2>
                <div class="separator"></div>
                <p>Our customized solutions and turnkey solutions have bestowed us with the loyalty of numerous top
                    notch clients which includes various multinational companies, government sectors, private sectors
                    and co-operative sectors.</p>
            </div>
            <div class="clearfix"></div>

            <div class="row">
                <?php
                    
                    $home_cat=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID!='0' and status='Y' order by catOrder limit 0,8");
                    while($home_cat_res=mysqli_fetch_assoc($home_cat)){
                        if($home_cat_res['catImage'] != ''){
                        $imglink=getImage($home_cat_res[catImage], 600, 600, $home_cat_res[catName],"/uploaded-files/category/images/");
                        }else{
                            $imglink = NO_IMG_URL;
                        }
                        ?>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-4 col-sm-12 col-xs-12 wow fadeInRight"
                    data-wow-delay=".1s">
                    <div class="single-service-style-one">
                        <div class="image-block">
                            <img src="<?= $imglink;?>" alt="<?=$home_cat_res['displayName'];?> in <?=$ca_nam1;?>"
                                title="<?=$home_cat_res['displayName'];?> in <?=$ca_nam1;?>">
                            <div class="overlay-block"></div>
                        </div>
                        <div class="main-content">
                            <div class="icon-block">
                                <div class="inner-box">
                                    <i class="fa fa fa-thumbs-o-up"></i>
                                </div>
                            </div>
                            <div class="text-block">
                                <h3><a href="<?=site_url;?>/<?=getValidFileName($home_cat_res['catName']);?>.htm"
                                        title="<?=$home_cat_res['displayName'];?>"><?=$home_cat_res['displayName'];?></a>
                                </h3>
                            </div>
                        </div>
                        <div class="hover-content">
                            <p><?php
                                 $catIdss=$home_cat_res['catID'];
                                     
     $sql_content=mysqli_query($GLOBALS['dbconn'],"select * from location_content_tbl where category_id ='$catIdss'");
     $res_content=mysqli_fetch_array($sql_content);

     $subcontent_descc=$res_content['short_description'];
     $subcontent_desccc=str_replace('{location}', $ca_nam1, $subcontent_descc );
     $subcontent_descccc=str_replace('catname', $res_cat['catName'], $subcontent_desccc );
echo html_entity_decode(substr($subcontent_descccc,0,100));
     ?>...</p>

                            <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res['catName']);?>.htm"
                                class="read-more" title="<?=$home_cat_res['displayName'];?>">Read More
                                <i class="fa fa-long-arrow-right"></i></a>
                        </div>
                    </div>
                </div>
                <?php } ?>





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


    <section class="feature_section">
        <div class="container">
            <div class="row">
                <div class="section-title wow fadeInDown" data-wow-delay=".1s">
                    <h4>MilkMan Dairy Equipment</h4><br>
                    <h4>Why <span>Choose</span> Us ?</h4>
                    <p>We provide a variety of dairy equipment. Both small-scale and large-scale plants employ our
                        goods.</p>
                </div>
            </div>
            <div class="row">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-12 wow fadeInLeft" data-wow-delay=".2s">
                    <div class="feature-item">
                        <div class="icon-box">
                            <img src="<?=site_url;?>/designer/images/phone.png" alt="24/7 Availability" title="24/7 Availability">
                        </div>
                        <div class="content">
                            <h4>24/7 Availability</h4>
                            <p>In order to provide our customers with a hassle-free experience, our business is
                                dedicated to being available at their service.</p>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-12 wow fadeInUp" data-wow-delay=".3s">
                    <div class="feature-item">
                        <div class="icon-box">
                            <img src="<?=site_url;?>/designer/images/icon2.png" alt="Certified Mechanics"
                                title="Certified Mechanics">
                        </div>
                        <div class="content">
                            <h4>Certified Mechanics</h4>
                            <p>Quality is never compromised. Multiple production phases of testing are used to guarantee
                                items of top-notch quality.</p>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-12 wow fadeInDown" data-wow-delay=".4s">
                    <div class="feature-item">
                        <div class="icon-box">
                            <img src="<?=site_url;?>/designer/images/icon.png" alt="No Hidden Cost"
                                title="No Hidden Cost">
                        </div>
                        <div class="content">
                            <h4>No Hidden Cost</h4>
                            <p>We have efficiently considered building transparency with our customers with our no
                                hidden cost policy.</p>
                        </div>
                    </div>
                </div>


                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-6 col-12 wow fadeInRight" data-wow-delay=".4s">
                    <div class="feature-item">
                        <div class="icon-box">
                            <img src="<?=site_url;?>/designer/images/hand.png" alt="Affordable Prices"
                                title="Affordable Prices">
                        </div>
                        <div class="content">
                            <h4>Affordable Prices</h4>
                            <p>We consider quality control to be one of our top concerns. Our company's defining traits
                                are cost-effective solutions</p>
                        </div>
                    </div>
                </div>

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


    <section class="home_theater">
        <div class="container">
            <div class="row">
                <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12 wow fadeInLeft" data-wow-delay=".1s">
                    <div class="theater-left">
                        <div class="theater-box">
                            <div class="theater-text">
                                <h4>Want to know more <span>about us</span></h4>
                                <p>The goal of Milkman Dairy Equipment is to support the dairy sector by providing high-end equipment and tools.</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5  col-sm-12 col-12 wow fadeInRight" data-wow-delay=".2s">
                    <div class="theater-slider slider-for">
                        <div class="single-theater">
                            <div class="row">
                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 hotAboutt wow fadeInRight">
                                    <div class="hotProductBox">
                                        <img src="<?=site_url;?>/uploaded-files/category/images/thumbs/Cream-Separator-thumbs-398X398.jpg" alt="Cream Separator in <?=$ca_nam1;?>" title="Cream Separator in <?=$ca_nam1;?>">
                                    </div>
                                    <div class="hotProductTitle">
                                        <h3>Cream Separator</h3>
                                    </div>
                                </div>
                                
                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 hotAboutt wow fadeInRight">
                                    <div class="hotProductBox">
                                        <img src="<?=site_url;?>/uploaded-files/category/images/thumbs/Milking-Machine-thumbs-398X398.jpg" alt="Milking Machine in <?=$ca_nam1;?>" title="Milking Machine in <?=$ca_nam1;?>">
                                    </div>
                                    <div class="hotProductTitle">
                                        <h3>Milking Machine</h3>
                                    </div>
                                </div>
                                
                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 hotAboutt wow fadeInRight">
                                    <div class="hotProductBox">
                                        <img src="<?=site_url;?>/uploaded-files/category/images/thumbs/Dairy-Equipment-thumbs-398X398.jpg" alt="Dairy Equipment in <?=$ca_nam1;?>" title="Dairy Equipment in <?=$ca_nam1;?>">
                                    </div>
                                    <div class="hotProductTitle">
                                        <h3>Dairy Equipment</h3>
                                    </div>
                                </div>
                                
                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 hotAboutt wow fadeInRight">
                                    <div class="hotProductBox">
                                        <img src="<?=site_url;?>/uploaded-files/category/images/thumbs/Milk-Testing-Instrument-thumbs-398X398.jpg" alt="Milk Testing Instrument in <?=$ca_nam1;?>" title="Milk Testing Instrument in <?=$ca_nam1;?>">
                                    </div>
                                    <div class="hotProductTitle ">
                                        <h3>Milk Testing Instrument</h3>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>



   


    


    <section class="home_testimonials_webpulse">
        <?php include "testimonial.php";?>

    </section>


    <?php include "app_footer_sub.php";?>
    <?php include "app_bottom.php";?>
</body>

</html>