23 include_once
"./payment/classes/class.ilPaymentVendors.php";
49 $this->tabs_gui =& $ilTabs;
51 $this->SECTION_STATISTIC = 1;
52 $this->SECTION_OBJECT = 2;
53 $this->SECTION_TRUSTEE = 3;
54 $this->SECTION_SHOPPING_CART = 4;
55 $this->SECTION_BUYED_OBJECTS = 5;
56 $this->SECTION_COUPONS = 6;
64 $this->section = $a_section;
72 $this->main_section = $a_main_section;
81 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.payb_content.html");
84 $this->lng->txt(
"personal_desktop"));
85 $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
87 # switch($this->getMainSection())
90 # $this->tpl->setVariable("HEADER",$this->lng->txt('paya_header'));
94 # $this->tpl->setVariable("HEADER",$this->lng->txt('pay_header'));
98 # $this->__buildStylesheet();
99 # $this->__buildStatusline();
107 $offset =
$_GET[
"offset"];
108 $order =
$_GET[
"sort_by"];
109 $direction =
$_GET[
"sort_order"];
111 $tbl->setOrderColumn($order,$a_default_order_column);
112 $tbl->setOrderDirection($direction);
113 $tbl->setOffset($offset);
114 $tbl->setLimit(
$_GET[
"limit"]);
115 $tbl->setMaxCount(count($result_set));
116 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
117 $tbl->setData($result_set);
125 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
130 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html");
131 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
133 $this->tpl->setCurrentBlock(
"locator_item");
134 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"personal_desktop"));
135 $this->tpl->setVariable(
"LINK_ITEM",
"../ilias.php?baseClass=ilPersonalDesktopGUI");
136 #$this->tpl->setVariable("LINK_ITEM", "../usr_personaldesktop.php");
137 $this->tpl->parseCurrentBlock();
142 $this->tpl->setCurrentBlock(
"locator_item");
143 $this->tpl->setVariable(
"PREFIX",
'> ');
144 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"paya_locator"));
145 $this->tpl->setVariable(
"LINK_ITEM",
"./payment.php?view=payment_admin");
146 $this->tpl->parseCurrentBlock();
150 $this->tpl->setCurrentBlock(
"locator_item");
151 $this->tpl->setVariable(
"PREFIX",
'> ');
152 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"pay_locator"));
153 $this->tpl->setVariable(
"LINK_ITEM",
"./payment.php");
154 $this->tpl->parseCurrentBlock();
170 $this->tpl->addBlockFile(
"TABS",
"tabs",
"tpl.tabs.html");
177 $this->tabs_gui->addSubTabTarget(
'paya_statistic',
178 $this->ctrl->getLinkTargetByClass(
'ilpaymentstatisticgui'),
182 $this->
getSection() == $this->SECTION_STATISTIC ?
true :
false);
192 $this->tabs_gui->addSubTabTarget(
'paya_object',
193 $this->ctrl->getLinkTargetByClass(
'ilpaymentobjectgui'),
197 $this->
getSection() == $this->SECTION_OBJECT ?
true :
false);
206 $this->tabs_gui->addSubTabTarget(
'paya_trustees',
207 $this->ctrl->getLinkTargetByClass(
'ilpaymenttrusteegui'),
211 $this->
getSection() == $this->SECTION_TRUSTEE ?
true :
false);
221 $this->tabs_gui->addSubTabTarget(
'paya_coupons_coupons',
222 $this->ctrl->getLinkTargetByClass(
'ilpaymentcoupongui'),
226 $this->
getSection() == $this->SECTION_COUPONS ?
true :
false);
236 $this->tabs_gui->addSubTabTarget(
'paya_shopping_cart',
237 $this->ctrl->getLinkTargetByClass(
'ilpaymentshoppingcartgui'),
241 $this->
getSection() == $this->SECTION_SHOPPING_CART ?
true :
false);
248 $this->tabs_gui->addSubTabTarget(
'paya_buyed_objects',
249 $this->ctrl->getLinkTargetByClass(
'ilpaymentbuyedobjectsgui'),
253 $this->
getSection() == $this->SECTION_BUYED_OBJECTS ?
true :
false);