/**
  * Show released materials 
  *
  * @access protected
  * @return
  */
 protected function released()
 {
     global $ilUser, $ilToolbar;
     $this->tabs_gui->setSubTabActive('ecs_released');
     if ($this->settings->isEnabled()) {
         $ilToolbar->addButton($this->lng->txt('ecs_read_remote_links'), $this->ctrl->getLinkTarget($this, 'readAll'));
         $ilToolbar->addSeparator();
     }
     $sel_type = $_REQUEST["otype"];
     if (!$sel_type) {
         $sel_type = "rcrs";
     }
     include "Services/WebServices/ECS/classes/class.ilECSUtils.php";
     $options = ilECSUtils::getPossibleReleaseTypes(true);
     include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $sel = new ilSelectInputGUI("", "otype");
     $sel->setOptions($options);
     $sel->setValue($sel_type);
     $ilToolbar->addInputItem($sel);
     $ilToolbar->setFormAction($this->ctrl->getFormAction($this, "released"));
     $ilToolbar->addFormButton($this->lng->txt("submit"), "released");
     include_once './Services/WebServices/ECS/classes/class.ilECSExport.php';
     $exported = ilECSExport::getExportedIdsByType($sel_type);
     if (count($exported)) {
         $ilToolbar->addSeparator();
         $ilToolbar->addButton($this->lng->txt('csv_export'), $this->ctrl->getLinkTarget($this, 'exportReleased'));
     }
     include_once 'Services/WebServices/ECS/classes/class.ilECSReleasedContentTableGUI.php';
     $table_gui = new ilECSReleasedContentTableGUI($this, 'released');
     $table_gui->setTitle($this->lng->txt('ecs_released_content'));
     $table_gui->parse($exported);
     $this->tpl->setContent($table_gui->getHTML());
     return true;
 }