23 include_once (
"FDL/Lib.Dir.php");
24 include_once (
"FDL/Class.QueryDir.php");
25 include_once (
"FDL/freedom_util.php");
34 $dbaccess =
$action->GetParam(
"FREEDOM_DB");
36 include_once (
"FDL/popup_util.php");
38 $homefld =
new Dir($dbaccess);
39 $homefld = $homefld->GetHome();
41 $action->lay->Set(
"homename", $homefld->title);
42 $action->lay->Set(
"homeid", $homefld->id);
44 $tmenuaccess = array();
49 $action->lay->Set(
"dirid", $dirid);
50 $action->lay->Set(
"reptitle", str_replace(
'"',
'\"',
$doc->title));
71 $appfld->Set(
"FDL",
$action->parent->parent);
72 $pexport = $appfld->HasPermission(
"EXPORT");
74 if ($pexport)
popupActive(
"popfld", $nbfolders,
'export');
85 $iconfolder =
$action->GetImageUrl(
"ftv2folderopen1.gif");
86 $pathicon = explode(
"/", $iconfolder);
87 if (count($pathicon) == 4)
$action->lay->set(
"iconFolderPath", $pathicon[0] .
"/" . $pathicon[1]);
88 else $action->lay->set(
"iconFolderPath",
"FREEDOM");
91 $action->lay->Set(
"subtree", $stree);
93 $action->lay->Set(
"idHomeFolder", $nbfolders);
95 $htree =
addfolder($homefld, 0,
"fldtop");
96 $action->lay->Set(
"hometree", $htree);
98 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
115 if ($level == 0) $levelp =
"";
116 else $levelp = $level - 1;
117 if (
$doc->owner < 0) $ftype = 3;
118 else if (
$doc->id == 14) $ftype = 5;
119 else if (
$doc->doctype ==
'D') $ftype = 1;
120 else if (
$doc->doctype ==
'S') $ftype = 2;
127 $ftype =
$doc->getIcon();
128 $ltree =
"$treename$level = insFld(" . $treename . $levelp .
", gFld(\"" . str_replace(
'"',
'\"',
$doc->title) .
"\", \"#\"," .
$doc->initid .
",\"$ftype\", $hasChild))\n";
132 if ($pexport)
popupActive(
"popfld", $nbfolders,
'export');
134 if (
$doc->doctype ==
'D') {
141 popupActive(
"poppaste", $nbfolders,
'staticpaste');
142 popupActive(
"poppaste", $nbfolders,
'pastelatest');
146 if (
$doc->doctype ==
'D') {
151 if (count(
$ldir) > 0) {
153 while (list($k, $v) = each(
$ldir)) {
154 $ltree.=
addfolder($v, $level + 1, $treename);