17 include_once (
"FDL/Class.Doc.php");
28 $modjsft = $action->
getArgument(
"modjsft",
"modattr");
31 header(
'Content-type: text/xml; charset=utf-8');
35 $action->lay->set(
"CODE",
"OK");
36 $action->lay->set(
"warning",
"");
37 if ($modjsft ==
"undefined") $modjsft =
"modattr";
38 $action->lay->eset(
"modjsft", $modjsft);
41 if (!
$doc->isAffected())
$err = sprintf(_(
"cannot see unknow reference %s") ,
$docid);
43 $action->lay->set(
"docid",
$doc->id);
45 if (
$err ==
"") $action->AddActionDone(
"LOCKDOC",
$doc->id);
52 $a =
$doc->getAttribute($attrid);
53 if (!
$a)
$err = sprintf(_(
"unknown attribute %s for document %s") , $attrid,
$doc->title);
54 $action->lay->set(
"attrid",
$a->id);
55 $action->lay->set(
"longtext", (
$a->type ==
"longtext"));
59 $action->lay->set(
"thetext", htmlspecialchars(
$doc->getRawValue($attrid)));
62 if (
$err !=
"") $action->lay->set(
"CODE",
"KO");
63 $action->lay->set(
"warning",
$err);
68 foreach ($actcode as $k => $v) {
74 $action->lay->setBlockData(
"ACTIONS", $tact);
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
new_Doc($dbaccess, $id= '', $latest=false)
getActionDone(&$actdone, &$arg)
static getArgument($k, $def= '')
if($file) if($subject==""&&$file) if($subject=="") $err
editattribute(Action &$action)