Esempio n. 1
0
 function payment_report()
 {
     global $db;
     $payment_methods = array('-1' => '', 'V' => 'Visa', 'MC' => 'Mastercard', 'D' => 'Discover', 'AMEX' => 'American Express', 'PP' => 'PayPal', 'GC' => 'Google Checkout', 'Other' => 'Other');
     //5 paypal
     //4 credit card - VisaCard, MasterCard, AmExCard, DiscoverCard
     $oids = "(";
     eDebug(expSession::get('order_print_query'));
     if (isset($this->params['applytoall']) && $this->params['applytoall'] == 1) {
         //$sql = expSession::get('order_print_query');
         //eDebug($sql);
         //expSession::set('product_export_query','');
         //$orders = $db->selectArraysBySql($sql);
         $obs = expSession::get('order_export_values');
         usort($obs, array("reportController", "sortPrintOrders"));
         foreach ($obs as $ob) {
             $oids .= $ob->id . ",";
         }
         //eDebug($prods);
     } else {
         foreach ($this->params['act-upon'] as $order) {
             $oids .= $order->id . ",";
         }
     }
     $oids = strrev(expUtil::right(strrev($oids), strlen($oids) - 1));
     $oids .= ")";
     eDebug($oids);
     //eDebug($orders,true);
 }
Esempio n. 2
0
 public function isTempUser()
 {
     return is_numeric(expUtil::right($this->username, 10)) ? true : false;
 }