19 include_once (
"FDL/import_file.php");
20 include_once (
"FDL/Lib.Dir.php");
32 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
35 $query->AddQuery(
"doctype='C'");
37 $selectclass = array();
42 while (list($k, $cdoc) = each($tclassdoc)) {
43 $selectclass[$k][
"idcdoc"] = $cdoc[
"initid"];
44 $selectclass[$k][
"classname"] = $cdoc[
"title"];
45 if ($cdoc[
"initid"] == $classid) $selectclass[$k][
"selected"] =
"selected";
46 else $selectclass[$k][
"selected"] =
"";
49 $action->lay->SetBlockData(
"SELECTCLASS", $selectclass);
52 $format =
"DOC;" . ((
$doc->name !=
"") ?
$doc->name :
$doc->id) .
";<special id>;<special dirid> ";
55 while (list($k, $v) = each($ttemp)) {
56 $tformat[$k][
"labeltext"] = htmlentities($v, ENT_COMPAT,
"UTF-8");
59 while (list($k, $attr) = each(
$lattr)) {
60 $format.=
"; " . $attr->getLabel();
61 $tformat[$k][
"labeltext"] = $attr->getLabel();
66 $action->lay->SetBlockData(
"TFORMAT", $tformat);
68 $action->lay->Set(
"cols", count($tformat));
69 $action->lay->Set(
"descr", $descr);
70 $action->lay->Set(
"policy", $policy);
72 $action->lay->Set(
"dirid", $dirid);