24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php');
61 parent::__construct($a_parent_obj,$a_parent_cmd);
62 $this->
addColumn($this->lng->txt(
'ecs_participants'),
'participants',
"35%");
63 $this->
addColumn($this->lng->txt(
'ecs_participants_infos'),
'infos',
"35%");
64 $this->
addColumn($this->lng->txt(
'ecs_tbl_export'),
'export',
'5%');
65 $this->
addColumn($this->lng->txt(
'ecs_tbl_import'),
'import',
'5%');
66 $this->
addColumn($this->lng->txt(
'ecs_tbl_import_type'),
'type',
'10%');
68 if($ilAccess->checkAccess(
'write',
'',$_REQUEST[
"ref_id"]))
74 $this->
setRowTemplate(
"tpl.participant_row.html",
"Services/WebServices/ECS");
102 $this->tpl->setVariable(
'S_ID', $this->
getServer()->getServerId());
103 $this->tpl->setVariable(
'M_ID', $a_set[
'mid']);
104 $this->tpl->setVariable(
'VAL_ID', $this->
getServer()->getServerId().
'_'.$a_set[
'mid']);
105 $this->tpl->setVariable(
'VAL_ORG', (
string) $a_set[
'org']);
106 $this->tpl->setVariable(
'VAL_CHECKED',$a_set[
'checked'] ?
'checked="checked"' :
'');
107 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'participants']);
108 $this->tpl->setVariable(
'VAL_DESC',$a_set[
'description']);
109 $this->tpl->setVariable(
'VAL_EMAIL',$a_set[
'email']);
110 $this->tpl->setVariable(
'VAL_DNS',$a_set[
'dns']);
111 $this->tpl->setVariable(
'VAL_ABR',$a_set[
'abr']);
112 $this->tpl->setVariable(
'TXT_EMAIL',$this->lng->txt(
'ecs_email'));
113 $this->tpl->setVariable(
'TXT_DNS',$this->lng->txt(
'ecs_dns'));
114 $this->tpl->setVariable(
'TXT_ABR',$this->lng->txt(
'ecs_abr'));
115 $this->tpl->setVariable(
'TXT_ID',$this->lng->txt(
'ecs_unique_id'));
116 $this->tpl->setVariable(
'TXT_ORG', $this->lng->txt(
'organization'));
118 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSetting.php';
122 if($part->isExportEnabled())
124 foreach($part->getExportTypes() as $obj_type)
126 $this->tpl->setCurrentBlock(
'obj_erow');
127 $this->tpl->setVariable(
'TXT_OBJ_EINFO',$this->lng->txt(
'objs_'.$obj_type));
128 $this->tpl->parseCurrentBlock();
133 $this->lng->loadLanguageModule(
'administration');
134 $this->tpl->setVariable(
'TXT_OBJ_EINFO',$this->lng->txt(
'disabled'));
137 if($part->isImportEnabled())
139 foreach($part->getImportTypes() as $obj_type)
141 $this->tpl->setCurrentBlock(
'obj_irow');
142 $this->tpl->setVariable(
'TXT_OBJ_IINFO',$this->lng->txt(
'objs_'.$obj_type));
143 $this->tpl->parseCurrentBlock();
148 $this->lng->loadLanguageModule(
'administration');
149 $this->tpl->setVariable(
'TXT_OBJ_IINFO',$this->lng->txt(
'disabled'));
153 $part->getImportType(),
154 'import_type['.$this->getServer()->getServerId().
']['.$a_set[
'mid'].
']',
163 $this->tpl->setVariable(
'IMPORT_SEL', $sel);
165 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
167 $list->setItemLinkClass(
'small');
168 $list->setSelectionHeaderClass(
'small');
169 $list->setId(
'actl_'.$a_set[
'server_id'].
'_'.$a_set[
'mid']);
170 $list->setListTitle($this->lng->txt(
'actions'));
175 $this->lng->txt(
'edit'),
177 $ilCtrl->getLinkTargetByClass(
'ilecsparticipantsettingsgui',
'settings')
180 switch($part->getImportType())
191 $this->lng->txt(
'ecs_crs_alloc_set'),
193 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cStart')
203 $this->lng->txt(
'ecs_dir_alloc_set'),
205 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'dStart')
208 $this->lng->txt(
'ecs_crs_alloc_set'),
210 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cStart')
215 if($ilAccess->checkAccess(
'write',
'',$_REQUEST[
"ref_id"]))
217 $this->tpl->setCurrentBlock(
"actions");
218 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
219 $this->tpl->parseCurrentBlock();
231 public function parse($a_participants)
233 foreach($a_participants as $participant)
235 $tmp_arr[
'mid'] = $participant->getMID();
236 $tmp_arr[
'participants'] = $participant->getParticipantName();
237 $tmp_arr[
'description'] = $participant->getDescription();
238 $tmp_arr[
'email'] = $participant->getEmail();
239 $tmp_arr[
'dns'] = $participant->getDNS();
243 $tmp_arr[
'abr'] = $participant->getOrganisation()->getAbbreviation();
244 $tmp_arr[
'org'] = $participant->getOrganisation()->getName();
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getServerId()
Get current server id.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.
disable($a_module_name)
diesables particular modules of table
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.