17 include_once (
"FDL/Class.Doc.php");
28 $bid = GetHttpVars(
"bid");
29 $dirid = GetHttpVars(
"dirid");
30 $linkdir = (GetHttpVars(
"linkdir",
"N") ==
"Y");
35 if (!$bdoc->isAlive()) $action->
exitError(sprintf(_(
"unknown batch document %s") , $bid));
40 if (!$fld->isAlive()) $action->
exitError(sprintf(_(
"unknown folder document %s") , $fld));
45 if (!
$doc) $action->
exitError(sprintf(_(
"no privilege to create this kind (%s) of document") , $bdoc->title));
47 $doc->setTitle(sprintf(_(
"batch from %s folder") , $fld->title));
48 $doc->setValue(
"ba_desc", sprintf(_(
"batch from %s folder") , $fld->title));
49 $famid = $fld->getRawValue(
"se_famid");
57 $doc->Addfile($fld->initid);
59 $tdoc = $fld->getContent();
60 foreach (
$tdoc as $k => $v) {
61 if (($v[
"doctype"] ==
"S") || ($v[
"doctype"] ==
"D")) unset(
$tdoc[$k]);
66 redirect($action,
"FREEDOM",
"OPENFOLIO&id=" .
$doc->id, $action->GetParam(
"CORE_STANDURL"));
freedom_addbatch(Action &$action)
exitError($texterr, $exit=true, $code="")
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err