<?php include_once("include/main.inc.php");
$about_page = mysqli_query($GLOBALS['dbconn'], "select pageDesc, pageDesc1, pageImage, page_keyword, page_metadesc, page_metatitle,pageTitle from static_pages where pageID='2'");
$about_res = mysqli_fetch_array($about_page);
?>
<header>
  <div class="logo">
    <a href="<?= site_url; ?>" title="<?= $admin_res['companyName']; ?>">
    <img src="<?= site_url; ?>/designer/images/logo.png" alt="<?= $admin_res['companyName']; ?>" title="<?= $admin_res['companyName']; ?>">
    </a>
  </div>
  <div class="navigation">
    <div class="navbar">
      <button>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
      </button>
    </div>
    <div class="menu main_header">
      <ul class="nav">
        <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($loc_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>
      </ul>
    </div>
  </div>
</header>