示例#1
0
文件: dsnav.php 项目: philum/cms
function make_topo($r, $d, $c)
{
    if ($r) {
        foreach ($r as $k => $v) {
            if (is_array($v)) {
                //asort($v);
                if ($k != '_error') {
                    $ret .= embed_li_dsnav($d, $k, 1) . make_topo($v, $d . '/' . $k, $c);
                }
            } elseif ($v && str_replace(array('users/', 'imgb/icons/'), "", $d) == $c) {
                $ret .= embed_li_dsnav($d, $v, 0);
            }
        }
    }
    return divb('Taxonomy||margin-left:10px;', $ret);
}
示例#2
0
文件: bubs.php 项目: philum/cms
function bub_search_btn($va, $o, $id = '', $d = '')
{
    if ($id) {
        $di = 'ada';
    } else {
        $id = 'srch';
    }
    $t = $va ? $va : nms(24);
    if ($o > 1) {
        $s = $o;
    } else {
        $s = 10;
        $c = ' ' . $o;
    }
    $j = 'SearchT(\'' . $id . '\')';
    $js = 'onClick="' . $j . '" onkeyup="' . $j . '" onContextMenu="' . $j;
    $ret = autoclic('search" id="' . $id . '" role="search" ' . $js, $t, $s, '100', '');
    return divb('search|' . $di, $ret);
}
示例#3
0
文件: stats.php 项目: philum/cms
function stat_board($c, $n, $res)
{
    //p($rs);
    $ret = lj($c == 'nbv' ? 'active' : '', 'stat_plugin__3_stats_nbv_' . $n, 'nbv') . ' ';
    $ret .= lj($c == 'nbu' ? 'active' : '', 'stat_plugin__3_stats_nbu_' . $n, 'nbu') . ' ';
    $nbr = array(7, 30, 90, 180, 365);
    foreach ($nbr as $v) {
        $ret .= lj($v == $n ? 'active' : '', 'stat_plugin__3_stats_' . $c . '_' . $v, $v) . ' ';
    }
    if (auth(6)) {
        $ret .= lj('', 'popup_plup__3_stats_stat*list_' . $c . '_' . $n, picto('list'));
    }
    if (auth(6)) {
        $ret .= lj('', 'popup_plup__3_stats_light*live', 'cleaner');
    }
    if (auth(6)) {
        $ret .= lj('', 'popup_plup__3_statsee', 'live');
    }
    return divb('nbp|stt', $ret);
}
示例#4
0
文件: ajax.php 项目: philum/cms
     $tt = $va;
     break;
 case "url":
     $ret = mbd_url();
     $tt = 'url';
     break;
 case "emdpop":
     $ret = mbd_conn($id, $va, $opt);
     $tt = $id ? $id : 'edit';
     break;
     //conn
 //conn
 case "text":
     $msg = substr($id, 0, 4) == 'bpop' ? sesr('temp', $va) : $id;
     $t = $va;
     $ret = divb($opt . '||' . $optb . ' max-width:440px;', $msg);
     break;
 case "image":
     $ret = image($id, $va, $opt, $optb);
     break;
 case "overim":
     $ret = overim($id, $va);
     $t = $id;
     break;
 case "video":
     req('pop,spe');
     list($w, $h) = explode('-', $sz);
     $s = $w;
     $ret = video_auto($id . '§' . $w . '/' . $h, '', '', 3);
     $t = $id;
     break;
示例#5
0
文件: pop.php 项目: philum/cms
function radio($d, $p, $id)
{
    //$f=radio_slct($d,$p,$id);
    $r = msql_read_b('radio', $d, '', 1);
    $rid = 'rad' . randid();
    if ($r) {
        foreach ($r as $k => $v) {
            if ($k == $p) {
                $f = $v[1];
            }
            $ret .= lj('', $rid . '_radio___' . ajx($d) . '_' . $k, $v[3]) . br();
        }
    }
    if ($_SESSION['USE']) {
        $add = lj('', 'popup_radioedit___' . $nod . '___' . $id, picto('edit'));
    }
    if (!$_SESSION['nl']) {
        return divb('nbp|' . $rid, audio($r[1][1], $rid)) . $add . $ret;
    }
}
示例#6
0
文件: styl.php 项目: philum/cms
function save_css_tst($r, $k, $va)
{
    $va = affect_rgba($va, $_SESSION['clrs'][$_SESSION['prmd']]);
    $ret = divc('console', $va);
    $ret .= divb($r[1] . '|' . $r[0], $va) . divc('clear', '') . br() . br();
    return popup('test css ' . $k, $ret, 320);
}
示例#7
0
文件: spe.php 项目: philum/cms
function icoart($k, $v, $c)
{
    if (is_numeric($k)) {
        $v = 'popup_popart___' . $k;
        $ic = apps_arts_thumb($k);
        $k = suj_of_id($k);
    } else {
        $ic = desk_icon($k, $v);
    }
    $ico = strpos($ic, '<') !== false ? btn('small', $ic) : mimes($k, $ic, 32);
    return lj('" title="' . $k, $v, divb($c, $ico . ' ' . bts('display:block', $k)));
}
示例#8
0
文件: meta.php 项目: philum/cms
function tag_slct($id, $srch)
{
    $r = explode(' ', 'tag ' . prmb(18));
    foreach ($r as $v) {
        $ret .= lj('', 'socket_savtag__xc_' . ajx($v) . '_' . $id . '_' . ajx($srch), $v);
    }
    return divc('list', $ret) . divb('alert|svtg', '');
}
示例#9
0
文件: mod.php 项目: philum/cms
function build_art_mod($in)
{
    $ra = rartmod();
    list($m, $p, $t, $c, $d, $o, $ch, $hd, $tp, $nbr) = $ra;
    //$o=$o?$o:140;
    $ret = art_mod(ajx($p, 1), $d, $o);
    if (trim(strip_tags($ret))) {
        if ($t) {
            $reb = divc('txtcadr', stripslashes($t));
        }
        $ret = $reb . $ret . ($nbr ? br() : '');
    }
    //
    $_SESSION['cur_div'] = 'content';
    if ($in) {
        return divb('right|artmod|width:' . $o . 'px; margin-left:10px;', $ret);
    } else {
        return divs('width:100%', $ret);
    }
}
示例#10
0
文件: ajax.php 项目: philum/cms
     break;
 case "url":
     $ret = mbd_url();
     $tt = 'url';
     break;
 case "emdpop":
     $ret = mbd_conn($id, $va, $opt);
     $tt = $id ? $id : 'edit';
     break;
     //conn
 //conn
 case "text":
     $msg = substr($id, 0, 4) == 'bpop' ? sesr('temp', $va) : $id;
     $t = 'text';
     $s = 440;
     $ret = divb($opt . '||' . $optb, $msg);
     break;
 case "image":
     $ret = image($id, $va, $opt, $optb);
     break;
 case "overim":
     $ret = overim($id, $va);
     $t = $id;
     list($w, $h) = getimagesize($id);
     $p = lj('', 'popup_photo__x_' . ajx($id) . '_' . $w . '_' . $h . '_' . $va, pictxt('popup', $v));
     break;
 case "video":
     req('pop,spe');
     list($w, $h) = explode('-', $sz);
     $s = $w;
     $tt = $id;
示例#11
0
文件: ajxf.php 项目: philum/cms
function navs($op)
{
    if ($op == "ascii") {
        $r = msql_read('system', "edition_chars", "", 1);
        foreach ($r as $k => $v) {
            $ret .= ljb('', "insert", $v, $v) . ' ';
        }
        $ret .= lj('txtx', 'popup_plup___ascii', 'table');
    } elseif ($op == "pictos") {
        $r = msql_read('system', 'edition_pictos', '', 1);
        foreach ($r as $k => $v) {
            $ret .= ljb('', 'insert', '[' . $k . '§16:picto]', picto($k)) . ' ';
        }
    } elseif ($op == "uc") {
        $r = msql_read('', $_SESSION['qb'] . '_connectors', "", 1);
        if ($r) {
            $ret .= btn('txtx', $_SESSION['qb'] . ':') . ' ';
            foreach ($r as $k => $v) {
                $ret .= ljb('', "insert_mbd", '[\',\'\',\':' . $k . ']', $k) . ' ';
            }
        }
        $r = msql_read("", 'public_connectors', "", 1);
        if ($r) {
            $ret .= br() . btn('txtx', 'public:') . ' ';
            foreach ($r as $k => $v) {
                $ret .= ljb('', "insert_mbd", '[\',\'\',\':' . $k . ']', $k) . ' ';
            }
        }
        $ret = divs('min-width:440px;', $ret);
    } elseif ($op == "codeline") {
        $bt = '';
        $r = msql_read('system', 'connectors_codeline', "", 1);
        ksort($r);
        $rb = msql_read("lang", 'connectors_codeline', "", 1);
        if ($r) {
            foreach ($r as $k => $v) {
                $ret .= ljb('" title="' . $rb[$k], "insert", '[' . $v . ':' . $k . ']', $k) . ' ';
            }
        }
    } elseif ($op == "backup") {
        $id = $_SESSION["read"];
        $nod = $_SESSION['qb'] . '_backup_' . $id;
        $nodb = ajx($nod, '');
        if ($id) {
            $r = msql_read('', $nod, '', 1);
            if ($r) {
                foreach ($r as $k => $v) {
                    $rb[$k] = array('txarea_restore___users_' . $nodb . '_' . $k, 'bckp_backup___' . $nodb . '_' . $k . '_', 'bckp_backup___' . $nodb . '_del_' . $k);
                }
            }
            //txtarea
            if ($rb) {
                foreach ($rb as $k => $v) {
                    $ret .= lj('', $v[0], 'restore' . $k) . lj('', $v[1], 'backup' . $k) . lj('', $v[2], 'delete' . $k) . br();
                }
            }
            $ret .= lj('popbt', 'bckp_backup___' . $nodb . '_' . ($k + 1), 'new') . ' ';
            //txtarea
            $ret .= lj('popbt', 'txarea_filters___revert', 'revert') . ' ';
        }
        if ($ret) {
            $ret = divb('|bckp', $ret);
        } else {
            'availale only while editing';
        }
    } elseif ($op == 'disk') {
        $ret = call_finder(ses('qb'), 'disk///disk/conn//mini');
    } elseif ($op == 'icons') {
        $ret = call_finder('', 'disk///icon/conn//mini');
    } else {
        $ret = conn_props_b($op);
    }
    return divs('min-width:300px;', $ret);
}
示例#12
0
文件: lib.php 项目: philum/cms
function make_tabs($r, $ud = '', $c = '')
{
    if (!$r) {
        return;
    }
    static $i;
    $i++;
    $id = 'tab' . $ud . '-' . $i;
    $ra = array_keys($r);
    $ib = $_SESSION['tbmd' . $id];
    if (!$ib) {
        $ib = 1;
    }
    $sp = btn('txtac', ' ');
    foreach ($r as $k => $v) {
        $b++;
        $dsp = $b == $ib ? 'block' : 'none';
        $cs = $b == $ib ? 'txtaa' : 'txtab';
        $menu .= ljb($cs, 'toggle_tab', $id . '\',\'' . $b, $k) . $sp;
        if (is_array($v)) {
            $v = divc('list', onxcols($v, 3, ''));
        }
        //implode(' ',$v);
        if ($v) {
            $divs .= div(atd('div' . $id . $b) . ats('display:' . $dsp) . atc($c), $v);
        }
    }
    return divb('|mnuab' . $id . '|margin-bottom:4px;', $menu) . $divs;
}
示例#13
0
文件: spe.php 项目: philum/cms
function desktop_build_ico($r, $c)
{
    if ($r) {
        foreach ($r as $k => $v) {
            $ic = desk_icon($k, $v);
            $ico = strpos($ic, '<') !== false ? btn('small', $ic) : mimes($k, $ic, 32);
            $ret .= lj('" title="' . $k, $v, divb($c, $ico . ' ' . bts('display:block', $k)));
        }
    }
    return $ret;
}