<?php include_once 'header.php';?>

<?php 
 $page = mysqli_fetch_array(db_query("select * from tbl_site_pages where site_pages_id='68'"));
?>

<section class="page-title" style="background-image: url('static_files/<?=$page[site_pages_inner_banner]?>');">
<div class="auto-container">
<div class="title-outer">
<h1 class="title"><?=$page['site_pages_name']?></h1>
<ul class="page-breadcrumb">
<li><a href="">Home</a></li>
<li><?=$page['site_pages_name']?></li>
</ul>
</div>
</div>
</section>

<!-- About Section -->
<section class="about-section">
<div class="auto-container">
<div class="row">
<div class="col-lg-12">
  <div class="market-area">
<h4><a href="#">Pages</a></h4>      
    <ul>
<?php 
$pages = db_query("select * from tbl_site_pages where site_pages_status='Active' and site_pages_link!='calculator' order by site_pages_order_by");
while($row=mysqli_fetch_array($pages)){
if($row['site_pages_link']=="index"){?> 
<li><a href=""><?=$row['site_pages_name']?></a></li>
<?php }else{?>
<li><a href="<?=$row['site_pages_link']?>.html"><?=$row['site_pages_name']?></a></li>
<?php }}?>


<?php $categories = db_query("select * from tbl_category where category_status='Active' and category_parent_id='0'");
while($cat=mysqli_fetch_array($categories)){?>

<li><a href="<?=$cat['category_url']?>.html"><?=$cat['category_name']?></a></li>    

<?php 
$subcategories = db_query("select * from tbl_category where category_status='Active' and category_parent_id='$cat[category_id]'");
while($subcat=mysqli_fetch_array($subcategories)){?>
<li><a href="<?=$subcat['category_url']?>.html"><?=$subcat['category_name']?></a></li> 
<?php }}?>


    </ul>  
    
  </div>     
 </div>
</div>
</div>
</section>
<!--End About Section -->

<?php include_once 'footer.php';?>