4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
19 public function __construct($a_parent_obj, $a_parent_cmd =
"")
21 $this->
setId(
'ecs_server_list');
30 $this->
setTitle($this->lng->txt(
'ecs_available_ecs'));
31 $this->
setRowTemplate(
'tpl.ecs_server_row.html',
'Services/WebServices/ECS');
33 $this->
addColumn($this->lng->txt(
'ecs_tbl_active'),
'',
'1%');
34 $this->
addColumn($this->lng->txt(
'title'),
'',
'80%');
35 $this->
addColumn($this->lng->txt(
'actions'),
'',
'19%');
47 $ilCtrl->setParameter($this->
getParentObject(),
'server_id',$set[
'server_id']);
48 $ilCtrl->setParameterByClass(
'ilecsmappingsettingsgui',
'server_id',$set[
'server_id']);
53 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_activated'));
58 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_inactivated'));
62 $this->tpl->setVariable(
'LINK_EDIT', $ilCtrl->getLinkTarget($this->getParentObject(),
'edit'));
63 $this->tpl->setVariable(
'TXT_SRV_ADDR', $this->lng->txt(
'ecs_server_addr'));
71 $this->tpl->setVariable(
'VAL_DESC', $this->lng->txt(
'ecs_not_configured'));
77 $this->tpl->setVariable(
'TXT_CERT_VALID', $this->lng->txt(
'ecs_cert_valid_until'));
82 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
84 $list->setSelectionHeaderClass(
'small');
85 $list->setItemLinkClass(
'small');
86 $list->setId(
'actl_'.$set[
'server_id']);
87 $list->setListTitle($this->lng->txt(
'actions'));
91 $list->addItem($this->lng->txt(
'ecs_deactivate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'deactivate'));
95 $list->addItem($this->lng->txt(
'ecs_activate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'activate'));
98 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'edit'));
99 $list->addItem($this->lng->txt(
'copy'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'cp'));
100 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'delete'));
101 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
115 $tmp[
'server_id'] =
$server->getServerId();
116 $tmp[
'active'] =
$server->isEnabled();