13 private static $ver =
"2_7_0b";
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");
93 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/skins/sam/container.css");
94 $tpl->addCss(
"./Services/Calendar/css/panel_min.css");
105 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
106 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
107 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
117 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
118 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core.js");
119 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
120 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/menu.css");
130 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
131 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
141 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
142 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
143 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
144 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/container.css");
145 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
155 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
156 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
157 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
158 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container-min.js");
159 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
160 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/container/assets/skins/sam/container.css");
170 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
171 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
172 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
173 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
183 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
184 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
185 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
195 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
196 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
202 static function getDragDropList($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
206 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
207 foreach ($source as $id =>
$name)
209 $template->setCurrentBlock(
"source_element");
210 $template->setVariable(
"ELEMENT_ID", $id);
211 $template->setVariable(
"ELEMENT_NAME",
$name);
212 $template->parseCurrentBlock();
213 $template->setCurrentBlock(
"element");
214 $template->setVariable(
"ELEMENT_ID", $id);
215 $template->parseCurrentBlock();
217 foreach ($dest as $id =>
$name)
219 $template->setCurrentBlock(
"dest_element");
220 $template->setVariable(
"ELEMENT_ID", $id);
221 $template->setVariable(
"ELEMENT_NAME",
$name);
222 $template->parseCurrentBlock();
223 $template->setCurrentBlock(
"element");
224 $template->setVariable(
"ELEMENT_ID", $id);
225 $template->parseCurrentBlock();
227 $template->setVariable(
"TITLE_LIST_1", $title_source);
228 $template->setVariable(
"TITLE_LIST_2", $title_dest);
229 $template->setVariable(
"LIST_1", $id_source);
230 $template->setVariable(
"LIST_2", $id_dest);
231 return $template->get();
234 static function addYesNoDialog($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon =
"help")
240 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
241 $template->setVariable(
"DIALOGNAME", $dialogname);
242 $template->setVariable(
"YES_ACTION", $yesaction);
243 $template->setVariable(
"NO_ACTION", $noaction);
244 $template->setVariable(
"DIALOG_HEADER", $headertext);
245 $template->setVariable(
"DIALOG_MESSAGE", $message);
246 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
247 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
251 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
254 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
257 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
260 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
263 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
267 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
272 $template->touchBlock(
"isDefaultYes");
276 $template->touchBlock(
"isDefaultNo");
278 $tpl->setCurrentBlock(
"HeadContent");
279 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
280 $tpl->parseCurrentBlock();
294 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
295 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/calendar/calendar-min.js");
297 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/calendar/assets/skins/sam/calendar.css");
298 $tpl->addCss(
"./Services/Calendar/css/calendar.css");
313 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
314 if (self::$ver ==
"2_5_0")
316 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
320 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
323 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/container/container_core-min.js");
324 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/menu/menu-min.js");
326 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/button/button-min.js");
328 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/button/assets/skins/sam/button.css");
329 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/menu/assets/skins/sam/menu.css");
345 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
346 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/slider/slider-min.js");
347 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/colorpicker/colorpicker-min.js");
349 $tpl->addCss(
'./Services/Form/css/color_picker.css');
350 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/colorpicker/assets/skins/sam/colorpicker.css");
360 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/tabview/assets/skins/sam/tabview.css");
361 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
362 if (self::$ver ==
"2_5_0")
364 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
368 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
370 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/tabview/tabview-min.js");
383 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/autocomplete/assets/skins/sam/autocomplete.css");
385 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
386 if (self::$ver ==
"2_5_0")
388 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/datasource/datasource-beta-min.js');
392 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/datasource/datasource-min.js");
394 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/connection/connection-min.js");
395 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/autocomplete/autocomplete-min.js");
405 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
406 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/json/json-min.js");
417 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/resize.css");
418 $tpl->addCss(
"./Services/YUI/js/".self::$ver.
"/assets/skins/sam/layout.css");
420 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/yahoo-dom-event/yahoo-dom-event.js");
421 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/dragdrop/dragdrop-min.js");
422 if (self::$ver ==
"2_5_0")
424 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
428 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/element/element-min.js");
430 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/animation/animation-min.js");
431 if (self::$ver ==
"2_5_0")
433 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/resize/resize-beta-min.js");
434 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/layout/layout-beta-min.js");
438 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/resize/resize-min.js");
439 $tpl->addJavaScript(
"./Services/YUI/js/".self::$ver.
"/layout/layout-min.js");
448 return "./Services/YUI/js/".self::$ver.
"/".$a_name;