<?php include_once("include/main.inc.php");
$about_page= mysqli_query($GLOBALS['dbconn'],"select * from static_pages where pageID='2'");
$about_res= mysqli_fetch_array($about_page);
$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']);
$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;
}


$hover='home';

$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">
    <?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 * from banner_tbl where status='Y' order by slno Asc");
          while ($res_banner = mysqli_fetch_array($sql_banner)) {
           
            ?>

            
            <div class="slide">
              <?php if($res_banner['slno']=='1'){?>
                <img src="<?=site_url;?>/uploaded-files/banner-image/<?=$res_banner['bannerImage'];?>" alt="<?=$res_banner['personName'];?>" title="<?=$res_banner['personName'];?>" >
            <?php } else { ?>
                <img src="<?=site_url;?>/uploaded-files/banner-image/<?=$res_banner['bannerImage'];?>" alt="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>" title="<?=$res_banner['personName'];?> in <?=$ca_nam1;?>" >
                <?php } ?>
            </div>
<?php } ?>
        </div>
    </div>


    <section class="home_about">
        <div class="container">
            <div class="heading col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 wow fadeInDown" data-wow-delay=".1s">
                <h1 class="title_1"> Solar Modules in <?=$ca_nam1;?></h1>
                <p>Expertise in this field Since 1999 </p>
                <div class="light hidden_xs">Abhishek</div>
            </div>
            <div class="clearfix"></div>





            <div class="about-inner">
                <div class="row">
                    <div class="images col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12">
                        <!--<img src="<?=site_url;?>/designer/images/welcome-1.jpg" class="img-responsive img-1" alt="Solar Water Pumping System Supplier in <?=$ca_nam1;?>" title="Solar Water Pumping System Supplier in <?=$ca_nam1;?>">-->
                        <img src="<?=site_url;?>/designer/images/welcome-2.jpg" class="img-responsive img-2" alt="Solar Modules Manufacturers in <?=$ca_nam1;?>" title="Solar Modules Manufacturers in <?=$ca_nam1;?>">
                    </div>
                    <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12 about-content">
                    <?php echo str_replace('{location}',$ca_nam1,html_entity_decode($home_res2['pageDesc'])); ?>
                    </div>
                    <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 about-content">
                    <?php echo str_replace('{location}',$ca_nam1,html_entity_decode($home_res2['pageDesc1'])); ?>
                        <a href="<?=site_url;?>/about-us.htm" class="read_more01" title="Read More">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="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 8z"/></svg></a>
                    </div>
                </div>
            </div>
            <!-- <div class="about-inner">
                <div class="row">
                    <div class="images col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12 wow fadeInLeft" data-wow-delay=".2s">
                        <img src="<?=site_url;?>/designer/images/welcome-1.jpg" class="img-responsive img-1" alt="<?=$admin_res['companyName'];?>" title="<?=$admin_res['companyName'];?>">
                        <img src="<?=site_url;?>/designer/images/welcome-2.jpg" class="img-responsive img-2" alt="<?=$admin_res['companyName'];?>" title="<?=$admin_res['companyName'];?>">
                    </div>
                    <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 offset-md-1 about-content wow fadeInRight" data-wow-delay=".3s">
                    <?php echo str_replace('{location}',$ca_nam1,html_entity_decode($home_res2['pageDesc'])); ?>
                    </div>
                    <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 about-content wow fadeInRight" data-wow-delay=".3s">
                    <?php echo str_replace('{location}',$ca_nam1,html_entity_decode($home_res2['pageDesc1'])); ?>
                        <a href="<?=site_url;?>/about-us.htm" class="read_more01" title="Read More">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="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 8z"/></svg></a>
                    </div>
                </div>
            </div> -->
        </div>
    </section>
    <section class="home_services">
        <div class="container">

        <div class="title_2">Hot Product in Your location</div>
            <div class="clearfix"></div>
            <div class="row">
            <?php
                    $home_cat=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='1' and status='Y' order by catOrder limit 0,8");
                    while($home_cat_res=mysqli_fetch_assoc($home_cat)){
                        if($home_cat_res['catImage'] != ''){
                        $imglink=site_url."/uploaded-files/category/images/".$home_cat_res['catImage'];
                        }else{
                            $imglink = NO_IMG_URL;
                        }
                        ?>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-4 col-sm-12 col-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'];?> Manufacturers in <?=$ca_nam1;?>" title="<?=$home_cat_res['displayName'];?> Manufacturers in <?=$ca_nam1;?>">
                            <div class="overlay-block"></div>
                        </div>
                        <div class="main-content">
                            <div class="icon-block">
                                <div class="inner-box">
                                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8.864.046C7.908-.193 7.02.53 6.956 1.466c-.072 1.051-.23 2.016-.428 2.59-.125.36-.479 1.013-1.04 1.639-.557.623-1.282 1.178-2.131 1.41C2.685 7.288 2 7.87 2 8.72v4.001c0 .845.682 1.464 1.448 1.545 1.07.114 1.564.415 2.068.723l.048.03c.272.165.578.348.97.484.397.136.861.217 1.466.217h3.5c.937 0 1.599-.477 1.934-1.064a1.86 1.86 0 0 0 .254-.912c0-.152-.023-.312-.077-.464.201-.263.38-.578.488-.901.11-.33.172-.762.004-1.149.069-.13.12-.269.159-.403.077-.27.113-.568.113-.857 0-.288-.036-.585-.113-.856a2.144 2.144 0 0 0-.138-.362 1.9 1.9 0 0 0 .234-1.734c-.206-.592-.682-1.1-1.2-1.272-.847-.282-1.803-.276-2.516-.211a9.84 9.84 0 0 0-.443.05 9.365 9.365 0 0 0-.062-4.509A1.38 1.38 0 0 0 9.125.111L8.864.046zM11.5 14.721H8c-.51 0-.863-.069-1.14-.164-.281-.097-.506-.228-.776-.393l-.04-.024c-.555-.339-1.198-.731-2.49-.868-.333-.036-.554-.29-.554-.55V8.72c0-.254.226-.543.62-.65 1.095-.3 1.977-.996 2.614-1.708.635-.71 1.064-1.475 1.238-1.978.243-.7.407-1.768.482-2.85.025-.362.36-.594.667-.518l.262.066c.16.04.258.143.288.255a8.34 8.34 0 0 1-.145 4.725.5.5 0 0 0 .595.644l.003-.001.014-.003.058-.014a8.908 8.908 0 0 1 1.036-.157c.663-.06 1.457-.054 2.11.164.175.058.45.3.57.65.107.308.087.67-.266 1.022l-.353.353.353.354c.043.043.105.141.154.315.048.167.075.37.075.581 0 .212-.027.414-.075.582-.05.174-.111.272-.154.315l-.353.353.353.354c.047.047.109.177.005.488a2.224 2.224 0 0 1-.505.805l-.353.353.353.354c.006.005.041.05.041.17a.866.866 0 0 1-.121.416c-.165.288-.503.56-1.066.56z"/></svg>
                            </div>
                            </div>
                            <div class="text-block">
                                <div class="title_h3"><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res['catName']);?>.htm" title="<?=$home_cat_res['displayName'];?> Manufacturers in <?=$ca_nam1;?>"><?=$home_cat_res['displayName'];?></a></div>
                            </div>
                        </div>
                        <div class="hover-content">

                        <?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,150));
     ?>...



                            
                            <!-- <p><?=html_entity_decode(substr($home_cat_res['catDesc'],0,100));?>...</p> -->
                            <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res['catName']);?>.htm" class="read-more" title="Read More">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="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 8z"></path></svg></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">

                    <div class="title_4">Why <span>Choose</span> Us ?</div>
                    <p>We offer environmentally friendly and sustainable solar products that are energy efficient and help lower energy bills.</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">
                            <div class="featureTitle">24/7 Availability</div>
                            <p>We are available to provide our customers with exceptional solar products through our qualified engineering experts.</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">
                            <div class="featureTitle">Certified Mechanics</div>
                            <p>Our company has a team of highly-skilled, experienced, and certified mechanics that ensure to offer outstanding services.</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">
                            <div class="featureTitle">No Hidden Cost</div>
                            <p>We offer extremely reliable solar products that go through stringent quality tests and have no hidden costs.</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">
                            <div class="featureTitle">Affordable Prices</div>
                            <p>Our solar power products are highly appreciated by our customers as we avail them at budget-friendly prices.</p>
                        </div>
                    </div>
                </div>

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


    <section class="home_theater">
        <div class="container">
            <div class="row">
                <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12 wow fadeInLeft" data-wow-delay=".1s">
                    <div class="theater-left">
                        <div class="theater-box">
                            <div class="theater-text">
                                <h4 class="title_3">Want to know more <span>about us</span></h4>
                                <p>We are committed to offering a wide variety of solar products for a positive contribution to the renewable energy movement.</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12 wow fadeInRight" data-wow-delay=".2s">
                    <div class="theater-slider slider-for">
                        <div class="single-theater">
                        <iframe src="https://www.youtube.com/embed/hxHIqvDLOdM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- <section class="webpulse_home_featured">
        <div class="container">
        <div class="title_4">Our <span>Products</span></div>
        <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 id="products" class="owl-carousel">
                    <?php $home_cat2=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='1' and status='Y' order by catOrder");
                    while($home_cat_res2=mysqli_fetch_assoc($home_cat2)){
                        if($home_cat_res2['catImage'] != ''){
                        $imglink=site_url."/uploaded-files/category/images/".$home_cat_res2['catImage'];
                        }else{
                            $imglink = NO_IMG_URL;
                        }
                        ?>
                        <div class="feature_item wow fadeInDown" data-wow-delay=".2s">
                            <div class="item">
                                <a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($home_cat_res2['catName']);?>.htm" title="<?=$home_cat_res2['displayName'];?> Manufacturers in <?=$ca_nam1;?>">
                                    <div class="feature_image">
                                        <div class="image">
                                            <img src="<?=$imglink;?>" alt="<?=$home_cat_res2['displayName'];?> Manufacturers in <?=$ca_nam1;?>" title="<?=$home_cat_res2['displayName'];?> Manufacturersin <?=$ca_nam1;?>">
                                        </div>
                                    </div>
                                </a>
                                <div class="feature_sec">
                                    <div class="title_h3"><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>
                                </div>
                            </div>
                        </div>
<?php } ?>
                     
                    </div>
                </div>
            </div>
        </div>
    </section> -->



    <section class="news_section">
        <div class="container">
        <div class="title_4">Latest Blogs</div>
        <div class="clearfix"></div>

            <div class="row">
            <?php while($blog_res=mysqli_fetch_assoc($blog)){ ?>
                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12 events-full-box">
                    <div class="events-single-box">
                        <div class="row">
                            <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12 p-0">
                                <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" title="<?= $blog_res['blogDname'];?>"><img class="img-responsive" src="<?= getImage($blog_res['catImage'], 250, 250, $blog_res['catName'], "/uploaded-files/blog/images/"); ?>" alt="<?= $blog_res['blogDname'];?>" title="<?= $blog_res['blogDname'];?>"></a>
                            </div>

                            <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12">
                                <div class="event-info">
                                    <h4 class="title_h4"><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" title="<?= $blog_res['blogDname'];?>"><?= $blog_res['blogDname'];?></a></h4>                                   
                                    <span class="blogDate"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z"/><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg> <?=$blog_res['blogDate'];?></span>
                                    <p> <?= html_entity_decode(substr($blog_res['pageDescription'],0,145));?>... </p>

                                    <a class="event-btn" href="<?=site_url;?>/blog/<?=getValidFileName($blog_res['catName']);?>.htm" title="Read More">Read More<i class="fa fa-long-arrow-right events-btn-icon"></i></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
<?php } ?>

             


            </div>
            <div class="text-center">
            <a href="<?=site_url;?>/blog.htm" class="read_more01" title="Read More">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="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 8z"></path></svg></a>
            </div>
        </div>
    </section>
    <!-- <?php include "app_faq.php"; ?> -->
    <?php include "app_testimonials.php";?>
    <?php include "app_clients.php";?>  

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

</html>