55 {
57
58 if(!$this->isContainer)
59 {
60 #return '';
61 }
62 if(
$_GET[
'baseClass'] ==
'ilSearchController')
63 {
64
65 }
66
67 include_once "Services/jQuery/classes/class.iljQueryUtil.php";
70 $this->tpl =
new ilTemplate(
'tpl.main_menu_search.html',
true,
true,
'Services/Search');
71
72 if (
$ilUser->getId() != ANONYMOUS_USER_ID)
73 {
75 {
76 $this->tpl->setCurrentBlock("position");
77 $this->tpl->setVariable(
'TXT_GLOBALLY',
$lng->txt(
"search_globally"));
78 $this->tpl->setVariable('ROOT_ID', ROOT_FOLDER_ID);
79 $this->tpl->parseCurrentBlock();
80 }
81 else
82 {
83 $this->tpl->setCurrentBlock("position_hid");
84 $this->tpl->setVariable('ROOT_ID_HID', ROOT_FOLDER_ID);
85 $this->tpl->parseCurrentBlock();
86 }
87 if((
int)
$_GET[
'ref_id'])
88 {
89 $this->tpl->setCurrentBlock('position_rep');
90 $this->tpl->setVariable(
'TXT_CURRENT_POSITION',
$lng->txt(
"search_at_current_position"));
91 $this->tpl->setVariable(
'REF_ID', (
int)
$_GET[
"ref_id"]);
92 $this->tpl->parseCurrentBlock();
93 }
94 }
95
97 {
98 $this->tpl->setCurrentBlock('usr_search');
99 $this->tpl->setVariable('TXT_USR_SEARCH',$this->lng->txt('search_users'));
100 $this->tpl->parseCurrentBlock();
101 }
102
103 $this->tpl->setVariable('FORMACTION','ilias.php?baseClass=ilSearchController&cmd=post'.
104 '&rtoken='.
$ilCtrl->getRequestToken().
'&fallbackCmd=remoteSearch');
105 $this->tpl->setVariable('BTN_SEARCH',$this->lng->txt('search'));
106
107
108 $this->tpl->setVariable('AC_DATASOURCE', "ilias.php?baseClass=ilSearchController&cmd=autoComplete");
109
111 $lng->txt(
"search")));
112
113 if (
$ilUser->getId() != ANONYMOUS_USER_ID)
114 {
115 $this->tpl->setVariable('HREF_SEARCH_LINK', "ilias.php?baseClass=ilSearchController");
116 $this->tpl->setVariable(
'TXT_SEARCH_LINK',
$lng->txt(
"last_search_result"));
117 }
118
119
120 $this->tpl->setVariable(
'TXT_SEARCH',
$lng->txt(
"search"));
121 include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
123
124
125
126 $ov->setAutoHide(false);
127 $ov->add();
128
129 return $this->tpl->get();
130 }
This is a utility class for the yui overlays.
special template class to simplify handling of ITX/PEAR
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
static initjQuery($a_tpl=null)
Init jQuery.