<div class="row top-header">
		<div class="col-md-4 search-cont">
                    <div class="top-search-cont">
                        <form action="<?=site_url("search")?>">
                            <input type="text" name="search" id="search_box" placeholder="search product ...">  
                            <input type="submit" name="searchbut" id="searchbutt" value="" >
                        </form>                   
                    </div>
		</div>    
		<div class="col-md-4 logo-cont">
                    <a href="<?=site_url("")?>">
                    <img src="<?=base_url()?>assets/img/logo.png" alt="pos" id="logo_image">
                    </a>
		</div>
		<div class="col-md-4 small-ico-cont">
                    
                    <?
                     if($this->session->userdata("FirstName") != "")
                     {
                    ?>
                    <div class="small-icons-cont accountnamecont">
                        <a href="<?=site_url("myaccount")?>" >
                            <img src="<?=base_url()?>assets/css/icons/signin.png" alt="pos" >
                            <span class="ellipsis topname">Hi <?=$this->session->userdata("FirstName")?></span>
                        </a>
                        
                        <div class="accountsubmenu">
                           <a href="<?=site_url("myaccount")?>">My Profile</a>   
                           <a href="<?=site_url("saveditems")?>">My Saved Items</a>
                           <a href="#">My Orders</a>   
                           <a href="<?=site_url("signout")?>">Sign Out</a>   
                        </div>
                    </div>
                    <?
                     }
                     else
                     {
                    ?>
                    <div class="small-icons-cont">
                        <a href="<?=site_url("signin")?>">
                            <img src="<?=base_url()?>assets/css/icons/signin.png" alt="pos" >
                            <span class="ellipsis topname">Sign in</span>
                        </a>
                    </div>
                    <?
                     }
                    ?>
                    
                    <div class="small-icons-cont">
                        <a href="<?=site_url("mybag")?>">
                            <img src="<?=base_url()?>assets/css/icons/trolle.png" alt="pos" >
                            <span class="ellipsis topname">My Bag</span>
                        </a>
                    </div>
                                                            
                    <div class="small-icons-cont">
                        <a href="<?=site_url("saveditems")?>">
                            <img src="<?=base_url()?>assets/css/icons/heart.png" alt="pos" >
                            <span class="ellipsis topname">Saved Items</span>
                        </a>
                    </div>
		</div>
	</div>
	<div class="row top-menu">
            
                    <!-- ============= Top Menu -->
                    
<div class="navbarmenu">
    
    <a href="<?=base_url()?>">Home</a>
    
    <?
        $categories = $this->general->getAllRecordsWhere(CATEGORIES , array("is_active" => 1),"CategoryID" , "desc");                                    
        foreach( $categories as $row)
        { 
    ?>
            <a href="<?=base_url()?>categories/<?=$row->slug?>"><?=$row->CategoryName?></a>
    <?
        }
    ?>
    
    
 <!-- <div class="dropdownmenu">
    <button class="dropbtn">Dropdown 
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <div class="header">
        <h2>Mega Menu</h2>
      </div>   
      <div class="menurow">
        <div class="column">
          <h3>Category 1</h3>
          <a href="#">Link 1</a>
          <a href="#">Link 2</a>
          <a href="#">Link 3</a>
        </div>
        <div class="column">
          <h3>Category 2</h3>
          <a href="#">Link 1</a>
          <a href="#">Link 2</a>
          <a href="#">Link 3</a>
        </div>
        <div class="column">
          <h3>Category 3</h3>
          <a href="#">Link 1</a>
          <a href="#">Link 2</a>
          <a href="#">Link 3</a>
        </div>
      </div>
    </div>      
  </div> -->
  
  
  
</div>
                    
                    <!-- ============= End Menu -->
                    
	</div>