public function showTopicsList() { $this->tpl->addBlockFile('ADM_CONTENT', 'adm_content', 'tpl.main_view.html', 'Services/Payment'); if ($this->ask_for_deletion) { include_once 'Services/Utilities/classes/class.ilConfirmationGUI.php'; $c_gui = new ilConfirmationGUI(); $c_gui->setFormAction($this->ctrl->getFormAction($this, 'performDeleteTopic')); $c_gui->setHeaderText($this->lng->txt('sure_delete_topics')); $c_gui->setCancel($this->lng->txt('cancel'), 'showTopicsList'); $c_gui->setConfirm($this->lng->txt('confirm'), 'performDeleteTopic'); foreach ($_POST['topic_id'] as $topic_id) { $c_gui->addItem('topic_id[]', $topic_id, ilShopTopic::_lookupTitle($topic_id)); } $this->tpl->setVariable('CONFIRMATION', $c_gui->getHTML()); return true; } include_once 'Services/Payment/classes/class.ilShopTopicsTableGUI.php'; $table_gui = new ilShopTopicsTableGUI($this, 'showTopicsList'); $table_gui->setTitle($this->lng->txt('topics')); ilShopTopics::_getInstance()->setSortingType(ilShopTopics::TOPICS_SORT_MANUALLY); ilShopTopics::_getInstance()->setSortingDirection('ASC'); ilShopTopics::_getInstance()->read(); $table_gui->parseRecords(ilShopTopics::_getInstance()->getTopics()); $table_gui->addCommandButton('showTopicForm', $this->lng->txt('add')); $table_gui->addCommandButton('saveSorting', $this->lng->txt('pay_save_sorting')); $this->tpl->setVariable('TABLE', $table_gui->getHTML()); return true; }