14 private static $ver =
"2_8_1";
23 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
24 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
34 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
44 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
55 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
56 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
66 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
67 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
68 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
78 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
92 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
93 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
94 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/skins/sam/container.css");
95 $tpl->addCss(
"./Services/Calendar/css/panel_min.css");
106 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
107 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
108 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
118 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
119 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core.js");
120 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
121 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/menu.css");
131 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
132 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
133 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/skins/sam/container.css");
143 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
144 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
145 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
146 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/container.css");
147 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
157 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
158 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
159 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
160 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
161 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
162 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/skins/sam/container.css");
172 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
173 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
174 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
175 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
185 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
186 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
187 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
197 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
198 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
204 static function getDragDropList($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
208 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
209 foreach ($source as $id => $name)
211 $template->setCurrentBlock(
"source_element");
212 $template->setVariable(
"ELEMENT_ID", $id);
213 $template->setVariable(
"ELEMENT_NAME", $name);
214 $template->parseCurrentBlock();
215 $template->setCurrentBlock(
"element");
216 $template->setVariable(
"ELEMENT_ID", $id);
217 $template->parseCurrentBlock();
219 foreach ($dest as $id => $name)
221 $template->setCurrentBlock(
"dest_element");
222 $template->setVariable(
"ELEMENT_ID", $id);
223 $template->setVariable(
"ELEMENT_NAME", $name);
224 $template->parseCurrentBlock();
225 $template->setCurrentBlock(
"element");
226 $template->setVariable(
"ELEMENT_ID", $id);
227 $template->parseCurrentBlock();
229 $template->setVariable(
"TITLE_LIST_1", $title_source);
230 $template->setVariable(
"TITLE_LIST_2", $title_dest);
231 $template->setVariable(
"LIST_1", $id_source);
232 $template->setVariable(
"LIST_2", $id_dest);
233 return $template->get();
236 static function addYesNoDialog($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon =
"help")
242 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
243 $template->setVariable(
"DIALOGNAME", $dialogname);
244 $template->setVariable(
"YES_ACTION", $yesaction);
245 $template->setVariable(
"NO_ACTION", $noaction);
246 $template->setVariable(
"DIALOG_HEADER", $headertext);
247 $template->setVariable(
"DIALOG_MESSAGE", $message);
248 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
249 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
253 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
256 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
259 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
262 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
265 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
269 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
274 $template->touchBlock(
"isDefaultYes");
278 $template->touchBlock(
"isDefaultNo");
280 $tpl->setCurrentBlock(
"HeadContent");
281 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
282 $tpl->parseCurrentBlock();
296 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
297 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/calendar/calendar-min.js");
299 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/calendar/assets/skins/sam/calendar.css");
300 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
315 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
316 if (self::$ver ==
"2_5_0")
318 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
322 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
325 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
326 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
328 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
330 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
331 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/skins/sam/menu.css");
347 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
348 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/slider/slider-min.js");
349 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/colorpicker/colorpicker-min.js");
351 $tpl->addCss(
'./Services/Form/css/color_picker.css');
352 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/colorpicker/assets/skins/sam/colorpicker.css");
362 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/tabview/assets/skins/sam/tabview.css");
363 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
364 if (self::$ver ==
"2_5_0")
366 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
370 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
372 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/tabview/tabview-min.js");
385 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/autocomplete/assets/skins/sam/autocomplete.css");
387 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
388 if (self::$ver ==
"2_5_0")
390 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/datasource/datasource-beta-min.js');
394 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/datasource/datasource-min.js");
396 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
397 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/autocomplete/autocomplete-min.js");
407 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
408 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/json/json-min.js");
419 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
420 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
422 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
423 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
424 if (self::$ver ==
"2_5_0")
426 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
430 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
432 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
433 if (self::$ver ==
"2_5_0")
435 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/resize/resize-beta-min.js");
436 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/layout/layout-beta-min.js");
440 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
441 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
464 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/container.css");
465 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
466 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
467 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
475 return "./Services/YUI/js/".self::$ver.
"/".$a_name;