14 private static $ver =
"2_9_0";
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");
95 $tpl->addCss(
"./Services/Calendar/css/panel_min.css");
99 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/resize/assets/skins/sam/resize.css");
100 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/utilities/utilities-min.js");
101 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
113 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
114 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
115 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
125 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
126 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core.js");
127 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
128 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/menu.css");
138 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
139 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
150 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
151 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
152 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
154 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
164 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
165 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
166 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
167 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
168 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
179 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
180 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
181 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
182 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
192 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
193 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
194 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
204 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
205 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
211 static function getDragDropList($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
215 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
216 foreach ($source as $id => $name)
218 $template->setCurrentBlock(
"source_element");
219 $template->setVariable(
"ELEMENT_ID", $id);
220 $template->setVariable(
"ELEMENT_NAME", $name);
221 $template->parseCurrentBlock();
222 $template->setCurrentBlock(
"element");
223 $template->setVariable(
"ELEMENT_ID", $id);
224 $template->parseCurrentBlock();
226 foreach ($dest as $id => $name)
228 $template->setCurrentBlock(
"dest_element");
229 $template->setVariable(
"ELEMENT_ID", $id);
230 $template->setVariable(
"ELEMENT_NAME", $name);
231 $template->parseCurrentBlock();
232 $template->setCurrentBlock(
"element");
233 $template->setVariable(
"ELEMENT_ID", $id);
234 $template->parseCurrentBlock();
236 $template->setVariable(
"TITLE_LIST_1", $title_source);
237 $template->setVariable(
"TITLE_LIST_2", $title_dest);
238 $template->setVariable(
"LIST_1", $id_source);
239 $template->setVariable(
"LIST_2", $id_dest);
240 return $template->get();
243 static function addYesNoDialog($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon =
"help")
249 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
250 $template->setVariable(
"DIALOGNAME", $dialogname);
251 $template->setVariable(
"YES_ACTION", $yesaction);
252 $template->setVariable(
"NO_ACTION", $noaction);
253 $template->setVariable(
"DIALOG_HEADER", $headertext);
254 $template->setVariable(
"DIALOG_MESSAGE", $message);
255 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
256 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
260 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
263 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
266 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
269 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
272 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
276 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
281 $template->touchBlock(
"isDefaultYes");
285 $template->touchBlock(
"isDefaultNo");
287 $tpl->setCurrentBlock(
"HeadContent");
288 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
289 $tpl->parseCurrentBlock();
303 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
304 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/calendar/calendar-min.js");
306 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/calendar/assets/skins/sam/calendar.css");
307 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
322 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
323 $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 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
365 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/tabview/tabview-min.js");
375 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
376 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/json/json-min.js");
386 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
387 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
389 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
390 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
391 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
392 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
393 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
394 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
404 $tpl->addJavaScript(self::getLocalPath().
'/yahoo/yahoo-min.js');
405 $tpl->addJavaScript(self::getLocalPath().
'/event/event-min.js');
406 $tpl->addJavaScript(self::getLocalPath().
'/treeview/treeview.js');
417 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
418 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
419 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
425 public static function initCookie()
432 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/cookie/cookie.js");
440 return "./Services/YUI/js/".self::$ver.
"/".$a_name;
450 $tpl->addCss(self::getLocalPath(
"container/assets/skins/sam/container.css"));