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
"./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)
102 $transaction = $booking[
'transaction_extern'];
103 switch ($booking[
'b_pay_method'])
106 $transaction .=
" (" . $this->lng->txt(
"pays_bill") .
")";
109 $transaction .=
" (" . $this->lng->txt(
"pays_bmf") .
")";
112 $transaction .=
" (" . $this->lng->txt(
"pays_paypal") .
")";
115 $f_result[$counter][] = $transaction;
119 $f_result[$counter][] =
"<a href=\"".$obj_link.
"\" target=\"".$obj_target.
"\">".$tmp_obj->getTitle().
"</a>";
137 $f_result[$counter][] =
'['.$tmp_vendor->getLogin().
']';
138 $f_result[$counter][] =
'['.$tmp_purchaser->getLogin().
']';
139 $f_result[$counter][] = date(
"Y-m-d H:i:s", $booking[
'order_date']);
140 $f_result[$counter][] = $booking[
'duration'];
141 $f_result[$counter][] = $booking[
'price'];
142 $f_result[$counter][] = ($booking[
'discount'] !=
'' ? $booking[
'discount'] :
' ');
144 $payed_access = $booking[
'payed'] ?
145 $this->lng->txt(
'yes') :
146 $this->lng->txt(
'no');
148 $payed_access .=
'/';
149 $payed_access .= $booking[
'access'] ?
150 $this->lng->txt(
'yes') :
151 $this->lng->txt(
'no');
153 $f_result[$counter][] = $payed_access;
157 unset($tmp_purchaser);
167 $tbl =& $this->initTableGUI();
168 $tpl =& $tbl->getTemplateObject();
171 $tpl->setCurrentBlock(
"tbl_form_header");
173 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
174 $tpl->parseCurrentBlock();
177 $tbl->setTitle($this->lng->txt(
"paya_buyed_objects"),
"icon_pays_access.gif",$this->lng->txt(
"paya_statistic"));
178 $tbl->setHeaderNames(array($this->lng->txt(
"paya_transaction"),
179 $this->lng->txt(
"title"),
180 $this->lng->txt(
"paya_vendor"),
181 $this->lng->txt(
"paya_customer"),
182 $this->lng->txt(
"paya_order_date"),
183 $this->lng->txt(
"duration"),
184 $this->lng->txt(
"price_a"),
185 $this->lng->txt(
"paya_coupons_coupon"),
186 $this->lng->txt(
"paya_payed_access")));
187 $header_params = $this->ctrl->getParameterArray($this,
'');
188 $tbl->setHeaderVars(array(
"transaction",
196 "payed_access"),$header_params);
204 $offset =
$_GET[
"offset"];
205 $order =
$_GET[
"sort_by"];
206 $direction =
$_GET[
"sort_order"] ?
$_GET[
'sort_order'] :
'desc';
208 $tbl->setOrderColumn($order,
'order_date');
209 $tbl->setOrderDirection($direction);
210 $tbl->setOffset($offset);
211 $tbl->setLimit(
$_GET[
"limit"]);
212 $tbl->setMaxCount(count($a_result_set));
213 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
214 $tbl->setData($a_result_set);
219 $this->tpl->setVariable(
"STATISTIC_TABLE",$tbl->tpl->get());
227 include_once
'./payment/classes/class.ilPaymentBookings.php';