14 private static $ver =
"2_9_0";
22 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
23 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
33 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
43 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
54 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
55 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
65 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
66 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
67 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
77 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
91 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
92 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
94 $tpl->addCss(
"./Services/Calendar/css/panel_min.css");
98 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/resize/assets/skins/sam/resize.css");
99 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/utilities/utilities-min.js");
100 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
112 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
113 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
114 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
124 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
125 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core.js");
126 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
127 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/menu.css");
137 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
138 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
149 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
150 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
151 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
153 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
163 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
164 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
165 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
166 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
167 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
178 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
179 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
180 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
181 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
191 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
192 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
193 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
203 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
204 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
210 static function getDragDropList($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
214 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
215 foreach ($source as $id => $name)
217 $template->setCurrentBlock(
"source_element");
218 $template->setVariable(
"ELEMENT_ID", $id);
219 $template->setVariable(
"ELEMENT_NAME", $name);
220 $template->parseCurrentBlock();
221 $template->setCurrentBlock(
"element");
222 $template->setVariable(
"ELEMENT_ID", $id);
223 $template->parseCurrentBlock();
225 foreach ($dest as $id => $name)
227 $template->setCurrentBlock(
"dest_element");
228 $template->setVariable(
"ELEMENT_ID", $id);
229 $template->setVariable(
"ELEMENT_NAME", $name);
230 $template->parseCurrentBlock();
231 $template->setCurrentBlock(
"element");
232 $template->setVariable(
"ELEMENT_ID", $id);
233 $template->parseCurrentBlock();
235 $template->setVariable(
"TITLE_LIST_1", $title_source);
236 $template->setVariable(
"TITLE_LIST_2", $title_dest);
237 $template->setVariable(
"LIST_1", $id_source);
238 $template->setVariable(
"LIST_2", $id_dest);
239 return $template->get();
242 static function addYesNoDialog($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon =
"help")
248 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
249 $template->setVariable(
"DIALOGNAME", $dialogname);
250 $template->setVariable(
"YES_ACTION", $yesaction);
251 $template->setVariable(
"NO_ACTION", $noaction);
252 $template->setVariable(
"DIALOG_HEADER", $headertext);
253 $template->setVariable(
"DIALOG_MESSAGE", $message);
254 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
255 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
259 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
262 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
265 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
268 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
271 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
275 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
280 $template->touchBlock(
"isDefaultYes");
284 $template->touchBlock(
"isDefaultNo");
286 $tpl->setCurrentBlock(
"HeadContent");
287 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
288 $tpl->parseCurrentBlock();
302 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
303 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/calendar/calendar-min.js");
305 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/calendar/assets/skins/sam/calendar.css");
306 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
321 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
322 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
324 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
325 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
327 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
329 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
330 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/skins/sam/menu.css");
346 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
347 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/slider/slider-min.js");
348 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/colorpicker/colorpicker-min.js");
350 $tpl->addCss(
'./Services/Form/css/color_picker.css');
351 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/colorpicker/assets/skins/sam/colorpicker.css");
361 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/tabview/assets/skins/sam/tabview.css");
362 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
363 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
364 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/tabview/tabview-min.js");
374 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
375 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/json/json-min.js");
385 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
386 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
388 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
389 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
390 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
391 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
392 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
393 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
403 $tpl->addJavaScript(self::getLocalPath().
'/yahoo/yahoo-min.js');
404 $tpl->addJavaScript(self::getLocalPath().
'/event/event-min.js');
405 $tpl->addJavaScript(self::getLocalPath().
'/treeview/treeview.js');
416 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
417 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
418 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
424 public static function initCookie()
431 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/cookie/cookie.js");
439 return "./Services/YUI/js/".self::$ver.
"/".$a_name;
449 $tpl->addCss(self::getLocalPath(
"container/assets/skins/sam/container.css"));