<div class="sidebar_model">
            <ul class="menu collapsible">
              <li class="expand"> <a class="sidebar_head" href="#">{lang='内容管理'}</a>
                <div class="class_content">
                  <ul>
                  <?php if(is_array($channel)) foreach($channel as $vo) { ?>
                  
                  
                  <?php if($vo['content_status']==1){ ?>
                  <li class="page_ico"><a href="__APP__{$vo['edit_url']}-{$vo['id']}" target="frame_content" >{$vo['cname']}</a></li>
                  <?php }else{ ?>
                  
                    <?php if($vo['type']==0) { ?>
                    <li class="list_ico"><div class="class_type">{$vo['cname']}</div></li>
                    <?php }else{ ?>
                      <?php if(module('common')->auth_class_if($vo['id'])){ ?>
                      <?php if(empty($vo['url'])) { ?>
                    <li class="list_ico"><a href="__APP__{$vo['list_url']}-{$vo['id']}" target="frame_content" >{$vo['cname']}</a></li>
                      <?php }else{ ?>
                     <li class="list_url"><a href="__APP__{$vo['edit_url']}-{$vo['id']}" target="frame_content" >{$vo['cname']}</a></li>
                      <?php } ?>
                    
                    <?php }else{ ?>
                    <li class="list_ico"><div class="list_auth">{$vo['cname']}</div></li>
                    <?php } ?>
                    
                    <?php }?>                  
                  
                  <?php }?>
                  
                  
                  <?php }?>
                  
                  </ul>
                </div>
                
              </li>
  
            </ul>
</div>
          <div style="clear:both; height:10px"></div>
          
<script>
var url=$(".class_content a:first ").attr("href");
if(url==undefined){
asyncbox.error('{lang='无栏目或没有权限'}','{lang='提示信息'}'); 
}else{
window.frames['frame_content'].location.href=url;
}
</script>
<script>
function frameheight() {
	var mainheight = $(window).height()-120;   
    $('.class_content').height(mainheight); 
};

$(function() {
frameheight();
$(window).resize(frameheight);
});
</script>