本文整理汇总了PHP中showmenu函数的典型用法代码示例。如果您正苦于以下问题:PHP showmenu函数的具体用法?PHP showmenu怎么用?PHP showmenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showmenu函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getallitem
function getallitem($fid, $emshow)
{
// 得出并显示所有的行
global $arrall;
global $n;
$arryget = getarry($fid);
// 得出本级的所有行
$show = "";
if (is_array($arryget)) {
$ncount = count($arryget);
for ($j = 0; $j < $ncount; $j++) {
$n++;
$usen = $n;
$a = $arryget[$j][code];
$code = $a;
$name = $arrall[$a][name];
$fcode = $arrall[$a][fcode];
$isunder = $arrall[$code][isunder];
$url = $arrall[$code][url];
$pic = $arrall[$code][pic];
$upcode = $emshow;
if ($j == $ncount - 1) {
//是否本级最末
$isend = 1;
} else {
$isend = 0;
}
if ($isunder == 1) {
// 不是末级
if ($isend == 0) {
$emshow1 = $emshow . "<img src=\"../Images/t.gif\" align=absmiddle border=\"0\">";
} else {
$emshow1 = $emshow . "<img src=\"../Images/b.gif\" align=absmiddle border=\"0\">";
}
$show .= showmenu($isunder, $isend, $emshow, $name, $code, $url, $pic);
$show2 = getallitem($code, $emshow1);
if (!empty($show2)) {
$show .= "<div ID=\"el" . $code . "Child\" CLASS=\"child\">\n";
$show .= $show2;
$show .= "</div>\n";
}
} else {
$show .= showmenu($isunder, $isend, $emshow, $name, $code, $url, $pic);
}
}
}
return $show;
}
示例2: updatemenu
function updatemenu($key)
{
@(include DISCUZ_ROOT . './source/admincp/admincp_menu.php');
$s = showmenu($key, $menu[$key], 1);
echo '<script type="text/JavaScript">parent.$(\'menu_' . $key . '\').innerHTML = \'' . str_replace("'", "\\'", $s) . '\';parent.initCpMenus(\'leftmenu\');parent.initCpMap();</script>';
}
示例3: foreach
<div style="float: left; margin:-7px 10px 0 0"><form name="search" method="post" autocomplete="off" action="$basescript?action=search" target="main"><input type="text" name="keywords" value="" class="txt" x-webkit-speech speech /> <input type="hidden" name="searchsubmit" value="yes" class="btn" /><input type="submit" name="searchsubmit" value="$lang[search]" class="btn" style="margin-top: 5px;vertical-align:middle" /></form></div>
<span id="add2custom" style="display: none"></span>
<a href="###" id="cpmap" onclick="showMap();return false;"><img src="static/image/admincp/btn_map.gif" title="$lang[admincp_maptext]" width="46" height="18" /></a>
</div>
</div>
<!--vot /div-->
</td>
</tr>
<tr>
<td valign="top" width="160" class="menutd">
<div id="leftmenu" class="menu">
EOT;
foreach ($menu as $k => $v) {
showmenu($k, $v);
}
unset($menu);
$plugindefaultkey = $isfounder ? 1 : 0;
/*vot*/ $year = date('Y');
echo <<<EOT
</div>
</td>
<td valign="top" width="100%" class="mask">
<iframe src="$basescript?$extra" id="main" name="main" width="100%" height="100%" frameborder="0" scrolling="yes" style="overflow: visible;display:"></iframe>
</td>
</tr>
</table>
示例4: showheader
<!DOCTYPE html>
<html>
<?php
showheader('Galería');
?>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<?php
showmenu('galeria');
?>
<div class="content-wrapper">
<section class="content-header">
<h1>ORIGINAL - GRAYSCALE & FILTRADA - ECUALIZADA GLOBAL</h1>
</section>
<section class="content">
<?php
for ($i = 0; $i <= 30; $i++) {
?>
<div class="row">
<div class="col-lg-12 col-md-12 col-xs-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Paquete (<?php
echo strstr($imagenes[$i], '.', 1);
?>
)</h3>
</div>
<div class="box-body center">
<div class="col-xs-4">
示例5: showmenu
array('menu_notice', 'list&m=notice'),
array('menu_comment', 'comment'),
array('menu_report', 'report'),
array('menu_groupbuy', 'list&m=groupbuy'),
array('menu_brandlinks', 'brandlinks')
));
showmenu('admintools', array(
array('menu_logs', 'logs&operation=admin'),
array('menu_db', 'db&operation=export'),
array('menu_perm', 'perm')
));
showmenu('uc', array());
*/
} else {
if ($shop->status == 'new') {
showmenu('index', array(array('menu_home', 'index')));
$shopmenu = array(array('menu_shop_my', 'edit&m=shop'));
if ($_G['setting']['enablemap'] == 1) {
array_push($shopmenu, array('menu_map', 'map'));
}
showmenu('shop', $shopmenu);
} elseif ($shop->status == 'normal') {
$shopmenu = array(array('menu_shop_my', 'edit&m=shop'), array('menu_theme', 'theme'), array('menu_modifypasswd', 'modifypasswd'), array('menu_nav', 'nav'));
if ($_G['setting']['enablemap'] == 1) {
array_push($shopmenu, array('menu_map', 'map'));
}
showmenu('index', $menuindex);
showmenu('shop', $shopmenu);
showmenu('infomanage', $menuinfomanage);
}
}
示例6: getallitem
function getallitem($fid, $emshow)
{
// 得出并显示所有的行
global $arrall;
global $loginskin;
global $n;
$arryget = getarry($fid);
// 得出本级的所有行
$show = "";
if (is_array($arryget)) {
$ncount = count($arryget);
for ($j = 0; $j < $ncount; $j++) {
$n++;
$usen = $n;
$a = $arryget[$j][code];
$code = $a;
// $code = $arrall[$a][code];
$name = $arrall[$a][name];
$fcode = $arrall[$a][fcode];
$leave = $arrall[$a][leave];
$icon = $arrall[$a][icon];
$program = $arrall[$a][program];
$isunder = $arrall[$code][isunder];
//$openframe = $arrall[$a][openframe] ;
$upcode = $emshow;
if ($j == $ncount - 1 && $fid > 0) {
//是否本级最末
$isend = 1;
} else {
$isend = 0;
}
if ($isunder == 1) {
// 不是末级
if ($isend == 0) {
//if($leave<2){
//$emshow1 = $emshow."<div style='margin:0px 0px 0px 2px;'><img src='".$loginskin."b.gif' align=left border=\"0\"></div>" ;
//}else{
$emshow1 = "<div style='margin:0px 0px 0px 2px;'><img src='" . $loginskin . "t.jpg' align=left border=\"0\"></div>" . $emshow;
//}
} else {
$emshow1 = $emshow . "<img src='" . $loginskin . "t.jpg' align=left border=\"0\">";
}
$show .= showmenu($isunder, $isend, $emshow, $name, $icon, $code, $program, $leave);
$show2 = getallitem($code, $emshow1);
if (!empty($show2)) {
if ($leave == 1) {
$show .= "<div ID=\"el" . $code . "Child\" CLASS=\"child\" style='margin:2px 0px 0px 0px;'>\n";
$show .= $show2;
$show .= "</div>\n";
} else {
$show .= $show2;
}
}
} else {
$show .= showmenu($isunder, $isend, $emshow, $name, $icon, $code, $program, $leave);
}
}
}
return $show;
}
示例7: showsubmenu
showsubmenu('menu_security');
} elseif ($_GET['anchor'] == 'performance') {
shownav('founder', 'menu_optimizer');
showsubmenu('menu_optimizer');
}
if ($operation) {
$type = $_GET['type'];
if (!in_array($type, $optimizer_option)) {
cpmsg('parameters_error', '', 'error');
}
include_once 'source/discuz_version.php';
$optimizer = new optimizer($type);
}
$_GET['anchor'] = in_array($_GET['anchor'], array('security', 'performance')) ? $_GET['anchor'] : 'security';
$current = array($_GET['anchor'] => 1);
showmenu('nav_founder_optimizer', array(array('founder_optimizer_security', 'optimizer&anchor=security', $current['security']), array('founder_optimizer_performance', 'optimizer&anchor=performance', $current['performance'])));
if ($operation == 'optimize_unit') {
$optimizer->optimizer();
} elseif ($operation == 'check_unit') {
$checkstatus = $optimizer->check();
C::t('common_optimizer')->update($type . '_checkrecord', $checkstatus['status'] == 1 ? $checkstatus['status'] : 0);
C::t('common_optimizer')->update($check_record_time_key, $_G['timestamp']);
include template('common/header_ajax');
echo '<script type="text/javascript">updatecheckstatus(\'' . $type . '\', \'' . $checkstatus['lang'] . '\', \'' . $checkstatus['status'] . '\', \'' . $checkstatus['type'] . '\', \'' . $checkstatus['extraurl'] . '\');</script>';
include template('common/footer_ajax');
exit;
} elseif ($operation == 'setting_optimizer') {
if (submitcheck('setting_optimizer', 1)) {
$setting_options = $_GET['options'];
if ($optimizer->option_optimizer($setting_options)) {
cpmsg('founder_optimizer_setting_succeed', 'action=optimizer&operation=setting_optimizer&type=optimizer_setting', 'succeed');
示例8: write_file
}
}
write_file(ROOT_PATH . "cache/admin_logs.php", $writefile);
//删除缓存文件
delete_cache_file($fid, $aid);
}
if ($iframe == 1) {
require dirname(__FILE__) . "/" . 'template/index.htm';
} elseif ($iframe == 'left') {
if ($Smenu) {
$Smenu_color[$Smenu] = 'chooseModule';
} else {
require "menu.php";
$Smenu_color['www'] = 'chooseModule';
}
$mainlink = showmenu($menudb);
/*左边菜单*/
unset($menu_GpartDB);
if (!$ForceEnter && $part == "often") {
group_menu();
//用户组自定义菜单
}
require dirname(__FILE__) . "/" . "template/left.htm";
} elseif ($iframe == 'head') {
require "menu.php";
if ($ForceEnter) {
$show = "";
} else {
$show = "'快捷菜单|index.php?lfj=center&job=map|index.php?iframe=left&Smenu=&part=often',";
}
foreach ($base_menuName as $key => $value) {
示例9: array
if ($allowcensorword) {
$menuarray[] = array('name' => $lang['menu_posting_censors'], 'url' => 'admincp.php?action=censor');
}
if ($allowmassprune) {
$menuarray[] = array('name' => $lang['menu_maint_prune'], 'url' => 'admincp.php?action=prune');
}
}
$menuarray[] = array('name' => $lang['menu_recommend'], 'url' => 'admincp.php?action=forumrecommend');
showmenu($lang['menu_moderation'], $menuarray);
unset($menuarray);
if ($allowmoduser || $allowmodpost) {
$menuarray = array();
if ($allowmoduser) {
$menuarray[] = array('name' => $lang['menu_moderate_modmembers'], 'url' => 'admincp.php?action=modmembers');
}
if ($allowmodpost) {
$menuarray[] = array('name' => $lang['menu_moderate_modthreads'], 'url' => 'admincp.php?action=modthreads');
$menuarray[] = array('name' => $lang['menu_moderate_modreplies'], 'url' => 'admincp.php?action=modreplies');
}
showmenu($lang['menu_moderate'], $menuarray);
unset($menuarray);
}
showmenu($lang['menu_plugins'], array(array('name' => $lang['menu_plugins'], 'url' => 'admincp.php?action=plugins')));
if ($allowviewlog) {
showmenu($lang['menu_logs'], array(array('name' => $lang['menu_logs_rating'], 'url' => 'admincp.php?action=ratelog'), array('name' => $lang['menu_logs_mod'], 'url' => 'admincp.php?action=modslog'), array('name' => $lang['menu_logs_ban'], 'url' => 'admincp.php?action=banlog')));
}
}
?>
</body>
</html>
示例10: showheader
<!DOCTYPE html>
<html>
<?php
showheader('Resultado imagen');
?>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<?php
showmenu('resultado');
?>
<div class="content-wrapper">
<section class="content">
<div class="row">
<div class="col-lg-12 col-md-12 col-xs-12">
<div class="box box-primary">
<div class="box-header with-border">
<div class="hidden-xs col-md-4 col-lg-4">
<h3 class="box-title">Imagen original</h3>
</div>
<div class="hidden-xs col-md-4 col-lg-4">
<h3 class="box-title">Escala de grises + filtrado</h3>
</div>
<div class="hidden-xs col-md-4 col-lg-4">
<h3 class="box-title">Imagen ecualizada</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
</div>
</div>
示例11: exit
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: menu.inc.php 17261 2008-12-11 07:21:49Z liuqiang $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
showmenu('global', array(array('menu_settings_basic', 'settings&operation=basic'), array('menu_settings_access', 'settings&operation=access'), array('menu_settings_optimize', 'settings&operation=seo'), array('menu_settings_functions', 'settings&operation=functions'), array('menu_settings_user', 'settings&operation=permissions'), array('menu_settings_credits', 'settings&operation=credits'), $isfounder ? array('menu_settings_mail', 'settings&operation=mail') : array(), array('menu_settings_sec', 'settings&operation=sec'), array('menu_settings_datetime', 'settings&operation=datetime'), array('menu_settings_attachments', 'settings&operation=attach'), array('menu_settings_wap', 'settings&operation=wap'), $isfounder ? array('menu_settings_uc', 'settings&operation=uc') : array(), array('menu_settings_uchome', 'settings&operation=uchome')));
showmenu('forum', array(array('menu_forums', 'forums'), array('menu_forums_merge', 'forums&operation=merge'), array('menu_forums_threadtypes', 'threadtypes'), array('menu_forums_infotypes', 'threadtypes&special=1'), array('menu_forums_infomodel', 'threadtypes&operation=typemodel'), array('menu_forums_infooption', 'threadtypes&operation=typeoption')));
showmenu('user', array(array('menu_members_add', 'members&operation=add'), array('menu_members_edit', 'members'), array('menu_members_edit_ban_user', 'members&operation=ban'), array('menu_members_ipban', 'members&operation=ipban'), array('menu_members_credits', 'members&operation=reward'), array('menu_moderate_modmembers', 'moderate&operation=members'), array('menu_profilefields', 'profilefields'), array('menu_admingroups', 'admingroups'), array('menu_usergroups', 'usergroups'), array('menu_ranks', 'ranks')));
showmenu('topic', array(array('menu_moderate_posts', 'moderate&operation=threads'), array('menu_maint_threads', 'threads'), array('menu_maint_prune', 'prune'), array('menu_maint_attaches', 'attach'), array('menu_moderate_recyclebin', 'recyclebin'), array('menu_posting_tags', 'misc&operation=tag'), array('menu_posting_censors', 'misc&operation=censor'), array('menu_posting_attachtypes', 'misc&operation=attachtype')));
showmenu('extended', array(array('menu_plugins', 'plugins&operation=config'), array('menu_tasks', 'tasks'), array('menu_magics', 'magics&operation=config'), array('menu_medals', 'medals'), array('menu_tools_relatedtag', 'tools&operation=tag'), array('menu_misc_help', 'faq&operation=list'), array('menu_qihoo', 'qihoo&operation=config'), array('menu_video', 'video&operation=config'), array('menu_ec', 'settings&operation=ec'), array('menu_settings_msn', 'settings&operation=msn')));
showmenu('style', array(array('menu_settings_styles', 'settings&operation=styles'), array('menu_styles', 'styles'), $isfounder ? array('menu_styles_templates', 'templates') : array(), array('menu_posting_smilies', 'smilies'), array('menu_thread_icon', 'misc&operation=icon'), array('menu_posting_editor', 'settings&operation=editor'), array('menu_misc_onlinelist', 'misc&operation=onlinelist')));
showmenu('tool', array(array('menu_members_newsletter', 'members&operation=newsletter'), array('menu_misc_announce', 'announce'), array('menu_tools_updatecaches', 'tools&operation=updatecache'), array('menu_tools_updatecounters', 'counter'), array('menu_tools_javascript', 'jswizard'), array('menu_tools_creditwizard', 'creditwizard'), array('menu_forum_scheme', 'project'), $isfounder ? array('menu_db', 'db&operation=export') : array(), array('menu_logs', 'logs&operation=illegal'), array('menu_custommenu_manage', 'misc&operation=custommenu'), array('menu_misc_cron', 'misc&operation=cron'), array('menu_tools_fileperms', 'tools&operation=fileperms'), array('menu_tools_filecheck', 'checktools&operation=filecheck')));
$insenz = ($insenz = $db->result_first("SELECT value FROM {$tablepre}settings WHERE variable='insenz'")) ? unserialize($insenz) : array();
showmenu('adv', array(array('menu_misc_link', 'misc&operation=link'), array('menu_adv_custom', 'adv'), array('menu_insenz_settings', 'insenz&operation=settings&do=basic'), array('menu_insenz_softad', 'insenz&operation=campaignlist&c_status=2'), $insenz['topicstatus'] ? array('menu_insenz_virtualforum', 'insenz&operation=virtualforum&c_status=2') : array(), array('menu_insenz_tools_myinsenz', 'http://www.insenz.com/publishers/', '_blank'), array('menu_insenz_tools_faq', 'http://www.insenz.com/publishers/faq/', '_blank')));
showmenu('uc', array());
$historymenus = array(array('menu_home', 'home'));
$query = $db->query("SELECT title, url FROM {$tablepre}admincustom WHERE uid='{$discuz_uid}' AND sort='0' ORDER BY dateline DESC LIMIT 0, 10");
while ($custom = $db->fetch_array($query)) {
$historymenus[] = array($custom['title'], substr($custom['url'], 19));
}
if (count($historymenus) > 1) {
$historymenus[] = array('menu_home_clearhistorymenus', 'misc&operation=custommenu&do=clean', 'main', 'class="menulink"');
}
showmenu('index', $historymenus);
示例12: showheader
<!DOCTYPE html>
<html>
<?php
showheader('Procesar imagen');
?>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<?php
showmenu('procesar');
?>
<div class="content-wrapper">
<section class="content">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<?php
echo form_open_multipart('resultado', array('role' => 'form', 'id' => 'form', 'class' => 'form-horizontal'));
?>
<div class="box">
<div class="box-header">
<h3 class="box-title">Elige una imagen</h3>
</div>
<div class="box-body">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="form-group labelimg">
<label for="userfile" title="Click para subir imagen" id="lab">
<img src="<?php
echo base_url('resources/img/image.png');
?>