18 include_once (
"GENERIC/generic_util.php");
23 if (!
$mode)
$mode = $action->getParam(
"ONEFAM_DISPLAYMODE");
24 if (
$mode ==
"extjs") {
25 include_once (
"ONEFAM/onefam_ext.php");
28 } elseif (strtok(
$mode,
' ') ==
"ng") {
29 include_once (
"ONEFAM/onefam_ng.php");
33 $action->lay->set(
"APP_TITLE", _($action->parent->description));
35 $nbcol = intval($action->getParam(
"ONEFAM_LWIDTH", 1));
38 if ($action->read(
"navigator") ==
"EXPLORER") $delta = 10;
40 $iz = $action->getParam(
"CORE_ICONSIZE");
44 $izpx = intval($action->getParam(
"SIZE_IMG-SMALL")) + 2;
45 $action->lay->set(
"wcols", $izpx * $nbcol + $delta);
46 $action->lay->set(
"Title", _($action->parent->short_name));
48 $openfam = $action->getParam(
"ONEFAM_FAMOPEN");
51 $action->lay->set(
"OPENFAM",
true);
52 $action->lay->set(
"openfam", $openfam);
54 $action->lay->set(
"OPENFAM",
false);
57 $action->parent->AddCssRef(
"ONEFAM:onefam.css",
true);
58 $action->parent->AddJsRef($action->
GetParam(
"CORE_JSURL") .
"/subwindow.js");
59 $action->parent->AddJsRef($action->
GetParam(
"CORE_JSURL") .
"/resizeimg.js");
61 $action->lay->
Set(
"oneBgColor", (($action->getParam(
"ONEFAM_BGCOLOR") !=
'inherit') && ($action->getParam(
"ONEFAM_BGCOLOR") !=
'')));
65 if (($action->
GetParam(
"ONEFAM_IDS") !=
"") && ($action->
GetParam(
"ONEFAM_MIDS") !=
"")) {
66 $action->lay->SetBlockData(
"SEPARATOR", array(
74 $action->lay->SetBlockData(
"CHOOSEUSERFAMILIES", array(
82 $action->lay->SetBlockData(
"CHOOSEMASTERFAMILIES", array(
88 $iz = $action->getParam(
"CORE_ICONSIZE");
89 $izpx = intval($action->getParam(
"SIZE_IMG-SMALL"));
91 $action->lay->set(
"izpx", $izpx);
96 $selectclass = array();
98 $tidsfam = explode(
",", $idsfam);
102 foreach ($tidsfam as $k => $cid) {
104 if ($cdoc->dfldid > 0) {
106 if ($cdoc->control(
'view') ==
"") {
107 $selectclass[$k][
"idcdoc"] = $cdoc->initid;
108 $selectclass[$k][
"ftitle"] = $cdoc->title;
109 $selectclass[$k][
"iconsrc"] = $cdoc->getIcon(
'', $izpx);