本文整理汇总了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;
}
示例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;
}
示例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;
}