示例#1
0
function gf_makeFilemgmtCatSelect($uid)
{
    global $_CONF, $_TABLES, $_DB_name;
    include_once $_CONF['path'] . 'plugins/filemgmt/include/xoopstree.php';
    include_once $_CONF['path'] . 'plugins/filemgmt/include/textsanitizer.php';
    $_GROUPS = SEC_getUserGroups($uid);
    $mytree = new XoopsTree($_DB_name, $_TABLES['filemgmt_cat'], "cid", "pid");
    $mytree->setGroupUploadAccessFilter($_GROUPS);
    return $mytree->makeMySelBoxNoHeading('title', 'title', '', '', 'filemgmtcat');
}