<?php
$current_page="Home";
include_once("include/main.inc.php");
$homepage = mysqli_query($GLOBALS['dbcon'], "select * from location_content_tbl");
$home_sub = mysqli_fetch_array($homepage);

@extract($_REQUEST);
$ca_nam1=$_REQUEST['cid'];
$ca_nam1=ucwords(str_replace("-"," ",$cid));
$page_metatitle = str_replace('{location}',$ca_nam1,$home_sub['meta_title']);
$page_metakey = str_replace('{location}',$ca_nam1,$home_sub['meta_keyword']);
$page_metadesc = str_replace('{location}',$ca_nam1,$home_sub['meta_description']);
$sql_locas=mysqli_query($GLOBALS['dbcon'], "select * from location_tbl where locationName='$ca_nam1'");
$location = mysqli_fetch_array($loc_sql);
$location_id = $location['locationID']; 



    $home_sql=mysqli_query($GLOBALS['dbcon'],"select * from static_pages where pageID='1'");
	$home_res=mysqli_fetch_array($home_sql);
	
	$home_content = html_entity_decode($home_res['pageDesc']);
	$home_content_short = html_entity_decode($home_res['pageDesc1']);
	
	$metatitles=$home_res['page_metatitle'];
	$page_metadesc=$home_res['page_metadesc'];
	$metakeyss=$home_res['page_keyword'];
	
	$page_about=$home_res['pageTitle'];
	$pageImage=$home_res['pageImage'];
    $about_sql=mysqli_query($GLOBALS['dbcon'],"select * from static_pages where pageID='2'");
	$about_res=mysqli_fetch_array($about_sql);
	
	if(mysqli_num_rows($sql_locas) > 0)
{
	
?>
<!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><?= $page_metatitle; ?></title>
    <meta name="description" content="<?php echo $page_metadesc; ?>">
    <meta name="keywords" content="<?php echo $page_metakey; ?>">
  

    <?php include 'components/top_header.php';?>
</head>

<body>
    <div class="webpulse-main-wrapper">
        <?php include 'components/header_sub.php';?>

        <!-- Banner -->
        <!--
         <div class="webpulse-home-slider slider">
<div class="slick-slider-init">
            <?php
            $banner_sql = mysqli_query($GLOBALS['dbcon'],"select * from banner_tbl where status='Y' order by slno ");
            while($banner_result = mysqli_fetch_assoc($banner_sql)){
?>
                <div>
<img src="<?=SITE_URL_PATH;?>/uploaded-files/banner-image/<?=$banner_result['bannerImage'];?>" alt="<?=$banner_result['optimisation'];?> Suppliers in <?=$ca_nam1;?>" title="<?=$banner_result['optimisation'];?> Suppliers in <?=$ca_nam1;?>" >
                </div>
                <?php } ?>
</div>
        </div> 
-->
        <div class="video-banner">
            <video autoplay="" muted="" loop="" playsinline="" preload="metadata">
                <source src="<?=SITE_URL_PATH;?>/designer/video/banner.mp4" type="video/mp4">
            </video>
        </div>
        <div class="ptb-20">
            <div class="container">
                <div class="row">
                    <div class="col-lg-4 col-md-6 wow fadeInLeft animated" data-wow-delay=".2s">
                        <div class="service-style">
                            <div class="service-img">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/perfection-and-excellence.png"
                                    alt="Perfection and Excellence" title="Perfection and Excellence">
                            </div>
                            <div class="content">
                                <span class="head-title">Perfection and Excellence</span>
                                <p>Best Quality And High Speed Machines</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInUp animated" data-wow-delay=".3s">
                        <div class="service-style">
                            <div class="service-img">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/trust-and-reliability.png"
                                    title="Trust and Reliability" alt="Trust and Reliability">
                            </div>
                            <div class="content">
                                <span class="head-title">Trust and Reliability</span>
                                <p>Rated As Number One And Most Trusted Paper Machines Supplier All Over The Country</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInDown animated" data-wow-delay=".4s">
                        <div class="service-style">
                            <div class="service-img">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/growing-stronger.png"
                                    alt="Growing Stronger" title="Growing Stronger">
                            </div>
                            <div class="content">
                                <span class="head-title">Growing Stronger</span>
                                <p>Over Thousands Of People Have Chosen Prime Machinery As Their Machinery Partner</p>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
        <section class="home_about">
            <div class="container">
                <div class="heading col-md-12 col-xs-12 wow fadeInDown animated" data-wow-delay=".1s">
                    <h1 class="main-head"><span>Best Paper Plate Machine Manufacturers in <?=$ca_nam1;?></span></h1>

                    <div class="light hidden-xs"> <?=COMPANY_NAME;?></div>
                </div>
                <div class="clearfix"></div>
                <div class="about-inner">

                    <div class="about-content-img images wow fadeInLeft animated animated" data-wow-delay=".2s">
                        <img src="<?=SITE_URL_PATH;?>/uploaded-files/page-images/<?=$about_res['pageImage'];?>"
                            class="img-responsive img-1" alt="Best Paper Plate Machine Manufacturers in <?=$ca_nam1;?>"
                            title="Best Paper Plate Machine Manufacturers in <?=$ca_nam1;?>">
                        <!--
                            <img src="<?=SITE_URL_PATH;?>/uploaded-files/page-images/<?=$home_res['pageImage'];?>" class="img-responsive img-2" alt="Best Paper Plate Machine Manufacturers in <?=$ca_nam1;?>"
                                title="Best Paper Plate Machine Manufacturers in <?=$ca_nam1;?>">
-->
                    </div>

                    <div class="about-content pr-md-4">
                        <?php echo html_entity_decode(str_replace('{location}', $ca_nam1, $home_sub['description'])); ?>
                    </div>
                    <a href="<?= SITE_URL_PATH;?>/about-us.htm" class="read_more01" title="Read More">Read More
                        <i class="fa fa-arrow-right"></i></a>


                </div>
            </div>
        </section>
        <section class="home_services">
            <div class="container">
                <div class="sec-title centered wow fadeInDown animated" data-wow-delay=".4s">
                    <div class="title-head">Our <span>Products</span></div>
                    <div class="separator"></div>
                    <h3 class="d-none">Best Paper Plate Machine Manufacturers</h3>
                    <p>Discover our products to buy the unmatched machine as per your requirements.</p>
                </div>

                <div class="row">
                    <?php
                    
                    $home_cat=mysqli_query($GLOBALS['dbcon'],"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], 500, 500, $home_cat_res[catName],"/uploaded-files/category/images/");
                        }else{
                            $imglink = NO_IMG_URL;
                        }

                    ?>
                    <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 wow fadeInRight animated" data-wow-delay=".1s">
                        <div class="single-service-style-one">
                            <div class="image-block">
                                <img src="<?=$imglink;?>"
                                    alt="<?=$home_cat_res['displayName'];?> Suppliers in <?=$ca_nam1;?>"
                                    title="<?=$home_cat_res['displayName'];?> Suppliers 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">
                                    <h4 class="title-product"><a
                                            href="<?=SITE_URL_PATH;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res['catName']);?>.htm"
                                            title="<?= $home_cat_res['catName'];?> Suppliers in <?=$ca_nam1;?>"><?=$home_cat_res['displayName'];?></a>
                                    </h4>
                                </div>
                            </div>
                            <div class="hover-content">
                                <?php
                            $cat_id = $home_cat_res['catID'];
                            
                            

                          

                                $category_sub_home=mysqli_query($GLOBALS['dbcon'], "select * from subcontent_tbl where subcontent_subcat='$cat_id'");
                                $category_sub_general=mysqli_query($GLOBALS['dbcon'], "select * from subcontent_tbl where subcontent_subcat='$cat_id'");
                                $content_count = mysqli_num_rows($category_sub_home);
                               
                                if($content_count > 0){
                                $categorysubdomain=mysqli_fetch_array($category_sub_home);
                                $page_short_desc=$categorysubdomain['short_desc'];
                                }else{
                                $categorysubdomain=mysqli_fetch_array($category_sub_general);
                                $page_short_desc=$categorysubdomain['short_desc'];
                                }
                                $page_short_desc = str_replace('{location}',$ca_nam1, $page_short_desc);
                                $page_short_desc = str_replace('catname',$pid, $page_short_desc);
                            
                            
                                ?>
                                <p><?=html_entity_decode(substr($page_short_desc,0,100));?>...</p>
                                <a href="<?=SITE_URL_PATH;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res['catName']);?>.htm"
                                    class="read-more" title="Read More">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 animated" data-wow-delay=".1s">
                        <div class="sub-title"><?=COMPANY_NAME;?></div>
                        <div class="title-head-dark">Why <span>Choose</span> Us ?</div>
                        <p>We have been engaged in this industry for many years and have gained a reputation in the market for offering unmatched machinery.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-4 col-md-6 wow fadeInLeft animated" data-wow-delay=".2s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/best_machines.png" alt="Best Machines" title="Best Machines">
                            </div>
                            <div class="content">
                                <div class="whyus-title">Best Machines</div>
                                <p>Prime Machinery RATES AS NUMBER ONE MACHINE SUPPLIER IN THE INDUSTRY</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInUp animated" data-wow-delay=".3s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/industry_expertise.png" alt="Industry Expertise" title="Industry Expertise">
                            </div>
                            <div class="content">
                                <div class="whyus-title">Industry Expertise</div>
                                <p>RESEARCH AND DEVELOPMENT IS ONGOING THROUGHOUT THE YEAR TO BRING OUT THE BEST PRODUCTS FOR YOU</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInDown animated" data-wow-delay=".4s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/consultation.png" alt="Consultation" title="Consultation">
                            </div>
                            <div class="content">
                                <div class="whyus-title">Consultation</div>
                                <p>ALONG WITH THE MACHINES, YOU GET COMPLETE CONSULTATION AND SUPPORT ON YOUR PROJECT FROM INITIATION TO EXPANSION</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInRight animated" data-wow-delay=".4s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/years_of_experience.png" alt="14 + Year of  Experience" title="14 + Year of  Experience">
                            </div>
                            <div class="content">
                                <div class="whyus-title">14 + Year of  Experience</div>
                                <p>YOU GET THE BENEFITS FROM THE KNOWLEDGE WE HAVE ACCUMULATED BY WORKING HARD SO MANY YEARS</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInUp animated" data-wow-delay=".4s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/after_sale_service.png" alt="After Sale Service" title="After Sale Service">
                            </div>
                            <div class="content">
                                <div class="whyus-title">After Sale Service</div>
                                <p>DEDICATED MACHINE SERVICE AND SUPPORT DEPARTMENT TO HELP YOU WHENEVER IN NEED AT INSTANT</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6 wow fadeInDown animated" data-wow-delay=".4s">
                        <div class="feature-item">
                            <div class="icon-box">
                                <img src="<?=SITE_URL_PATH;?>/designer/images/icons/spares_parts_manufacturers.png" alt="Spares parts Manufacturers" title="Spares parts Manufacturers">
                            </div>
                            <div class="content">
                                <div class="whyus-title">Spares parts Manufacturers </div>
                                <p>READY AVAILIBILITY OF SPARES PARTS TO ASSIT OUR CUSTOMERS</p>
                            </div>
                        </div>
                    </div>

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


        <section class="home_theater">
            <div class="container">
                <div class="row">
                    <div class="col-md-5 wow fadeInLeft animated" data-wow-delay=".1s">
                        <div class="theater-left">
                            <div class="theater-box">
                                <div class="theater-text">
                                    <div class="title-head">Want to know more <span>about us</span></div>
                                    <p>Prime Machinery is a leading and most trusted company committed to designing and
                                        developing the highest quality machines at the best prices in the market.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-7 wow fadeInRight animated" data-wow-delay=".2s">
                        <div class="theater-slider slider-for">
                            <div class="single-theater YTD_video">


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


        <section class="our-impotance">
            <div class="container">
                <div class="sec-title cf centered wow fadeInDown animated animated" data-wow-delay=".4s">
                    <div class="text-head">Company<span> Factsheet</span></div>
                    <div class="separator mb-3 mt-2"></div>
                    <p>Prime Machinery is counted among the top-notch companies. Each machine is designed and developed with care and complete attention to detail to offer full satisfaction to every customer.</p>
                </div>

                <ul class="row">
                    <li class="col-sm-4 col-12 equal-hight  wow fadeInLeft animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/business1.png" alt="Nature of Business" title="Nature of Business">
                            <div class="title-head">Nature of Business</div>
                            <p>Manufacturers, Suppliers and Exporters</p>
                        </div>
                    </li>
                    <li class="col-sm-4 col-6 equal-hight  wow fadeInDown animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/establishment1.png" alt="Year of Establishment" title="Year of Establishment">
                            <div class="title-head">Year of Establishment</div>
                            <p>2008</p>
                        </div>
                    </li>
                    <!-- <li class="col-sm-4 col-6 equal-hight  wow fadeInRight animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/employees1.png" alt="<?=COMPANY_NAME;?>" title="<?=COMPANY_NAME;?>">
                            <div class="title-head">Total Number of Employees</div>
                            <p>N/A</p>
                        </div>
                    </li> -->
                    <li class="col-sm-4 col-12 equal-hight  wow fadeInLeft animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/Legal1.png" alt="Legal Status of Firm" title="Legal Status of Firm">
                            <div class="title-head">Legal Status of Firm</div>
                            <p>Sole Proprietorship</p>
                        </div>
                    </li>
                    <li class="col-sm-4 col-6 equal-hight  wow fadeInUp animated animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/Turnover1.png" alt="Annual Turnover" title="Annual Turnover">
                            <div class="title-head">Annual Turnover</div>
                            <p>5 TO 10 CR</p>
                        </div>
                    </li>
                    <li class="col-sm-4 col-6 equal-hight  wow fadeInRight animated" data-wow-delay=".3s">
                        <div class="inner">
                            <img src="<?=SITE_URL_PATH;?>/designer/images/icons/gst1.png" alt="GST Number" title="GST Number">
                            <div class="title-head">GST Number</div>
                            <p>09BJCPG3423K1ZB</p>
                        </div>
                    </li>
                </ul>
            </div>
        </section>


        <!-- Home Featured-->
        <section class="webpulse_home_featured">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="products_heading sec-title cf centered wow fadeInDown animated"
                            data-wow-delay=".1s">
                            <div class="text-head">Featured <span>Products</span></div>
                            <div class="separator"><span><i></i></span></div>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="col-lg-12">
                        <div class="wps_featured">
                            <?php
                    
                    $home_product=mysqli_query($GLOBALS['dbcon'],"select * from product_tbl order by product_id asc limit 0,6");
                    while($home_pro_res=mysqli_fetch_assoc($home_product)){
                        $pro_image_home =  explode(',',$home_pro_res['product_image']);
                                   $pro_image_main =  array_shift($pro_image_home);
                                    $proimglink=getImage($pro_image_main,210,210, $home_pro_res[product_title],"/uploaded-files/product/images/");

                    ?>


                            <div class="feature_item wow fadeInDown animated" data-wow-delay=".2s">
                                <div class="item">

                                    <div class="feature_image">
                                        <div class="image">
                                            <img src="<?=$proimglink;?>"
                                                alt="<?=$home_pro_res['product_title'];?>"
                                                title="<?=$home_pro_res['product_title'];?>">

                                        </div>
                                    </div>

                                    <div class="feature_sec">
                                        <div class="title-head"><?=$home_pro_res['product_title'];?>
                                        </div>

                                        <a class="read_more_product" href="javascript:void()" data-bs-toggle="modal"
                                            data-bs-target="#productID" title="Enquire Now"
                                            onclick="$('#catID').val('product_id');
                                 $('#catName').val('<?=$home_pro_res['product_title'];?>');
                                 $('.catName').html(' <?=$home_pro_res['product_title'];?>');  $('.catImg').attr('src','<?=SITE_URL_PATH;?>/uploaded-files/product/images/<?=$pro_image_main;?>');">Enquire
                                            Now</a>
                                    </div>
                                </div>
                            </div>
                            <?php } ?>

                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- Home Testimonials -->
        <?php include 'components/testimonial.php';?>


        
        <div class="webpulse_home_clients">
            <div class="container">
                <div class="sec-title centered wow fadeInUp animated animated" data-wow-delay=".1s">
                    <div class="title-head text-dark">Technology Partners</div>
                    <div class="separator"></div>
                </div>
                <div class="clearfix"></div>
                <?php include 'components/clients.php';?>
            </div>
        </div>

        <!-- Footer -->
        <?php include 'components/footer_sub.php';?>
    </div>
    <?php include 'components/bottom_footer.php';?>
    
    <?php include 'components/product_modal.php';?>
</body>

</html>
 <?php
}
else
{
echo "<script>window.location='https://www.papercupmachines.co.in'</script>";
    exit;
}
?>