本文整理汇总了PHP中Application_Form_FrmMessage::Sucessfull方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Form_FrmMessage::Sucessfull方法的具体用法?PHP Application_Form_FrmMessage::Sucessfull怎么用?PHP Application_Form_FrmMessage::Sucessfull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Form_FrmMessage
的用法示例。
在下文中一共展示了Application_Form_FrmMessage::Sucessfull方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editAction
public function editAction()
{
$db = new Location_Model_DbTable_DbLocation();
if ($this->getRequest()->isPost()) {
$data = $this->getRequest()->getPost();
try {
$data = $this->getRequest()->getPost();
$db->updateNewPackageLocation($data);
if (!empty($data['save_new'])) {
Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", self::REDIRECT_URL . "/package/add");
} else {
Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", self::REDIRECT_URL . "/package");
}
} catch (Exception $e) {
$this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ';
}
}
$id = $this->getRequest()->getParam("id");
$this->view->row = $db->getLocationById($id);
$this->view->locationdetail = $db->getAllLocationByPackage($id);
$db = new Application_Model_GlobalClass();
$this->view->pro_option = $db->getAllProvinceOption();
$db = new Location_Model_DbTable_DbProvince();
$this->view->provincelist = $db->getAllProvince();
}
示例2: 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);
}
示例3: editAction
public function editAction()
{
// action body
if ($this->getRequest()->isPost()) {
$agentdata = $this->getRequest()->getPost();
$db_agent = new Accounting_Model_DbTable_DbExpense();
try {
$db = $db_agent->updatexpense($agentdata);
Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL);
} catch (Exception $e) {
$this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ';
}
}
$id = $this->getRequest()->getParam('id');
//print_r($id);exit();
// if(empty($id)){
// Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL);
// }
$db = new Accounting_Model_DbTable_DbExpense();
$row = $db->getexpensebyid($id);
$pructis = new Accounting_Form_Frmexpense();
$frm = $pructis->FrmAddExpense($row);
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_expense = $frm;
}
示例4: 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;
}
示例5: 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;
}
示例6: editAction
function editAction(){
$db = new Other_Model_DbTable_DbMyPosition();
if($this->getRequest()->isPost()){
$_data = $this->getRequest()->getPost();
try{
$db->upDatePosition($_data);
Application_Form_FrmMessage::Sucessfull("ការបញ្ចូលជោគជ័យ !",'/payroll/position');
}catch(Exception $e){
Application_Form_FrmMessage::message("ការបញ្ចូលមិនជោគជ័យ");
$err =$e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($err);
}
}
$id = $this->getRequest()->getParam("id");//ចាប់ id from ln_position ;
$row = $db->getPositionById($id);
if(empty($row)){
$this->_redirect('payroll/co');
}
// if(!empty($row['save_new'])){
// Application_Form_FrmMessage::message('ការបញ្ចូលជោគជ័យ');
// }else{
// Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL . '/position/index');
// }
$frm = new Other_Form_FrmPosition();
$frm_co=$frm->FrmAddPosition($row);
Application_Model_Decorator::removeAllDecorator($frm_co);
$this->view->frm_position = $frm_co;
}
示例7: 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;
}
示例8: editAction
function editAction()
{
if ($this->getRequest()->isPost()) {
$data = $this->getRequest()->getPost();
$db = new Stuff_Model_DbTable_DbStuff();
try {
if (!empty($data['save_close'])) {
$db->updateStuff($data);
Application_Form_FrmMessage::Sucessfull("INSERT_SUCCESS", self::REDIRECT_URL);
}
} catch (Exception $e) {
Application_Form_FrmMessage::message("INSERT_FAIL");
$err = $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($err);
}
}
$db = new Application_Model_GlobalClass();
$this->view->pro_option = $db->getAllPackageDayOption();
$id = $this->getRequest()->getParam('id');
$db_stuff = new Stuff_Model_DbTable_DbStuff();
$row_stuff = $db_stuff->getStuffById($id);
$rows_stuf_de = $db_stuff->getStuffDetailById($id);
//print_r($rows_stuf_de);exit();
$this->view->row_stuff = $row_stuff;
$this->view->rows_detail = $rows_stuf_de;
}
示例9: editAction
function editAction()
{
if ($this->getRequest()->isPost()) {
$data = $this->getRequest()->getPost();
$db_wihtdraw = new Keeping_Model_DbTable_DbOutmoney();
try {
if ($this->getRequest()->getPost("btn_save_close")) {
$db_wihtdraw->updateWithdrawKeeping($data);
Application_Form_FrmMessage::Sucessfull('ការបញ្ចូលជោគជ័យ', self::REDIRECT_URL_EXIT);
}
} catch (Exception $e) {
$this->view->msg = 'ការបញ្ចូលមិនជោគជ័យ';
}
}
$db_wihtdraw = new Keeping_Model_DbTable_DbOutmoney();
$id = $this->getRequest()->getParam("id");
// echo $id;exit();
$row = $db_wihtdraw->getWithdrawKeepingById($id);
if (empty($row)) {
}
$this->view->id = $row['id'];
$withdraw_keeping = new Keeping_Form_FrmOutMoney();
$frm = $withdraw_keeping->dokMoney($row);
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm = $frm;
}
示例10: 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;
}
示例11: editAction
function editAction()
{
$db_deposite = new Capital_Model_DbTable_DbCapital();
if ($this->getRequest()->isPost()) {
$_data = $this->getRequest()->getPost();
try {
if (isset($_data["save"])) {
$db_deposite->updateCapital($_data);
Application_Form_FrmMessage::Sucessfull("ការបញ្ចូលជោគជ័យ !", '/capital/capital/add');
} elseif (isset($_data["save_close"])) {
$db_deposite->updateCapital($_data);
Application_Form_FrmMessage::Sucessfull("ការបញ្ចូលជោគជ័យ !", '/capital/capital');
} else {
Application_Form_FrmMessage::redirectUrl("/capital/capital");
}
} catch (Exception $e) {
Application_Form_FrmMessage::message("ការបញ្ចូលមិនជោគជ័យ");
$err = $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($err);
}
}
$id = $this->getRequest()->getParam("id");
$row = $db_deposite->getpartnerById($id);
$deposite = new Capital_Form_FrmCapitale();
$frm = $deposite->frmCapital($row);
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm = $frm;
}
示例12: 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();
}
示例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);
}
示例14: 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;
}
示例15: 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;
}