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($a_session_id == $this->force_details)
89 include_once
'./classes/class.ilObjectListGUIFactory.php';
92 "Services/Container");
114 global $ilAccess,
$lng;
122 if ($output_html !=
"")
128 $done_sessions =
false;
130 if (is_array($this->items[
"sess"]))
132 $this->items[
'sess'] =
ilUtil::sortArray($this->items[
'sess'],
'start',
'ASC',
true,
true);
135 $item_html = array();
137 foreach($this->items[
"sess"] as $item_data)
139 if ($this->rendered_items[$item_data[
"child"]] !==
true)
141 $html = $this->
renderItem($item_data,$position++,
true);
144 $item_html[] = $html;
150 if (count($item_html) > 0)
153 foreach($item_html as $h)
157 $done_sessions =
true;
164 #$this->addFooterRow($tpl);
167 if (is_array($this->items[
"_all"]))
170 $item_html = array();
172 foreach($this->items[
"_all"] as $item_data)
174 if ($this->rendered_items[$item_data[
"child"]] !==
true)
176 if ($item_data[
"type"] ==
"sess")
180 $html = $this->
renderItem($item_data,$position++,
true);
183 $item_html[] = $html;
189 if (count($item_html) > 0)
192 foreach($item_html as $h)
199 $output_html .=
$tpl->get();
201 $a_tpl->setVariable(
"CONTAINER_PAGE_CONTENT", $output_html);
214 $tpl->setCurrentBlock(
'details_img');
216 $append = $this->details_level == 1 ?
'off' :
'';
217 $tpl->setCurrentBlock(
'details_img');
219 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 1');
220 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=1');
221 $tpl->parseCurrentBlock();
223 $append = $this->details_level == 2 ?
'off' :
'';
224 $tpl->setCurrentBlock(
'details_img');
226 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 2');
227 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=2');
228 $tpl->parseCurrentBlock();
230 $append = $this->details_level == 3 ?
'off' :
'';
231 $tpl->setCurrentBlock(
'details_img');
233 $tpl->setVariable(
'DETAILS_ALT',$this->lng->txt(
'details').
' 3');
234 $tpl->setVariable(
'DETAILS_LINK',
'repository.php?ref_id='.$this->
getContainerObject()->getRefId().
'&details_level=3');
235 $tpl->parseCurrentBlock();
237 $tpl->setCurrentBlock(
'container_details_row');
238 $tpl->setVariable(
'TXT_DETAILS',$this->lng->txt(
'details'));
239 $tpl->parseCurrentBlock();
255 if(
$_GET[
'expand'] > 0)
265 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
268 $this->force_details = $session;
272 $this->force_details = $session;