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


PHP Application_Model_DbTable_DbUserLog::writeMessageError方法代码示例

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


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

示例1: editAction

 public function editAction()
 {
     $db_model = new Driverguide_Model_DbTable_DbDriver();
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         try {
             $id = $db_model->updateDriver($data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESSS", "/driverguide");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("Application Error");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $db = new Application_Model_DbTable_DbGlobal();
     $client_type = $db->getclientdtype();
     array_unshift($client_type, array('id' => -1, 'name' => '---Add New ---'));
     $this->view->clienttype = $client_type;
     $dbpop = new Application_Form_FrmPopupGlobal();
     $this->view->frm_popup_clienttype = $dbpop->frmPopupclienttype();
     $id = $this->getRequest()->getParam("id");
     $row = $db_model->getDriverById($id);
     $this->view->rs = $row;
     $fm = new Group_Form_FrmClient();
     $frm = $fm->FrmaddGuide($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_client = $frm;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:27,代码来源:IndexController.php

示例2: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db = new Accounting_Model_DbTable_DbAsset();
         try {
             $db->updatasset($data);
             Application_Form_FrmMessage::message('ការ​បញ្ចូល​​ជោគ​ជ័យ');
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam('id');
     // 		if(empty($id)){
     // 			Application_Form_FrmMessage::Sucessfull('ការ​បញ្ចូល​​ជោគ​ជ័យ', self::REDIRECT_URL);
     // 		}
     $db = new Accounting_Model_DbTable_DbAsset();
     $row = $db->getassetbyid($id);
     $pructis = new Accounting_Form_Frmasset();
     $frm = $pructis->FrmAsset($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_fixedasset = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:25,代码来源:FixedAssetController.php

示例3: indexAction

 public function indexAction()
 {
     try {
         $db = new Partner_Model_DbTable_DbPartner();
         if ($this->getRequest()->isPost()) {
             $formdata = $this->getRequest()->getPost();
             $search = array('adv_search' => $formdata['adv_search'], 'province_id' => $formdata['province_name'], 'comm_id' => $formdata['commune'], 'district_id' => $formdata['district'], 'village' => $formdata['village'], 'status' => $formdata['status_search'], 'main_branch' => $formdata['main_branch'], 'start_date' => $formdata['start_date'], 'end_date' => $formdata['end_date']);
         } else {
             $search = array('adv_search' => '', 'status' => -1, 'province_id' => -1, 'district_id' => '', 'comm_id' => '', 'village' => '', 'main_branch' => '', 'start_date' => date('Y-m-01'), 'end_date' => date('Y-m-d'));
             //print_r($search);exit();
         }
         $rs_rows = $db->getAllPartner($search);
         // print_r($rs_rows);exit();
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true, null);
         $list = new Application_Form_Frmtable();
         $collumns = array("ដៃគូមេ", "ឈ្មោះអ្នកគ្រប់គ្រង", "ឈ្មោះដៃគូរសហការណ៏", "លេខគណនេយ្យ", "លេខអត្តសញ្ញាណប័ណ្ណ", "ខេត្ត/ក្រុង", "លេខទូរស័ព្ទ ", "លេខទូរស័ព្ទដៃ", "​ប្រាក់រៀល", "ប្រាក់ដុល្លា", "ប្រាក់បាត", "ថ្ងៃ", "STATUS");
         $link = array('module' => 'partner', 'controller' => 'index', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('main_branch' => $link, 'nation_id' => $link, 'account_no' => $link, 'partner_name' => $link, 'partner_brand' => $link, 'name' => $link, 'address' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $pructis = new Partner_Form_FrmPartner();
     $frm = $pructis->addPartner();
     Application_Model_Decorator::removeAllDecorator($frm);
     $form = $this->view->frm_partner = $frm;
     //echo $form;exit();
     $this->view->result = $search;
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->district = $db->getAllDistricts();
     $this->view->commune_name = $db->getCommune();
     $this->view->village_name = $db->getVillage();
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:34,代码来源:IndexController.php

示例4: addTuitionFee

 public function addTuitionFee($_data)
 {
     $db = $this->getAdapter();
     $db->beginTransaction();
     try {
         if ($_data['degree'] != 2) {
             $_data['faculty'] = 0;
             $degree_type = 0;
         } else {
             $degree_type = 1;
         }
         $_arr = array('degree' => $_data['degree'], 'batch' => $_data['batch'], 'faculty_id' => $_data['faculty'], 'degree_type' => $degree_type, 'status' => 1, 'create_date' => $_data['create_date'], 'user_id' => $this->getUserId());
         $fee_id = $this->insert($_arr);
         $this->_name = 'rms_tuitionfee_detail';
         $ids = explode(',', $_data['identity']);
         $id_term = explode(',', $_data['iden_term']);
         foreach ($ids as $i) {
             foreach ($id_term as $j) {
                 $_arr = array('fee_id' => $fee_id, 'metion' => $_data['metion' . $i], 'payment_type' => $j, 'tuition_fee' => $_data['fee' . $i . '_' . $j], 'remark' => $_data['remark' . $i]);
                 $this->insert($_arr);
             }
         }
         $db->commit();
         return true;
     } catch (Exception $e) {
         $db->rollBack();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         return false;
     }
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:30,代码来源:DbTuitionFee.php

示例5: indexAction

 public function indexAction()
 {
     try {
         $db = new Group_Model_DbTable_DbChangeCollteral();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status_search' => -1);
         }
         //print_r($search);exit();
         $rs_rows = $db->getAllChangeCollteral($search);
         //call frome model
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("BRANCH", "OWNER_CODE", "OWNER_NAME", "FROM", "TO", "COLLTERAL_TYPE", "NUMBER_CODE", "OWNER", "DATE", "NOTE", "STATUS", "USER_ID");
         $link = array('module' => 'callecterall', 'controller' => 'chengcallecterall', 'action' => 'edit');
         // 			print_r($rs_rows);exit();
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('branch_id' => $link, 'owner_code_id' => $link, 'owner_id' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $fm = new Group_Form_Frmchangecollteral();
     $frm = $fm->FrmChangeCollteral();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm_changeCollteral = $frm;
 }
开发者ID:samlanh,项目名称:lnms,代码行数:29,代码来源:ChengcallecterallController.php

示例6: editAction

    public function editAction()
    {
    if($this->getRequest()->isPost()){
			$data=$this->getRequest()->getPost();
			$db = new Group_Model_DbTable_DbCallecteralltype();
			try {
				$db->updatcallecterall($data);
				Application_Form_FrmMessage::message($this->tr->translate('EDIT_SUCCESS'));
				Application_Form_FrmMessage::redirectUrl('/other/callecteralltype');
			} catch (Exception $e) {
				Application_Form_FrmMessage::message("INSERT_FAIL");
				$err = $e->getMessage();
				Application_Model_DbTable_DbUserLog::writeMessageError($err);
			}
		
    	}
    	$id = $this->getRequest()->getParam('id');
    		
    	$db = new Callecterall_Model_DbTable_DbCallecterall();
    	$row  = $db->getcallecterallbyid($id);
    	$fm = new Callecterall_Form_Frmcallecterall();
	    $frm = $fm->Frmcallecterall($row); 
	    Application_Model_Decorator::removeAllDecorator($frm);
	    $this->view->Form_Frmcallecterall = $frm;
    		
    
    }
开发者ID:samlanh,项目名称:lnms,代码行数:27,代码来源:CallecteralltypeController.php

示例7: editAction

 function editAction()
 {
     $db = new Global_Model_DbTable_DbGroup();
     if ($this->getRequest()->isPost()) {
         try {
             $data = $this->getRequest()->getPost();
             $db->AddNewGroup($data);
             if (!empty($data['save_close'])) {
                 Application_Form_FrmMessage::Sucessfull("ការ​បញ្ចូល​ជោគ​ជ័យ !", '/global/group');
             }
             Application_Form_FrmMessage::message("ការ​បញ្ចូល​ជោគ​ជ័យ !");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("ការ​បញ្ចូល​មិន​ជោគ​ជ័យ");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $this->view->row = $db->getGroupById($id);
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->degree = $db->getAllDegree();
     $faculty = $db->getAllMajor();
     array_unshift($faculty, array('id' => -1, 'name' => 'Add New'));
     $this->view->faculty = $faculty;
     $room = $db->getAllRoom();
     array_unshift($room, array('id' => -1, 'name' => 'Add New'));
     $this->view->room = $room;
     $db = new Application_Model_GlobalClass();
     $this->view->subject_opt = $db->getTeachersunjectOption();
     $tsub = new Global_Form_FrmTeacher();
     $frm_techer = $tsub->FrmTecher();
     Application_Model_Decorator::removeAllDecorator($frm_techer);
     $this->view->frm_techer = $frm_techer;
 }
开发者ID:Bornpagna,项目名称:guesehouse,代码行数:34,代码来源:GroupController.php

示例8: indexAction

 function indexAction()
 {
     try {
         $db = new Keeping_Model_DbTable_DbOutmoney();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
             //print_r($search);exit();
         } else {
             $search = array('adv_search' => '', 'status_search' => -1);
         }
         $rows = $db->getAllwithdrawKeeping($search);
         $list = new Application_Form_Frmtable();
         $collumns = array("លេខដៃគូ", "ថ្ងៃ", "សម្គាល់", "ទូរស័ព្ទអតិថិជន", "ប្រាក់ជាដុល្លា", "ប្រាក់ជាបាត", "ប្រាក់ជារៀល", "ប្រាក់ជាដុល្លា(-)", "ប្រាក់ជាបាត(-)", "ប្រាក់ជារៀល(-)");
         $link = array('module' => 'Keeping', 'controller' => 'outmoney', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rows, array('phone' => $link, 'create_date' => $link, 'note' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $pructis = new Keeping_Form_FrmOutMoney();
     $frm = $pructis->dokMoney();
     Application_Model_Decorator::removeAllDecorator($frm);
     $form = $this->view->frm_partner = $frm;
 }
开发者ID:samlanh,项目名称:currencyms,代码行数:25,代码来源:OutmoneyController.php

示例9: indexAction

 public function indexAction()
 {
     try {
         $db = new Tellerandexchange_Model_DbTable_DbClient();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'status' => -1);
         }
         $rs_rows = $db->getAllClients($search);
         $result = array();
         foreach ($rs_rows as $key => $rs) {
             $result[$key] = array('client_id' => $rs['client_id'], 'client_number' => $rs['client_number'], 'name_kh' => $rs['name_kh'], 'name_en' => $rs['name_en'], 'sex' => $this->sex[$rs['sex']], 'phone' => $rs['phone'], 'house' => $rs['house'], 'street' => $rs['street'], 'village_name' => $rs['village_name'], 'spouse_name' => $rs['spouse_name'], 'user_name' => $rs['user_name'], 'status' => $rs['status']);
         }
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($result, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("Term", "Loan N.", "Date Due", "OS", "Principal", "Interest Rate", "Paid Principal", "Paid Interest Rate", "CO", "By", "status");
         $link = array('module' => 'group', 'controller' => 'Client', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, array(), array('client_number' => $link, 'name_kh' => $link, 'name_en' => $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,代码行数:30,代码来源:TellerController.php

示例10: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         // 						print_r($data);exit();
         $db = new Table_Model_DbTable_DbTablesGroup();
         try {
             if (isset($data['btnsave_close'])) {
                 $data_table = $db->updateTableGroup($data);
                 Application_Form_FrmMessage::Sucessfull('ការ​បញ្ចូល​​ជោគ​ជ័យ', self::REDIRECT_URL_ADD_CLOSE);
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $id = $this->getRequest()->getParam('id');
     $db = new Table_Model_DbTable_DbTablesGroup();
     $row = $db->getTableGroupById($id);
     // 		print_r($row);exit();
     $db = $this->view->photo = $row['img_name'];
     $frm = new Table_Form_FrmTableGroup();
     $this->view->form = $frm->FrmTable($row);
     // 		Application_Model_Decorator::removeAllDecorator($frm);
     // 		$this->view->frm_fixedasset = $frm;
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:26,代码来源:tablegroupController.php

示例11: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db = new Callecterall_Model_DbTable_DbCallecterall();
         try {
             if (isset($data['btn_save'])) {
                 $db->updatcallecterall($data);
                 Application_Form_FrmMessage::message('ការ​បញ្ចូល​​ជោគ​ជ័យ');
             }
             if (isset($data['btn_save_close'])) {
                 $db->updatcallecterall($data);
                 Application_Form_FrmMessage::message('ការ​បញ្ចូល​​ជោគ​ជ័យ');
                 Application_Form_FrmMessage::redirectUrl('/callecterall/Callecterall');
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam('id');
     $db = new Callecterall_Model_DbTable_DbCallecterall();
     $row = $db->getcallecterallbyid($id);
     $fm = new Callecterall_Form_Frmcallecterall();
     $frm = $fm->Frmcallecterall($row);
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->Form_Frmcallecterall = $frm;
 }
开发者ID:samlanh,项目名称:lnms,代码行数:29,代码来源:CallecterallController.php

示例12: indexAction

	public function indexAction(){
			try{
				$db = new Group_Model_DbTable_DbReturnCollteral();
			    		if($this->getRequest()->isPost()){
			    			$search=$this->getRequest()->getPost();
			    		}
			    		else{
			    			$search = array(
			    					'adv_search' => '',
			    					'status_search' => -1,
			    					'start_date'=>date('Y-m-d'),
			    					'end_date'=>date('Y-m-d'),
			    					'branch_id'=>'');
			    		}//print_r($search);exit();
			$rs_rows= $db->getAllReturnCollteral($search);//call frome model
			$glClass = new Application_Model_GlobalClass();
			$rs_rowss = $glClass->getImgActive($rs_rows, BASE_URL, true);
			$list = new Application_Form_Frmtable();
			$collumns = array("BRANCH_NAME","CUSTOMER_NAME","GIVER_NAME","RECEIVER_NAME","DATE","NOTE","STATUS","BY_USER");
			$link=array(
					'module'=>'group','controller'=>'Returncollteral','action'=>'edit',
			);
			$this->view->list=$list->getCheckList(0, $collumns,$rs_rowss,array('branch_id'=>$link,'client_name'=>$link,'giver_name'=>$link,'receiver_name'=>$link,'date'=>$link));
		}catch (Exception $e){
			Application_Form_FrmMessage::message("Application Error");
			Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
		}
		$fm = new Group_Form_Frmreturncollteral();
		$frm = $fm->FrmReturnCollteral();
		Application_Model_Decorator::removeAllDecorator($frm);
		$this->view->frm_returnCollteral = $frm;
	}
开发者ID:sarankh80,项目名称:lnms,代码行数:32,代码来源:ReturncollteralController.php

示例13: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         $db = new Menu_Model_DbTable_DbCombo();
         try {
             $db->updateMenuCombo($_data);
             if (!empty($_data['btnsaveclose'])) {
                 Application_Form_FrmMessage::message('កាកែរប្រែបាន​​ជោគ​ជ័យ');
             } else {
                 Application_Form_FrmMessage::Sucessfull('កាកែរប្រែបាន​​ជោគ​ជ័យ', self::REDIRECT_URL . '/index');
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("កាកែរប្រែមិន​បាន​​ជោគ​ជ័យ");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $db_combo_type = new Menu_Model_DbTable_DbCombo();
     $row = $db_combo_type->editAllRowCombo($id);
     $this->view->rows = $row;
     $frm = new Menu_Form_FrmMenuCombo();
     $this->view->form = $frm->FrmMenu($row);
 }
开发者ID:TheTypoMaster,项目名称:restaurant168,代码行数:25,代码来源:comboController.php

示例14: editAction

 public function editAction()
 {
     $db_model = new Driverguide_Model_DbTable_Dbvehicleprice();
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         try {
             $id = $db_model->updateVehicleRental($data);
             Application_Form_FrmMessage::Sucessfull("Edit Success", "/driverguide/vehicleprice");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("Application Error");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $db = new Application_Model_GlobalClass();
     $this->view->package_option = $db->getAllPackageDayOption();
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->rs_tax = $db->getAllTax();
     $this->view->vehicle = $db_model->getVehecleName();
     $id = $this->getRequest()->getParam("id");
     $this->view->rows = $db_model->getVehiclePriceById($id);
     // 		print_r($db_model->getVehiclePriceById($id));
     $this->view->vehicle_id = $id;
     // 		$db=new Vehicle_Model_DbTable_DbVehicle();
     // 		$this->view->vehicle=$db->getVehicleById($id);
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:25,代码来源:VehiclepriceController.php

示例15: editAction

 public function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         //print_r($data);exit();
         try {
             $db_model = new Vehicle_Model_DbTable_DbModel();
             if (isset($data['save_close'])) {
                 $db_model->updateModel($data);
                 Application_Form_FrmMessage::Sucessfull($this->tr->translate("INSERT_SUCCESS"), self::REDIRECT_URL_CLOSE);
             }
         } catch (Exception $e) {
             Application_Form_FrmMessage::message($this->tr->translate("INSERT_FAIL"));
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam('id');
     $db_model = new Vehicle_Model_DbTable_DbModel();
     $row = $db_model->getModelById($id);
     $row = $this->view->row = $row;
     $db = new Application_Model_DbTable_DbGlobal();
     $model = $db->getAllMake();
     array_unshift($model, array('id' => -1, 'name' => 'បន្ថែម​អ្នក​ទទួល​ថ្មី'));
     $this->view->all_make = $model;
     $status = $db->getViews(2);
     $this->view->status_view = $status;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:28,代码来源:ModelController.php


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