40 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
41 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/event/event-min.js");
42 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/connection/connection-min.js");
52 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js");
53 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dragdrop/dragdrop-min.js");
63 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
64 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js");
78 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js');
83 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/container/container-min.js');
84 $tpl->addCss(
"./Services/YUI/js/2_5_0/container/assets/skins/sam/container.css");
85 #$tpl->addCss("./Services/YUI/js/2_5_0/container/assets/container-core.css");
86 $tpl->addCss(
'./Services/Calendar/css/panel_min.css');
98 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
99 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/animation/animation-min.js");
100 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js");
101 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/connection/connection-min.js");
111 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
112 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/event/event.js");
113 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dom/dom.js");
114 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/container/container_core.js");
115 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/menu/menu.js");
116 $tpl->addCss(
"./Services/YUI/js/2_5_0/menu/assets/menu.css");
126 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
127 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/event/event.js");
128 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dom/dom.js");
129 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/container/container_core.js");
139 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo/yahoo-min.js");
140 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/event/event.js");
141 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dom/dom.js");
142 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/container/container.js");
143 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dragdrop/dragdrop.js");
144 $tpl->addCss(
"./Services/YUI/js/2_5_0/container/assets/container.css");
145 $tpl->addCss(
"./Services/YUI/templates/default/tpl.simpledialog.css");
155 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js");
156 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/animation/animation-min.js");
157 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/dragdrop/dragdrop-min.js");
158 $tpl->addCss(
"./Services/YUI/templates/default/DragDropList.css");
164 static function getDragDropList($id_source, $title_source, $source, $id_dest, $title_dest, $dest)
168 $template =
new ilTemplate(
"tpl.dragdroplist.html", TRUE, TRUE,
"Services/YUI");
169 foreach ($source as $id => $name)
171 $template->setCurrentBlock(
"source_element");
172 $template->setVariable(
"ELEMENT_ID", $id);
173 $template->setVariable(
"ELEMENT_NAME", $name);
174 $template->parseCurrentBlock();
175 $template->setCurrentBlock(
"element");
176 $template->setVariable(
"ELEMENT_ID", $id);
177 $template->parseCurrentBlock();
179 foreach ($dest as $id => $name)
181 $template->setCurrentBlock(
"dest_element");
182 $template->setVariable(
"ELEMENT_ID", $id);
183 $template->setVariable(
"ELEMENT_NAME", $name);
184 $template->parseCurrentBlock();
185 $template->setCurrentBlock(
"element");
186 $template->setVariable(
"ELEMENT_ID", $id);
187 $template->parseCurrentBlock();
189 $template->setVariable(
"TITLE_LIST_1", $title_source);
190 $template->setVariable(
"TITLE_LIST_2", $title_dest);
191 $template->setVariable(
"LIST_1", $id_source);
192 $template->setVariable(
"LIST_2", $id_dest);
193 return $template->get();
196 static function addYesNoDialog($dialogname, $headertext, $message, $yesaction, $noaction, $defaultyes, $icon =
"help")
202 $template =
new ilTemplate(
"tpl.yes_no_dialog.js", TRUE, TRUE,
"Services/YUI");
203 $template->setVariable(
"DIALOGNAME", $dialogname);
204 $template->setVariable(
"YES_ACTION", $yesaction);
205 $template->setVariable(
"NO_ACTION", $noaction);
206 $template->setVariable(
"DIALOG_HEADER", $headertext);
207 $template->setVariable(
"DIALOG_MESSAGE", $message);
208 $template->setVariable(
"TEXT_YES", $lng->txt(
"yes"));
209 $template->setVariable(
"TEXT_NO", $lng->txt(
"no"));
213 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_WARN");
216 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_TIP");
219 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_INFO");
222 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_BLOCK");
225 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_ALARM");
229 $template->setVariable(
"ICON",
"YAHOO.widget.SimpleDialog.ICON_HELP");
234 $template->touchBlock(
"isDefaultYes");
238 $template->touchBlock(
"isDefaultNo");
240 $tpl->setCurrentBlock(
"HeadContent");
241 $tpl->setVariable(
"CONTENT_BLOCK", $template->get());
242 $tpl->parseCurrentBlock();
256 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/yahoo/yahoo.js');
257 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/event/event.js');
258 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/dom/dom.js');
259 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/calendar/calendar.js');
261 $tpl->addCss(
'./Services/YUI/js/2_5_0/calendar/assets/skins/sam/calendar.css');
262 $tpl->addCss(
'./Services/Calendar/css/calendar.css');
277 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js");
278 $tpl->addJavaScript(
"./Services/YUI/js/2_5_0/element/element-beta-min.js");
280 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/container/container_core-min.js');
281 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/menu/menu-min.js');
283 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/button/button-min.js');
285 $tpl->addCss(
"./Services/YUI/js/2_5_0/button/assets/skins/sam/button.css");
286 $tpl->addCss(
"./Services/YUI/js/2_5_0/menu/assets/skins/sam/menu.css");
302 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/dragdrop/dragdrop-min.js');
303 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/slider/slider-min.js');
304 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/colorpicker/colorpicker-min.js');
306 $tpl->addCss(
'./Services/Form/css/color_picker.css');
307 $tpl->addCss(
"./Services/YUI/js/2_5_0/colorpicker/assets/skins/sam/colorpicker.css");
317 $tpl->addCss(
"./Services/YUI/js/2_5_0/tabview/assets/skins/sam/tabview.css");
318 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/yahoo-dom-event/yahoo-dom-event.js');
319 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/element/element-beta-min.js');
320 $tpl->addJavaScript(
'./Services/YUI/js/2_5_0/tabview/tabview-min.js');