<?php
$getAdminDetails=getAdminDetails($res);
?>
<a id="web-pulse-scroll-up" href="#" title="Go to Top"><i class="fa fa-angle-up"></i></a>
<header class="header">
    <div class="topbar">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 col-md-6 col-5">
                    <ul class="top_left d-none d-md-block">
                        <li> <a href="tel:<?=$getAdminDetails['mobile'];?>" title="Call Now"><i class="fa fa-phone"></i> <?=$getAdminDetails['mobile'];?></a></li>
                       <!-- <li><i class="fa fa-clock-o"></i> Mon - Sat 8.00 - 18.00. Sunday Closed</li>-->
                    </ul>
                </div>
                <div class="col-lg-6 col-md-6 col-7">
                    <div class="row">
                        <div class="col-lg-3 col-md-3 d-none d-sm-block"></div>
                        <div class="col-lg-9 col-md-9 col-xs-12">
                            <form class="search-form" method="get" action="<?=SITE_URL_PATH;?>/search.htm">
                                <input class="search-input" type="text" name="keyword" placeholder="Search here..."
                                    required="">
                                <button type="submit" class="btn-search"><i class="fa fa-search"></i></button>
                            </form>

                         <!---   <ul class="top_right d-none d-sm-block">
                                <li><a class="facebook" href="javascript:void()" title="facebook"><i
                                            class="fa fa-facebook"></i></a></li>
                                <li><a class="twitter" href="javascript:void()" title="twitter"><i
                                            class="fa fa-twitter"></i></a></li>
                                <li><a class="linkedin" href="javascript:void()" title="linkedin"><i
                                            class="fa fa-linkedin"></i></a></li>
                                <li><a class="instagram" href="javascript:void()" title="instagram" target="_blank"><i
                                            class="fa fa-instagram"></i></a></li>
                            </ul>-->
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="navigation_bar">
        <div class="container">
            <div class="row">
                <div class="d-block d-lg-none col-9 col-md-6 responsive_logo">
                    <div class="logo">
                        <a href="<?=SITE_URL_PATH;?>" title="<?=$getAdminDetails['companyName'];?>">
                            <img  src="<?=SITE_URL_PATH;?>/designer/images/logo-2.png" alt="<?=$getAdminDetails['companyName'];?>" id="logo" class="logoo" title="<?=$getAdminDetails['companyName'];?>" width="280" height="67"></a>
                    </div>
                </div>

                <div class="col-lg-12 col-md-6">
                    <div class="navigation">
                        <div class="navbar">
                            <button><i class="fa fa-bars"></i></button>
                        </div>
                        <div class="menu">
                            <ul class="nav pull-left">
                                <li class="<?=$current_page == 'Home' ? 'active' : '';?>"><a href="<?=SITE_URL_PATH;?>" title="Home">Home</a> </li>
                                <li class="<?=$current_page == 'About' ? 'active' : '';?>"><a href="<?=SITE_URL_PATH;?>/about-us.htm" title="About Us">About Us </a> </li>

                                <?php $sql_cat = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='0' and status='Y'");
                                    $res_cat = mysqli_fetch_assoc($sql_cat);
                                  
                                     $sql_subcat = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='$res_cat[catID]' and status='Y' order by catOrder");
                                       
                                ?>
                                <li class="cs-submenu <?=$current_page == 'category' ? 'active' : '';?>"><a href="<?=SITE_URL_PATH;?>/<?=getValidFileName($res_cat['catName']);?>.htm" title="<?=$res_cat['displayName'] ? $res_cat['displayName'] : $res_cat['catName'];?>"><?= $res_cat['catName'];?>
                                        <i class="fa fa-angle-down hidden-xs hidden-sm"></i></a>
                                    <ul class="cs-dropdown">
                                        <?php while($res_sub_cat = mysqli_fetch_assoc($sql_subcat))
                                        {
                                            $sql_subsubcat = mysqli_query($GLOBALS['dbcon'],"select * from category_tbl where parentID='$res_sub_cat[catID]' and status='Y' order by catOrder");
                                           
                                            ?>
                                        <li class="cs-submenu"><a  href="<?=SITE_URL_PATH;?>/<?=getValidFileName($res_sub_cat['catName']);?>.htm"
                                                title="<?=$res_sub_cat['displayName'] ? $res_sub_cat['displayName'] : $res_sub_cat['catName'];?>"><?=$res_sub_cat['displayName'];?></a>


                                                <ul class="cs-dropdown">
                                        <?php while($res_subsub_cat = mysqli_fetch_assoc($sql_subsubcat))
                                        {
                                            
                                           
                                            ?>
                                        <li class="cs-submenu"><a  href="<?=SITE_URL_PATH;?>/<?=getValidFileName($res_subsub_cat['catName']);?>.htm"
                                                title="<?= $res_subsub_cat['catName'];?>"><?=$res_subsub_cat['displayName'];?></a>



                                            
                                        </li>
                                        <?php } ?>

                                          </ul>
                                            
                                        </li>
                                        <?php } ?>

                                          </ul>
                                
                                
                            </ul>

                            <div class="logo d-none-sm d-none-xs hidden-xs hidden-sm">
                                <a href="<?=SITE_URL_PATH;?>" title="<?=$getAdminDetails['companyName'];?>">
                                    <img  src="<?=SITE_URL_PATH;?>/designer/images/logo-2.png" alt="<?=$getAdminDetails['companyName'];?>"
                                        title="<?=$getAdminDetails['companyName'];?>">
                                </a>
                            </div>
                                       
                            <ul class="nav pull-right">                               
                                <li class="<?=$current_page == 'Blogs' ? 'active' : '';?>"><a href="<?=SITE_URL_PATH;?>/blog.htm" title="Blogs">Blogs</a></li>
                                <li class="<?=$current_page == 'Contact' ? 'active' : '';?>"><a href="<?=SITE_URL_PATH;?>/contact-us.htm" title="Contact Us">Contact Us</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>