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


PHP Application_Model_DbTable_DbGlobal::getAllCountry方法代码示例

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


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

示例1: editAction

 public function editAction()
 {
     $db = new agreement_Model_DbTable_DbAgreement();
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         try {
             $db->addAgreement($data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/agreement/imdex/add");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("Application Error");
             Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
         }
     }
     $id = $this->getRequest()->getParam('id');
     if (empty($id)) {
         $this->_redirect("/agreement");
     }
     $this->view->row_agreement = $db->getAgreementById($id);
     print_r($db->getAgreementById($id));
     $db = new Application_Model_DbTable_DbGlobal();
     $this->view->rs_tax = $db->getAllTax();
     $owner = $db->getAllNameOwner();
     $this->view->country = $db->getAllCountry();
     $this->view->rows_owner = $owner;
     $cus = new Booking_Model_DbTable_DbBooking();
     $rows_cus = $cus->getIdNamecustomer();
     $this->view->rows_cus = $rows_cus;
     $row_vehicle = $cus->getVehiclerefNo();
     $this->view->row_vehicle = $row_vehicle;
     $db = new agreement_Model_DbTable_DbAgreement();
     $this->view->rsbooking = $db->getAllBookingNumber();
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:32,代码来源:IndexController.php

示例2: FrmAddClient


//.........这里部分代码省略.........
     $nationality->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $company_name = new Zend_Dojo_Form_Element_TextBox('company_name');
     $company_name->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $passport = new Zend_Dojo_Form_Element_TextBox('passport');
     $passport->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $p_issuedate = new Zend_Dojo_Form_Element_DateTextBox('pissue_date');
     $p_issuedate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $p_issuedate->setValue(date("Y-m-d"));
     $p_expireddate = new Zend_Dojo_Form_Element_DateTextBox('pexpired_date');
     $p_expireddate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $p_expireddate->setValue(date("Y-m-d"));
     $card_code = new Zend_Dojo_Form_Element_TextBox('card_code');
     $card_code->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $c_issuedate = new Zend_Dojo_Form_Element_DateTextBox('cissue_date');
     $c_issuedate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $c_issuedate->setValue(date("Y-m-d"));
     $c_expireddate = new Zend_Dojo_Form_Element_DateTextBox('cexpired_date');
     $c_expireddate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $c_expireddate->setValue(date("Y-m-d"));
     $ftb = new Zend_Dojo_Form_Element_TextBox('ftb');
     $ftb->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $f_issuedate = new Zend_Dojo_Form_Element_DateTextBox('fissue_date');
     $f_issuedate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $f_issuedate->setValue(date("Y-m-d"));
     $f_expireddate = new Zend_Dojo_Form_Element_DateTextBox('fexpired_date');
     $f_expireddate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside'));
     $f_expireddate->setValue(date("Y-m-d"));
     $address1 = new Zend_Dojo_Form_Element_TextBox('address1');
     $address1->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $address2 = new Zend_Dojo_Form_Element_TextBox('address2');
     $address2->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $i_city = new Zend_Dojo_Form_Element_TextBox('i_city');
     $i_city->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $in_zipcode = new Zend_Dojo_Form_Element_TextBox('i_zipcode');
     $in_zipcode->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $state = new Zend_Dojo_Form_Element_TextBox('state');
     $state->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $in_phone = new Zend_Dojo_Form_Element_TextBox('i_phone');
     $in_phone->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $icontry = new Zend_Dojo_Form_Element_FilteringSelect('countries');
     $icontry->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
     $row = $db->getAllCountry();
     $opt_country = array();
     if (!empty($row)) {
         foreach ($row as $rs) {
             $opt_country[$rs['id']] = $rs['country_name'];
         }
     }
     $icontry->setMultiOptions($opt_country);
     $id = new Zend_Dojo_Form_Element_TextBox('id');
     $id->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $occupation = new Zend_Dojo_Form_Element_TextBox('occupation');
     $occupation->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
     $old_photo = new Zend_Form_Element_Hidden('old_photo');
     if ($data != null) {
         $occupation->setValue($data['occupation']);
         $old_photo->setValue($data['photo']);
         $id->setValue($data['id']);
         $_title->setValue($data['title']);
         $_namekh->setValue($data['first_name']);
         $_nameen->setValue($data['last_name']);
         $_sex->setValue($data['sex']);
         $_dob->setValue($data['dob']);
         $country->setValue($data['pob']);
         $nationality->setValue($data['nationality']);
         $company_name->setValue($data['company_name']);
         $customer_type->setValue($data['customer_type']);
         $_desc->setValue($data['note']);
         $passport->setValue($data['passport_name']);
         $passport->setValue($data['passport_name']);
         $passport->setValue($data['passport_name']);
         $p_issuedate->setValue($data['pass_issuedate']);
         $p_expireddate->setValue($data['pass_expireddate']);
         $card_code->setValue($data['card_name']);
         $c_issuedate->setValue($data['card_issuedate']);
         $c_expireddate->setValue($data['card_expireddate']);
         $ftb->setValue($data['ftb']);
         $f_issuedate->setValue($data['ftb_issuedate']);
         $f_expireddate->setValue($data['ftb_expireddate']);
         $_phone->setValue($data['phone']);
         $email->setValue($data['email']);
         $fax->setValue($data['fax']);
         $group_num->setValue($data['group_num']);
         $address->setValue($data['house_num']);
         $_street->setValue($data['street']);
         $commune->setValue($data['commune']);
         $province->setValue($data['province_id']);
         $balance->setValue($data['balance']);
         $address1->setValue($data['address1']);
         $address2->setValue($data['address2']);
         $state->setValue($data['i_state']);
         $i_city->setValue($data['i_city']);
         $in_zipcode->setValue($data['i_zipcode']);
         $in_phone->setValue($data['i_phone']);
         $icontry->setValue($data['country']);
         $_situ_status->setValue($data['status']);
     }
     $this->addElements(array($state, $occupation, $old_photo, $id, $icontry, $in_phone, $in_zipcode, $i_city, $address2, $address1, $customer_type, $commune, $district, $province, $p_issuedate, $p_expireddate, $c_issuedate, $c_expireddate, $f_issuedate, $f_expireddate, $passport, $card_code, $ftb, $company_name, $nationality, $_title, $balance, $fax, $email, $group_num, $country, $_id, $photo, $job, $national_id, $_namekh, $_nameen, $_sex, $_situ_status, $_street, $_id_type, $address, $_phone, $_desc, $_status, $_clientno, $_dob));
     return $this;
 }
开发者ID:samlanh,项目名称:lynacr,代码行数:101,代码来源:FrmClient.php

示例3: FrmCustomer

 public function FrmCustomer($data = null)
 {
     $_dob = new Zend_Form_Element_Text('dob_client');
     $_dob->setValue(date("d-m-Y"));
     $_dob->setAttribs(array('class' => 'fullside', "style" => "width:100%"));
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $db = new Application_Model_DbTable_DbGlobal();
     $_namekh = new Zend_Form_Element_Text('name_kh');
     $_namekh->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_clientno = new Zend_Form_Element_Text('client_no');
     $_clientno->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $id_client = $db->getNewClientId();
     $_clientno->setValue($id_client);
     $_nameen = new Zend_Form_Element_Text('name_en');
     $_nameen->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_sex = new Zend_Form_Element_Select('sex');
     $_sex->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $opt_status = $db->getVewOptoinTypeByType(1, 1);
     unset($opt_status[-1]);
     unset($opt_status['']);
     $_sex->setMultiOptions($opt_status);
     $_situ_status = new Zend_Form_Element_Select('status');
     $_situ_status->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $home = new Zend_Form_Element_Text('home');
     $home->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $group_num = new Zend_Form_Element_Text('group_num');
     $group_num->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $i_group_num = new Zend_Form_Element_Text('igroup_num');
     $i_group_num->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $country = new Zend_Form_Element_Select('country');
     $country->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $row = $db->getAllCountry();
     $opt_country = array();
     if (!empty($row)) {
         foreach ($row as $rs) {
             $opt_country[$rs['id']] = $rs['country_name'];
         }
     }
     $country->setMultiOptions($opt_country);
     $state = new Zend_Form_Element_Text('state');
     $state->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $commune = new Zend_Form_Element_Text('commune');
     $commune->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $district = new Zend_Form_Element_Text('district');
     $district->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $icommune = new Zend_Form_Element_Text('zip');
     $icommune->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $city = new Zend_Form_Element_Text('city');
     $city->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $province = new Zend_Form_Element_Select('province');
     $province->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $opt = $db->getAllProvince(1);
     $province->setMultiOptions($opt);
     $_street = new Zend_Form_Element_Text('street');
     $_street->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $address1 = new Zend_Form_Element_Text('address1');
     $address1->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_id_type = new Zend_Form_Element_Select('id_type');
     $_id_type->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $address = new Zend_Form_Element_Text('address');
     $address->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_phone = new Zend_Form_Element_Text('phone');
     $_phone->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $photo = new Zend_Form_Element_File('photo');
     $photo->setAttribs(array());
     $job = new Zend_Form_Element_Text('job');
     $job->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $national_id = new Zend_Form_Element_Text('national_id');
     $national_id->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $email = new Zend_Form_Element_Text('email');
     $email->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $iemail = new Zend_Form_Element_Text('iemail');
     $iemail->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $fax = new Zend_Form_Element_Text('fax');
     $fax->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $balance = new Zend_Form_Element_Text('balance');
     $balance->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_id = new Zend_Form_Element_Hidden("id");
     $_desc = new Zend_Form_Element_Text('desc');
     $_desc->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_status = new Zend_Form_Element_Select('status');
     $_status->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_status_opt = array(1 => $this->tr->translate("ACTIVE"), 0 => $this->tr->translate("DACTIVE"));
     $_status->setMultiOptions($_status_opt);
     $_title = new Zend_Form_Element_Select('title');
     $_title->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $_status_opt = array(1 => $this->tr->translate("Mr."), 2 => $this->tr->translate("Ms"), 3 => $this->tr->translate("Miss"));
     $_title->setMultiOptions($_status_opt);
     $customer_type = new Zend_Form_Element_Select('customer_type');
     $customer_type->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;'));
     $_status_opt = array(1 => $this->tr->translate("Self"), 2 => $this->tr->translate("Agency"));
     $customer_type->setMultiOptions($_status_opt);
     $nationality = new Zend_Form_Element_Text('nationality');
     $nationality->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $company_name = new Zend_Form_Element_Text('company_name');
     $company_name->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $passport = new Zend_Form_Element_Text('passport');
     $passport->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
     $p_issuedate = new Zend_Form_Element_Text('pissue_date');
     $p_issuedate->setAttribs(array('style' => 'width: 100% !important;padding:1px !important;', 'class' => 'control_style'));
//.........这里部分代码省略.........
开发者ID:samlanh,项目名称:lynacr,代码行数:101,代码来源:FrmBooking.php


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