19 include_once (
"FDL/Class.Doc.php");
20 include_once (
"FDL/Lib.Dir.php");
21 include_once (
"GENERIC/generic_util.php");
29 if (!
$doc->isAlive())
$action->exitError(sprintf(_(
"family %s not exists") ,
$docid));
31 $toa =
$doc->getNormalAttributes();
34 $tpref = explode(
";", $pref);
38 foreach ($toa as $k => $oa) {
39 if ($oa->type ==
"array")
continue;
42 if (($before != $oa->fieldSet->id) && ($before != $oa->fieldSet->type =
'frame')) {
43 $newframe = ($before != $oa->fieldSet->id);
44 $framename = $oa->fieldSet->getLabel();
46 if ($oa->fieldSet->fieldSet && ($oa->fieldSet->fieldSet->type ==
'tab')) {
47 $newtab = ($beforetab != $oa->fieldSet->fieldSet->id);
48 $beforetab = $oa->fieldSet->fieldSet->id;
49 $tabname = $oa->fieldSet->fieldSet->getLabel();
54 "newframe" => $newframe,
56 "need" => $oa->needed,
57 "hidden" => $oa->visibility ==
'H',
58 "selected" => in_array($oa->id, $tpref) ,
59 "tabname" => $tabname,
60 "framename" => $framename,
61 "attrname" => $oa->getLabel()
63 $before = $oa->fieldSet->id;
66 $action->lay->setBlockData(
"ATTRS", $tattr);