当前位置: 首页>>代码示例>>PHP>>正文


PHP Application_Model_Decorator::removeAllDecorator方法代码示例

本文整理汇总了PHP中Application_Model_Decorator::removeAllDecorator方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_Decorator::removeAllDecorator方法的具体用法?PHP Application_Model_Decorator::removeAllDecorator怎么用?PHP Application_Model_Decorator::removeAllDecorator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Application_Model_Decorator的用法示例。


在下文中一共展示了Application_Model_Decorator::removeAllDecorator方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: editAction

 public function editAction()
 {
     $_dbmodel = new Accounting_Model_DbTable_DbGeneraljurnal();
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         try {
             $_db = new Accounting_Model_DbTable_DbJournal();
             $_db->upDateJournal($_data);
             Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", "/accounting/generaljurnal");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $id = $this->getRequest()->getParam('id');
     $row = $_dbmodel->getjurnalEntryById($id);
     $this->view->jdetail = $_dbmodel->getjurnalEntryDetail($id);
     $fm = new Accounting_Form_FrmGeneraljurnal();
     $frm = $fm->FrmGeneraljurnal($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_fixedasset = $frm;
     $db = new Accounting_Model_DbTable_DbJournal();
     $this->view->row_parents = $db->getAllParrentAccount(1);
     $this->view->row_accountname = $db->getAllParrentAccount(1, 1);
 }
开发者ID:samlanh,项目名称:lnms,代码行数:25,代码来源:GeneraljurnalController.php

示例2: editAction

 public function editAction()
 {
     $db = new Other_Model_DbTable_DbVillage();
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         try {
             $db->addVillage($_data);
             Application_Form_FrmMessage::Sucessfull("ការ​បញ្ចូល​ជោគ​ជ័យ !", '/other/Village');
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("ការ​បញ្ចូល​មិន​ជោគ​ជ័យ");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $row = $db->getVillageById($id);
     $this->view->row = $row;
     if (empty($row)) {
         $this->_redirect('other/Village');
     }
     $fm = new Other_Form_FrmVillage();
     $frm = $fm->FrmAddVillage($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_village = $frm;
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->district = $db->getAllDistricts();
     $this->view->commune_name = $db->getCommune();
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:28,代码来源:VillageController.php

示例3: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         try {
             $_data = $this->getRequest()->getPost();
             $_dbmodel = new Application_Model_DbTable_DbDept();
             $_dbmodel->UpdateDepartment($_data);
             Application_Form_FrmMessage::Sucessfull("ការកៃប្រែដោយជោគជ័យ !", "/global/faculty/index");
             //$this->_redirect("");
         } catch (Exception $e) {
             $err = $e->getMessage();
             Application_Form_FrmMessage::message("Application Error!");
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
             echo $e->getMessage();
             exit;
         }
     }
     $id = $this->getRequest()->getParam("id");
     $_db = new Application_Model_DbTable_DbGlobal();
     $_row = $_db->getDeptById($id);
     $frm = new Application_Form_FrmOther();
     $frm->FrmAddDept($_row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_dept = $frm;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:25,代码来源:FacultyController.php

示例4: editAction

 function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db_wihtdraw = new Partner_Model_DbTable_DbWithdraw();
         try {
             if ($this->getRequest()->getPost("btn_save_close")) {
                 $db_wihtdraw->updatewithdraw($data);
                 Application_Form_FrmMessage::Sucessfull('ការ​បញ្ចូល​​ជោគ​ជ័យ', self::REDIRECT_URL);
             }
         } catch (Exception $e) {
             $this->view->msg = 'ការ​បញ្ចូល​មិន​ជោគ​ជ័យ';
         }
     }
     $db_wihtdraw = new Partner_Model_DbTable_DbWithdraw();
     $id = $this->getRequest()->getParam("id");
     $row = $db_wihtdraw->getpartnerById($id);
     if (empty($row)) {
     }
     $this->view->id = $row['id'];
     $withdraw = new Partner_Form_FrmWithdraw();
     $frm = $withdraw->dakMoney($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:25,代码来源:WithdrawController.php

示例5: indexAction

 public function indexAction()
 {
     try {
         $db = new Tellerandexchange_Model_DbTable_DbSpread();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('client_id' => -1, 'status' => -1, 'from_date' => date('Y-m-d'), 'to_date' => date('Y-m-d'));
         }
         $rs_rows = $db->getAllSpreadList($search);
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("ពីប្រាក់", "ទៅប្រាក់", "ទិញចូល", "លក់ចេញ", "អត្រាកណ្តាល", "កាលបរិច្ឆេទ", "STATUS");
         $link = array('module' => 'tellerandexchange', 'controller' => 'Spread', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('buy_type' => $link, 'sell_type' => $link, 'rate_in' => $link, 'rate_out' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $frm = new Application_Form_FrmAdvanceSearch();
     $frm = $frm->AdvanceSearch();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_search = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:26,代码来源:SpreadController.php

示例6: addAction

 function addAction()
 {
     $_model = new Foundation_Model_DbTable_DbNewStudent();
     if ($this->getRequest()->isPost()) {
         try {
             $_data = $this->getRequest()->getPost();
             $_model->addNewStudent($_data);
             if (!empty($_data['save_close'])) {
                 Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", "/foundation/index");
             }
             Application_Form_FrmMessage::message("INSERT_SUCCESS");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $_frm = new Foundation_Form_FrmStudent();
     $_frmstudent = $_frm->FrmStudent();
     Application_Model_Decorator::removeAllDecorator($_frmstudent);
     $this->view->frm_student = $_frmstudent;
     // 		$_db = new Application_Model_DbTable_DbGlobal();
     // 		$comp = $_db->getallComposition();
     // 		array_unshift($comp, array ( 'id' => -1, 'name' => 'បន្�ែម​អ្នក​ទទួល​�្មី') );
     // 		$this->view->compo=$comp;
     // 		$situation = $_db->getallSituation();
     // 		array_unshift($situation, array ( 'id' => -1, 'name' => 'បន្�ែម​អ្នក​ទទួល​�្មី') );
     // 		$this->view->situation=$situation;
     // 		$school = $_db->getAllHighSchool();
     // 		array_unshift($school, array ( 'id' => -1, 'name' => 'បន្�ែម​អ្នក​ទទួល​�្មី','province_id'=>-1) );
     // 		$this->view->highschool=$school;
     // 		$scholarship = $_db->getallScholarship();
     // 		array_unshift($scholarship, array ( 'id' => -1, 'name' => 'បន្�ែម​អ្នក​ទទួល​�្មី','province_id'=>-1) );
     // 		$this->view->scholarship=$scholarship;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:35,代码来源:indexController.php

示例7: putAction

 public function putAction()
 {
     $pructis = new Keeping_Form_FrmMoney();
     $frm = $pructis->addMoney();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:7,代码来源:FrmmoneyController.php

示例8: editAction

 function editAction()
 {
     $db = new Other_Model_DbTable_DbHoliday();
     //$db->deleteHoliday();
     $db = new Other_Model_DbTable_DbHoliday();
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         try {
             $_major_id = $db->addHoliday($_data);
             Application_Form_FrmMessage::Sucessfull($this->tr->translate("EDIT_SUCCESS"), self::REDIRECT_URL . '/holiday/index');
         } catch (Exception $e) {
             Application_Form_FrmMessage::message($this->tr->translate("EDIT_FAIL"));
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam('id');
     $row = $db->getHolidayById($id);
     if (empty($row)) {
         $this->_redirect('/other/holiday');
     }
     $frm = new Other_Form_FrmHoliday();
     $frm_holiday = $frm->FrmAddHoliday($row);
     Application_Model_Decorator::removeAllDecorator($frm_holiday);
     $this->view->frm_holiday = $frm_holiday;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:26,代码来源:HolidayController.php

示例9: indexAction

 public function indexAction()
 {
     try {
         $db_dept = new Global_Model_DbTable_DbScholarship();
         if ($this->getRequest()->isPost()) {
             $_data = $this->getRequest()->getPost();
             $search = array('title' => $_data['title'], 'note' => $_data['note'], 'type' => $_data['type'], 'status' => $_data['status_search']);
         } else {
             $search = array('title' => '', 'note' => '', 'type' => '', 'status' => -1);
         }
         $db = new Global_Model_DbTable_DbScholarship();
         $rs_rows = $db->getAllScholarship();
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("TITLE", "NOTE", "TYPE", "CREATE_DATE", "STATUS", "BY_USER");
         $link = array('module' => 'global', 'controller' => 'scholarship', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('title' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $frm = new Global_Form_FrmSearchMajor();
     $frms = $frm->FrmsearchScholarship();
     Application_Model_Decorator::removeAllDecorator($frms);
     $this->view->frm_search = $frms;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:27,代码来源:ScholarshipController.php

示例10: indexAction

 function indexAction()
 {
     $dbbooking = new Application_Model_DbTable_Dbstuffrental();
     $db_globle = new Application_Model_DbTable_DbGlobal();
     if ($this->getRequest()->isPost()) {
         $post = $this->getRequest()->getPost();
         if (isset($post["term_condiction"])) {
             $dbbooking->createSessionStuffBooking($post, 3);
             //print_r("test");exit();
             $this->_redirect("stuffbooking/index");
         } elseif (isset($post["confirm_book"])) {
             $dbbooking->createSessionStuffBooking($post, 4);
             $this->_redirect("stuffbooking/index");
         }
     }
     $customer_session = new Zend_Session_Namespace('customer');
     $user_session = $customer_session->customer_session;
     if (!empty($user_session)) {
         $customer_user_session = $user_session;
         $customer_user = $customer_session->customer_id;
         $this->view->user_name = $customer_session->customer_name;
         $this->view->user_info = $customer_session->user_info;
     } else {
         $customer_user_session = 0;
     }
     $db = new Application_Model_DbTable_Dbbookingtaxi();
     $session = new Zend_Session_Namespace('stuffbooking');
     $this->view->bookinginfo = $session;
     $this->view->producttermcomdiction = $db_globle->getAllParameter('producttermcomdiction');
     $frmbooks = new Application_Form_FrmBooking();
     $frmbooking = $frmbooks->FromBooking();
     Application_Model_Decorator::removeAllDecorator($frmbooking);
     $this->view->frmbooking = $frmbooking;
     $this->view->user_session = $customer_user_session;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:35,代码来源:StuffbookingController.php

示例11: editAction

 public function editAction()
 {
     $db = new Group_Model_DbTable_DbClient();
     if ($this->getRequest()->isPost()) {
         try {
             $data = $this->getRequest()->getPost();
             $db->addClient($data);
             Application_Form_FrmMessage::Sucessfull($this->tr->translate('EDIT_SUCCESS'), "/group/client");
         } catch (Exception $e) {
             echo $e->getMessage();
             exit;
             Application_Form_FrmMessage::message("Application Error");
             echo $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $id = $this->getRequest()->getParam("id");
     $row = $db->getClientById($id);
     if (empty($row)) {
         $this->_redirect("/group/client");
     }
     $fm = new Group_Form_FrmClient();
     $frm = $fm->FrmAddClient($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_client = $frm;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:26,代码来源:ClientController.php

示例12: addProgramTypeAction

 function addProgramTypeAction()
 {
     $item = new Accounting_Form_Frmitem();
     $frm_item = $item->FrmProgramType();
     Application_Model_Decorator::removeAllDecorator($frm_item);
     $this->view->frm_item = $frm_item;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:7,代码来源:ProgramGepController.php

示例13: basicAction

 public function basicAction()
 {
     $pructis = new Salary_Form_FrmSalary();
     $frm = $pructis->addSalary();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:7,代码来源:SBorrowController.php

示例14: editAction

 public function editAction()
 {
     $id = $this->getRequest()->getParam("id");
     if ($this->getRequest()->isPost()) {
         try {
             $data = $this->getRequest()->getPost();
             $data["id"] = $id;
             $db = new Global_Model_DbTable_DbTeacher();
             $db->updateTeacher($data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/global/lecturer");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("EDIT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $db = new Global_Model_DbTable_DbTeacher();
     $row = $db->getTeacherById($id);
     $tsub = new Global_Form_FrmTeacher();
     $frm_techer = $tsub->FrmTecher($row);
     Application_Model_Decorator::removeAllDecorator($frm_techer);
     $this->view->frm_techer = $frm_techer;
     $dbs = new Application_Model_GlobalClass();
     $this->view->subject_opt = $dbs->getsunjectOption();
     $this->view->teacher_subject = $db->getallSubjectTeacherById($id);
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:26,代码来源:LecturerController.php

示例15: editAction

 public function editAction()
 {
     $id = $this->getRequest()->getParam('id');
     $db = new Other_Model_DbTable_DbCommune();
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         //print_r($_data);exit();
         try {
             $db->addCommune($_data, $id);
             Application_Form_FrmMessage::Sucessfull($this->tr->translate("EDIT_SUCCESS"), self::REDIRECT_URL . '/commune/');
         } catch (Exception $e) {
             Application_Form_FrmMessage::message($this->tr->translate("EDIT_FAIL"));
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $row = $db->getCommuneById($id);
     $this->view->row = $row;
     $fm = new Other_Form_FrmCommune();
     $frm = $fm->FrmAddCommune($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_commune = $frm;
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->district = $db->getAllDistricts();
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:25,代码来源:CommuneController.php


注:本文中的Application_Model_Decorator::removeAllDecorator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。