<?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);
?>
<a href="#" id="scrollUp" title="Go to Top"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
        <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"></path>
    </svg></a>
<header>
    <div class="menubar">
        <div class="container-fluid px-md-5">
            <div class="row align-items-center">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col_logo">
                    <div class="logo">
                        <a href="<?= site_url; ?>" title="<?= $admin_res['companyName']; ?>"><img src="<?= site_url; ?>/designer/images/logo.webp" alt="<?= $admin_res['companyName']; ?>" title="<?= $admin_res['companyName']; ?>"></a>
                    </div>
                </div>
                <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9">
                    <div class="navigation">
                        <div class="navbar">
                            <button>
                                <span></span>
                                <span></span>
                                <span></span>
                                <span></span>
                            </button>
                        </div>
                        <div class="menu  d-lg-flex align-items-center justify-content-end">
                            <ul class="nav">
                                <li class="<?= $hover == 'home' ? 'active' : ''; ?>"><a href="<?= site_url; ?>" title="Home">Home</a></li>
                                <li class="<?= $hover == 'about' ? 'active' : ''; ?>"><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");
                                    $num11 = mysqli_num_rows($sql_sub);
                                ?>
                                    <li class="cs-submenu <?= $hover == 'category' ? 'active' : ''; ?>">
                                        <a href="javascript:void();" title="<?php echo $res['displayName']; ?>"><?php echo $res['displayName']; ?></a>

                                        <ul class="cs-dropdown">
                                            <?php while ($sub_res = mysqli_fetch_array($sql_sub)) { 
                                                $sql_subsub=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='$sub_res[catID]' && status='Y' order by catOrder");
                                         $count_num = mysqli_num_rows($sql_subsub);
                                                ?>
                                                <li class="<?=($count_num>0) ? ('cs-submenu') : ('');?>">
                                                    <a href="<?= site_url; ?>/<?= getValidFileName($sub_res['catName']); ?>.htm" title="<?php echo $sub_res['displayName']; ?>"><?php echo $sub_res['displayName']; ?></a>

                                            <ul class="cs-dropdown">
                                                <?php while($subsub_res=mysqli_fetch_array( $sql_subsub)){ ?>
                                                <li>
                                                    <a href="<?=site_url;?>/<?=getValidFileName($subsub_res['catName']);?>.htm" 
                                        title="<?php echo $subsub_res['displayName']; ?>"><?php echo $subsub_res['displayName']; ?></a>
                                                </li>
                                                 <?php } ?>
                                            </ul>
                                            </li>
                                            <?php } ?>
                                        </ul>
                                    </li>
                                <?php } ?>

                                <li class="<?= $hover == 'policy' ? 'active' : ''; ?>"><a href="<?= site_url; ?>/policy.htm" title="Policy">Policy</a></li>
                                <li class="<?= $hover == 'gallery' ? 'active' : ''; ?>"><a href="<?= site_url; ?>/gallery.htm" title="Gallery">Gallery</a></li>
                                <li class="<?= $hover == 'video' ? 'active' : ''; ?>"><a href="<?= site_url; ?>/video-gallery.htm" title="Video Gallery">Video Gallery</a></li>
                                <li class="<?= $hover == 'blog' ? 'active' : ''; ?>"><a href="<?= site_url; ?>/blog.htm" title="Blogs">Blogs</a></li>
                                <li class="<?= $hover == 'contact' ? 'active' : ''; ?>"><a href="<?= site_url; ?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
                            </ul>
   <a href="sas-sample-kits.htm" class="btn btn-animate ms-3"> 
                               <span> SAS Sample Kits</span>
                                    </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>