17 include_once (
"FDL/Class.Dir.php");
18 include_once (
"FDL/Class.DocFam.php");
27 $docid = GetHttpVars(
"id");
28 $uchange = GetHttpVars(
"uchange");
33 if (intval(
$docid) == 0) $action->
exitError(sprintf(_(
"unknow logical reference '%s'") , GetHttpVars(
"id")));
38 if (!
$doc->isAffected()) $action->
exitError(sprintf(_(
"cannot see unknow reference %s") ,
$docid));
39 if (
$doc->defDoctype !=
'D') $action->
exitError(sprintf(_(
"not a static folder %s") ,
$doc->title));
46 foreach ($uchange as $initid => $state) {
51 $erradd[$initid] =
$doc->addFile($initid);
55 $errdel[$initid] =
$doc->delFile($initid);
63 foreach ($erradd as $k => $v) {
67 if ($n > 0) $action->
addWarningMsg(sprintf(_(
"Add %d document(s)") , $n));
69 foreach ($errdel as $k => $v) {
73 if ($n > 0) $action->
addWarningMsg(sprintf(_(
"Suppress %d document(s)") , $n));
76 redirect($action, GetHttpVars(
"redirect_app",
"FDL") , GetHttpVars(
"redirect_act",
"FDL_CARD&refreshfld=Y&id=$docid") , $action->GetParam(
"CORE_STANDURL"));
insertdocument(Action &$action)
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
getIdFromName($dbaccess, $name)
if($file) if($subject==""&&$file) if($subject=="") $err