{
if(!$this->isContainer)
{
#return '';
}
if(
$_GET[
'baseClass'] ==
'ilSearchController')
{
}
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
ilYuiUtil::initAutocomplete();
$this->tpl =
new ilTemplate(
'tpl.main_menu_search.html',
true,
true,
'Services/Search');
$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('CONT_REF_ID',ROOT_FOLDER_ID);
$this->tpl->setVariable('ID_AUTOCOMPLETE', "mm_sr_auto");
$this->tpl->setVariable('YUI_DATASOURCE', "ilias.php?baseClass=ilSearchController&cmd=autoComplete");
if ($ilUser->getId() != ANONYMOUS_USER_ID)
{
include_once("./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
$list->addEntry($lng->txt("last_search_result"), "ilias.php?baseClass=ilSearchController");
$this->tpl->setVariable('SEARCH_LINK_MENU', $list->getHTML());
$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();
}