<?php
include_once("include/main.inc.php");
$page_metatitle="Sitemap- Steel Overseas";
$page_metakey="Sitemap- Steel Overseas";
$page_metadesc="Sitemap- Steel Overseas";
$actual_link = "https://$_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">

	<title><?= $page_metatitle; ?></title>
	<meta name="description" content="<?= $page_metadesc; ?>" >
    <meta name="keywords" content="<?= $page_metakey; ?>" >
	<?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">
						<h1 class="cat_title">Sitemap</h1>
					
					</div>
				</div>
			</div>
		</section>
		<div 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>
		</div>
		<section class="sitemap_page">
			<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">
							<div class="sitemap_right_side">
								<h2 class="title_h2">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 $sql=mysqli_query($dbconn,"select * from category_tbl where parentID='0' && status='Y' order by catOrder");
									$count=mysqli_num_rows($sql);
									while($res=mysqli_fetch_array($sql)){?>
									<?php $catID=$res['catID'];
									$sql_sub=mysqli_query($dbconn,"select * from category_tbl where parentID='$catID' && status='Y' order by catOrder");
              $count =mysqli_num_rows($sql_sub);
									?>
                   <li class="cs-submenu <?php echo $catID;?> <?php if($hover==$catID){ echo 'active'; }?>"><a href="<?=site_url;?>/<?=getValidFileName($res['catName']);?>.htm" title="<?php echo $res['catName']; ?> "> <?php echo $res['displayName']; ?></a>
									<?php if(mysqli_num_rows($sql_sub) > 0){?>
									<ul class="cs-dropdown">
									<?php while($subres=mysqli_fetch_array($sql_sub)) {
									$catIDs=$subres['catID'];
									$sql_subsub=mysqli_query($dbconn,"select * from category_tbl where parentID='$catIDs' && status='Y' order by catOrder");
									if(mysqli_num_rows($sql_subsub) > 0) {?>
									<li class="cs-submenu"><a href="<?=site_url;?>/<?=getValidFileName($subres['catName']);?>.htm" title="<?php echo $subres['catName']; ?>"><?php echo $subres['displayName']; ?>  </a>
									<ul class="cs-dropdown">
									<?php while($subsubres=mysqli_fetch_array($sql_subsub)){
									$catIDss=$subsubres['catID'];
									$sql_final=mysqli_query($dbconn,"select * from category_tbl where parentID='$catIDss' order by catOrder");
									if(mysqli_num_rows($sql_final) > 0){ ?>
									<li class="cs-submenu"> <a href="<?=site_url;?>/<?=getValidFileName($subsubres['catName']);?>.htm" title="<?php echo $subsubres['catName']; ?> "><?php echo $subsubres['displayName']; ?></a>
									<ul class="cs-dropdown">
									<?php while($finalres=mysqli_fetch_array($sql_final)) {?>
									<li><a href="<?=site_url;?>/<?=getValidFileName($finalres['catName']);?>.htm" title="<?php echo $finalres['catName']; ?> "><?php echo $finalres['displayName']; ?></a></li>
									<?php }?>
									</ul>
									</li>
									<?php } else{?>
									<li><a href="<?=site_url;?>/<?=getValidFileName($subsubres['catName']);?>.htm" title="<?php echo $subsubres['catName']; ?> "><?php echo $subsubres['displayName']; ?></a></li>
									<?php } }?>
									</ul>
									</li>
									<?php } else {?>
									<li><a href="<?=site_url;?>/<?=getValidFileName($subres['catName']);?>.htm" title="<?php echo $subres['catName']; ?> "><?php echo $subres['displayName']; ?></a></li>
									<?php } }?>
									</ul>
									<?php }?>
									</li>
									<?php }?>
										
										<li><a href="<?=site_url;?>/photo-gallery.htm" title="Gallery">Gallery</a>
										<ul class="cs-dropdown">
                                  <li class=" "><a href="<?=site_url;?>/photo-gallery.htm" title="Photo Gallery">Photo Gallery 
                                          </a>
                                      </li>

                                </ul>
										
										</li>
										<li><a href="<?=site_url;?>/blog.htm" title="Blogs">Blogs</a></li>
										<li><a href="<?=site_url;?>/contact.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>