17 include_once (
"FDL/editutil.php");
31 $key = trim(str_replace(
'"',
'', $key));
34 $action->lay->noparse =
true;
35 $action->lay->template = htmlspecialchars(
"addenumitem '$docid' '$attrid' '$key'", ENT_QUOTES);
37 if (
$doc->isAlive()) {
38 $action->lay->noparse =
true;
39 $action->lay->template = htmlspecialchars(
"addenumitem/2 '$docid' '$attrid' '$key'", ENT_QUOTES);
43 $oa =
$doc->getAttribute($attrid);
45 $err = $oa->addEnum(
$dbaccess, str_replace(
'.',
'\.', $key) , $key);
46 if ($oa->repeat && (!$oa->inArray())) {
47 $v =
$doc->getRawValue($oa->id);
48 if ($v !=
"") $v.=
"\n$key";
55 $action->lay->noparse =
true;
56 $action->lay->template = $i;
addenumitem(Action &$action)
getHtmlInput(&$doc, &$oattr, $value, $index="", $jsevent="", $notd=false)
static getArgument($k, $def= '')
if($file) if($subject==""&&$file) if($subject=="") $err