20 include_once (
'FDL/Class.Doc.php');
21 include_once (
'FDL/Class.Dir.php');
28 $docid = GetHttpVars(
"id");
36 foreach ($lfather as $k => $v) {
38 if ($lprev == 0) $lmax = $lfather[$k][
"level"];
39 $lfather[$k][
"level"] = - ($v[
"level"] - $lmax) * 15;
43 $action->lay->
Set(
"TITLE",
$doc->getHTMLTitle());
44 $action->lay->SetBlockData(
"IFLD", $lfather);
51 $flds =
$doc->getParentFolderIds();
53 if (count($flds) > 0) {
55 foreach ($flds as $pfldid) {
57 if (!in_array($pfldid, $lfldid)) {
60 if ($fld->Control(
"view") ==
"") {
64 "ftitle" => $fld->getHTMLTitle() ,
74 $ldoc2 = array_merge(
fatherFld(
$dbaccess, $pfldid, $level + 1, $lfldid1, $lcdoc1) , $ldoc2);
75 }
else $ldoc2 = $lcdoc;
76 }
else $ldoc2 = $lcdoc;
freedom_ifld(Action &$action)
fatherFld($dbaccess, $docid, $level=0, $lfldid=array(), $lcdoc=array())
new_Doc($dbaccess, $id= '', $latest=false)