当前位置: 首页>>代码示例>>PHP>>正文


PHP admin_menu函数代码示例

本文整理汇总了PHP中admin_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP admin_menu函数的具体用法?PHP admin_menu怎么用?PHP admin_menu使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了admin_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library("CiSmarty");
     //定义后台模版路径
     $this->cismarty->assign("THEMEPATH", "/application/themes/admin/default");
     //取得当前按钮
     $this->load->helper("admin_menu");
     $this->cismarty->assign("admin_menu", admin_menu());
     $this->load->helper("common");
 }
开发者ID:johnlion,项目名称:hlsc,代码行数:11,代码来源:AdminIndex.php

示例2: login

function login($auth)
{
    if ($auth == 1) {
        admin_menu($_GET['section']);
    } else {
        if ($auth == 0) {
            admin_interface_mens("Autentificacion fallida <br> <a href='admin.php?logout=1'><b>REINTENTAR</b></a>");
            session_destroy();
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:tiramisu,代码行数:11,代码来源:admin.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library("CiSmarty");
     $this->load->library('CiPage');
     //定义后台模版路径
     $this->cismarty->assign("THEMEPATH", "/application/" . THEME_ADMIN);
     //取得当前按钮
     $this->load->helper("admin_menu");
     $this->cismarty->assign("admin_menu", admin_menu());
     $this->load->helper("common");
 }
开发者ID:johnlion,项目名称:hlsc,代码行数:12,代码来源:AdminNodeArticle.php

示例4: widget_admin_menu

function widget_admin_menu($args)
{
    global $wpdb, $table_prefix;
    extract($args);
    //$options = get_option('widget_wp_shopping_cart');
    $title = empty($options['title']) ? __(TXT_WPSC_ADMINMENU) : $options['title'];
    echo $before_widget;
    $full_title = $before_title . $title . $after_title;
    echo $full_title;
    admin_menu();
    echo $after_widget;
}
开发者ID:alx,项目名称:barceloneta,代码行数:12,代码来源:admin_menu_widget.php

示例5: widget

 /**
  * Widget Output
  *
  * @param $args (array)
  * @param $instance (array) Widget values.
  *
  * @todo Add individual capability checks for each menu item rather than just manage_options.
  */
 function widget($args, $instance)
 {
     extract($args);
     if (current_user_can('manage_options')) {
         echo $before_widget;
         $title = apply_filters('widget_title', empty($instance['title']) ? __('Admin Menu', 'wpsc') : $instance['title']);
         if ($title) {
             echo $before_title . $title . $after_title;
         }
         admin_menu();
         echo $after_widget;
     }
 }
开发者ID:pankajsinghjarial,项目名称:SYLC,代码行数:21,代码来源:admin_menu_widget.php

示例6: smarty_function_adminmenue

function smarty_function_adminmenue($params, $template)
{
	if (empty($params['id']) && $params['page'] == 'true') { $menu_id = '0'; $class = 'class = "page_menu"'; } else { $menu_id = $params['id']; $class = ''; }
    $menus = admin_menu($menu_id);
    if(!$menus) { echo "Fehler beim Laden des Menüs (ID: ".$params['id'].")"; }
    else {
   	 echo '<ul'.$class.'>';
   		 foreach($menus as $menu)
   		 {
   			 echo '<li><a href="'.$menu['link'].'"'.$menu['target'].'>'.$menu['title'].'</a></li>';
   		 }
		 echo '</ul>';
		}
}
开发者ID:4g3n7sm1th,项目名称:cms,代码行数:14,代码来源:function.adminmenue.php

示例7: widget_admin_menu

function widget_admin_menu($args)
{
    global $wpdb, $table_prefix, $current_user;
    get_currentuserinfo();
    if ($current_user->wp_capabilities['administrator'] == 1) {
        extract($args);
        //$options = get_option('widget_wp_shopping_cart');
        $title = empty($options['title']) ? __(TXT_WPSC_ADMINMENU) : $options['title'];
        echo $before_widget;
        $full_title = $before_title . $title . $after_title;
        echo $full_title;
        admin_menu();
        echo $after_widget;
    }
}
开发者ID:papayalabs,项目名称:htdocs,代码行数:15,代码来源:admin_menu_widget.php

示例8: admin_menu

    <!-- /.navbar-static-side -->
    <div role="navigation" class="navbar-default sidebar">
        <div class="sidebar-nav navbar-collapse">

            <ul id="side-menu" class="nav in">
            	<?php
            		if($this->ion_auth->is_admin())
					{
						echo admin_menu();
					}
					elseif($this->ion_auth->is_depot())
					{
						echo depot_menu();
					}
					elseif($this->ion_auth->is_doctor())
					{
						echo doctor_menu();
					}
					elseif($this->ion_auth->is_medical_store())
					{
						echo medical_store_menu();
					}
					else
					{
						echo "Menu";
					}
            	?>
            </ul>
        </div>
        <!-- /.sidebar-collapse -->
    </div>
开发者ID:hardikpanseriya,项目名称:testing,代码行数:31,代码来源:left.php

示例9: dirname

/*
Seems to be unused :
$basedir = dirname($SCRIPT_FILENAME);
$textrows = 20;
$textcols = 85;
$udir = dirname($PHP_SELF);
if (empty($wdir)) $wdir='/';
*/
// to be put somewhere else !!! review ?
if ($module == 'Past_Nuke' and $op == 'deleteNotice') {
    deleteNotice($id, $table, $op_back);
    exit;
}
// to be put somewhere else !!! end
// prepare the menu
admin_menu('admin.html');
if (file_exists($file = 'modules/' . pnVarPrepForOS($module) . '/admin.php')) {
    $ModName = $module;
    include $file;
    modules_get_language();
    modules_get_manual();
    if (substr($module, 0, 3) == 'NS-') {
        $function = substr($module, 3) . '_admin_';
    } else {
        $function = $module . '_admin_';
    }
    $function_op = $function . $op;
    $function_main = $function . 'main';
    $var = array_merge($GLOBALS['HTTP_GET_VARS'], $GLOBALS['HTTP_POST_VARS']);
    if (function_exists($function_op)) {
        $function_op($var);
开发者ID:BackupTheBerlios,项目名称:microbuilder,代码行数:31,代码来源:admin.php

示例10: admin_main

/**
 * main function. checks for authorization and renders the
 * required admin section.
 */
function admin_main($authorised)
{
    echo "\n<div id=\"channel_admin\" class=\"frame\">";
    if ($authorised) {
        admin_menu();
        if (array_key_exists(CST_ADMIN_DOMAIN, $_REQUEST)) {
            switch ($_REQUEST[CST_ADMIN_DOMAIN]) {
                case CST_ADMIN_DOMAIN_FOLDER:
                    $show = folder_admin();
                    break;
                case CST_ADMIN_DOMAIN_CHANNEL:
                    $show = channel_admin();
                    break;
                case CST_ADMIN_DOMAIN_CONFIG:
                    $show = config_admin();
                    break;
                case CST_ADMIN_DOMAIN_ITEM:
                    $show = item_admin();
                    break;
                case CST_ADMIN_DOMAIN_PLUGINS:
                    $show = plugins_admin();
                    break;
                case CST_ADMIN_DOMAIN_THEMES:
                    $show = themes_admin();
                    break;
                case CST_ADMIN_DOMAIN_TAGS:
                    $show = tags_admin();
                    break;
                case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS:
                    $show = plugin_options_admin();
                    break;
                case CST_ADMIN_DOMAIN_THEME_OPTIONS:
                    $show = theme_options_admin();
                    break;
                default:
                    break;
            }
        }
        if (array_key_exists(CST_ADMIN_VIEW, $_REQUEST) || isset($show)) {
            if (!isset($show)) {
                $show = $_REQUEST[CST_ADMIN_VIEW];
            }
            switch ($show) {
                case CST_ADMIN_DOMAIN_CONFIG:
                    config();
                    break;
                case CST_ADMIN_DOMAIN_CHANNEL:
                    channels();
                    break;
                case CST_ADMIN_DOMAIN_FOLDER:
                    folders();
                    break;
                case CST_ADMIN_DOMAIN_OPML:
                    opml();
                    break;
                case CST_ADMIN_DOMAIN_NONE:
                    break;
                case CST_ADMIN_DOMAIN_ITEM:
                    items();
                    break;
                case CST_ADMIN_DOMAIN_SYSINFO:
                    sysinfo();
                    break;
                case CST_ADMIN_DOMAIN_DASHBOARD:
                    dashboard();
                    break;
                case CST_ADMIN_DOMAIN_PLUGINS:
                    plugins();
                    break;
                case CST_ADMIN_DOMAIN_THEMES:
                    themes();
                    break;
                case CST_ADMIN_DOMAIN_TAGS:
                    tags();
                    break;
                case CST_ADMIN_DOMAIN_PLUGIN_OPTIONS:
                    plugin_options();
                    break;
                case CST_ADMIN_DOMAIN_THEME_OPTIONS:
                    theme_options();
                    break;
                default:
            }
        } else {
            if (true == getConfig('rss.config.defaultdashboard')) {
                dashboard();
            } else {
                channels();
            }
        }
        echo "\n<div class=\"clearer\"></div>\n";
    } else {
        rss_error(sprintf(__('<h1>Not Authorized!</h1>You are not authorized to access the administration interface. Please follow <a href="%s">this link</a> back to the main page. Have  a nice day!'), getPath()), RSS_ERROR_ERROR, true);
    }
    echo "</div>\n";
}
开发者ID:jphpsf,项目名称:gregarius,代码行数:100,代码来源:index.php

示例11: get_url

			<a class="navbar-brand" href="<?php 
echo get_url();
?>
" title="返回 <?php 
site_title();
?>
 首页"><?php 
site_name();
?>
</a>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<?php 
admin_top_menu();
?>
			</ul>
		</div>
	</nav>
</header>
<div class="container">
	<div class="col-md-2">
		<ul class="nav nav-pills nav-stacked">
			<?php 
admin_menu();
?>
		</ul>
	</div>
	<div class="admin_content col-md-10">
		<!--顶部结束-->
开发者ID:Wanyor,项目名称:ProjectManager,代码行数:30,代码来源:header.php

示例12: referal_menu

    $menu = referal_menu($core, $menu);
}
if ($core->user->work == -1) {
    $menu = external_menu($core, $menu);
}
if ($core->user->work >= 1) {
    $menu = order_menu($core, $menu);
}
if ($core->user->work == 0 || $core->user->work == 2) {
    $menu = webmaster_menu($core, $menu);
}
if ($core->user->comp && $core->user->compad) {
    $menu = company_menu($core, $menu);
}
if ($core->user->level == 1) {
    $menu = admin_menu($core, $menu);
}
$menu = base_menu($core, $menu);
$newmenu = array();
foreach ($menu as $n => &$m) {
    if (is_array($m)) {
        $sub = array();
        foreach ($m as $mm) {
            $sub[] = array('div' => $mm, 'link' => $core->url('m', $mm), 'name' => $core->lang['menu_sub_' . $mm] ? $core->lang['menu_sub_' . $mm] : $core->lang['menu_' . $mm]);
        }
        $newmenu[] = array('div' => $n, 'link' => $core->url('m', $n), 'name' => $core->lang['menu_' . $n], 'sub' => $sub);
    } else {
        $newmenu[] = array('div' => $m, 'link' => $core->url('m', $m), 'name' => $core->lang['menu_' . $m]);
    }
}
$core->setmenu($newmenu);
开发者ID:Burick,项目名称:altercpa,代码行数:31,代码来源:index.php

示例13: getMotherInfo

$mothers = getMotherInfo();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Display Data"));
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(1);
?>

<div id="pagecontent">

<div id="registercontent">

<div id="container">
<div class='tabs'>
  <ul class="menu">
  <li><a href='#displayData'><?php 
echo _("Display Data");
?>
</a></li>
  </ul>
  <div id='displayData'>
开发者ID:purdue-epics-wise,项目名称:AMBI,代码行数:31,代码来源:display_data.php

示例14: head_tag

}
?>

<head>
<?php 
head_tag("Admin pCare - " . _("User Accounts"));
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(3);
?>

<div id="pagecontent">
<?php 
displayMessage(@$_SESSION['AccountMessage'], @$_SESSION['AccountDetails'], @$_SESSION['AccountType']);
unset($_SESSION['AccountMessage'], $_SESSION['AccountDetails'], $_SESSION['AccountType']);
$query = "SELECT email FROM Mothers m LEFT JOIN InfantProfile i ON m.mid = i.mid WHERE i.mid IS NULL;";
$result = mysql_query($query);
$needInfoEmails = array();
if (mysql_num_rows($result)) {
    while ($row = mysql_fetch_array($result)) {
        array_push($needInfoEmails, $row['email']);
    }
    if (count($needInfoEmails)) {
        $childMessage = "The following mother(s) need their child information entered: ";
开发者ID:purdue-epics-wise,项目名称:AMBI,代码行数:31,代码来源:user_accounts.php

示例15: page_header

    th { 
      background-color: #ddd;
    }
    td:first-child {
      background-color: #ddd;
    }
  </style>
</head>

<body>
	<div id="maincontainer">
	<?php 
page_header();
?>
	<?php 
admin_menu(0);
?>
	
	
	<div id="pagecontent">

	
	<form method="post" action="admin/display_data.php" name="dash">
	<input type="hidden" name="dateFrom" value=<?php 
echo "\"" . date("Y-m-d") . "\"";
?>
\>
	<input type="hidden" name="dateTo" value=<?php 
echo "\"" . date("Y-m-d") . "\"";
?>
\>
开发者ID:purdue-epics-wise,项目名称:AMBI,代码行数:31,代码来源:main.php


注:本文中的admin_menu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。