Пример #1
0
 public function trdetailAction()
 {
     $this->_checkAuth();
     $orderId = $this->_request->getParam('id');
     $userId = $this->_userInfo->userId;
     $tblOrder = new Kutu_Core_Orm_Table_Order();
     $tblOrderDetail = new Kutu_Core_Orm_Table_OrderDetail();
     $tblOrderHistory = new Kutu_Core_Orm_Table_OrderHistory();
     $tblOrderPaypalHistory = new Kutu_Core_Orm_Table_PaypalPaymentHistory();
     $rowset = $tblOrder->getOrderAndStatus($orderId);
     $rowsetDetail = $tblOrderDetail->fetchAll($tblOrderDetail->select()->where("orderId='" . $orderId . "'"));
     $rowsetHistory = $tblOrderHistory->getUserHistory($orderId);
     $rowsetPaypalHistory = $tblOrderPaypalHistory->fetchAll($tblOrderPaypalHistory->select()->where("orderId='" . $orderId . "'"));
     //print_r($rowsetHistory);
     $this->view->listOrder = $rowset;
     $this->view->listOrderDetail = $rowsetDetail;
     $this->view->rowsetHistory = $rowsetHistory;
     $this->view->rowsetPaypalHistory = $rowsetPaypalHistory;
 }