<?php include_once("include/main.inc.php");

$admin_sql = mysqli_query($GLOBALS['dbconn'], "select * from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);



?>
<a id="web-pulse-scroll-up" 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-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-6 col-5">
                    <ul class="top_left hidden_xs">
                    <li> <a href="tel:+919914854545"><i class="fa fa-phone"></i> 91-99148-54545</a></li>
                        <li> <a href="mailto:<?=$admin_res['email'];?>"><i class="fa fa-envelope"></i> <?=$admin_res['email'];?></a></li>
                        <!-- <li><i class="fa fa-clock-o"></i> Mon - Sat 8.00 - 18.00. Sunday Closed</li> -->
                    </ul>
                </div>
                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-6 col-7">
                    <div class="row">
                        <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 hidden_xs"></div>
                        <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9 col-sm-9 col-12">
                            <form class="search-form" method="get" action="<?=site_url;?>/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 hidden_xs">
                                <?php if($admin_res['facebook_link']!=''){?>
                                <li><a class="facebook" href="<?=$admin_res['facebook_link'];?>" title="Facebook" target="_blank"><i class="fa fa-facebook"></i></a></li>
                                <?php }
                                 if($admin_res['twiter_link']!=''){?>
                                <li><a class="twitter" href="<?=$admin_res['twiter_link'];?>" title="Twitter" target="_blank"><i class="fa fa-twitter"></i></a></li>

                                  <?php }
                                 if($admin_res['linked_link']!=''){?>
                                <li><a class="linkedin" href="<?=$admin_res['linked_link'];?>" title="Linkedin" target="_blank"><i class="fa fa-linkedin"></i></a></li>
                                <?php }
                                 if($admin_res['instagram_link']!=''){?>
                                <li><a class="instagram" href="<?=$admin_res['instagram_link'];?>" title="instagram" target="_blank"><i class="fa fa-instagram"></i></a></li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class=navigation_bar>
        <div class="container">
            <div class="row">
                <div class="hidden_lg col-9 responsive_logo">
                    <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>

                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="navigation">
                        <div class="navbar">
                            <button><span></span><span></span><span></span><span></span></button>
                        </div>
                        <div class="menu">
                            <ul class="nav pull-left">
                                <li class="<?php if($hover=='home'){ echo 'active'; }?>"><a href="<?=site_url;?>" title="Home">Home</a> </li>
                                <li class="<?php if($hover=='about'){ echo 'active'; }?>"><a href="<?=site_url;?>/about-us.htm" title="About Us">About Us</a></li>
                                <?php $sql=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='0' && catID IN (1, 6) && status='Y' order by catOrder");
                                $count=mysqli_num_rows($sql);
                                while($res=mysqli_fetch_array($sql)){?>
                                <?php $catID=$res['catID'];
                                $sql_sub=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='$catID' && status='Y' order by catOrder");
                                $count =mysqli_num_rows($sql_sub);
                                $iconClass = ($count > 0) ? '<i class="fa fa-angle-down hidden-xs hidden-sm"></i>' : '';
                                ?>
                                <li class="cs-submenu <?php echo $catID;?> <?php if($hover==$catID){ echo 'active'; }?>"><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($res['catName']);?>.htm" title="<?php echo $res['catName']; ?>"><?php echo $res['displayName']; ?></a>
                                    <ul class="cs-dropdown">
                                        <?php
                                        while($sub_res=mysqli_fetch_array($sql_sub)){?>
                                        <li><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($sub_res['catName']);?>.htm" title="<?php echo $sub_res['catName']; ?>"><?php echo $sub_res['displayName']; ?></a></li>
                                        <?php } ?>
                                        
                                    </ul>
                                </li>
                                
                                <?php } ?>
                            </ul>

                            <div class="logo hidden_xs">
                                <a href="<?=site_url;?>" title="<?=$admin_res['companyName'];?>"><img id="logo" src="<?=site_url;?>/designer/images/logo.png" alt="<?=$admin_res['companyName'];?>" title="<?=$admin_res['companyName'];?>"></a>
                            </div>
                            <ul class="nav pull-right">
                            
                                <?php $sql1=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='0' && catID IN (9, 24) && status='Y' order by catOrder");
                                $count=mysqli_num_rows($sql1);
                                while($res1=mysqli_fetch_array($sql1)){?>
                                <?php $catID=$res1['catID'];
                                $sql_sub1=mysqli_query($GLOBALS['dbconn'],"select * from category_tbl where parentID='$catID' && status='Y' order by catOrder");
                                $count =mysqli_num_rows($sql_sub1);
                                $iconClass = ($count > 0) ? '<i class="fa fa-angle-down hidden-xs hidden-sm"></i>' : '';
                                ?>
                                <li class="cs-submenu <?php echo $catID;?> <?php if($hover==$catID){ echo 'active'; }?>"><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($res1['catName']);?>.htm" title="<?php echo $res1['catName']; ?>"><?php echo $res1['displayName']; ?></a>
                                    <ul class="cs-dropdown">
                                        <?php
                                        while($sub_res1=mysqli_fetch_array($sql_sub1)){?>
                                        <li><a href="<?=site_url;?>/<?=getValidFileName($ca_nam1);?>/<?=getValidFileName($sub_res1['catName']);?>.htm" title="<?php echo $sub_res1['catName']; ?>"><?php echo $sub_res1['displayName']; ?></a></li>
                                        <?php } ?>
                                        
                                    </ul>
                                </li>
                                
                                <?php } ?>
                                <li class="<?php if($hover=='blog'){ echo 'active'; }?>"><a href="<?=site_url;?>/blogs.htm" title="Blogs">Blogs</a></li>
                                <li class="<?php if($hover=='contact'){ echo 'active'; }?>"><a href="<?=site_url;?>/contact-us.htm" title="Contact Us">Contact Us</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>