32 include_once
'./payment/classes/class.ilPaymentBaseGUI.php';
65 $cmd = $this->ctrl->getCmd();
66 switch ($this->ctrl->getNextClass($this))
70 if(!
$cmd = $this->ctrl->getCmd())
81 include_once
"./Services/Repository/classes/class.ilRepositoryExplorer.php";
85 $this->tpl->addBlockfile(
'ADM_CONTENT',
'adm_content',
'tpl.pay_personal_statistic.html',
'payment');
87 if(!count($bookings = $this->bookings_obj->getBookingsOfCustomer($this->user_obj->getId())))
96 foreach($bookings as $booking)
103 $transaction = $booking[
'transaction_extern'];
104 switch ($booking[
'b_pay_method'])
107 $transaction .=
" (" . $this->lng->txt(
"pays_bill") .
")";
110 $transaction .=
" (" . $this->lng->txt(
"pays_bmf") .
")";
113 $transaction .=
" (" . $this->lng->txt(
"pays_paypal") .
")";
116 $f_result[$counter][] = $transaction;
122 $f_result[$counter][] =
"<a href=\"".$obj_link.
"\" target=\"".$obj_target.
"\">".$tmp_obj->getTitle().
"</a>";
126 $f_result[$counter][] = $this->lng->txt(
'object_not_found');
144 $f_result[$counter][] =
'['.$tmp_vendor->getLogin().
']';
145 $f_result[$counter][] =
'['.$tmp_purchaser->getLogin().
']';
146 $f_result[$counter][] = date(
"Y-m-d H:i:s", $booking[
'order_date']);
147 $f_result[$counter][] = $booking[
'duration'];
148 $f_result[$counter][] = $booking[
'price'];
149 $f_result[$counter][] = ($booking[
'discount'] !=
'' ? $booking[
'discount'] :
' ');
151 $payed_access = $booking[
'payed'] ?
152 $this->lng->txt(
'yes') :
153 $this->lng->txt(
'no');
155 $payed_access .=
'/';
156 $payed_access .= $booking[
'access'] ?
157 $this->lng->txt(
'yes') :
158 $this->lng->txt(
'no');
160 $f_result[$counter][] = $payed_access;
164 unset($tmp_purchaser);
174 $tbl =& $this->initTableGUI();
175 $tpl =& $tbl->getTemplateObject();
178 $tpl->setCurrentBlock(
"tbl_form_header");
180 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
181 $tpl->parseCurrentBlock();
185 $tbl->setTitle($this->lng->txt(
"paya_buyed_objects"),
"icon_pays_access.gif",$this->lng->txt(
"bookings"));
186 $tbl->setHeaderNames(array($this->lng->txt(
"paya_transaction"),
187 $this->lng->txt(
"title"),
188 $this->lng->txt(
"paya_vendor"),
189 $this->lng->txt(
"paya_customer"),
190 $this->lng->txt(
"paya_order_date"),
191 $this->lng->txt(
"duration"),
192 $this->lng->txt(
"price_a"),
193 $this->lng->txt(
"paya_coupons_coupon"),
194 $this->lng->txt(
"paya_payed_access")));
195 $header_params = $this->ctrl->getParameterArray($this,
'');
196 $tbl->setHeaderVars(array(
"transaction",
204 "payed_access"),$header_params);
212 $offset =
$_GET[
"offset"];
213 $order =
$_GET[
"sort_by"];
214 $direction =
$_GET[
"sort_order"] ?
$_GET[
'sort_order'] :
'desc';
216 $tbl->setOrderColumn($order,
'order_date');
217 $tbl->setOrderDirection($direction);
218 $tbl->setOffset($offset);
219 $tbl->setLimit(
$_GET[
"limit"]);
220 $tbl->setMaxCount(count($a_result_set));
221 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
222 $tbl->setData($a_result_set);
227 $this->tpl->setVariable(
"STATISTIC_TABLE",$tbl->tpl->get());
235 include_once
'./payment/classes/class.ilPaymentBookings.php';