17 include_once (
"FDL/Lib.Dir.php");
19 include_once (
"FDL/freedom_util.php");
21 include_once (
"FDL/modcard.php");
33 $docid = GetHttpVars(
"id", 0);
34 $classid = GetHttpVars(
"classid", 0);
35 $keyword = GetHttpVars(
"_se_key", GetHttpVars(
"keyword"));
37 $target = GetHttpVars(
"target");
38 $view = GetHttpVars(
"view");
39 $famid = GetHttpVars(
"famid");
40 $generic = (GetHttpVars(
"ingeneric") ==
"yes");
46 $classid =
$doc->fromid;
55 if (!$ndoc) $action->
exitError(sprintf(_(
"no privilege to create this kind (%d) of document") , $classid));
61 $fam = $ndoc->getTitle(
$famid);
62 $ndoc->title = sprintf(_(
"search %s") , $fam);
64 $ndoc->title = sprintf(_(
"search result"));
68 $ndoc->setValue(
"se_latest",
"yes");
69 $ndoc->setValue(
"se_famid",
$famid);
72 if (
$err !=
"") $action->ExitError(
$err);
77 $orderby = urlencode($ndoc->getRawValue(
"se_orderby"));
80 redirect($action,
"GENERIC",
"GENERIC_LIST&famid=$famid&catg=0&dirid=" . $ndoc->id, $action->GetParam(
"CORE_STANDURL"));
82 redirect($action, GetHttpVars(
"app") ,
"FREEDOM_VIEW&view=$view&target=$target&viewone=$viewone&dirid=" . $ndoc->id .
"&sqlorder=$orderby", $action->GetParam(
"CORE_STANDURL"));
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
modcard(Action &$action, &$ndocid, &$info=array())
createTmpDoc($dbaccess, $fromid, $defaultvalue=true)
if($file) if($subject==""&&$file) if($subject=="") $err