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");
378 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/autocomplete/assets/skins/sam/autocomplete.css");
380 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
381 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/datasource/datasource-min.js");
382 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
383 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/autocomplete/autocomplete-min.js");
393 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
394 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/json/json-min.js");
404 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
405 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
407 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
408 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
409 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
410 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
411 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
412 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
422 $tpl->addJavaScript(self::getLocalPath().
'/yahoo/yahoo-min.js');
423 $tpl->addJavaScript(self::getLocalPath().
'/event/event-min.js');
424 $tpl->addJavaScript(self::getLocalPath().
'/treeview/treeview.js');
435 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
436 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
437 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
445 return "./Services/YUI/js/".self::$ver.
"/".$a_name;
455 $tpl->addCss(self::getLocalPath(
"container/assets/skins/sam/container.css"));