4 include_once
'Services/Payment/classes/class.ilShopBaseGUI.php';
26 if(!(
bool)$this->oGeneralSettings->get(
'topics_allow_custom_sorting'))
28 $ilCtrl->redirectByClass(
'ilshopgui',
'',
'',
false,
false);
31 if(ANONYMOUS_USER_ID == $ilUser->getId())
33 $ilErr->raiseError($this->lng->txt(
'permission_denied'), $ilErr->MESSAGE);
36 $next_class = $this->ctrl->getNextClass($this);
37 $cmd = $this->ctrl->getCmd();
44 $cmd =
'showTopicsSortingTable';
59 $ilTabs->setTabActive(
'pay_personal_settings');
64 if(count(
$_POST[
'sorting']))
66 foreach(
$_POST[
'sorting'] as $topic_id => $sorting_value)
69 $oTopic->setCustomSorting((
int)$sorting_value);
70 $oTopic->saveCustomSorting();
81 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.main_view.html',
'Services/Payment');
83 include_once
'Services/Payment/classes/class.ilShopPersonalSettingsTopicsTableGUI.php';
85 $table_gui->setTitle($this->lng->txt(
'pay_manual_sorting_of_topics'));
91 $table_gui->addCommandButton(
'saveSorting', $this->lng->txt(
'pay_save_sorting'));
93 $this->tpl->setVariable(
'TABLE', $table_gui->getHTML());