Ejemplo n.º 1
0
 /**
  * @return obj
  */
 public function show()
 {
     if (!isset(self::$_instance)) {
         $show = __CLASS__;
         self::$_instance = new $show();
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 public function nsiapaypaymentAction()
 {
     $r = $this->getRequest();
     $limit = $r->getParam('limit') ? $r->getParam('limit') : 10;
     $this->view->limit = $limit;
     $itemsPerPage = $limit;
     $this->view->itemsPerPage = $itemsPerPage;
     $offset = $r->getParam('offset') ? $r->getParam('offset') : 0;
     $this->view->offset = $offset;
     $Query = $r->getParam('Query') ? $r->getParam('Query') : '';
     $where = "KO.orderStatus = 3 AND KO.paymentMethod ='nsiapay'";
     $status = App_Model_Show_OrderStatus::show()->getStatus();
     for ($i = 0; $i < count($status); $i++) {
         $statusId[$i] = $status[$i]['orderStatusId'];
         $orderStatus[$i] = $status[$i]['ordersStatus'];
     }
     $rowset = App_Model_Show_Order::show()->getOrderSummaryAdmin($where, $limit, $offset);
     $numi = App_Model_Show_Order::show()->countOrdersAdmin('(' . $where . ')');
     $this->view->statusId = $statusId;
     $this->view->orderStatus = $orderStatus;
     $this->view->totalItems = $numi;
     $this->view->rows = $rowset;
     $this->view->where = $where;
 }