<?php

include_once("include/main.inc.php");

$page_metatitle = "Sitemap - " . $admin_res['companyName'];

$page_metakey = "Sitemap - " . $admin_res['companyName'];

$page_metadesc = "Sitemap - " . $admin_res['companyName'];

?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <?php include 'app_top.php'; ?>
</head>

<body>
  <?php include 'app_header.php'; ?>
  <div class="img-breadcum" style="background-image: url(<?=site_url;?>/designer/images/contact-banner.jpg);">
    <div class="container">
      <h1 class="tt">Sitemap - <?=$admin_res['companyName'];?></h1>
    </div>
  </div>
  <div class="breadcum-sec">
    <div class="container-fluid px-md-5">
      <ul>
        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
        <li>Sitemap</li>
      </ul>
    </div>
  </div>

  <div class="sitemap-sec">
    <div class="container">
      <div class="head-sec mb-3 text-start">
        <h2 class="tt"><span>Sitemap</span></h2>
      </div>
      <ul class="sitemap">
        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
        <li><a href="<?=site_url;?>/about-us.htm" title="About Us">About Us</a></li>
        <?php $sql=mysqli_query($GLOBALS['dbconn'],"select displayName, catName, catID, parentID from category_tbl where parentID='0'  && status='Y' order by catOrder");
                                while($res=mysqli_fetch_array($sql)){
                                 $catID=$res['catID'];
                                $sql_sub=mysqli_query($GLOBALS['dbconn'],"select displayName, catName, catID, parentID from category_tbl where parentID='$catID' && status='Y' order by catOrder");
                                $count1= mysqli_num_rows($sql_sub);
                                ?>
        <li class="cs-submenu">
       
          <a href="javascript:void(0);" title="<?php echo $res['displayName']; ?>"><?php echo $res['displayName']; ?></a>
          <ul class="cs-dropdown">
          <?php while($sub_res=mysqli_fetch_array($sql_sub)){ 
                                         $catID1=$sub_res['catID'];
                                         $sql_subsub=mysqli_query($GLOBALS['dbconn'],"select displayName, catName, catID, parentID from category_tbl where parentID='$catID1' && status='Y' order by catOrder");
                                         $count2= mysqli_num_rows($sql_subsub);
                                        ?> 
            <li><a href="<?=site_url;?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['displayName']; ?>"><?php echo $sub_res['displayName']; ?></a></li>
            <?php } ?>
  
          </ul>
        </li>
    
       
        <?php } ?>
        <li><a href="<?=site_url;?>/blog.htm" title="Blogs">Blogs</a></li>
        <li><a href="<?=site_url;?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
        <li><a href="<?=site_url;?>/market-area.htm" title="Market Area">Market Area</a></li>
      </ul>
    </div>
  </div>

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

</html>