<?php 
include_once("include/main.inc.php"); 
?>
<!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><?= COMPANY_NAME;?> - Sitemap</title>
    <meta name="keywords" content="<?= COMPANY_NAME;?> - Sitemap" />
    <meta name="description" content="<?= COMPANY_NAME;?> - Sitemap" />
    <?php include 'components/top_header.php';?>
</head>

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


        <!-- Heading Banner -->
        <section class="heading_banner" style="background-image: url(<?=SITE_URL_PATH;?>/designer/images/testimonial/testimonial.jpg)">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 text-center">
                        <h1 class="cat_title"><strong>Sitemap</strong></h1>
                        <div class="clearfix"></div>
                       
                    </div>
                </div>
            </div>
        </section>

        <!-- Breadcrumb -->
        <section class="inner_breadcrumb hidden-xs">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <ul class="breadcrumb">
                            <li><a href="<?= SITE_URL_PATH;?>" title="Home">Home</a></li>
                            <li class="active">Sitemap</li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>

        <!-- Home About -->
        <section class="sitemap_page">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12 col-md-12">
                        <div class="sitemap_right_side">
                            <h2 class="bg-title">Sitemap</h2>
                            <div class="wps_right">
                                <ul class="sitemap">
                                    <li><a href="<?= SITE_URL_PATH;?>" title="Home">Home</a></li>
                                    <li><a href="<?= SITE_URL_PATH;?>/about-us.htm" title="Company Profile">About Us</a></li>
                                    <?php $sql = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='0' and  status='Y'");
                                    $res = mysqli_fetch_assoc($sql);
                                  
                                     $sql_sub = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='$res[catID]' and status='Y'");
                                       
                                ?>
                                    <li><a href="<?=SITE_URL_PATH;?>/<?=getValidFileName($res['catName']);?>.htm" title="<?=$res['displayName'];?>"><?=$res['displayName'];?></a>
                                        <ul>
                                            <?php
                                            while($sql_sub_res=mysqli_fetch_assoc($sql_sub)){
                                                $sql_subsub = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='$sql_sub_res[catID]' and status='Y'");

                                            ?>
                                            <li><a href="<?=SITE_URL_PATH;?>/<?=getValidFileName($sql_sub_res['catName']);?>.htm" title="<?=$sql_sub_res['displayName'];?>"><?=$sql_sub_res['displayName'];?></a>

                                               <ul>
                                            <?php
                                            while($sql_subsub_res=mysqli_fetch_assoc($sql_subsub)){
                                                

                                            ?>
                                            <li><a href="<?=SITE_URL_PATH;?>/<?=getValidFileName($sql_subsub_res['catName']);?>.htm" title="<?=$sql_subsub_res['displayName'];?>"><?=$sql_subsub_res['displayName'];?></a>
                                            
                                                
                                            </li>
                                            <?php } ?>
                                        
                                        </ul> 
                                            </li>
                                            <?php } ?>
                                        
                                        </ul>
                                    </li>
                                   
                                    <li><a href="<?= SITE_URL_PATH;?>/blog.htm" title="Blogs">Blogs</a></li>
                                    <li><a href="<?= SITE_URL_PATH;?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
                                    <li><a href="<?= SITE_URL_PATH;?>/market-area.htm" title="Market Area">Market Area</a></li>
                                </ul>

                            </div>
                        </div>
                    </div>
                    <!-- <div class="col-lg-3 col-md-4 col-lg-pull-9">
                        <div class="left_sidebar">
                            <?php include 'components/quick_contact.php';?>
                        </div>
                        <div class="left_sidebar">
                            <?php include 'components/product_list.php';?>
                        </div>
                    </div> -->

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

        
       

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

</html>