<?php 
   include_once("include/main.inc.php"); 
   if (strpos($_SERVER['REQUEST_URI'], ".php") !== false) {
  
 	header("Location: ".site_url);
   				exit;
}
   
   $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 charset="utf-8">
      <?php include "app_top.php"; ?>
      <link href="<?=site_url;?>/designer/css/jquery.fancybox.css" rel="stylesheet">
   </head>
   <body>
      <?php include "app_header.php"; ?>
      <div class="webpulse-main-wrapper">
         <div class="small-banner py-4 heading_banner position-relative">
            <div class="text-center position-relative z-index-9">
               <h1 class="cat_title">Sitemap - <?= $admin_res['companyName']; ?></h1>
               <div class="clearfix"></div>
               <!-- <div class="cat_title2">We Are Available For You</div> -->
            </div>
         </div>
         <nav aria-label="breadcrumb" class="py-0 position-relative z-index-9 bg-light-light border-bottom">
            <div class="container-fluid px-4 py-2">
               <ol class="breadcrumb mb-0">
                  <li class="breadcrumb-item"><a href="<?=site_url;?>" title="Home" class="text-dark">Home</a></li>
                  <li class="breadcrumb-item active text-orange" aria-current="page">Sitemap</li>
               </ol>
            </div>
         </nav>
         <!-- Home About-->
         <div class="sitemap_page bg-white py-5">
            <div class="container">
               <div class="row">
                  <div class="col-md-12">
                     <div class="sitemap_right_side p-0 border-0">
                        <div class="title1 text-center fs-30">Sitemap</div>
                        <div class="border-bottom border-3 w-100px border-primary mx-auto pt-1"></div>
                        <div class="wps_right mt-4">
                           <ul class="sitemap">
                              <li><a href="<?=site_url;?>" title="Home">Home</a></li>
                              <li><a href="<?=site_url;?>/about-us.htm" title="Company Profile">Company
                                 Profile</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");
                                 
                                 $num11 = mysqli_num_rows($sql_sub);
                                 
                                 ?>
                              <li>
                                 <a href="javascript:void(0);" title="<?php echo $res['displayName']; ?>">  <?php echo $res['displayName']; ?> </a>
                                 <ul>
                                    <?php while($sub_res=mysqli_fetch_array($sql_sub)){  ?>
                                    <li class="">
                                       <a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm"
                                          title="<?php echo $sub_res['displayName']; ?>">
                                       <span
                                          class="menu-item-text"><?php echo $sub_res['displayName']; ?></span>
                                       </a>
                                    </li>
                                    <?php } ?>
                                 </ul>
                              </li>
                            
                              <?php } ?>
                              <!-- <li><a href="sitemap.php" title="Fabrics we use">Sitemap</a></li> -->
                              <li><a href="<?=site_url;?>/market-area.htm" title="Market Area">Market Area</a>
                              </li>
                              <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>
                           </ul>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <?php include "app_footer.php"; ?>
      <?php include "app_bottom.php"; ?>
   </body>
</html>