29 $this->lng->loadLanguageModule(
'search');
30 $this->lng->loadLanguageModule(
'payment');
32 $ilMainMenu->setActive(
'shop');
37 $this->tpl->getStandardTemplate();
39 $this->tpl->setTitleIcon(
ilUtil::getImagePath(
"icon_pays_cart_b.png"), $this->lng->txt(
"search"));
40 $this->tpl->setTitle($this->lng->txt(
"shop"));
54 if(
$result->getResultPageNumber() > 1)
56 $this->ctrl->setParameter($this,
'page_number',
$result->getResultPageNumber() - 1);
57 $this->tpl->setCurrentBlock(
'prev');
58 $this->tpl->setVariable(
'PREV_LINK',$this->ctrl->getLinkTarget($this,
'performSearch'));
59 $this->tpl->setVariable(
'TXT_PREV',$this->lng->txt(
'search_page_prev'));
60 $this->tpl->parseCurrentBlock();
62 for($i = 0; $i < ceil(count(
$result->getResults()) /
$result->getMaxHits()); $i++)
64 if($i + 1 ==
$result->getResultPageNumber())
66 $this->tpl->setCurrentBlock(
'pages_link');
67 $this->tpl->setVariable(
'NUMBER', $i + 1);
68 $this->tpl->parseCurrentBlock();
72 $this->ctrl->setParameter($this,
'page_number', $i + 1);
73 $link =
'<a href="'.$this->ctrl->getLinkTarget($this,
'performSearch').
'">'.($i + 1).
'</a> ';
74 $this->tpl->setCurrentBlock(
'pages_link');
75 $this->tpl->setVariable(
'NUMBER',$link);
76 $this->tpl->parseCurrentBlock();
81 $this->tpl->setCurrentBlock(
'next');
82 $this->ctrl->setParameter($this,
'page_number',
$result->getResultPageNumber() + 1);
83 $this->tpl->setVariable(
'NEXT_LINK',$this->ctrl->getLinkTarget($this,
'performSearch'));
84 $this->tpl->setVariable(
'TXT_NEXT',$this->lng->txt(
'search_page_next'));
85 $this->tpl->parseCurrentBlock();
88 $this->tpl->setCurrentBlock(
'prev_next');
89 $this->tpl->setVariable(
'SEARCH_PAGE',$this->lng->txt(
'search_page'));
90 $this->tpl->parseCurrentBlock();
92 $this->ctrl->clearParameters($this);
102 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
105 $ilTabs->addSubTabTarget(
'bookings', $this->ctrl->getLinkTargetByClass(
'ilpaymentstatisticgui'),
'',
'',
'');
107 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
110 $ilTabs->addSubTabTarget(
'paya_object', $this->ctrl->getLinkTargetByClass(
'ilpaymentobjectgui'),
'',
'',
'');
113 if(ilPaymentVendors::_isVendor($ilUser->getId()))
115 $ilTabs->addSubTabTarget(
'paya_trustees', $this->ctrl->getLinkTargetByClass(
'ilpaymenttrusteegui'),
'',
'',
'');
117 if(!(
bool) $this->oGeneralSettings->get(
'hide_coupons'))
119 if(ilPaymentVendors::_isVendor($ilUser->getId()) ||
122 $ilTabs->addSubTabTarget(
'paya_coupons_coupons', $this->ctrl->getLinkTargetByClass(
'ilpaymentcoupongui'),
'',
'',
'');
134 $this->section = $a_section;
142 $this->sub_section = $a_sub_section;
149 protected function showButton($a_cmd, $a_text, $a_target =
'')
153 $ilToolbar->addButton($a_text, $this->ctrl->getLinkTarget($this, $a_cmd), $a_target);
158 include_once
'./Services/Table/classes/class.ilTableGUI.php';
165 $offset = (int)
$_GET[
'offset'];
166 $order =
$_GET[
'sort_by'];
167 $direction =
$_GET[
'sort_order'];
169 $tbl->setOrderColumn($order,$a_default_order_column);
170 $tbl->setOrderDirection($direction);
171 $tbl->setOffset($offset);
172 $tbl->setLimit((
int)
$_GET[
'limit']);
173 $tbl->setMaxCount(count($result_set));
174 $tbl->setFooter(
'tblfooter', $this->lng->txt(
'previous'), $this->lng->txt(
'next'));
175 $tbl->setData($result_set);