Esempio n. 1
0
 function _initialize()
 {
     $terms_db = M('terms');
     $terms_info = $terms_db->field('term_id,name')->select();
     $this->assign("terms_info", $terms_info);
     sp_get_menu();
 }
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </a>
       <a class="brand" href="/www/"><img src="/www/themes/simplebootx/Public/images/logo.png"/></a>
       <div class="nav-collapse collapse" id="main-menu">
       	<?php 
$effected_id = "";
$filetpl = "<a href='\$href' target='\$target'>\$label</a>";
$foldertpl = "<a href='\$href' target='\$target' class='dropdown-toggle' data-toggle='dropdown'>\$label <b class='caret'></b></a>";
$ul_class = "dropdown-menu";
$li_class = "";
$style = "nav";
$showlevel = 6;
$dropdown = 'dropdown';
echo sp_get_menu("main", $effected_id, $filetpl, $foldertpl, $ul_class, $li_class, $style, $showlevel, $dropdown);
?>
		
		<ul class="nav pull-right" id="main-menu-user">
			<li class="dropdown user login">
	            <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
	            <img src="/www/themes/simplebootx//Public/images/headicon.png" class="headicon"/>
	            <span class="user-nicename"></span><b class="caret"></b></a>
	            <ul class="dropdown-menu pull-right">
	               <li><a href="<?php 
echo U('user/center/index');
?>
"><i class="fa fa-user"></i> &nbsp;个人中心</a></li>
	               <li class="divider"></li>
	               <li><a href="<?php 
echo U('user/index/logout');