//代号
    $arr_fcode[$tmpcode] = $temp_arr2[1];
    //父代号
}
for ($i = 0; $i < count($arr_allmenu[code]); $i++) {
    $menucode = $arr_allmenu[code][$i];
    //代号
    if ($prgqx_arr[$menucode] == 1) {
        if ($arr_fcode[$menucode] != 0) {
            $tmpfcode = $arr_fcode[$menucode];
            $prgqx_arr[$tmpfcode] = 1;
            menufcode($tmpfcode);
        }
    }
}
$show = showqx($menuarry, $prgqx_arr, $shortcut_arr);
$t->set_var("id", $id);
$t->set_var("name", $telname);
$t->set_var("show", $show);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "shortcutmenu");
# 最后输出页面
function menufcode($tmpfcode)
{
    global $prgqx_arr;
    global $arr_fcode;
    if ($arr_fcode[$tmpfcode] != 0) {
Example #2
0
            $tmpcode = $temp_arr[0];
            //功能代号
            $prgqx_arr[$tmpcode] = 1;
            //功能代号
            if (!empty($temp_arr[1])) {
                $str_optqx = explode("^", $temp_arr[1]);
                //进一步拆分新增等功能
                for ($k = 0; $k < count($str_optqx); $k++) {
                    $tmpoptqx = $str_optqx[$k];
                    //新增等权限代号
                    $optqx_arr[$tmpcode][$tmpoptqx] = 1;
                }
            }
        }
    }
    $show = showqx($menuarry, $prgqx_arr, $optqx_arr);
}
$t = new Template(".", "keep");
//调用一个模版
$t->set_file("selgroupqx", "selgroupqx.html");
$t->set_var("id", $id);
$t->set_var("name", $gname);
$t->set_var("show", $show);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "selgroupqx");
# 最后输出页面
function showqx($menuarry, $prgqx_arr, $optqx_arr)