{
if(!$this->isContainer)
{
#return '';
}
if(
$_GET[
'baseClass'] ==
'ilSearchController')
{
}
include_once "Services/jQuery/classes/class.iljQueryUtil.php";
$this->tpl =
new ilTemplate(
'tpl.main_menu_search.html',
true,
true,
'Services/Search');
if ($ilUser->getId() != ANONYMOUS_USER_ID && (int)
$_GET[
"ref_id"] > 0)
{
$this->tpl->setCurrentBlock("position");
$this->tpl->setVariable('TXT_GLOBALLY', $lng->txt("search_globally"));
$this->tpl->setVariable('TXT_CURRENT_POSITION', $lng->txt("search_at_current_position"));
$this->tpl->setVariable(
'REF_ID', (
int)
$_GET[
"ref_id"]);
$this->tpl->setVariable('ROOT_ID', ROOT_FOLDER_ID);
$this->tpl->parseCurrentBlock();
}
else
{
$this->tpl->setCurrentBlock("position_hid");
$this->tpl->setVariable('ROOT_ID_HID', ROOT_FOLDER_ID);
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable('FORMACTION','ilias.php?baseClass=ilSearchController&cmd=post'.
'&rtoken='.$ilCtrl->getRequestToken().'&fallbackCmd=remoteSearch');
$this->tpl->setVariable('BTN_SEARCH',$this->lng->txt('search'));
$this->tpl->setVariable('AC_DATASOURCE', "ilias.php?baseClass=ilSearchController&cmd=autoComplete");
$lng->txt("search")));
if ($ilUser->getId() != ANONYMOUS_USER_ID)
{
$this->tpl->setVariable('HREF_SEARCH_LINK', "ilias.php?baseClass=ilSearchController");
$this->tpl->setVariable('TXT_SEARCH_LINK', $lng->txt("last_search_result"));
$this->tpl->setVariable('TXT_SEARCH', $lng->txt("search"));
include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
$ov->setAutoHide(false);
$ov->add();
}
return $this->tpl->get();
}