📄 menu.inc.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
if($_grade > 0) $action = 'my';
require PHPCMS_ROOT.'/include/menu.inc.php';
function position_select($name = 'position', $position = '', $property = '')
{
global $POSITION;
$select = '';
foreach($POSITION as $k=>$v)
{
$select .= '<option value="'.$k.'" '.($k == $position ? 'selected' : '').'>'.$v.'</option>';
}
return '<select name="'.$name.'" '.$property.'>'.$select.'</select>';
}
function target_select($name = 'target', $target = '', $property = '')
{
global $TARGET;
$select = '';
foreach($TARGET as $k=>$v)
{
$select .= '<option value="'.$k.'" '.($k == $target ? 'selected' : '').'>'.$v.'</option>';
}
return '<select name="'.$name.'" '.$property.'>'.$select.'</select>';
}
$submenu = array
(
array($LANG['add_menu'], '?mod='.$mod.'&file='.$file.'&action=add'),
array($LANG['manage_menu'], '?mod='.$mod.'&file='.$file.'&action=manage'),
);
$menu = adminmenu($LANG['nav_menu_manage'], $submenu);
$actions = array('add','edit','manage','my');
if(!in_array($action, $actions)) $action = 'manage';
include PHPCMS_ROOT.'/admin/action/menu_'.$action.'.inc.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -