17 include_once (
"FDL/Class.Doc.php");
28 $docid = GetHttpVars(
"docid");
29 $attrid = GetHttpVars(
"attrid");
30 $value = GetHttpVars(
"value");
31 $stayedit = (GetHttpVars(
"stayedit") ==
"yes");
34 header(
'Content-type: text/xml; charset=utf-8');
38 $action->lay->set(
"CODE",
"OK");
39 $action->lay->set(
"warning",
"");
43 if (!
$doc->isAffected())
$err = sprintf(_(
"cannot see unknow reference %s") ,
$docid);
49 $a =
$doc->getAttribute($attrid);
60 if (!
$a)
$err = sprintf(_(
"unknown attribute %s for document %s") , $attrid,
$doc->title);
62 $vis =
$a->mvisibility;
63 if (strstr(
"WO", $vis) ===
false)
$err = sprintf(_(
"visibility %s does not allow modify attribute %s for document %s") , $vis,
$a->getLabel() ,
$doc->title);
65 if (
$a->type ==
"file") {
73 $action->AddActionDone(
"MODATTR",
$a->id);
74 $doc->addHistoryEntry(sprintf(_(
"modify [%s] attribute") ,
$a->getLabel()) ,
HISTO_INFO,
"MODATTR");
78 $action->lay->set(
"thetext",
$doc->getHtmlAttrValue($attrid));
82 if ($attrid)
$action->lay->set(
"thetext",
$doc->getHtmlAttrValue($attrid));
88 $action->getActionDone($actcode, $actarg);
90 foreach ($actcode as $k => $v) {
96 $action->lay->setBlockData(
"ACTIONS", $tact);
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err