31 $this->lng->loadLanguageModule(
'search');
32 $this->lng->loadLanguageModule(
'payment');
34 $ilMainMenu->setActive(
'shop');
39 $this->tpl->getStandardTemplate();
41 $this->tpl->setTitleIcon(
ilUtil::getImagePath(
"icon_pays_cart_b.gif"), $this->lng->txt(
"search"));
42 $this->tpl->setTitle($this->lng->txt(
"shop"));
49 protected function addPager($result, $a_session_key)
53 if(count($result->getResults()) < $result->getMaxHits())
58 if($result->getResultPageNumber() > 1)
60 $this->ctrl->setParameter($this,
'page_number', $result->getResultPageNumber() - 1);
61 $this->tpl->setCurrentBlock(
'prev');
62 $this->tpl->setVariable(
'PREV_LINK',$this->ctrl->getLinkTarget($this,
'performSearch'));
63 $this->tpl->setVariable(
'TXT_PREV',$this->lng->txt(
'search_page_prev'));
64 $this->tpl->parseCurrentBlock();
66 for($i = 0; $i < ceil(count($result->getResults()) / $result->getMaxHits()); $i++)
68 if($i + 1 == $result->getResultPageNumber())
70 $this->tpl->setCurrentBlock(
'pages_link');
71 $this->tpl->setVariable(
'NUMBER', $i + 1);
72 $this->tpl->parseCurrentBlock();
76 $this->ctrl->setParameter($this,
'page_number', $i + 1);
77 $link =
'<a href="'.$this->ctrl->getLinkTarget($this,
'performSearch').
'">'.($i + 1).
'</a> ';
78 $this->tpl->setCurrentBlock(
'pages_link');
79 $this->tpl->setVariable(
'NUMBER',$link);
80 $this->tpl->parseCurrentBlock();
83 if($result->getResultPageNumber() < ceil(count($result->getResults()) / $result->getMaxHits()))
85 $this->tpl->setCurrentBlock(
'next');
86 $this->ctrl->setParameter($this,
'page_number', $result->getResultPageNumber() + 1);
87 $this->tpl->setVariable(
'NEXT_LINK',$this->ctrl->getLinkTarget($this,
'performSearch'));
88 $this->tpl->setVariable(
'TXT_NEXT',$this->lng->txt(
'search_page_next'));
89 $this->tpl->parseCurrentBlock();
92 $this->tpl->setCurrentBlock(
'prev_next');
93 $this->tpl->setVariable(
'SEARCH_PAGE',$this->lng->txt(
'search_page'));
94 $this->tpl->parseCurrentBlock();
96 $this->ctrl->clearParameters($this);
101 global $ilUser, $ilTabs;
109 $ilTabs->addSubTabTarget(
'bookings', $this->ctrl->getLinkTargetByClass(
'ilpaymentstatisticgui'),
'',
'',
'');
114 $ilTabs->addSubTabTarget(
'paya_object', $this->ctrl->getLinkTargetByClass(
'ilpaymentobjectgui'),
'',
'',
'');
119 $ilTabs->addSubTabTarget(
'paya_trustees', $this->ctrl->getLinkTargetByClass(
'ilpaymenttrusteegui'),
'',
'',
'');
121 if(!(
bool) $this->oGeneralSettings->get(
'hide_coupons'))
126 $ilTabs->addSubTabTarget(
'paya_coupons_coupons', $this->ctrl->getLinkTargetByClass(
'ilpaymentcoupongui'),
'',
'',
'');
138 $this->section = $a_section;
146 $this->sub_section = $a_sub_section;
153 protected function showButton($a_cmd, $a_text, $a_target =
'')
157 $ilToolbar->addButton($a_text, $this->ctrl->getLinkTarget($this, $a_cmd), $a_target);
162 include_once
'./Services/Table/classes/class.ilTableGUI.php';
169 $offset = (int)
$_GET[
'offset'];
170 $order =
$_GET[
'sort_by'];
171 $direction =
$_GET[
'sort_order'];
173 $tbl->setOrderColumn($order,$a_default_order_column);
174 $tbl->setOrderDirection($direction);
175 $tbl->setOffset($offset);
176 $tbl->setLimit((
int)
$_GET[
'limit']);
177 $tbl->setMaxCount(count($result_set));
178 $tbl->setFooter(
'tblfooter', $this->lng->txt(
'previous'), $this->lng->txt(
'next'));
179 $tbl->setData($result_set);