本文整理汇总了PHP中Application_Form_FrmMessage::message方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Form_FrmMessage::message方法的具体用法?PHP Application_Form_FrmMessage::message怎么用?PHP Application_Form_FrmMessage::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Form_FrmMessage
的用法示例。
在下文中一共展示了Application_Form_FrmMessage::message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addSaleAgentAction
public function addSaleAgentAction()
{
if ($this->getRequest()->isPost()) {
$post = $this->getRequest()->getPost();
if (@$post['submit_add']) {
$add_agent = new sales_Model_DbTable_DbSalesAgent();
$add_agent->addSalesAgent($post);
Application_Form_FrmMessage::message("Agent Has Been Inserted !");
} elseif (@$post['submit_add_close']) {
$add_agent = new sales_Model_DbTable_DbSalesAgent();
$add_agent->addSalesAgent($post);
$this->_redirect("sales/sale-agent/index");
} else {
$this->_redirect("sales/sale-agent/index");
}
}
$formAgent = new sales_Form_FrmStock(null);
$formShowAgent = $formAgent->showSaleAgentForm(null);
Application_Model_Decorator::removeAllDecorator($formShowAgent);
$this->view->form_agent = $formShowAgent;
$formpopup = new Application_Form_FrmPopup(null);
//for add location
$formAdd = $formpopup->popuLocation(null);
Application_Model_Decorator::removeAllDecorator($formAdd);
$this->view->form_addstock = $formAdd;
}
示例2: 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;
}
示例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();
}
示例4: 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($this->tr->translate('EDIT_SUCCESS'),self::REDIRECT_URL . '/Village/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->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();
}
示例5: 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();
}
示例6: addAction
function addAction()
{
if($this->getRequest()->isPost()){
$_data = $this->getRequest()->getPost();
try {
$_dbmodel = new Loan_Model_DbTable_DbLoanIL();
$_dbmodel->addNewLoanIL($_data);
// Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS","/loan/index/index");
}catch (Exception $e) {
echo $err =$e->getMessage();exit();
Application_Form_FrmMessage::message("INSERT_FAIL");
$err =$e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($err);
}
}
$frm = new Loan_Form_FrmLoan();
$frm_loan=$frm->FrmAddLoan();
Application_Model_Decorator::removeAllDecorator($frm_loan);
$this->view->frm_loan = $frm_loan;
$frmpopup = new Application_Form_FrmPopupGlobal();
$this->view->frmpupopclient = $frmpopup->frmPopupClient();
$this->view->frmPopupCO = $frmpopup->frmPopupCO();
$this->view->frmPopupZone = $frmpopup->frmPopupZone();
$this->view->frmPopupCommune = $frmpopup->frmPopupCommune();
$this->view->frmPopupDistrict = $frmpopup->frmPopupDistrict();
$this->view->frmPopupVillage = $frmpopup->frmPopupVillage();
}
示例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;
}
示例8: 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;
}
示例9: 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;
}
示例10: 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);
}
示例11: 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);
}
示例12: updateCustomerAction
public function updateCustomerAction()
{
if ($this->getRequest()->isPost()) {
try {
$post = $this->getRequest()->getPost();
$customer = new sales_Model_DbTable_DbCustomer();
$customer->updateCustomer($post);
$this->_redirect('/sales/customer/index');
} catch (Exception $e) {
Application_Form_FrmMessage::message("Update customer failed !");
}
}
$id = $this->getRequest()->getParam('id') ? $this->getRequest()->getParam('id') : '0';
$sql = "SELECT c.customer_id,c.type_price,c.cust_name, c.add_remark, c.contact_name,c.add_name, c.phone, \n\t\t\t\t\tc.fax,c.email, c.website,c.customer_remark,c.is_active\n\t\t\t\t\tFROM tb_customer AS c,tb_price_type as tp\n\t\t\t\t\tWHERE tp.type_id=c.type_price\n\t\t\t\t\tAND c.customer_id = " . $id . " LIMIT 1";
$db = new Application_Model_DbTable_DbGlobal();
$row = $db->getGlobalDbRow($sql);
// lost item info
$formStock = new sales_Form_FrmVendor($row);
$formStockEdit = $formStock->AddCustomerForm($row);
Application_Model_Decorator::removeAllDecorator($formStockEdit);
// omit default zend html tag
$this->view->customer_frm = $formStockEdit;
//control action
$formControl = new Application_Form_FrmAction(null);
$formViewControl = $formControl->AllAction(null);
Application_Model_Decorator::removeAllDecorator($formViewControl);
$this->view->control = $formViewControl;
}
示例13: 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;
}
示例14: 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;
}
示例15: editAction
public function editAction()
{
$db_model = new Driverguide_Model_DbTable_Dbvehicleprice();
$id = $this->getRequest()->getParam('id');
if ($this->getRequest()->isPost()) {
$data = $this->getRequest()->getPost();
$db = new Driverguide_Model_DbTable_DbTaxiprice();
try {
if (!empty($data['save_close'])) {
$db->updateVehicletaxi($data);
Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESSS", "/driverguide/taxiprice");
}
} catch (Exception $e) {
//echo $e->getMessage();exit();
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
}
$db = new Application_Model_GlobalClass();
$this->view->pro_option = $db->getAllLocationOption();
$db = new Application_Model_DbTable_DbGlobal();
$this->view->rs_tax = $db->getAllTax();
$this->view->vehicle = $db_model->getVehecleName();
$db = new Driverguide_Model_DbTable_DbTaxiprice();
$row = $this->view->row_taxi = $db->getVehicleTaxiById($id);
//print_r($row);exit();
}