17 include_once (
"FDL/Class.SearchDoc.php");
18 include_once (
"FDL/Class.DocSearch.php");
20 include_once (
"FDL/freedom_util.php");
33 $famid = GetHttpVars(
"famid", 0);
34 $keyword = GetHttpVars(
"_se_key", GetHttpVars(
"keyword"));
35 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/DHTMLapi.js");
36 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/AnchorPosition.js");
37 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/geometry.js");
38 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
39 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
40 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FGSEARCH/Layout/fullsearch.js");
41 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/lib/jquery/jquery.js",
false);
42 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FREEDOM/Layout/editdsearch.js");
43 $action->parent->AddJsRef($action->GetParam(
"CORE_STANDURL") .
"app=FDL&action=EDITJS");
44 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FDL/Layout/edittable.js");
45 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/FGSEARCH/Layout/fulleditdsearch.js");
47 $action->parent->AddCssRef(
"FGSEARCH:fullsearch.css",
true);
49 $action->parent->AddJsRef($action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
52 $action->lay->set(
"searchWords", $action->
getParam(
"FGSEARCH_SEARCHMODE",
"words") ===
"words");
58 $selectclass = array();
59 foreach ($tclassdoc as $k => $cdoc) {
60 $selectclass[$k][
"idcdoc"] = $cdoc[
"initid"];
61 $selectclass[$k][
"classname"] = $cdoc[
"title"];
62 $selectclass[$k][
"famselect"] = ($cdoc[
"initid"] ==
$famid) ?
"selected" :
"";
64 $action->lay->SetBlockData(
"SELECTCLASS", $selectclass);
65 $action->lay->set(
"searchtitle", _(
"General search"));
66 $action->lay->set(
"guideKeyword", _(
"search dynacase documents"));
67 $action->lay->set(
"initKeyword", (
$keyword ==
"" ?
true :
false));
79 $script = $_SERVER[
"SCRIPT_FILENAME"];
81 $base = dirname($_SERVER[
"SCRIPT_NAME"]);
82 $host = $_SERVER[
"HTTP_HOST"];
83 $action->lay->set(
"HOST", $host);
84 $newpath = $host . $base;
85 foreach ($tfiles as $k => $v) {
86 $out =
$dirname .
"/var/cache/image/" . $host .
"-" . $v;
87 if (!file_exists(
$out)) {
88 $src =
"$dirname/moz-searchplugin/$v";
89 if (file_exists($src)) {
90 $content = file_get_contents($src);
91 $destsrc = str_replace(array(
100 file_put_contents(
$out, $destsrc);
fullsearch(Action &$action)
getNonSystemFamilies($dbaccess, $userid, $qtype="TABLE")
createSearchEngine(Action &$action)
getFamIdFromName($dbaccess, $name)