本文整理汇总了PHP中show_admin_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP show_admin_menu函数的具体用法?PHP show_admin_menu怎么用?PHP show_admin_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_admin_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_options
function show_options($action)
{
global $sql;
if ($action == '') {
$action = 'main';
}
// ##### Display options ---------------------------------------------------------------------------------------------------------
$var['main']['text'] = FORLAN_76;
$var['main']['link'] = e_SELF;
$var['cat']['text'] = FORLAN_83;
$var['cat']['link'] = e_SELF . '?cat';
if ($sql->db_Select('forum', 'forum_id', "forum_parent='0' LIMIT 1")) {
$var['create']['text'] = FORLAN_77;
$var['create']['link'] = e_SELF . '?create';
}
$var['order']['text'] = FORLAN_78;
$var['order']['link'] = e_SELF . '?order';
$var['opt']['text'] = FORLAN_79;
$var['opt']['link'] = e_SELF . '?opt';
$var['prune']['text'] = FORLAN_59;
$var['prune']['link'] = e_SELF . '?prune';
$var['rules']['text'] = FORLAN_123;
$var['rules']['link'] = e_SELF . '?rules';
$var['sr']['text'] = FORLAN_116;
$var['sr']['link'] = e_SELF . '?sr';
$var['mods']['text'] = FORLAN_33;
$var['mods']['link'] = e_SELF . '?mods';
$var['tools']['text'] = FORLAN_153;
$var['tools']['link'] = e_SELF . '?tools';
show_admin_menu(FORLAN_7, $action, $var);
}
示例2: sc_admin_docs
function sc_admin_docs()
{
if (!ADMIN) {
return '';
}
global $ns;
$i = 1;
if (!($handle = opendir(e_DOCS . e_LANGUAGE . '/'))) {
$handle = opendir(e_DOCS . 'English/');
}
while ($file = readdir($handle)) {
if ($file != '.' && $file != '..' && $file != 'CVS') {
$helplist[$i] = $file;
$i++;
}
}
closedir($handle);
unset($e107_var);
foreach ($helplist as $key => $value) {
$e107_var['x' . $key]['text'] = str_replace('_', ' ', $value);
$e107_var['x' . $key]['link'] = e_ADMIN . 'docs.php?' . $key;
}
$text = show_admin_menu(FOOTLAN_14, $act, $e107_var, FALSE, TRUE, TRUE);
return $ns->tablerender(FOOTLAN_14, $text, array('id' => 'admin_docs', 'style' => 'button_menu'), TRUE);
}
示例3: run_hook
run_hook('admin_head_main');
?>
</head>
<body>
<div id="menuheader">
<h1>pluck</h1>
<?php
run_hook('admin_menu_before');
?>
<?php
$links = array(array('href' => '?action=start', 'img' => 'data/image/menu/start.png', 'text' => $lang['start']['title'], 'submenu' => array(array('href' => 'index.php', 'img' => 'data/image/website.png', 'text' => $lang['start']['website']), array('href' => '?action=credits', 'img' => 'data/image/credits.png', 'text' => $lang['credits']['title']), array('href' => '?action=writable', 'img' => 'data/image/update-no.png', 'text' => $lang['writable']['title']), array('href' => 'http://www.phphelp.com/forum/pluck-cms/', 'img' => 'data/image/help.png', 'text' => $lang['start']['help']))), array('href' => '?action=page', 'img' => 'data/image/menu/pages.png', 'text' => $lang['page']['title'], 'submenu' => array(array('href' => '?action=editpage', 'img' => 'data/image/newpage.png', 'text' => $lang['page']['new']), array('href' => '?action=images', 'img' => 'data/image/image.png', 'text' => $lang['images']['title']), array('href' => '?action=files', 'img' => 'data/image/file.png', 'text' => $lang['files']['title']))), array('href' => '?action=modules', 'img' => 'data/image/menu/modules.png', 'text' => $lang['modules']['title']), array('href' => '?action=options', 'img' => 'data/image/menu/options.png', 'text' => $lang['options']['title'], 'submenu' => array(array('href' => '?action=settings', 'img' => 'data/image/settings.png', 'text' => $lang['settings']['title']), array('href' => '?action=managemodules', 'img' => 'data/image/modules.png', 'text' => $lang['modules_manage']['title']), array('href' => '?action=modulesettings', 'img' => 'data/image/settings2.png', 'text' => $lang['modules_settings']['title']), array('href' => '?action=theme', 'img' => 'data/image/themes.png', 'text' => $lang['theme']['title']), array('href' => '?action=language', 'img' => 'data/image/language.png', 'text' => $lang['language']['title']), array('href' => '?action=changepass', 'img' => 'data/image/password.png', 'text' => $lang['changepass']['title']))), array('href' => '?action=logout', 'img' => 'data/image/menu/logout.png', 'text' => $lang['login']['log_out']));
run_hook('admin_menu', array(&$links));
?>
<ul id="menu">
<?php
show_admin_menu($links);
?>
</ul>
<?php
run_hook('admin_menu_after');
?>
<ul id="statusbox">
<?php
include_once 'data/inc/trashcan_applet.php';
?>
<?php
include_once 'data/inc/update_applet.php';
?>
</ul>
</div>
<div id="content">
示例4: show_options
function show_options($action)
{
$sql = e107::getDb();
if ($action == '') {
$action = 'main';
}
// ##### Display options ---------------------------------------------------------------------------------------------------------
$var['main']['text'] = FORLAN_76;
$var['main']['link'] = e_SELF;
$var['cat']['text'] = FORLAN_83;
$var['cat']['link'] = e_SELF . '?cat';
if ($sql->select('forum', 'forum_id', "forum_parent='0' LIMIT 1")) {
$var['create']['text'] = FORLAN_77;
$var['create']['link'] = e_SELF . '?create';
}
$var['order']['text'] = FORLAN_78;
$var['order']['link'] = e_SELF . '?order';
$var['opt']['text'] = LAN_PREFS;
$var['opt']['link'] = e_SELF . '?opt';
$var['prune']['text'] = LAN_PRUNE;
$var['prune']['link'] = e_SELF . '?prune';
$var['rules']['text'] = LAN_FORUM_0016;
$var['rules']['link'] = e_SELF . '?rules';
$var['sr']['text'] = FORLAN_116;
$var['sr']['link'] = e_SELF . '?sr';
$var['mods']['text'] = LAN_FORUM_2003;
$var['mods']['link'] = e_SELF . '?mods';
$var['tools']['text'] = FORLAN_153;
$var['tools']['link'] = e_SELF . '?tools';
show_admin_menu(FORLAN_7, $action, $var);
}
示例5: include_lan
<?php
/*
* e107Slider Plugin v0.1
*
* Copyright (C) 2007-2012 Xen Themes (xenthemes.com)
*
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) or
* GPL Version 2 (http://www.gnu.org/licenses/gpl-2.0.txt) licenses
*
* $Source:
* $Revision: 1 $
* $Date: 25/05/2012 $
* $Author: leonlloyd $
*
*/
if (!defined('e107_INIT')) {
exit;
}
include_lan(e_PLUGIN . "e107slider/languages/" . e_LANGUAGE . ".php");
$action = basename($_SERVER['PHP_SELF'], '.php');
$var['admin_config']['text'] = ES_PLUGIN_MU_4;
$var['admin_config']['link'] = 'admin_config.php';
$var['admin_slider_settings']['text'] = ES_PLUGIN_MU_1;
$var['admin_slider_settings']['link'] = 'admin_slider_settings.php';
$var['admin_news_slider_settings']['text'] = ES_PLUGIN_MU_2;
$var['admin_news_slider_settings']['link'] = 'admin_news_slider_settings.php';
show_admin_menu(ES_PLUGIN_MU_3, $action, $var);
$vanillatheme_text = "\n \t<h3>" . ES_PLUGIN_MU_5 . "</h3>\n \t" . ES_PLUGIN_MU_6 . "\n \t\t\t\t\n \t\t\t";
$ns->tablerender('', $vanillatheme_text);
示例6: admin_config_adminmenu
function admin_config_adminmenu()
{
$action = e_QUERY ? e_QUERY : "list";
$var['list']['text'] = GSLAN_20;
$var['list']['link'] = e_SELF;
$var['list']['perm'] = "7";
$var['instructions']['text'] = GSLAN_21;
$var['instructions']['link'] = e_SELF . "?instructions";
$var['instructions']['perm'] = "7";
$var['new']['text'] = GSLAN_22;
$var['new']['link'] = e_SELF . "?new";
$var['new']['perm'] = "7";
$var['import']['text'] = GSLAN_23;
$var['import']['link'] = e_SELF . "?import";
$var['import']['perm'] = "0";
show_admin_menu(LAN_PLUGIN_GSITEMAP_NAME, $action, $var);
}
示例7: upload_adminmenu
function upload_adminmenu()
{
$action = e_QUERY ? e_QUERY : "list";
$var['list']['text'] = UPLLAN_51;
$var['list']['link'] = e_SELF . "?list";
$var['list']['perm'] = "V";
if (getperms("0")) {
$var['filetypes']['text'] = LAN_FILETYPES;
$var['filetypes']['link'] = e_SELF . "?filetypes";
$var['filetypes']['perm'] = "0";
$var['options']['text'] = LAN_OPTIONS;
$var['options']['link'] = e_SELF . "?options";
$var['options']['perm'] = "0";
}
show_admin_menu(LAN_UPLOADS, $action, $var);
}
示例8: forum_update_adminmenu
function forum_update_adminmenu()
{
global $currentStep;
$var[1]['text'] = '1 - Permissions';
$var[1]['link'] = '#';
$var[2]['text'] = '2 - Create new tables';
$var[2]['link'] = '#';
$var[3]['text'] = '3 - Create extended fields';
$var[3]['link'] = '#';
$var[4]['text'] = '4 - Move user data';
$var[4]['link'] = '#';
$var[5]['text'] = '5 - Migrate forum config';
$var[5]['link'] = '#';
$var[6]['text'] = '6 - Migrate threads/replies';
$var[6]['link'] = '#';
$var[7]['text'] = '7 - Recalc all counts';
$var[7]['link'] = '#';
$var[8]['text'] = '8 - Calc lastpost data';
$var[8]['link'] = '#';
$var[9]['text'] = '9 - Migrate any poll data';
$var[9]['link'] = '#';
$var[10]['text'] = '10 - Migrate any attachments';
$var[10]['link'] = '#';
$var[11]['text'] = '11 - Delete old attachments';
$var[11]['link'] = '#';
$var[12]['text'] = '12 - Delete old forum data';
$var[12]['link'] = '#';
for ($i = 1; $i < $currentStep; $i++) {
$var[$i]['text'] = "<span style='color:green;'>{$var[$i]['text']}</span>";
}
show_admin_menu('Forum Upgrade', $currentStep, $var);
}
示例9: frontpage_adminmenu
function frontpage_adminmenu()
{
$action = vartrue($_GET['mode'], 'main');
$var['main']['text'] = LAN_MANAGE;
$var['main']['link'] = e_SELF;
$var['create']['text'] = LAN_CREATE;
$var['create']['link'] = e_SELF . "?mode=create";
show_admin_menu(FRTLAN_PAGE_TITLE, $action, $var);
}
示例10: usersettings_adminmenu
function usersettings_adminmenu()
{
include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_admin.php');
if ($action == '') {
$action = 'main';
}
// ##### Display options
$var = array();
$var['main']['text'] = LAN_USER_LIST;
$var['main']['link'] = e_ADMIN . 'users.php';
$var['main']['perm'] = '4';
$var['create']['text'] = LAN_USER_QUICKADD;
$var['create']['link'] = e_ADMIN . 'users.php?create';
$var['create']['perm'] = '4|U1';
$var['prune']['text'] = LAN_USER_PRUNE;
$var['prune']['link'] = e_ADMIN . 'users.php?prune';
// Will be moved to "Schedule tasks"
$var['prune']['perm'] = '4';
$var['options']['text'] = LAN_OPTIONS;
$var['options']['link'] = e_ADMIN . 'users.php?options';
$var['options']['perm'] = '4|U2';
$var['ranks']['text'] = LAN_USER_RANKS;
$var['ranks']['link'] = e_ADMIN . 'users.php?ranks';
$var['ranks']['perm'] = '4|U3';
// $var['mailing']['text']= USRLAN_121;
// $var['mailing']['link']="mailout.php";
show_admin_menu(USRLAN_76, $action, $var);
}
示例11: admin_config_adminmenu
function admin_config_adminmenu()
{
$action = varset($_GET['mode']) ? $_GET['mode'] : "list";
$var['list']['text'] = LAN_EXISTING;
$var['list']['link'] = e_SELF;
$var['list']['perm'] = "P";
$var['create']['text'] = LAN_CREATE;
$var['create']['link'] = e_SELF . "?mode=create";
$var['create']['perm'] = "P";
/* $var['import']['text'] = GSLAN_23;
$var['import']['link'] = e_SELF."?import";
$var['import']['perm'] = "0";*/
show_admin_menu(POLLAN_MENU_CAPTION, $action, $var);
}
示例12: show_admin_menu
/**
* Showing an admin menu.
*
* @since 4.7.2
* @package admin
* @param array $links The array with links parameters.
*/
function show_admin_menu($links)
{
foreach ($links as $link) {
?>
<li>
<a href="<?php
echo $link['href'];
?>
" title="<?php
echo $link['text'];
?>
" <?php
if (isset($link['target'])) {
echo 'target="' . $link['target'] . '"';
}
?>
>
<img src="<?php
echo $link['img'];
?>
" alt="" />
<?php
echo $link['text'];
?>
</a>
<?php
if (isset($link['submenu'])) {
?>
<ul class="submenu">
<?php
show_admin_menu($link['submenu']);
?>
</ul>
<?php
}
?>
</li>
<?php
}
unset($link);
}
示例13: admin_config_adminmenu
function admin_config_adminmenu()
{
if (e_QUERY) {
$tmp = explode(".", e_QUERY);
$action = $tmp[0];
}
if (!isset($action) || $action == "") {
$action = "config";
}
$var['config']['text'] = EB_ADMIN_L24;
$var['config']['link'] = "admin_config.php";
$var['eb_games']['text'] = EB_ADMIN_L39;
$var['eb_games']['link'] = "admin_config.php?eb_games";
$var['eb_links']['text'] = EB_ADMIN_L25;
$var['eb_links']['link'] = "admin_config.php?eb_links";
$var['eb_activity']['text'] = EB_ADMIN_L26;
$var['eb_activity']['link'] = "admin_config.php?eb_activity";
$var['eb_vupdate']['text'] = EB_ADMIN_L32;
$var['eb_vupdate']['link'] = "admin_vupdate.php";
show_admin_menu(EB_L1, $action, $var);
}
示例14: alt_auth_adminmenu
function alt_auth_adminmenu()
{
echo ' ';
if (!is_array($authlist)) {
$authlist = alt_auth_admin::alt_auth_get_authlist();
}
define('ALT_AUTH_ACTION', 'main');
$var['main']['text'] = LAN_ALT_31;
$var['main']['link'] = e_PLUGIN . 'alt_auth/alt_auth_conf.php';
show_admin_menu('alt auth', ALT_AUTH_ACTION, $var);
$var = array();
foreach ($authlist as $a) {
if ($a != 'e107') {
$var[$a]['text'] = LAN_ALT_30 . $a;
$var[$a]['link'] = e_PLUGIN . "alt_auth/{$a}_conf.php";
}
}
show_admin_menu(LAN_ALT_29, ALT_AUTH_ACTION, $var);
}
示例15: wmessage_adminmenu
function wmessage_adminmenu()
{
$act = e_QUERY;
$action = vartrue($act, 'main');
$var['main']['text'] = WMLAN_00;
$var['main']['link'] = e_SELF;
$var['create']['text'] = WMLAN_01;
$var['create']['link'] = e_SELF . "?create";
$var['opt']['text'] = LAN_PREFS;
$var['opt']['link'] = e_SELF . "?opt";
show_admin_menu(LAN_OPTIONS, $action, $var);
}