17 include_once (
"FDL/Lib.Dir.php");
18 include_once (
"FDL/freedom_util.php");
19 include_once (
'FREEDOM/Lib.portfolio.php');
25 $docid = GetHttpVars(
"id", 0);
26 include_once (
"FDL/popup_util.php");
27 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FDL/Layout/common.js");
28 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
29 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/AnchorPosition.js");
30 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
34 $action->lay->set(
"docid",
$doc->id);
35 $action->lay->set(
"dirid",
$doc->initid);
36 $action->lay->eSet(
"title",
$doc->title);
38 $child =
getChildDir($action->dbaccess, $action->user->id,
$doc->initid,
false,
"TABLE");
40 if ($action->
Read(
"navigator") ==
"EXPLORER") {
41 $tabonglet =
"ongletvgie";
42 $tabongletsel =
"ongletvsie";
44 $tabonglet =
"ongletvg";
45 $tabongletsel =
"ongletvs";
48 $linktab =
$doc->getFamilyParameterValue(
"pfl_idlinktab");
50 $linktab =
$doc->rawValueToArray($linktab);
51 foreach ($linktab as $k => $id) {
57 $action->lay->set(
"tabonglets", $tabongletsel);
58 $action->lay->set(
"icon",
$doc->getIcon());
60 foreach ($child as $v) {
61 $icolor =
getv($v,
"gui_color");
62 if ($v[
"initid"] !=
$doc->initid) {
63 $ttag[$v[
"initid"]] = array(
64 "tabid" => $v[
"initid"],
65 "doctype" => $v[
"doctype"],
66 "TAG_LABELCLASS" => $v[
"doctype"] ==
"S" ?
"searchtab" :
"",
67 "tag_cellbgclass" => ($v[
"id"] ==
$docid) ? $tabongletsel : $tabonglet,
69 "icontab" =>
$doc->getIcon($v[
"icon"]) ,
70 "tabtitle" => htmlspecialchars(str_replace(
" ",
"\xC2\xA0"
71 , $v[
"title"]) , ENT_QUOTES)
76 $action->lay->setBlockData(
"TAG", $ttag);
77 $action->lay->setBlockData(
"nbcol", count($ttag) + 1);
getTDoc($dbaccess, $id, $sqlfilters=array(), $result=array())
controlTdoc(&$tdoc, $aclname)
exitError($texterr, $exit=true, $code="")
foliotab(Action &$action)
getChildDir($dbaccess, $userid, $dirid, $notfldsearch=false, $restype="LIST")
new_Doc($dbaccess, $id= '', $latest=false)