19 include_once (
"FDL/Class.Doc.php");
20 include_once (
"FDL/Class.DocAttr.php");
22 include_once (
"FDL/freedom_util.php");
23 include_once (
"FDL/editutil.php");
42 if (($vid !=
"") && (
$doc->cvid > 0)) {
45 $tview = $cvdoc->getView($vid);
46 if ($tview)
$doc->setMask($tview[
"CV_MSKID"]);
49 $listattr =
$doc->GetNormalAttributes();
52 include_once (
"FDL/modcard.php");
59 $foa =
$doc->getAttribute($frameid);
60 if (!$foa) $action->exitError(sprintf(
"attribute %s not found") , $frameid);
61 if ($foa->getOption(
"vlabel") ==
"none") $action->lay->set(
"flabel",
'');
62 else $action->lay->set(
"flabel",
mb_ucfirst($foa->getLabel()));
63 $action->lay->set(
"frameid", $foa->id);
64 while (list($k, $v) = each($listattr)) {
66 if (($v->fieldSet->id != $frameid))
continue;
67 if ($v->inArray())
continue;
68 if ($v->mvisibility ==
"I")
continue;
76 if (($v->mvisibility ==
"H") || ($v->mvisibility ==
"R")) {
82 $tval[$k][
"alabel"] = $v->getLabel();
83 if ($v->needed) $tval[$k][
"labelclass"] =
"FREEDOMLabelNeeded";
84 else $tval[$k][
"labelclass"] =
"FREEDOMLabel";
87 $vlabel = $v->getOption(
"vlabel");
88 $tval[$k][
"winput"] = ($v->type ==
"array") ?
"1%" :
"30%";
89 $tval[$k][
"TESTARRAY"] = (($v->type ==
"array") || (($v->type ==
"htmltext") && ($vlabel !=
'left')) || ($vlabel ==
'up') || ($vlabel ==
'none'));
90 $tval[$k][
"viewlabel"] = (($v->type !=
"array") && ($vlabel !=
'none'));
93 $action->lay->setBlockData(
"FVALUES", $tval);
94 $action->lay->setBlockData(
"FHIDDENS", $thval);
95 if ((count($tval) + count($thval)) > 0) {
97 $action->lay->setBlockData(
"FRAME", array(