Пример #1
0
 public function chequeAction()
 {
     $sessionNamespace = new Zend_Session_Namespace();
     if ($sessionNamespace->loginAuth == true) {
         $cMapper = new Gyuser_Model_ChequesDataMapper();
         $this->view->cList = $cMapper->GetCheques();
         $this->view->cobranzasList = $cMapper->GetCobranzasCheques();
         $this->view->tercerosList = $cMapper->GetTercerosCheques();
         $adminObj = new Gyuser_Model_Admin();
         $adminMapper = new Gyuser_Model_AdminDataMapper();
         $adminObj->setId(1);
         $this->view->admin = $adminMapper->find($adminObj);
         $statusMapper = new Gyuser_Model_StatusListDataMapper();
         $this->view->statusList = $statusMapper->fetchAll();
         $opeMapper = new Gyuser_Model_OperationsDataMapper();
         $this->view->operations = $opeMapper->GetAllOperations();
         $this->view->operationList = $opeMapper->fetchAll();
         $uMapper = new Gyuser_Model_UserDataMapper();
         $this->view->clientList = $uMapper->fetchAllClientNames();
     } else {
         $this->_helper->redirector('login', 'index', 'gyuser');
     }
 }