24 include_once(
"./Services/Container/classes/class.ilContainerContentGUI.php");
64 if(isset(
$_SESSION[
'sess'][
'expanded'][$a_session_id]))
66 return $_SESSION[
'sess'][
'expanded'][$a_session_id];
68 if(in_array($a_session_id,$this->force_details))
90 include_once
'Services/Object/classes/class.ilObjectListGUIFactory.php';
93 "Services/Container");
115 global $ilAccess,
$lng;
123 if ($output_html !=
"")
129 $done_sessions =
false;
132 is_array($this->items[
"sess"]) or
133 $this->items[
'sess_link'][
'prev'][
'value'] or
134 $this->items[
'sess_link'][
'next'][
'value'])
136 $this->items[
'sess'] =
ilUtil::sortArray($this->items[
'sess'],
'start',
'ASC',
true,
true);
139 $item_html = array();
142 if($this->items[
'sess_link'][
'prev'][
'value'])
147 foreach($this->items[
"sess"] as $item_data)
149 if ($this->rendered_items[$item_data[
"child"]] !==
true)
151 $html = $this->
renderItem($item_data,$position++,
true);
155 $item_html[] = $html;
159 if($this->items[
'sess_link'][
'next'][
'value'])
165 if (count($item_html) > 0)
168 foreach($item_html as $h)
172 $done_sessions =
true;
181 if (is_array($this->items[
"_all"]))
184 $item_html = array();
186 foreach($this->items[
"_all"] as $item_data)
188 if ($this->rendered_items[$item_data[
"child"]] !==
true)
190 if ($item_data[
"type"] ==
"sess")
194 $html = $this->
renderItem($item_data,$position++,
true);
197 $item_html[] = $html;
203 if (count($item_html) > 0)
206 foreach($item_html as $h)
213 $output_html .=
$tpl->get();
215 $a_tpl->setVariable(
"CONTAINER_PAGE_CONTENT", $output_html);
226 $lng->loadLanguageModule(
'crs');
229 $tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
230 $tpl->setCurrentBlock(
'item_title_linked');
234 $prefp = $ilUser->getPref(
'crs_sess_show_prev_'.$this->
getContainerObject()->getId());
238 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_hide_prev_sessions'));
239 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_prev_sess',(
int) !$prefp);
240 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
245 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_show_all_prev_sessions'));
246 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_prev_sess',(
int) !$prefp);
247 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
253 $prefn = $ilUser->getPref(
'crs_sess_show_next_'.$this->
getContainerObject()->getId());
257 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_hide_next_sessions'));
258 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_next_sess',(
int) !$prefn);
259 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
264 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_show_all_next_sessions'));
265 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_next_sess',(
int) !$prefn);
266 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
270 $tpl->parseCurrentBlock();
285 $tpl->setCurrentBlock(
'details_img');
287 $append = $this->details_level == 1 ?
'off' :
'';
288 $tpl->setCurrentBlock(
'details_img');
290 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 1');
291 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=1');
292 $tpl->parseCurrentBlock();
294 $append = $this->details_level == 2 ?
'off' :
'';
295 $tpl->setCurrentBlock(
'details_img');
297 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 2');
298 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=2');
299 $tpl->parseCurrentBlock();
301 $append = $this->details_level == 3 ?
'off' :
'';
302 $tpl->setCurrentBlock(
'details_img');
304 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 3');
305 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=3');
306 $tpl->parseCurrentBlock();
308 $tpl->setCurrentBlock(
'container_details_row');
309 $tpl->setVariable(
'TXT_DETAILS',$this->lng->txt(
'details'));
310 $tpl->parseCurrentBlock();
326 if(
$_GET[
'expand'] > 0)
336 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
339 $this->force_details = $session;
343 $this->force_details = array($session);