17 include_once (
"FDL/Class.DocSearch.php");
18 include_once (
"FDL/freedom_util.php");
19 include_once (
"GENERIC/generic_util.php");
30 $docid = GetHttpVars(
"id");
31 $target = GetHttpVars(
"target");
34 if (
$docid ==
"") $action->
exitError(_(
"related search aborted : no parameter found"));
42 $sdoc->title = sprintf(_(
"process search comes from %s") ,
$doc->title);
46 $sqlfilter[] =
"locked != -1";
50 foreach (
$tdoc as $k => $v)
$tid[] = $v[
"id"];
58 redirect($action,
"FREEDOM",
"FREEDOM_VIEW&target=$target&view=column&dirid=" . $sdoc->id);
getSqlSearchDoc($dbaccess, $dirid, $fromid, $sqlfilters=array(), $distinct=false, $latest=true, $trash="", $simplesearch=false, $folderRecursiveLevel=2, $join= '', $only="")
freedom_searchprocess(Action &$action)
exitError($texterr, $exit=true, $code="")
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
getFamIdFromName($dbaccess, $name)
new_Doc($dbaccess, $id= '', $latest=false)
GetSqlCond($Table, $column, $integer=false)
if(($docid!==0)&&(!is_numeric($docid))) $query