<?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 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>



<div class="top">

    <div class="container top__container">

        <div class="row align-items-center">

            <div class="col-lg-4 col-md-4 hidden-xs">

                <ul class="topbar_info">

                    <li>

                        <p><?= $admin_res['companyName']; ?></p>

                    </li>

                </ul>

            </div>

            <div class="col-lg-6 col-md-6">
                <div class="navigation">
                    <div class="navbar">
                        <button class="toggle_menu menu_show">
                            <span></span>
                            <span></span>
                            <span></span>
                        </button>
                    </div>
                    <div class="menu">
                        <ul class="nav">
                            <li><a href="<?= site_url; ?>/projects.htm" title="Our Projects">Our Projects</a></li>
                            <li><a href="<?= site_url; ?>/gallery.php" title="Gallery">Gallery</a></li>
                            <li><a href="<?= site_url; ?>/training.htm" title="Training">Training</a></li>

                            <li><a href="<?= site_url; ?>/careers.htm" title="Careers">Careers</a></li>

                            <li><a href="<?= site_url; ?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
                        </ul>
                    </div>
                </div>
            </div>



            <div class="col-lg-2 col-md-2">

                <div class="social-icon clearfix">

                    <ul>
                        <?php if ($admin_res['facebook_link']) { ?>

                            <li><a href="<?= $admin_res['facebook_link']; ?>" target="_blank" title="Facebook"><i
                                        class="fa fa-facebook" aria-hidden="true"></i></a></li>


                            <!-- <li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> -->
                        <?php }
                        if ($admin_res['linked_link']) { ?>
                            <li><a href="<?= $admin_res['linked_link']; ?>" target="_blank" title="Linkedin"><i
                                        class="fa fa-linkedin" aria-hidden="true"></i></a></li>

                            <!-- <li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> -->
                        <?php }
                        if ($admin_res['youtube_link']) { ?>
                            <li><a href="<?= $admin_res['youtube_link']; ?>" target="_blank" title="YouTube"><i
                                        class="fa fa-youtube" aria-hidden="true"></i></a></li>
                        <?php } ?>
                    </ul>

                </div>

            </div>

        </div>

    </div>

</div>





<header class="header">

    <div class="container">

        <div class="row align-items-center">

            <div class="col-xxl-2 col-xl-2 col-lg-2 col-md-2 col-sm-8 col-8">

                <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']; ?>" width="166" height="23">

                    </a>

                </div>

            </div>

            <div class="col-xxl-10 col-xl-10 col-lg-10 col-md-10 col-sm-4 col-4">

                <div class="navigation">

                    <div class="navbar">

                        <button class="toggle_menu menu_show">

                            <span></span>

                            <span></span>

                            <span></span>

                        </button>

                    </div>

                    <div class="menu">

                        <ul class="nav">

                            <li class="<?php if ($hover == 'home') {
                                echo 'active';
                            } ?>"><a href="<?= site_url; ?>" title="Home">Home</a></li>

                            <li class="cs-submenu">

                                <a href="javascript:void();" title="About">About</a>

                                <ul class="cs-dropdown">

                                    <li class="<?php if ($hover == 'about us') {
                                        echo 'active';
                                    } ?>"><a href="<?= site_url; ?>/about-us.htm" title="About Us">About Us</a></li>

                                    <li class="<?php if ($hover == 'Idea Behind Canntech') {
                                        echo 'active';
                                    } ?>"><a href="<?= site_url; ?>/idea-behind-canntech.htm"
                                            title="Idea Behind Canntech">Idea Behind Canntech</a></li>

                                    <li class="<?php if ($hover == 'Our Partners') {
                                        echo 'active';
                                    } ?>"><a href="<?= site_url; ?>/our-partners.htm" title="Our Partners">Our
                                            Partners</a>
                                    </li>

                                </ul>

                            </li>
                            <?php $sql = mysqli_query($GLOBALS['dbconn'], "select * from category_tbl where parentID='0' and status='Y' order by catOrder");
                            $count = mysqli_num_rows($sql);
                            while ($res = mysqli_fetch_array($sql)) {
                                $category_ID = $res['catID'];
                                ?>

                                <!-- <li class="cs-submenu">

                                    <a href="javascript:void()"
                                        title="<?php echo $res['displayName']; ?>"><?php echo $res['displayName']; ?></a>

                                    <ul class="cs-dropdown"> -->

                                        <?php $sql_sub = mysqli_query($GLOBALS['dbconn'], "select * from category_tbl where parentID='$category_ID' and status='Y' order by catOrder");
                                        $count = mysqli_num_rows($sql_sub);
                                        while ($res_sub = mysqli_fetch_array($sql_sub)) {
                                            $category_ID1 = $res_sub['catID'];

                                            ?>

                                            <li class="cs-submenu">

                                                <a <?php if ($res_sub['catID'] == '1' || $res_sub['catID'] == '14' || $res_sub['catID'] == '9' || $res_sub['catID'] == '10' || $res_sub['catID'] == '18' || $res_sub['catID'] == '19') { ?> href="#" <?php } else { ?>
                                                        href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($res_sub['catName']); ?>.htm"
                                                    <?php } ?>
                                                    title="<?php echo $res_sub['displayName']; ?>"><?php echo $res_sub['displayName']; ?></a>

                                                <ul class="cs-dropdown">
                                                    <?php $sql_subsub = mysqli_query($GLOBALS['dbconn'], "select * from category_tbl where parentID='$category_ID1' and status='Y' order by catOrder");
                                                    $count = mysqli_num_rows($sql_subsub);
                                                    while ($res_subsub = mysqli_fetch_array($sql_subsub)) {


                                                        ?>

                                                        <li><a href="<?= site_url; ?>/<?=getValidFileName($ca_nam1);?>/<?= getValidFileName($res_subsub['catName']); ?>.htm"
                                                                title="<?php echo $res_subsub['displayName']; ?>"><?php echo $res_subsub['displayName']; ?></a>
                                                        </li>

                                                    <?php } ?>



                                                </ul>

                                            </li>

                                        <?php } ?>

                                    <?php } ?>

                                <!-- </ul>

                            </li> -->



                            <!-- <li><a href="<?= site_url; ?>/projects.htm" title="Our Projects">Our Projects</a></li>

                            <li><a href="<?= site_url; ?>/training.htm" title="Training">Training</a></li>

                            <li><a href="<?= site_url; ?>/careers.htm" title="Careers">Careers</a></li>

                            <li><a href="<?= site_url; ?>/contact-us.htm" title="Contact Us">Contact Us</a></li> -->

                        </ul>

                    </div>

                </div>

            </div>

        </div>

    </div>

</header>