示例#1
0
文件: adminx.php 项目: philum/cms
function menu_h_g($d)
{
    $p = explode("|", $d);
    if ($p[0] == "append") {
        $r = collect_hierarchie_b($p[1]);
    } elseif ($p[0] == "nocat") {
        $r = collect_hierarchie_c($p[1], '');
    } elseif ($p[0] == "collect") {
        $r = collect_hierarchie($p[1]);
    }
    if ($r) {
        foreach ($r as $k => $v) {
            $ret .= $k . "\n" . supermenu($v);
        }
    }
    return $ret;
}
示例#2
0
文件: mod.php 项目: philum/cms
function rub_taxo($p, $t)
{
    $id = ses('read');
    if ($p == 1) {
        $p = $_SESSION['frm'];
    } elseif ($p == 'art') {
        $p = ib_of_id($id);
    }
    if ($p) {
        $taxcat = supertriad_dig($p);
    }
    //permanent//$_SESSION['superline'][$p];//cache
    if ($p > 1) {
        $t = lka(urlread($p), suj_of_id($p)) . br();
        $hie = collect_hierarchie_c(0, '');
        $taxcat = find_in_subarray($hie, $p);
    }
    $t = build_titl($taxcat, $t, 1);
    if (is_array($taxcat)) {
        return $t . divc('taxonomy', make_menus_r($taxcat));
    }
}