<?php include_once("include/main.inc.php");
$admin_res=getAdminDetails();
?>
<!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><?=$admin_res['companyName']?> - Sitemap</title>
    <meta name="description" content="<?=$admin_res['companyName']?> - Sitemap" />
    <meta name="keywords" content="<?=$admin_res['companyName']?> - Sitemap" />
    <?php include "app_top.php"; ?>
</head>

<body>
    <?php include 'app_header.php';?>



    <section class="heading_banner" style="background-image: url(<?=theme_url?>images/sitemap-banner.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <div class="cat_title">Sitemap</div>
                    <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?>" 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">
                <?php //include "app_sidebar.php"; ?>
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="sitemap_right_side">
                        <h1>Sitemap</h1>
                        <div class="wps_right">
                            <ul class="sitemap">
                                <li><a href="<?=site_url?>" title="Home">Home</a></li>
                                <li><a href="<?=site_url?>/about.htm" title="Company Profile">Company Profile</a></li>
                                   <?php $catSql = mysqli_query($dbconn,"select * from category_tbl where parentID='0' and status='Y' order by catID asc" );
        while($rescat=mysqli_fetch_array($catSql)) {
            $parentid = $rescat['catID'];
           $subcatSql =  mysqli_query($dbconn,"select * from category_tbl where parentID='$parentid' and status='Y' order by catID asc" );?>
                                <li ><a href="<?=site_url;?>/<?=getValidFileName($rescat['catName']);?>.htm" title="<?=$rescat['catName']?>"><?=$rescat['catName']?></a>
                                    <ul>
                                        <?php while($ressubcat=mysqli_fetch_array($subcatSql)) {?>
                                        <li><a href="<?=site_url;?>/<?=getValidFileName($ressubcat['catName']);?>.htm" title="<?=$ressubcat['catName']?>"><?=$ressubcat['catName']?></a></li>
                                        <?php } ?>
                                    </ul>
                                </li>
                                <?php } ?>
                                <li><a href="<?=site_url?>/blogs.htm" title="Blogs">Blogs</a></li>
                                <?php $brandsql = mysqli_query($dbconn,"select * from brand_tbl"); ?>
                            <!--    <li><a href="javascript:void(0)" title="Our Brands">Our Brands</a>-->
                            <!--    <ul>-->
                            <!--    <?php while($brand_res=mysqli_fetch_array($brandsql)) {?>-->
                            <!--            <li class="<?php if($br==$brand_res['brandName']){ echo "active";}?>"><a href="<?=site_url;?>/our-brands/<?=getValidFileName($brand_res['brandName']);?>.htm" title="<?=$brand_res['brandName']?>"><?=$brand_res['brandName']?></a></li>-->
                            <!--            <?php } ?>-->
                            <!--    </ul>-->
                            <!--</li>-->
                                <li><a href="<?=site_url?>/contact-us.htm" title="Contact Us">Contact Us</a></li>

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

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



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

</html>