 <?php //session_start(); 
//include './core.php';

$menuDescDataList = $dba->getModuleMenusById($_SESSION['cfg']['scc']['default.module.id'], 0, $_SESSION['ownerId']);
//print_r($_SESSION);
?>

  <!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
     <!-- <div class="user-panel">
        <div class="pull-left image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>Alexander Pierce</p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>-->
      <!-- search form -->
    <!--  <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>-->
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <div class="sidebar-menu" id="sidebar-menu">
      
      
<li class="header">-- MENU PRINCIPAL --</li>

<?php 
    for($i=0 ; $i<count($menuDescDataList); $i++) {
?>

 <li class="treeview">
          <a href="#">
            <i class="fa fa-folder"></i> <span><?php  echo $menuDescDataList[$i]['menu_name_v']; ?></span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
           <?php 
		   $menuDetailList = $dba->getMenuDetail($menuDescDataList[$i]['menu_id_n'],0,$_SESSION['ownerId']);
		   for($j=0 ; $j<count($menuDetailList); $j++) { 
		   
		   
		   ?>
            <li><a href="#" rel="Document<?php  echo $menuDetailList[$j]['topmenu_id_n']; ?>" data-url="<?php echo $menuDetailList[$j]['char_field_1'].$menuDetailList[$j]['page_link_v'];  ?>" class="lmenu" ><i class="fa fa-circle-o"></i><?php  echo $menuDetailList[$j]['menu_name_v'] ?></a></li>
            <?php } ?>

          </ul>
        </li>


<?php

}

?>

       
        <ul class="sidebar-menu" id="sidebar-menu-dtls">
        
        </ul>
        
       




       
  
      
      </div>
     
        
     
    
    </section>
    <!-- /.sidebar -->
  </aside>