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'));
84 $this->tpl->setCurrentBlock(
'invalid');
86 $this->tpl->parseCurrentBlock();
90 $this->tpl->setCurrentBlock(
'valid');
92 $this->tpl->parseCurrentBlock();
97 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
99 $list->setSelectionHeaderClass(
'small');
100 $list->setItemLinkClass(
'small');
101 $list->setId(
'actl_'.$set[
'server_id']);
102 $list->setListTitle($this->lng->txt(
'actions'));
106 $list->addItem($this->lng->txt(
'ecs_deactivate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'deactivate'));
110 $list->addItem($this->lng->txt(
'ecs_activate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'activate'));
113 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'edit'));
114 $list->addItem($this->lng->txt(
'copy'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'cp'));
115 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'delete'));
116 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
130 $tmp[
'server_id'] =
$server->getServerId();
131 $tmp[
'active'] =
$server->isEnabled();