17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/Class.DocAttr.php");
20 include_once (
"FDL/freedom_util.php");
21 include_once (
"FDL/editutil.php");
28 $docid = GetHttpVars(
"id", 0);
29 $classid = GetHttpVars(
"classid");
30 $row = GetHttpVars(
"row", -1);
31 $arrayid = strtolower(GetHttpVars(
"arrayid"));
32 $vid = GetHttpVars(
"vid");
41 if (($vid !=
"") && (
$doc->cvid > 0)) {
47 $tview = $cvdoc->getView($vid);
48 if ($tview)
$doc->setMask($tview[
"CV_MSKID"]);
51 $oattr =
$doc->getAttribute($arrayid);
53 $action->lay->template = htmlspecialchars(sprintf(_(
"attribute %s not found") , $arrayid));
54 $action->lay->noparse =
true;
56 if ($oattr->type !=
"array") {
57 $action->lay->template = htmlspecialchars(sprintf(_(
"attribute %s not an array") , $arrayid));
58 $action->lay->noparse =
true;
61 $of->getLayArray($action->lay,
$doc, $oattr, $row);
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
new_Doc($dbaccess, $id= '', $latest=false)