4 include_once(
'./Services/Object/classes/class.ilObjectGUI.php');
5 include_once(
'./Modules/Session/classes/class.ilObjSession.php');
6 include_once(
'./Modules/Session/classes/class.ilSessionFile.php');
7 include_once
'./Services/PersonalDesktop/interfaces/interface.ilDesktopItemHandling.php';
40 public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
48 $this->lng->loadLanguageModule(
"event");
49 $this->lng->loadLanguageModule(
'crs');
50 $this->lng->loadLanguageModule(
'trac');
51 $this->lng->loadLanguageModule(
'sess');
69 $next_class = $this->ctrl->getNextClass($this);
70 $cmd = $this->ctrl->getCmd();
76 case "ilinfoscreengui":
81 case 'ilpermissiongui':
82 $this->tabs_gui->setTabActive(
'perm_settings');
83 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
85 $ret = $this->ctrl->forwardCommand($perm_gui);
88 case 'ilobjectcopygui':
89 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
92 $this->ctrl->forwardCommand($cp);
97 $this->tabs_gui->setTabActive(
"export");
98 include_once(
"./Services/Export/classes/class.ilExportGUI.php");
100 $exp_gui->addFormat(
"xml");
101 $ret = $this->ctrl->forwardCommand($exp_gui);
105 case "ilcommonactiondispatchergui":
106 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
108 $this->ctrl->forwardCommand($gui);
111 case 'ilmembershipgui':
112 $this->ctrl->setReturn($this,
'members');
113 include_once
'./Services/Membership/classes/class.ilMembershipGUI.php';
115 $this->ctrl->forwardCommand($mem);
118 case "illearningprogressgui":
119 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
121 $this->object->getRefId(),
122 $_GET[
'user_id'] ?
$_GET[
'user_id'] : $ilUser->getId());
123 $this->ctrl->forwardCommand($new_gui);
124 $this->tabs_gui->setTabActive(
'learning_progress');
133 if (
$cmd !=
"infoScreenObject")
169 $title = strlen($this->object->getTitle()) ? (
': '.$this->object->getTitle()) :
'';
171 include_once
'./Modules/Session/classes/class.ilSessionAppointment.php';
172 $this->tpl->setTitle(
173 $this->object->getFirstAppointment()->appointmentToString().$title);
190 include_once
'./Services/Membership/classes/class.ilParticipants.php';
193 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
198 (count($event_part->getRegistered()) >= $this->
getCurrentObject()->getRegistrationMaxUsers())
201 include_once
'./Modules/Session/classes/class.ilSessionWaitingList.php';
203 $wait->addToList($ilUser->getId());
205 $this->ctrl->redirect($this,
'infoScreen');
213 $this->ctrl->redirect($this,
'info');
217 $part->add($ilUser->getId());
219 $this->ctrl->redirect($this,
'infoScreen');
224 $part->addSubscriber($ilUser->getId());
225 $this->ctrl->redirect($this,
'infoScreen');
240 if($ilUser->isAnonymous())
242 $this->ctrl->redirect($this,
'infoScreen');
245 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
259 $this->ctrl->redirect($this,
'infoScreen');
272 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
275 include_once
'./Modules/Session/classes/class.ilSessionWaitingList.php';
279 $this->ctrl->returnToParent($this);
290 public static function _goto($a_target)
294 if($ilAccess->checkAccess(
'visible',
"", $a_target))
298 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
306 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
316 include_once
'./Services/PersonalDesktop/classes/class.ilDesktopItemGUI.php';
329 $this->ctrl->setCmd(
"showSummary");
330 $this->ctrl->setCmdClass(
"ilinfoscreengui");
342 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(),
'crs'))
345 include_once
"Services/Object/classes/class.ilObjectActivation.php";
348 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
349 include_once(
"./Modules/Course/classes/class.ilObjCourseGUI.php");
359 $this->object->getRefId());
370 if(!$this->
getCurrentObject()->enabledRegistration() || $ilUser->isAnonymous())
375 include_once
'./Modules/Session/classes/class.ilSessionWaitingList.php';
377 include_once
'./Services/Membership/classes/class.ilParticipants.php';
380 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
383 $ilToolbar->addFormButton($this->lng->txt(
'event_unregister'),
'unregister');
384 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
387 elseif($part->isSubscriber($ilUser->getId()))
389 $ilToolbar->addFormButton($this->lng->txt(
'event_unregister'),
'unregister');
390 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
395 $ilToolbar->addFormButton($this->lng->txt(
'leave_waiting_list'),
'unregister');
396 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
405 (count($event_part->getRegistered()) >= $this->
getCurrentObject()->getRegistrationMaxUsers())
411 $ilToolbar->addFormButton($this->lng->txt(
'mem_add_to_wl'),
'register');
412 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
426 $ilToolbar->addFormButton($this->lng->txt(
'join_session'),
'register',
'',
true);
427 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
447 $this->tabs_gui->setTabActive(
'info_short');
449 $appointment_obj = $this->
object->getFirstAppointment();
451 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
457 if(strlen($this->object->getLocation()) or strlen($this->object->getDetails()))
459 $info->addSection($this->lng->txt(
'event_section_information'));
461 if(strlen(
$location = $this->object->getLocation()))
463 $info->addProperty($this->lng->txt(
'event_location'),
464 nl2br($this->object->getLocation()));
466 if(strlen($this->object->getDetails()))
468 $info->addProperty($this->lng->txt(
'event_details_workflow'),
469 nl2br($this->object->getDetails()));
473 if($this->object->hasTutorSettings())
475 $info->addSection($this->lng->txt(
'event_tutor_data'));
476 if(strlen($fullname = $this->object->getName()))
478 $info->addProperty($this->lng->txt(
'event_lecturer'),
481 if(strlen($email = $this->object->getEmail()))
483 $info->addProperty($this->lng->txt(
'tutor_email'),
486 if(strlen($phone = $this->object->getPhone()))
488 $info->addProperty($this->lng->txt(
'tutor_phone'),
496 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
497 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
498 include_once
'./Modules/Session/classes/class.ilSessionObjectListGUIFactory.php';
501 $parent_id = $tree->getParentId($this->object->getRefId());
505 $this->object->getId(),
509 foreach($eventItems as $item)
512 $list_gui->setContainerObject($this);
516 $html .= $list_gui->getListItemHTML(
526 $info->addSection($this->lng->txt(
'event_materials'));
533 $this->ctrl->forwardCommand($info);
536 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
538 $this->
object->getId(), $ilUser->getId());
556 if(!is_object($this->
object))
580 $this->ctrl->setParameter($this,
'ref_id',$this->object->getRefId());
581 $this->ctrl->redirect($this,
'materials');
601 $ilErr->setMessage(
'');
602 if(!$this->form->checkInput()) {
603 $ilErr->setMessage($this->lng->txt(
'err_check_input'));
606 $this->
object->validate();
607 $this->
object->getFirstAppointment()->validate();
609 if(strlen($ilErr->getMessage()))
616 $this->
object->create();
617 $this->
object->createReference();
618 $this->
object->putInTree(
$_GET[
"ref_id"]);
619 $this->
object->setPermissions(
$_GET[
"ref_id"]);
622 if(!$this->form->getInput(
"lp_preset"))
624 include_once
"Services/Tracking/classes/class.ilLPObjSettings.php";
627 $lp_obj_settings->update(
false);
631 $this->
object->getFirstAppointment()->setSessionId($this->object->getId());
632 $this->
object->getFirstAppointment()->create();
638 if($a_redirect_on_success)
641 $this->ctrl->returnToParent($this);
652 include_once
'./Modules/Session/classes/class.ilEventItems.php';
659 if(!isset($_FILES[
'files'][
'name'][$counter]))
663 if(!strlen($_FILES[
'files'][
'name'][$counter]))
669 include_once
'./Modules/File/classes/class.ilObjFile.php';
672 $file->setDescription(
'');
674 $file->setFileType($_FILES[
'files'][
'type'][$counter]);
675 $file->setFileSize($_FILES[
'files'][
'size'][$counter]);
677 $new_ref_id =
$file->createReference();
678 $file->putInTree($tree->getParentId($this->object->getRefId()));
679 $file->setPermissions($tree->getParentId($this->object->getRefId()));
680 $file->createDirectory();
681 $file->getUploadFile(
682 $_FILES[
'files'][
'tmp_name'][$counter],
683 $_FILES[
'files'][
'name'][$counter]
686 $items[] = $new_ref_id;
708 if(!$this->rec->getFrequenceType())
712 include_once(
'./Services/Calendar/classes/class.ilCalendarRecurrenceCalculator.php');
715 $period_start = clone $this->
object->getFirstAppointment()->getStart();
718 $period_end = clone $this->
object->getFirstAppointment()->getStart();
722 $period_diff = $this->
object->getFirstAppointment()->getEnd()->get(
IL_CAL_UNIX) -
723 $this->
object->getFirstAppointment()->getStart()->get(
IL_CAL_UNIX);
724 $parent_id = $tree->getParentId($this->object->getRefId());
726 include_once
'./Modules/Session/classes/class.ilEventItems.php';
731 foreach($date_list->get() as $date)
738 $new_obj = $this->
object->cloneObject($parent_id);
740 $new_obj->getFirstAppointment()->setStartingTime($date->get(
IL_CAL_UNIX));
741 $new_obj->getFirstAppointment()->setEndingTime($date->get(
IL_CAL_UNIX) + $period_diff);
742 $new_obj->getFirstAppointment()->update();
748 include_once
"Services/Tracking/classes/class.ilLPObjSettings.php";
751 $lp_obj_settings->update(
false);
770 $this->tabs_gui->setTabActive(
'settings');
773 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_edit.html',
'Modules/Session');
774 $this->tpl->setVariable(
'EVENT_EDIT_TABLE',$this->form->getHTML());
776 if(!count($this->object->getFiles()))
781 foreach($this->object->getFiles() as
$file)
783 $table_data[
'id'] =
$file->getFileId();
784 $table_data[
'filename'] =
$file->getFileName();
785 $table_data[
'filetype'] =
$file->getFileType();
786 $table_data[
'filesize'] =
$file->getFileSize();
788 $rows[] = $table_data;
791 include_once(
"./Modules/Session/classes/class.ilSessionFileTableGUI.php");
793 $table_gui->setTitle($this->lng->txt(
"event_files"));
794 $table_gui->setData($rows);
795 $table_gui->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
796 $table_gui->addMultiCommand(
"confirmDeleteFiles", $this->lng->txt(
"delete"));
797 $table_gui->setSelectAllCheckbox(
"file_id");
798 $this->tpl->setVariable(
'EVENT_FILE_TABLE',$table_gui->getHTML());
817 $ilErr->setMessage(
'');
818 if(!$this->form->checkInput())
820 $ilErr->setMessage($this->lng->txt(
'err_check_input'));
822 $this->
object->validate();
823 $this->
object->getFirstAppointment()->validate();
825 if(strlen($ilErr->getMessage()))
832 $this->
object->update();
833 $this->
object->getFirstAppointment()->update();
838 $this->ctrl->redirect($this,
'edit');
839 #$this->object->initFiles();
840 #$this->editObject();
853 $this->tabs_gui->setTabActive(
'settings');
855 if(!count(
$_POST[
'file_id']))
862 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
866 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"deleteFiles"));
867 $c_gui->setHeaderText($this->lng->txt(
"info_delete_sure"));
868 $c_gui->setCancel($this->lng->txt(
"cancel"),
"edit");
869 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"deleteFiles");
872 foreach(
$_POST[
"file_id"] as $file_id)
875 if(
$file->getSessionId() != $this->
object->getEventId())
881 $c_gui->addItem(
"file_id[]", $file_id,
$file->getFileName());
884 $this->tpl->setContent($c_gui->getHTML());
897 if(!count(
$_POST[
'file_id']))
903 foreach(
$_POST[
'file_id'] as $id)
908 $this->
object->initFiles();
917 $is_course = $is_group =
false;
920 $this->container_ref_id = $tree->checkForParentType($this->object->getRefId(),
'grp');
921 if($this->container_ref_id)
925 if(!$this->container_ref_id)
927 $this->container_ref_id = $tree->checkForParentType($this->object->getRefId(),
'crs');
928 if($this->container_ref_id)
933 if(!$this->container_ref_id)
940 if($a_init_participants && $this->container_obj_id)
944 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
949 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
967 $this->tabs_gui->setTabActive(
'crs_materials');
970 $parent_ref_id = $tree->getParentId($this->object->getRefId());
972 include_once
"Services/Object/classes/class.ilObjectAddNewItemGUI.php";
974 $gui->setDisabledObjectTypes(array(
"itgr",
"sess"));
975 $gui->setAfterCreationCallback($this->ref_id);
978 include_once
'Modules/Session/classes/class.ilEventItems.php';
979 $this->event_items =
new ilEventItems($this->object->getId());
981 include_once
'Modules/Session/classes/class.ilSessionMaterialsTableGUI.php';
983 $tbl->setTitle($this->lng->txt(
"event_assign_materials_table"));
984 $tbl->setDescription($this->lng->txt(
'event_assign_materials_info'));
986 $tbl->setMaterialItems($this->event_items->getItems());
988 $tbl->getDataFromDb();
990 $this->tpl->setContent($tbl->getHTML());
1002 include_once
'./Modules/Session/classes/class.ilEventItems.php';
1004 $this->event_items =
new ilEventItems($this->object->getId());
1006 $list_items = is_array(
$_POST[
'all_items']) ?
$_POST[
'all_items'] : array();
1007 $list_items_checked = is_array(
$_POST[
'items']) ?
$_POST[
'items'] : array();
1009 $checked = $this->event_items->getItems();
1010 $checked = array_diff($checked, $list_items);
1011 $checked = array_merge($checked, $list_items_checked);
1013 $this->event_items->setItems($checked);
1014 $this->event_items->update();
1016 include_once
'Modules/Session/classes/class.ilSessionMaterialsTableGUI.php';
1019 $tbl->storeNavParameter();
1022 $this->ctrl->redirect($this,
'materials');
1034 $this->tabs_gui->setTabActive(
'event_edit_members');
1036 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_members.html',
'Modules/Session');
1038 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1040 $toolbar->addButton($this->lng->txt(
'sess_gen_attendance_list'),
1041 $this->ctrl->getLinkTarget($this,
'attendanceList'));
1043 $this->tpl->setVariable(
'ACTION_BUTTONS',$toolbar->getHTML());
1047 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
1053 include_once(
'./Modules/Session/classes/class.ilSessionWaitingList.php');
1055 if(count($wait = $waiting_list->getAllUsers()))
1057 include_once(
'./Services/Membership/classes/class.ilWaitingListTableGUI.php');
1058 if($ilUser->getPref(
'sess_wait_hide'))
1061 $this->ctrl->setParameter($this,
'wait_hide',0);
1062 $table_gui->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1063 $this->lng->txt(
'show'));
1064 $this->ctrl->clearParameters($this);
1069 $this->ctrl->setParameter($this,
'wait_hide',1);
1070 $table_gui->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1071 $this->lng->txt(
'hide'));
1072 $this->ctrl->clearParameters($this);
1074 $table_gui->setUsers($wait);
1075 $table_gui->setTitle($this->lng->txt(
'grp_header_waiting_list'),
'icon_usr.svg',$this->lng->txt(
'group_new_registrations'));
1076 $this->tpl->setVariable(
'TABLE_WAIT',$table_gui->getHTML());
1081 include_once
'./Services/Membership/classes/class.ilParticipants.php';
1083 if($part->getSubscribers())
1085 include_once(
'./Services/Membership/classes/class.ilSubscriberTableGUI.php');
1086 if($ilUser->getPref(
'grp_subscriber_hide'))
1089 $this->ctrl->setParameter($this,
'subscriber_hide',0);
1090 $table_gui->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1091 $this->lng->txt(
'show'));
1092 $this->ctrl->clearParameters($this);
1097 $this->ctrl->setParameter($this,
'subscriber_hide',1);
1098 $table_gui->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1099 $this->lng->txt(
'hide'));
1100 $this->ctrl->clearParameters($this);
1102 $table_gui->readSubscriberData();
1103 $table_gui->setTitle($this->lng->txt(
'group_new_registrations'),
'icon_usr.svg',$this->lng->txt(
'group_new_registrations'));
1104 $this->tpl->setVariable(
'TABLE_SUB',$table_gui->getHTML());
1109 if(count($admins = $members_obj->getAdmins()))
1111 include_once(
'./Modules/Session/classes/class.ilSessionParticipantsTableGUI.php');
1112 if($ilUser->getPref(
'sess_admin_hide'))
1115 $this->ctrl->setParameter($this,
'admin_hide',0);
1116 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1117 $this->lng->txt(
'show'));
1118 $this->ctrl->clearParameters($this);
1123 $this->ctrl->setParameter($this,
'admin_hide',1);
1124 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1125 $this->lng->txt(
'hide'));
1126 $this->ctrl->clearParameters($this);
1129 $table->addCommandButton(
'updateMembers',$this->lng->txt(
'save'));
1130 $table->setTitle($this->lng->txt(
'event_tbl_admins'),
'icon_usr.svg',$this->lng->txt(
'event_tbl_admins'));
1131 $table->enableRegistration($this->object->enabledRegistration());
1132 $table->setParticipants($admins);
1134 $this->tpl->setVariable(
'ADMINS',$table->getHTML());
1138 if(count($tutors = $members_obj->getTutors()))
1140 include_once(
'./Modules/Session/classes/class.ilSessionParticipantsTableGUI.php');
1141 if($ilUser->getPref(
'sess_tutor_hide'))
1144 $this->ctrl->setParameter($this,
'tutor_hide',0);
1145 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1146 $this->lng->txt(
'show'));
1147 $this->ctrl->clearParameters($this);
1152 $this->ctrl->setParameter($this,
'tutor_hide',1);
1153 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1154 $this->lng->txt(
'hide'));
1155 $this->ctrl->clearParameters($this);
1157 $table->addCommandButton(
'updateMembers',$this->lng->txt(
'save'));
1158 $table->setTitle($this->lng->txt(
'event_tbl_tutors'),
'icon_usr.svg',$this->lng->txt(
'event_tbl_admins'));
1159 $table->enableRegistration($this->object->enabledRegistration());
1160 $table->setParticipants($tutors);
1162 $this->tpl->setVariable(
'TUTORS',$table->getHTML());
1166 if(count($members = $members_obj->getMembers()))
1168 include_once(
'./Modules/Session/classes/class.ilSessionParticipantsTableGUI.php');
1169 if($ilUser->getPref(
'sess_member_hide'))
1172 $this->ctrl->setParameter($this,
'member_hide',0);
1173 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1174 $this->lng->txt(
'show'));
1175 $this->ctrl->clearParameters($this);
1180 $this->ctrl->setParameter($this,
'member_hide',1);
1181 $table->addHeaderCommand($this->ctrl->getLinkTarget($this,
'members'),
1182 $this->lng->txt(
'hide'));
1183 $this->ctrl->clearParameters($this);
1185 $table->addCommandButton(
'updateMembers',$this->lng->txt(
'save'));
1186 $table->setTitle($this->lng->txt(
'event_tbl_members'),
'icon_usr.svg',$this->lng->txt(
'event_tbl_admins'));
1187 $table->enableRegistration($this->object->enabledRegistration());
1188 $table->setParticipants($members);
1190 $this->tpl->setVariable(
'MEMBERS',$table->getHTML());
1194 $GLOBALS[
'lng']->loadLanguageModule(
'mmbr');
1195 $this->tpl->setVariable(
'FORMACTION',$this->ctrl->getFormAction($this));
1196 $this->tpl->setVariable(
'TXT_SELECTED_USER',$this->lng->txt(
'mmbr_selected_users'));
1197 $this->tpl->setVariable(
'BTN_FOOTER_MAIL',$this->lng->txt(
'mmbr_btn_mail_selected_users'));
1211 if(isset(
$_GET[
'admin_hide']))
1213 $ilUser->writePref(
'sess_admin_hide',(
int)
$_GET[
'admin_hide']);
1215 if(isset(
$_GET[
'tutor_hide']))
1217 $ilUser->writePref(
'sess_tutor_hide',(
int)
$_GET[
'tutor_hide']);
1219 if(isset(
$_GET[
'member_hide']))
1221 $ilUser->writePref(
'sess_member_hide',(
int)
$_GET[
'member_hide']);
1242 $_POST[
'participants'] = is_array(
$_POST[
'participants']) ?
$_POST[
'participants'] : array();
1243 $_POST[
'registered'] = is_array(
$_POST[
'registered']) ?
$_POST[
'registered'] : array();
1245 include_once
'Modules/Session/classes/class.ilEventParticipants.php';
1247 $visible =
$_POST[
'visible_participants'] ?
$_POST[
'visible_participants'] : array();
1248 foreach($visible as $user)
1254 $part->setParticipated(isset(
$_POST[
'participants'][$user]) ?
true :
false);
1255 $part->setRegistered(isset(
$_POST[
'registered'][$user]) ?
true :
false);
1256 $part->updateUser();
1270 global
$tpl,$ilTabs;
1273 $ilTabs->setTabActive(
'event_edit_members');
1276 $form = $list->initForm(
'printAttendanceList');
1277 $tpl->setContent($form->getHTML());
1289 include_once
'Services/Membership/classes/class.ilAttendanceList.php';
1291 $list->setId(
'sessattlst');
1293 $event_app = $this->
object->getFirstAppointment();
1297 $desc .=
" ".$this->object->getTitle();
1298 $list->setTitle($this->lng->txt(
'sess_attendance_list'), $desc);
1300 $list->addPreset(
'mark', $this->lng->txt(
'trac_mark'),
true);
1301 $list->addPreset(
'comment', $this->lng->txt(
'trac_comment'),
true);
1302 if($this->object->enabledRegistration())
1304 $list->addPreset(
'registered', $this->lng->txt(
'event_tbl_registered'),
true);
1306 $list->addPreset(
'participated', $this->lng->txt(
'event_tbl_participated'),
true);
1307 $list->addBlank($this->lng->txt(
'sess_signature'));
1309 $list->addUserFilter(
'registered', $this->lng->txt(
'event_list_registered_only'));
1324 $list->initFromForm();
1325 $list->setCallback(array($this,
'getAttendanceListUserData'));
1327 include_once
'Modules/Session/classes/class.ilEventParticipants.php';
1330 echo $list->getFullscreenHTML();
1345 $data = $this->event_part->getUser($a_user_id);
1347 if($a_filters && $a_filters[
"registered"] && !
$data[
"registered"])
1353 $this->lng->txt(
'yes') :
1354 $this->lng->txt(
'no');
1355 $data[
'participated'] =
$data[
'participated'] ?
1356 $this->lng->txt(
'yes') :
1357 $this->lng->txt(
'no');
1373 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1375 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
1378 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_list.html',
'Modules/Session');
1379 $this->
__showButton($this->ctrl->getLinkTarget($this,
'exportCSV'),$this->lng->txt(
'event_csv_export'));
1381 include_once
'Modules/Session/classes/class.ilEventParticipants.php';
1383 $this->tpl->addBlockfile(
"EVENTS_TABLE",
"events_table",
"tpl.table.html");
1384 $this->tpl->addBlockfile(
'TBL_CONTENT',
'tbl_content',
'tpl.sess_list_row.html',
'Modules/Session');
1387 $members = $members_obj->getParticipants();
1392 $tbl->setTitle($this->lng->txt(
"event_overview"),
1394 $this->lng->txt(
'obj_usr'));
1395 $this->ctrl->setParameter($this,
'offset',(
int)
$_GET[
'offset']);
1397 $course_ref_id = $tree->checkForParentType($this->object->getRefId(),
'crs');
1399 foreach($tree->getSubtree($tree->getNodeData($course_ref_id),
false,
'sess') as $event_id)
1402 if(!is_object($tmp_event) or $tmp_event->getType() !=
'sess')
1406 $events[] = $tmp_event;
1409 $headerNames = array();
1410 $headerVars = array();
1411 $colWidth = array();
1413 $headerNames[] = $this->lng->txt(
'name');
1414 $headerVars[] =
"name";
1415 $colWidth[] =
'20%';
1417 for ($i = 1; $i <= count($events); $i++)
1419 $headerNames[] = $i;
1420 $headerVars[] =
"event_".$i;
1421 $colWidth[] = 80/count($events).
"%";
1424 $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
1425 $tbl->setHeaderNames($headerNames);
1426 $tbl->setHeaderVars($headerVars, $this->ctrl->getParameterArray($this,
'eventsList'));
1427 $tbl->setColumnWidth($colWidth);
1429 $tbl->setOrderColumn($_GET[
"sort_by"]);
1430 $tbl->setOrderDirection($_GET[
"sort_order"]);
1431 $tbl->setOffset($_GET[
"offset"]);
1432 $tbl->setLimit($ilUser->getPref(
"hits_per_page"));
1433 $tbl->setMaxCount(count($members));
1434 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
1436 $sliced_users = array_slice($members,$_GET[
'offset'],
$_SESSION[
'tbl_limit']);
1437 $tbl->disable(
'sort');
1441 foreach($sliced_users as $user_id)
1443 foreach($events as $event_obj)
1445 $this->tpl->setCurrentBlock(
"eventcols");
1450 $this->tpl->setVariable(
"IMAGE_PARTICIPATED", $event_part->hasParticipated($user_id) ?
1454 $this->tpl->setVariable(
"PARTICIPATED", $event_part->hasParticipated($user_id) ?
1455 $this->lng->txt(
'event_participated') :
1456 $this->lng->txt(
'event_not_participated'));
1459 $this->tpl->parseCurrentBlock();
1462 $this->tpl->setCurrentBlock(
"tbl_content");
1465 $this->tpl->setVariable(
"LASTNAME",$name[
'lastname']);
1466 $this->tpl->setVariable(
"FIRSTNAME",$name[
'firstname']);
1468 $this->tpl->parseCurrentBlock();
1471 $this->tpl->setVariable(
"HEAD_TXT_LEGEND", $this->lng->txt(
"legend"));
1472 $this->tpl->setVariable(
"HEAD_TXT_DIGIT", $this->lng->txt(
"event_digit"));
1473 $this->tpl->setVariable(
"HEAD_TXT_EVENT", $this->lng->txt(
"event"));
1474 $this->tpl->setVariable(
"HEAD_TXT_LOCATION", $this->lng->txt(
"event_location"));
1475 $this->tpl->setVariable(
"HEAD_TXT_DATE_TIME",$this->lng->txt(
"event_date_time"));
1477 foreach($events as $event_obj)
1479 $this->tpl->setCurrentBlock(
"legend_loop");
1480 $this->tpl->setVariable(
"LEGEND_CSS_ROW",
ilUtil::switchColor($counter++,
'tblrow1',
'tblrow2'));
1481 $this->tpl->setVariable(
"LEGEND_DIGIT", $i++);
1482 $this->tpl->setVariable(
"LEGEND_EVENT_TITLE", $event_obj->getTitle());
1483 $this->tpl->setVariable(
"LEGEND_EVENT_DESCRIPTION", $event_obj->getDescription());
1484 $this->tpl->setVariable(
"LEGEND_EVENT_LOCATION", $event_obj->getLocation());
1485 $this->tpl->setVariable(
"LEGEND_EVENT_APPOINTMENT", $event_obj->getFirstAppointment()->appointmentToString());
1486 $this->tpl->parseCurrentBlock();
1500 if(is_object($this->form))
1505 $this->lng->loadLanguageModule(
'dateplaner');
1507 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
1509 include_once(
'./Services/YUI/classes/class.ilYuiUtil.php');
1513 $this->form->setMultipart(
true);
1514 $this->form->setTableWidth(
'600px');
1515 $this->form->setFormAction($this->ctrl->getFormAction($this));
1516 $this->form->setMultipart(
true);
1526 $this->lng->loadLanguageModule(
'dateplaner');
1527 include_once
'./Services/Form/classes/class.ilDateDurationInputGUI.php';
1528 #$this->tpl->addJavaScript('./Modules/Session/js/toggle_session_time.js');
1529 $this->tpl->addJavaScript(
'./Services/Form/js/date_duration.js');
1531 $dur->
setStartText($this->lng->txt(
'event_start_date'));
1532 $dur->setEndText($this->lng->txt(
'event_end_date'));
1533 $dur->enableToggleFullTime(
1534 $this->lng->txt(
'event_fulltime_info'),
1535 $this->
object->getFirstAppointment()->enabledFulltime() ?
true : false
1537 $dur->setShowTime(
true);
1538 $dur->setStart($this->object->getFirstAppointment()->getStart());
1539 $dur->setEnd($this->object->getFirstAppointment()->getEnd());
1541 $this->form->addItem($dur);
1560 if($a_mode ==
'create')
1562 if(!is_object($this->rec))
1564 include_once(
'./Modules/Session/classes/class.ilEventRecurrence.php');
1567 include_once(
'./Services/Calendar/classes/Form/class.ilRecurrenceInputGUI.php');
1570 $rec->setRecurrence($this->rec);
1571 $this->form->addItem($rec);
1575 $lp->
setInfo($this->lng->txt(
"sess_lp_preset_info"));
1576 $lp->setChecked(
true);
1577 $this->form->addItem($lp);
1581 $section->setTitle($this->lng->txt(
'event_section_information'));
1585 $title =
new ilTextInputGUI($this->lng->txt(
'event_title'),
'title');
1586 $title->
setValue($this->object->getTitle());
1587 $title->setSize(50);
1588 $title->setMaxLength(70);
1589 $this->form->addItem($title);
1593 $desc->
setValue($this->object->getLongDescription());
1596 $this->form->addItem($desc);
1600 $desc->
setValue($this->object->getLocation());
1603 $this->form->addItem($desc);
1606 $details =
new ilTextAreaInputGUI($this->lng->txt(
'event_details_workflow'),
'details');
1607 $details->
setValue($this->object->getDetails());
1608 $details->setCols(50);
1609 $details->setRows(4);
1610 $this->form->addItem($details);
1614 $section->setTitle($this->lng->txt(
'event_tutor_data'));
1618 $tutor_name =
new ilTextInputGUI($this->lng->txt(
'tutor_name'),
'tutor_name');
1619 $tutor_name->
setValue($this->object->getName());
1620 $tutor_name->setSize(20);
1621 $tutor_name->setMaxLength(70);
1622 $this->form->addItem($tutor_name);
1625 $tutor_email =
new ilTextInputGUI($this->lng->txt(
'tutor_email'),
'tutor_email');
1626 $tutor_email->
setValue($this->object->getEmail());
1627 $tutor_email->setSize(20);
1628 $tutor_email->setMaxLength(70);
1629 $this->form->addItem($tutor_email);
1632 $tutor_phone =
new ilTextInputGUI($this->lng->txt(
'tutor_phone'),
'tutor_phone');
1633 $tutor_phone->
setValue($this->object->getPhone());
1634 $tutor_phone->setSize(20);
1635 $tutor_phone->setMaxLength(70);
1636 $this->form->addItem($tutor_phone);
1639 $section->setTitle($this->lng->txt(
'sess_section_reg'));
1642 include_once
'./Modules/Session/classes/class.ilSessionMembershipRegistrationSettingsGUI.php';
1643 include_once
'./Services/Membership/classes/class.ilMembershipRegistrationSettings.php';
1654 $reg_settings->addMembershipFormElements($this->form,
'');
1658 $section->setTitle($this->lng->txt(
'event_assign_files'));
1662 $files->setFilenames(array(0 =>
''));
1663 $this->form->addItem(
$files);
1668 $this->form->setTitle($this->lng->txt(
'event_table_create'));
1670 $this->form->addCommandButton(
'save',$this->lng->txt(
'event_btn_add'));
1671 $this->form->addCommandButton(
'saveAndAssignMaterials',$this->lng->txt(
'event_btn_add_edit'));
1672 $this->form->addCommandButton(
'cancelEdit',$this->lng->txt(
'cancel'));
1677 $this->form->setTitle($this->lng->txt(
'event_table_update'));
1679 $this->form->addCommandButton(
'update',$this->lng->txt(
'save'));
1680 $this->form->addCommandButton(
'cancelEdit',$this->lng->txt(
'cancel'));
1698 $this->
object->getFirstAppointment()->setStartingTime($this->
__toUnix(
$_POST[
'event'][
'start'][
'date'],
$_POST[
'event'][
'start'][
'time']));
1699 $this->
object->getFirstAppointment()->setEndingTime($this->
__toUnix(
$_POST[
'event'][
'end'][
'date'],
$_POST[
'event'][
'end'][
'time']));
1700 $this->
object->getFirstAppointment()->toggleFullTime((
bool)
$_POST[
'event'][
'fulltime']);
1702 include_once(
'./Services/Calendar/classes/class.ilDate.php');
1703 if($this->object->getFirstAppointment()->isFullday())
1705 $start =
new ilDate($_POST[
'event'][
'start'][
'date'][
'y'].
'-'.$_POST[
'event'][
'start'][
'date'][
'm'].
'-'.$_POST[
'event'][
'start'][
'date'][
'd'],
1707 $this->
object->getFirstAppointment()->setStart($start);
1709 $end =
new ilDate($_POST[
'event'][
'end'][
'date'][
'y'].
'-'.$_POST[
'event'][
'end'][
'date'][
'm'].
'-'.$_POST[
'event'][
'end'][
'date'][
'd'],
1711 $this->
object->getFirstAppointment()->setEnd($end);
1715 $start_dt[
'year'] = (int) $_POST[
'event'][
'start'][
'date'][
'y'];
1716 $start_dt[
'mon'] = (int) $_POST[
'event'][
'start'][
'date'][
'm'];
1717 $start_dt[
'mday'] = (int) $_POST[
'event'][
'start'][
'date'][
'd'];
1718 $start_dt[
'hours'] = (int) $_POST[
'event'][
'start'][
'time'][
'h'];
1719 $start_dt[
'minutes'] = (int) $_POST[
'event'][
'start'][
'time'][
'm'];
1722 $this->
object->getFirstAppointment()->setStart($start);
1724 $end_dt[
'year'] = (int) $_POST[
'event'][
'end'][
'date'][
'y'];
1725 $end_dt[
'mon'] = (int) $_POST[
'event'][
'end'][
'date'][
'm'];
1726 $end_dt[
'mday'] = (int) $_POST[
'event'][
'end'][
'date'][
'd'];
1727 $end_dt[
'hours'] = (int) $_POST[
'event'][
'end'][
'time'][
'h'];
1728 $end_dt[
'minutes'] = (int) $_POST[
'event'][
'end'][
'time'][
'm'];
1730 $this->
object->getFirstAppointment()->setEnd($end);
1741 $this->
object->setRegistrationType((
int) $_POST[
'registration_type']);
1742 $this->
object->setRegistrationMaxUsers((
int) $_POST[
'registration_max_members']);
1743 $this->
object->enableRegistrationUserLimit((
int) $_POST[
'registration_membership_limited']);
1744 $this->
object->enableRegistrationWaitingList((
int) $_POST[
'waiting_list']);
1755 include_once(
'./Modules/Session/classes/class.ilSessionRecurrence.php');
1758 switch(
$_POST[
'frequence'])
1761 $this->rec->setFrequenceType(
$_POST[
'frequence']);
1762 $this->rec->setInterval((
int)
$_POST[
'count_DAILY']);
1766 $this->rec->setFrequenceType($_POST[
'frequence']);
1767 $this->rec->setInterval((
int) $_POST[
'count_WEEKLY']);
1768 if(is_array($_POST[
'byday_WEEKLY']))
1775 $this->rec->setFrequenceType($_POST[
'frequence']);
1776 $this->rec->setInterval((
int) $_POST[
'count_MONTHLY']);
1777 switch((
int) $_POST[
'subtype_MONTHLY'])
1784 switch((
int) $_POST[
'monthly_byday_day'])
1788 $this->rec->setBYSETPOS((
int) $_POST[
'monthly_byday_num']);
1789 $this->rec->setBYDAY(
'MO,TU,WE,TH,FR');
1794 $this->rec->setBYMONTHDAY((
int) $_POST[
'monthly_byday_num']);
1798 $this->rec->setBYDAY((
int) $_POST[
'monthly_byday_num'].$_POST[
'monthly_byday_day']);
1804 $this->rec->setBYMONTHDAY((
int) $_POST[
'monthly_bymonthday']);
1810 $this->rec->setFrequenceType($_POST[
'frequence']);
1811 $this->rec->setInterval((
int) $_POST[
'count_YEARLY']);
1812 switch((
int) $_POST[
'subtype_YEARLY'])
1819 $this->rec->setBYMONTH((
int) $_POST[
'yearly_bymonth_byday']);
1820 $this->rec->setBYDAY((
int) $_POST[
'yearly_byday_num'].$_POST[
'yearly_byday']);
1824 $this->rec->setBYMONTH((
int) $_POST[
'yearly_bymonth_by_monthday']);
1825 $this->rec->setBYMONTHDAY((
int) $_POST[
'yearly_bymonthday']);
1832 switch((
int)
$_POST[
'until_type'])
1835 $this->rec->setFrequenceUntilDate(null);
1840 $this->rec->setFrequenceUntilDate(null);
1841 $this->rec->setFrequenceUntilCount((
int) $_POST[
'count']);
1845 $end_dt[
'year'] = (int) $_POST[
'until_end'][
'date'][
'y'];
1846 $end_dt[
'mon'] = (int) $_POST[
'until_end'][
'date'][
'm'];
1847 $end_dt[
'mday'] = (int) $_POST[
'until_end'][
'date'][
'd'];
1849 $this->rec->setFrequenceUntilCount(0);
1865 return mktime($time[
'h'],$time[
'm'],0,$date[
'm'],$date[
'd'],$date[
'y']);
1878 if (is_object($this->
object))
1881 include_once
'./Modules/Session/classes/class.ilSessionAppointment.php';
1882 $title = strlen($this->object->getTitle()) ? (
': '.$this->object->getTitle()) :
'';
1883 $title = $this->
object->getFirstAppointment()->appointmentToString().$title;
1885 $ilLocator->addItem($title, $this->ctrl->getLinkTarget($this,
"infoScreen"),
"",
$_GET[
"ref_id"]);
1899 $ilHelp->setScreenIdComponent(
"sess");
1901 $parent_id = $tree->getParentId($this->object->getRefId());
1906 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $parent_id);
1907 $tabs_gui->setBackTarget($this->lng->txt(
'back_to_'.$parent_type.
'_content'),
1908 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
""));
1909 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
1911 $tabs_gui->addTarget(
'info_short',
1912 $this->ctrl->getLinkTarget($this,
'infoScreen'));
1914 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1916 $tabs_gui->addTarget(
'settings',
1917 $this->ctrl->getLinkTarget($this,
'edit'));
1918 $tabs_gui->addTarget(
'crs_materials',
1919 $this->ctrl->getLinkTarget($this,
'materials'));
1920 $tabs_gui->addTarget(
'event_edit_members',
1921 $this->ctrl->getLinkTarget($this,
'members'));
1925 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
1928 $tabs_gui->addTarget(
'learning_progress',
1929 $this->ctrl->getLinkTargetByClass(array(
'ilobjsessiongui',
'illearningprogressgui'),
''),
1931 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui'));
1935 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
1937 $ilTabs->addTarget(
"export",
1938 $this->ctrl->getLinkTargetByClass(
"ilexportgui",
""),
"",
"ilexportgui");
1943 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
1945 $tabs_gui->addTarget(
"perm_settings",
1946 $this->ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1959 include_once
'./Modules/Session/classes/class.ilEventItems.php';
1960 $event_items =
new ilEventItems($this->object->getId());
1962 $event_items->update();
1975 $GLOBALS[
'ilCtrl']->setReturn($this,
'members');
1976 $GLOBALS[
'ilCtrl']->setCmdClass(
'ilmembershipgui');
1977 include_once
'./Services/Membership/classes/class.ilMembershipGUI.php';
1979 $GLOBALS[
'ilCtrl']->forwardCommand($mem);
1987 $tmp_data = array();
1988 foreach ($a_usr_ids as $usr_id)
1990 $tmp_data[$usr_id] = array();
2006 if(!count(
$_POST[
"waiting"]))
2013 include_once(
'./Modules/Session/classes/class.ilSessionWaitingList.php');
2016 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
2020 foreach(
$_POST[
"waiting"] as $user_id)
2023 $waiting_list->removeFromList($user_id);
2025 include_once
'./Modules/Session/classes/class.ilSessionMembershipMailNotification.php';
2027 $noti->setRefId($this->object->getRefId());
2028 $noti->setRecipients(array($user_id));
2044 $this->searchObject();
2059 if(!count(
$_POST[
'waiting']))
2066 include_once(
'./Modules/Session/classes/class.ilSessionWaitingList.php');
2069 foreach(
$_POST[
"waiting"] as $user_id)
2073 include_once
'./Modules/Session/classes/class.ilSessionMembershipMailNotification.php';
2075 $noti->setRefId($this->object->getRefId());
2076 $noti->setRecipients(array($user_id));
2099 if(!count(
$_POST[
'subscribers']))
2106 include_once
'./Services/Membership/classes/class.ilParticipants.php';
2109 foreach(
$_POST[
'subscribers'] as $usr_id)
2111 $part->add($usr_id);
2112 $part->deleteSubscriber($usr_id);
2114 include_once
'./Modules/Session/classes/class.ilSessionMembershipMailNotification.php';
2116 $noti->setRefId($this->object->getRefId());
2117 $noti->setRecipients(array($usr_id));
2122 $this->ctrl->redirect($this,
'members');
2138 if(!count(
$_POST[
'subscribers']))
2145 include_once
'./Services/Membership/classes/class.ilParticipants.php';
2147 foreach(
$_POST[
'subscribers'] as $usr_id)
2149 $part->deleteSubscriber($usr_id);
2151 include_once
'./Modules/Session/classes/class.ilSessionMembershipMailNotification.php';
2153 $noti->setRefId($this->object->getRefId());
2154 $noti->setRecipients(array($usr_id));
2169 if(!$this->container_ref_id)
2178 if(!is_array(
$_POST[
"subscribers"]))
2186 $this->lng->loadLanguageModule(
'mmbr');
2189 $this->tabs_gui->setTabActive(
'event_edit_members');
2191 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
2195 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"refuseSubscribers"));
2196 $c_gui->setHeaderText($this->lng->txt(
"info_refuse_sure"));
2197 $c_gui->setCancel($this->lng->txt(
"cancel"),
"members");
2198 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"refuseSubscribers");
2200 foreach(
$_POST[
"subscribers"] as $subscribers)
2204 $c_gui->addItem(
'subscribers[]',
2206 $name[
'lastname'].
', '.$name[
'firstname'].
' ['.$name[
'login'].
']',
2210 $this->tpl->setContent($c_gui->getHTML());
2216 if(!is_array(
$_POST[
"subscribers"]))
2224 $this->tabs_gui->setTabActive(
'event_edit_members');
2226 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
2230 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"assignSubscribers"));
2231 $c_gui->setHeaderText($this->lng->txt(
"info_assign_sure"));
2232 $c_gui->setCancel($this->lng->txt(
"cancel"),
"members");
2233 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"assignSubscribers");
2235 foreach(
$_POST[
"subscribers"] as $subscribers)
2239 $c_gui->addItem(
'subscribers[]',
2241 $name[
'lastname'].
', '.$name[
'firstname'].
' ['.$name[
'login'].
']',
2245 $this->tpl->setContent($c_gui->getHTML());
2251 if(!is_array(
$_POST[
"waiting"]))
2259 $this->lng->loadLanguageModule(
'mmbr');
2262 $this->tabs_gui->setTabActive(
'event_edit_members');
2264 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
2268 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"refuseFromList"));
2269 $c_gui->setHeaderText($this->lng->txt(
"info_refuse_sure"));
2270 $c_gui->setCancel($this->lng->txt(
"cancel"),
"members");
2271 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"refuseFromList");
2273 foreach(
$_POST[
"waiting"] as $waiting)
2277 $c_gui->addItem(
'waiting[]',
2279 $name[
'lastname'].
', '.$name[
'firstname'].
' ['.$name[
'login'].
']',
2283 $this->tpl->setContent($c_gui->getHTML());
2289 if(!is_array(
$_POST[
"waiting"]))
2297 $this->tabs_gui->setTabActive(
'event_edit_members');
2299 include_once(
"Services/Utilities/classes/class.ilConfirmationGUI.php");
2303 $c_gui->setFormAction($this->ctrl->getFormAction($this,
"assignFromWaitingList"));
2304 $c_gui->setHeaderText($this->lng->txt(
"info_assign_sure"));
2305 $c_gui->setCancel($this->lng->txt(
"cancel"),
"members");
2306 $c_gui->setConfirm($this->lng->txt(
"confirm"),
"assignFromWaitingList");
2308 foreach(
$_POST[
"waiting"] as $waiting)
2312 $c_gui->addItem(
'waiting[]',
2314 $name[
'lastname'].
', '.$name[
'firstname'].
' ['.$name[
'login'].
']',
2318 $this->tpl->setContent($c_gui->getHTML());
2325 $parent_id = $tree->getParentId($this->object->getRefId());
2326 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $parent_id);
2327 $ilCtrl->redirectByClass(
"ilrepositorygui",
"");