17 include_once (
"FDL/Class.Doc.php");
18 include_once (
"FDL/Lib.Dir.php");
19 include_once (
"GENERIC/generic_util.php");
24 $docid = GetHttpVars(
"id", 0);
25 $action->parent->addJsRef(
"lib/jquery/jquery.js");
26 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
27 $action->parent->AddJsRef(
"FDL:editexport.js",
true);
29 $exportId = uniqid(
"export");
30 $action->lay->
Set(
"dirid",
$doc->id);
31 $action->lay->
Set(
"title",
$doc->getHTMLTitle());
32 $action->lay->
Set(
"exportid", $exportId);
35 $selectclass = array();
37 $tfam = array_keys($pref);
38 foreach ($tclassdoc as $k => $cdoc) {
39 $selectclass[$k][
"idcdoc"] = $cdoc[
"id"];
41 $selectclass[$k][
"pref"] = in_array($cdoc[
"id"], $tfam);
43 $action->lay->setBlockData(
"coptions", $selectclass);
48 $action->lay->set(
"selectDoubleQuote",
false);
49 $action->lay->set(
"selectSimpleQuote",
false);
50 $action->lay->set(
"customEnclosure",
false);
51 $action->lay->set(
"customSeparator",
false);
52 $action->lay->set(
"selectComma",
false);
55 $action->lay->set(
"selectComma",
true);
61 $action->lay->set(
"selectDoubleQuote",
true);
63 $action->lay->set(
"selectSimpleQuote",
true);
68 if ($action->
canExecute(
"EXPORTFOLDER",
"DOCADMIN") ==
"" && preg_match(
'/\\/admin.php$/',
$_SERVER[
"SCRIPT_NAME"])) {
69 $action->lay->set(
"exportaction",
"EXPORTFOLDER");
70 $action->lay->set(
"exportapp",
"DOCADMIN");
71 $action->lay->set(
"viewinfo",
true);
73 $action->lay->set(
"exportaction",
"EXPORTFLD");
74 $action->lay->set(
"exportapp",
"FDL");
75 $action->lay->set(
"viewinfo",
false);
getFamilyParameters(&$action, $key)
GetClassesDoc($dbaccess, $userid, $classid=0, $qtype="LIST", $extraFilters=array())
canExecute($actname, $appid="")
editexport(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)