當前位置: 首頁>>代碼示例>>PHP>>正文


PHP admin::admin_menu方法代碼示例

本文整理匯總了PHP中admin::admin_menu方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin::admin_menu方法的具體用法?PHP admin::admin_menu怎麽用?PHP admin::admin_menu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在admin的用法示例。


在下文中一共展示了admin::admin_menu方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: L

" target="_blank" id="site_homepage"><?php 
echo L('site_homepage');
?>
</a><span>|</span>
    		<a href="?m=member" target="_blank"><?php 
echo L('member_center');
?>
</a><span>|</span>
    		<a href="?m=search" target="_blank" id="site_search"><?php 
echo L('search');
?>
</a>
    	</div>
        <ul class="nav white" id="top_menu">
        <?php 
$array = admin::admin_menu(0);
foreach ($array as $_value) {
    if ($_value['id'] == 10) {
        echo '<li id="_M' . $_value['id'] . '" class="on top_menu"><a href="javascript:_M(' . $_value['id'] . ',\'?m=' . $_value['m'] . '&c=' . $_value['c'] . '&a=' . $_value['a'] . '\')" hidefocus="true" style="outline:none;">' . L($_value['name']) . '</a></li>';
    } else {
        echo '<li id="_M' . $_value['id'] . '" class="top_menu"><a href="javascript:_M(' . $_value['id'] . ',\'?m=' . $_value['m'] . '&c=' . $_value['c'] . '&a=' . $_value['a'] . '\')"  hidefocus="true" style="outline:none;">' . L($_value['name']) . '</a></li>';
    }
}
?>
            <li class="tab_web"><a href="javascript:;"><span><?php 
echo $currentsite['name'];
?>
</span></a></li>
        </ul>
    </div>
</div>
開發者ID:klj123wan,項目名稱:czsz,代碼行數:31,代碼來源:index.tpl.php

示例2: public_map

 public function public_map()
 {
     $array = admin::admin_menu(0);
     $menu = array();
     foreach ($array as $k => $v) {
         $menu[$v['id']] = $v;
         $menu[$v['id']]['childmenus'] = admin::admin_menu($v['id']);
     }
     $show_header = true;
     include $this->admin_tpl('map');
 }
開發者ID:baowzh,項目名稱:renfang,代碼行數:11,代碼來源:index.php

示例3: defined

<?php
defined('IN_ADMIN') or exit('No permission resources.');
$pc_hash = $_SESSION['pc_hash'];
echo '<ul class="page-sidebar-menu"><li style="margin-bottom: 10px;"><div class="sidebar-toggler hidden-phone"></div></li>';
$i=0;
foreach($datas as $_m) {
    $i++;
    $first = $i==1?'style="display: block;"':'';
    echo '<li class="open"><a href="javascript:;"><i class="icon-cogs"></i><span class="title">'.L($_m['name']).'</span><span class="arrow "></span><span class="selected"></span></a><ul class="sub-menu" '.$first.'>';
	$sub_array = admin::admin_menu($_m['id']);
	foreach($sub_array as $_key=>$l_m1) {
		//附加參數
		$data = $l_m1['data'] ? '&'.$l_m1['data'] : '';
        $ajax_url = "javascript:_MP(".$l_m1['id'].",'?m=".$l_m1['m']."&c=".$l_m1['c']."&a=".$l_m1['a'].$data."');";
        echo '<li id="_MP'.$l_m1['id'].'"><a class="fstart" href="'.$ajax_url.'">'.L($l_m1['name']).'</a></li>';
	}
	echo '</li></ul>';
}
echo '</ul>';
?>
開發者ID:panhongsheng,項目名稱:zl_cms,代碼行數:20,代碼來源:zl_left.tpl.php

示例4: defined

<?php

defined('IN_ADMIN') or exit('No permission resources.');
$pc_hash = $_SESSION['pc_hash'];
foreach ($datas as $_value) {
    echo '<h3 class="f14"><span class="switchs cu on" title="' . L('expand_or_contract') . '"></span>' . L($_value['name']) . '</h3>';
    echo '<ul>';
    $sub_array = admin::admin_menu($_value['id']);
    foreach ($sub_array as $_key => $_m) {
        //附加參數
        $data = $_m['data'] ? '&' . $_m['data'] : '';
        if ($menuid == 5) {
            //左側菜單不顯示選中狀態
            $classname = 'class="sub_menu"';
        } else {
            $classname = 'class="sub_menu"';
        }
        echo '<li id="_MP' . $_m['id'] . '" ' . $classname . '><a href="javascript:_MP(' . $_m['id'] . ',\'?m=' . $_m['m'] . '&c=' . $_m['c'] . '&a=' . $_m['a'] . $data . '\');" hidefocus="true" style="outline:none;">' . L($_m['name']) . '</a></li>';
    }
    echo '</ul>';
}
?>
<script type="text/javascript">
$(".switchs").each(function(i){
	var ul = $(this).parent().next();
	$(this).click(
	function(){
		if(ul.is(':visible')){
			ul.hide();
			$(this).removeClass('on');
				}else{
開發者ID:klj123wan,項目名稱:czsz,代碼行數:31,代碼來源:left.tpl.php

示例5: L

    }
    ?>
<ul>
<li class="title"><?php 
    echo L($v['name']);
    ?>
</li>
<?php 
    foreach ($v['childmenus'] as $k => $r) {
        ?>
<li class="title2"><?php 
        echo L($r['name']);
        ?>
</li>
<?php 
        $menus = admin::admin_menu($r['id']);
        foreach ($menus as $s => $r) {
            ?>
<li><a href="javascript:go('index.php?m=<?php 
            echo $r['m'];
            ?>
&c=<?php 
            echo $r['c'];
            ?>
&a=<?php 
            echo $r['a'];
            ?>
&pc_hash=<?php 
            echo $_SESSION['pc_hash'];
            ?>
&menuid=<?php 
開發者ID:ahmatjan,項目名稱:huluphp,代碼行數:31,代碼來源:map.tpl.php


注:本文中的admin::admin_menu方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。