20 include_once (
"FREEDOM/folders.php");
26 $dirid = GetHttpVars(
"dirid", 9);
27 $inavmode = GetHttpVars(
"inavmode");
29 $navigate = $action->
getParam(
'FREEDOM_VIEWFRAME');
30 $action->lay->eSet(
"navmode", $navigate);
31 if ($inavmode ==
'inverse') {
32 if ($navigate ==
'navigator') $action->lay->
Set(
"navmode",
"folder");
33 else if ($navigate ==
'folder') $action->lay->
Set(
"navmode",
"navigator");
36 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FREEDOM/Layout/expandfld.js");
39 $appfld->Set(
"FDL", $action->parent->parent);
40 $pexport = $appfld->HasPermission(
"EXPORT");
43 include_once (
"FDL/popup_util.php");
59 if (count(
$ldir) > 0) {
66 if ($pexport)
popupActive(
"popfld", $nbfolders,
'export');
69 if ($doc[
"doctype"] ==
'D') {
81 if (($doc[
"owner"] >= 0) && ($doc[
"doctype"] !=
'D') && ($doc[
"doctype"] !=
'S')) {
87 if (
hasChildFld($action->dbaccess, $doc[
"initid"], ($doc[
"doctype"] ==
'S'))) $hasChild =
'true';
89 $ftype =
$dir->getIcon($doc[
"icon"]);
90 $title = htmlspecialchars($doc[
"title"], ENT_QUOTES);
91 $stree.=
"ffolder.insFld(fldtop, ffolder.gFld(" . json_encode(str_replace(
"\n",
" ",
$title)) .
", \"#\"," . $doc[
"initid"] .
",\"$ftype\",$hasChild))\n";
95 $iconfolder = $action->parent->getImageLink(
"ftv2folderopen1.gif");
96 $pathicon = explode(
"/", $iconfolder);
97 if (count($pathicon) == 4) $action->lay->set(
"iconFolderPath", $pathicon[0] .
"/" . $pathicon[1]);
98 else $action->lay->set(
"iconFolderPath",
"FREEDOM");
100 $action->lay->
Set(
"subtree", $stree);
getChildDir($dbaccess, $userid, $dirid, $notfldsearch=false, $restype="LIST")
hasChildFld($dbaccess, $dirid, $issearch=false)
new_Doc($dbaccess, $id= '', $latest=false)
expandfld(Action &$action)