30 global
$lng,$objDefinition,$tree;
34 if(isset(
$_GET[
'ref_id']))
36 $this->ref_id = (int )
$_GET[
'ref_id'];
41 $lng->loadLanguageModule(
"search");
58 if(!$this->isContainer)
62 if(
$_GET[
'baseClass'] ==
'ilSearchController')
67 include_once
"Services/jQuery/classes/class.iljQueryUtil.php";
70 $this->tpl =
new ilTemplate(
'tpl.main_menu_search.html',
true,
true,
'Services/Search');
72 if ($ilUser->getId() != ANONYMOUS_USER_ID && (int)
$_GET[
"ref_id"] > 0)
74 $this->tpl->setCurrentBlock(
"position");
75 $this->tpl->setVariable(
'TXT_GLOBALLY', $lng->txt(
"search_globally"));
76 $this->tpl->setVariable(
'TXT_CURRENT_POSITION', $lng->txt(
"search_at_current_position"));
77 $this->tpl->setVariable(
'REF_ID', (
int)
$_GET[
"ref_id"]);
78 $this->tpl->setVariable(
'ROOT_ID', ROOT_FOLDER_ID);
79 $this->tpl->parseCurrentBlock();
83 $this->tpl->setCurrentBlock(
"position_hid");
84 $this->tpl->setVariable(
'ROOT_ID_HID', ROOT_FOLDER_ID);
85 $this->tpl->parseCurrentBlock();
88 $this->tpl->setVariable(
'FORMACTION',
'ilias.php?baseClass=ilSearchController&cmd=post'.
89 '&rtoken='.$ilCtrl->getRequestToken().
'&fallbackCmd=remoteSearch');
90 $this->tpl->setVariable(
'BTN_SEARCH',$this->lng->txt(
'search'));
93 $this->tpl->setVariable(
'AC_DATASOURCE',
"ilias.php?baseClass=ilSearchController&cmd=autoComplete");
96 $lng->txt(
"search")));
98 if ($ilUser->getId() != ANONYMOUS_USER_ID)
100 $this->tpl->setVariable(
'HREF_SEARCH_LINK',
"ilias.php?baseClass=ilSearchController");
101 $this->tpl->setVariable(
'TXT_SEARCH_LINK', $lng->txt(
"last_search_result"));
103 $this->tpl->setVariable(
'TXT_SEARCH', $lng->txt(
"search"));
104 include_once(
"./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
109 $ov->setAutoHide(
false);
113 return $this->tpl->get();