20 include_once (
"FDL/Lib.Dir.php");
25 $docid = GetHttpVars(
"id", 0);
26 $firstfld = (GetHttpVars(
"current",
"N") ==
"Y");
28 $action->lay->eSet(
"TITLE", _(
"change root folder"));
33 $action->lay->rSet(
"docid",
$doc->id);
35 $action->lay->eSet(
"doctitle",
$doc->getTitle());
36 $sqlfilters = array();
39 $action->lay->eSet(
"TITLE", _(
"Change default search"));
40 $action->lay->rSet(
"current",
"Y");
47 $action->lay->eSet(
"TITLE", _(
"change root folder"));
48 $action->lay->rSet(
"current",
"N");
49 $sqlfilters[] =
"doctype='D'";
53 $selectclass = array();
54 if (is_array($tclassdoc)) {
55 foreach ($tclassdoc as $k => $pdoc) {
57 $selectclass[$k][
"idpdoc"] = $pdoc[
"id"];
58 $selectclass[$k][
"profname"] = $pdoc[
"title"];
60 $selectclass[$k][
"selected"] = ($pdoc[
"id"] ==
$fldid) ?
"selected" :
"";
64 $action->lay->rSet(
"autodisabled", $firstfld || (
$fldid > 0) ?
"disabled" :
"");
65 $action->lay->rSet(
"ROOTFOLDER", (!$firstfld));
67 $action->lay->eSetBlockData(
"SELECTFLD", $selectclass);
internalGetDocCollection($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true, $trash="", &$debug=null, $folderRecursiveLevel=2, $join= '',\SearchDoc &$searchDoc=null)
new_Doc($dbaccess, $id= '', $latest=false)
editdfld(Action &$action)