<div class="sidebar_model">
            <ul class="menu collapsible">
            <?php if(!empty($menu_list)){ foreach ($menu_list as $vo) { ?>
              <li class="expand"> <a class="sidebar_head" href="#"><?php echo module('common')->getlang($vo['name']) ?></a>
                <ul class="acitem">
                 <?php $menu=module('menu')->menu($vo['id']);if (!empty($menu)){ foreach ($menu as $list) { ?>
                 <?php 
                 if(!empty($vo['rid'])){
                  if(module('common')->auth_if($vo['rid'])) 
                  { 
                  ?>
                 <li><a href="__APP__{$list['url']}" target="frame_content" ><?php echo module('common')->getlang($list['name']) ?></a></li>
                 <?php 
                  }
                 }else{ ?>
                 <li><a href="__APP__{$list['url']}" target="frame_content" ><?php echo module('common')->getlang($list['name']) ?></a></li>
                 <?php } ?>
                 <?php }} ?>
                </ul>
              </li>
           <?php }} ?>
  
            </ul>
          </div>
