コード例 #1
0
ファイル: PaymentController.php プロジェクト: hukumonline/pmg
 public function billingAction()
 {
     $this->_checkAuth();
     $rowset = App_Model_Show_UserFinance::show()->getUserFinance($this->_user->kopel);
     $this->view->rowset = $rowset;
     $outstandingAmount = App_Model_Show_Order::show()->outstandingUserAmout($this->_userFinanceInfo->userId);
     $this->view->outstandingAmount = $outstandingAmount;
     if ($this->_request->isPost('save')) {
         $data['taxNumber'] = $this->_request->getParam('taxNumber');
         $data['taxCompany'] = $this->_request->getParam('taxCompany');
         $data['taxAddress'] = $this->_request->getParam('taxAddress');
         $data['taxCity'] = $this->_request->getParam('taxCity');
         $data['taxProvince'] = $this->_request->getParam('province');
         $data['taxZip'] = $this->_request->getParam('taxZip');
         $data['taxPhone'] = $this->_request->getParam('taxPhone');
         $data['taxFax'] = $this->_request->getParam('taxFax');
         $data['taxCountryId'] = $this->_request->getParam('taxCountryId');
         $where = "userId = '" . $this->_user->kopel . "'";
         $userFinance = new App_Model_Db_Table_UserFinance();
         $userFinance->update($data, $where);
         $this->_helper->redirector('bilupdsuc');
     }
 }