zoukankan      html  css  js  c++  java
  • sp_get_menu函数使用分析

    function sp_get_menu($id="main",$effected_id="mainmenu",$filetpl="<span class='file'>$label</span>",$foldertpl="<span class='folder'>$label</span>",$ul_class="" ,$li_class="" ,$style="filetree",$showlevel=6,$dropdown='hasChild'){
    	$navs=F("site_nav_".$id);
    	if(empty($navs)){
    		$navs=_sp_get_menu_datas($id);
    	}
    
    	import("Tree");
    	$tree = new Tree();
    	$tree->init($navs);
    	// var_dump($navs);
    	return $tree->get_treeview_menu($id,$effected_id, $filetpl, $foldertpl,  $showlevel,$ul_class,$li_class,  $style,  1, FALSE, $dropdown);
    }
    

      common/common/function/sp_get_menu()

      将get_treeview_menu("main",...),改为$id。

      根据官方案例提供使用,获取$id菜单下所有的子集菜单。

  • 相关阅读:
    CSS
    表单
    框架
    表格
    列表
    定位--position属性
    浮动
    选择结构
    数组
    TextView(标签控件)
  • 原文地址:https://www.cnblogs.com/jinguodong/p/6017674.html
Copyright © 2011-2022 走看看