19 include_once (
"FDL/Class.Dir.php");
20 include_once (
"GENERIC/generic_util.php");
27 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
28 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/selectbox.js");
29 $dbaccess =
$action->GetParam(
"FREEDOM_DB");
33 if ($homefld->id > 0) $stree =
getChildCatg($homefld->id, 1,
true, 4);
37 $action->lay->SetBlockData(
"CATG", $stree);
44 if (
$doc->name !=
"") $famname =
$doc->name;
45 else $famname =
$doc->id;
46 if (
$doc->ccvid > 0) {
49 $cvid = $cvdoc->getValue(
"CV_IDCVIEW");
51 $err = $cvdoc->control($cvid);
53 $tview = $cvdoc->getView($cvid);
54 if (isset($tview[
"CV_MSKID"]))
$doc->setMask($tview[
"CV_MSKID"]);
60 $action->lay->Set(
"dtitle", sprintf(_(
"import <I>%s</I> documents from") ,
$doc->title));
63 $action->lay->Set(
"dallcol",
"");
64 $action->lay->Set(
"dnallcol",
"none");
67 $action->lay->Set(
"dallcol",
"none");
68 $action->lay->Set(
"dnallcol",
"");
72 foreach (
$lattr as $k => $attr) {
73 $format.= $attr->getLabel() .
" ;";
76 foreach (
$lattr as $k => $attr) {
77 if ($attr->visibility ==
"O")
continue;
79 "idattr" => $attr->id,
80 "lattr" => $attr->getLabel()
83 if ($allcol)
$lattr =
$doc->GetNormalAttributes();
85 foreach (
$lattr as $k => $attr) {
87 "idattr" => $attr->id,
88 "lattr" => $attr->getLabel()
92 $action->lay->SetBlockData(
"AKEYS1", $tkey);
93 $action->lay->SetBlockData(
"AKEYS2", $tkey);
94 $action->lay->SetBlockData(
"COLUMNS", $tcol);
97 $action->lay->Set(
"classname", $famname);