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


PHP Application_Model_DbTable_DbGlobal::getAllMake方法代码示例

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


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

示例1: 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

示例2: indexAction

 public function indexAction()
 {
     try {
         $db_make = new Driverguide_Model_DbTable_Dbvehicleprice();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('adv_search' => '', 'make' => -1, 'model' => -1, 'submodel' => -1, 'search_status' => -1);
         }
         $rows = $db_make->getAllVehiclePrice($search);
         $list = new Application_Form_Frmtable();
         $collumns = array("Vehicle Ref", "Frame No", "Licence No", "Year", "Make", "Model", "Sub Model", "Type ", "Tax", "Date", "Status");
         $link = array('module' => 'driverguide', 'controller' => 'vehicleprice', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rows, array('reffer' => $link, 'licence_plate' => $link, 'frame_no' => $link, 'year' => $link, 'sub_model' => $link, 'model_id' => $link, 'type' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $db = new Application_Model_DbTable_DbGlobal();
     $model = $db->getAllMake();
     $this->view->all_make = $model;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:22,代码来源:VehiclepriceController.php

示例3: editAction

 function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         try {
             $db_make = new Vehicle_Model_DbTable_DbVehicle();
             if (isset($data['save_close'])) {
                 $db_make->updateVehicle($data);
                 Application_Form_FrmMessage::Sucessfull($this->tr->translate("EDIT_SUCCESS"), self::REDIRECT_URL_ADD_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 = new Vehicle_Model_DbTable_DbVehicle();
     $rows_v = $db->getVehicleById($id);
     $this->view->row_vehicle = $rows_v;
     $rows_engin = $db->getAllEnGince();
     $this->view->rows_engine = $rows_engin;
     $rows_type = $db->getAllType();
     $this->view->rows_type = $rows_type;
     $rows_tran = $db->getAllTransmisstion();
     $this->view->rows_tran = $rows_tran;
     $rows_veh_typ = $db->getAllVehicleType();
     $this->view->rows_veh_typ = $rows_veh_typ;
     //select store mark
     $db = new Application_Model_DbTable_DbGlobal();
     $model = $db->getAllMake();
     array_unshift($model, array('id' => -1, 'name' => 'បន្ថែម​អ្នក​ទទួល​ថ្មី'));
     $this->view->all_make = $model;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:34,代码来源:IndexController.php


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