75 : string
76 {
79
80 $this->tpl =
new ilTemplate(
'tpl.main_menu_search.html',
true,
true,
'components/ILIAS/Search');
82 $this->tpl->setVariable(
'LABEL_SEARCH_OPTIONS', $this->
lng->txt(
"label_search_options"));
84 $this->tpl->setCurrentBlock("position");
85 $this->tpl->setVariable(
'TXT_GLOBALLY', $this->
lng->txt(
"search_globally"));
87 $this->tpl->parseCurrentBlock();
88 } else {
89 $this->tpl->setCurrentBlock("position_hid");
91 $this->tpl->parseCurrentBlock();
92 }
94 $this->tpl->setCurrentBlock('position_rep');
95 $this->tpl->setVariable(
'TXT_CURRENT_POSITION', $this->
lng->txt(
"search_at_current_position"));
96 $this->tpl->setVariable('REF_ID', $this->ref_id);
97 $this->tpl->parseCurrentBlock();
98 }
99 }
100
102 $this->tpl->setCurrentBlock('usr_search');
103 $this->tpl->setVariable(
'TXT_USR_SEARCH', $this->
lng->txt(
'search_users'));
105 $this->tpl->parseCurrentBlock();
106 }
107 $this->tpl->setVariable(
108 'FORMACTION',
110 );
111 $this->tpl->setVariable(
'BTN_SEARCH', $this->
lng->txt(
'search'));
112 $this->tpl->setVariable(
'SEARCH_INPUT_LABEL', $this->
lng->txt(
'search_field'));
113 $this->tpl->setVariable(
114 'AC_DATASOURCE',
116 );
117
118 $this->tpl->setVariable(
'IMG_MM_SEARCH',
ilUtil::img(
120 $this->
lng->txt(
"search")
121 ));
122
124 $this->tpl->setVariable(
125 'HREF_SEARCH_LINK',
127 );
128 $this->tpl->setVariable(
'TXT_SEARCH_LINK', $this->
lng->txt(
"last_search_result"));
129 }
130 $this->tpl->setVariable(
'TXT_SEARCH', $this->
lng->txt(
"search"));
131
132 return $this->tpl->get();
133 }
buildSearchLink(string $cmd, bool $async)
special template class to simplify handling of ITX/PEAR
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static initjQueryUI(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....
static initjQuery(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template