<?php include_once("include/main.inc.php");
$admin_res=getAdminDetails();
$page_metatitle = "Aarna Systems And Wellness Pvt. Ltd. - Sitemap";
$page_metakey = "Aarna Systems And Wellness Pvt. Ltd. - Sitemap";
$page_metadesc = "Aarna Systems And Wellness Pvt. Ltd. - Sitemap";
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$ee=explode('/',$actual_link);
$afterChunk = $ee[3];
$eem=explode('?',$afterChunk);

$finalUrl = $eem[1];


if($finalUrl){
     $url=site_url."/".sitemap.".htm"; 
   echo "<script>
           window.location = '".$url."';
         </script>";
 }
?>
<!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 '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(<?=theme_url?>images/sitemap-banner.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?>" 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-md-12 col-md-push-12">
                        <div class="sitemap_right_side">
                            <h2 class="bg-title">Sitemap</h2>
                            <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['displayName']?>"><?=$rescat['displayName']?></a>
                                        <ul>
               <?php   while($subcat_res=mysqli_fetch_array($subcatSql)) { ?>        
                                        <li><a href="<?=site_url;?>/<?=getValidFileName($subcat_res['catName']);?>.htm" title="<?=$subcat_res['displayName']?>"><?=$subcat_res['displayName']?></a></li>
                                            <?php  } ?>
                                                </ul>
                                            </li>

                                    <?php  } ?>
                                <li><a  href="<?=site_url?>/blogs.htm" title="Blogs">Blogs</a></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 'components/app_testi_client.php';?>
        <!-- Footer -->
        <?php include 'components/footer.php';?>
    </div>
    <?php include 'components/bottom_footer.php';?>
</body>

</html>