本文整理汇总了PHP中Application_Model_DbTable_DbGlobal::getZoneList方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_DbTable_DbGlobal::getZoneList方法的具体用法?PHP Application_Model_DbTable_DbGlobal::getZoneList怎么用?PHP Application_Model_DbTable_DbGlobal::getZoneList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_DbTable_DbGlobal
的用法示例。
在下文中一共展示了Application_Model_DbTable_DbGlobal::getZoneList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdvanceSearch
//.........这里部分代码省略.........
));
$options = $db ->getAllCOName(1);
$_coid->setMultiOptions($options);
$_coid->setValue($request->getParam("co_id"));
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
));
$opt = array(-1=>"--Select Currency Type--",2=>"Dollar",1=>'Khmer',3=>"Bath");
$_currency_type->setMultiOptions($opt);
$_currency_type->setValue($request->getParam("currency_type"));
$_repayment_method = new Zend_Dojo_Form_Element_FilteringSelect('repayment_method');
$_repayment_method->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'required' =>'true',
'onchange'=>'chechPaymentMethod()'
));
$options = $db->getAllPaymentMethod(null,1);
$options[-1]="--Select Repayment Method--";
$_repayment_method->setMultiOptions($options);
$opt_method = $request->getParam("repayment_method");
if(empty($opt_method)){
$opt_method=-1;
}
$_repayment_method->setValue($opt_method);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckZone();'
));
$options = $db ->getZoneList(1);
$_zone->setMultiOptions($options);
$_zone->setValue($request->getParam("zone"));
$_releasedate = new Zend_Dojo_Form_Element_DateTextBox('start_date');
$_releasedate->setAttribs(array('dojoType'=>'dijit.form.DateTextBox',
// 'class'=>'fullside',
'onchange'=>'CalculateDate();'));
$_date = $request->getParam("start_date");
if(empty($_date)){
$_date = date('Y-m-d');
}
$_releasedate->setValue($_date);
$_dateline = new Zend_Dojo_Form_Element_DateTextBox('end_date');
$_dateline->setAttribs(array('dojoType'=>'dijit.form.DateTextBox','required'=>'true',
// 'class'=>'fullside',
));
$_date = $request->getParam("end_date");
if(empty($_date)){
$_date = date("Y-m-d");
}
$_dateline->setValue($_date);
$_payterm = new Zend_Dojo_Form_Element_FilteringSelect('payment_term');
$_payterm->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
// 'class'=>'fullside',
'required' =>'true'
示例2: FrmAddLoan
public function FrmAddLoan($data=null){
$_isgroup = new Zend_Dojo_Form_Element_CheckBox('is_group');
$_isgroup->setAttribs(array(
'dojoType'=>'dijit.form.CheckBox',
'class'=>'fullside',
// 'onkeyup'=>'Calcuhundred()'
));
$_loan_code = new Zend_Dojo_Form_Element_TextBox('loan_code');
$_loan_code->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'readonly'=>true,
'style'=>'color:red; font-weight: bold;'
));
$db = new Application_Model_DbTable_DbGlobal();
$loan_number = $db->getLoanNumber();
$_loan_code->setValue($loan_number);
$_client_code = new Zend_Dojo_Form_Element_TextBox('client_code');
$_client_code->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
));
$_group_code = new Zend_Dojo_Form_Element_FilteringSelect('group_code');
$_group_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getmemberIdGroup();'
));
$group_opt = $db ->getGroupCodeById(1,1,1);
$_group_code->setMultiOptions($group_opt);
$dbs = new Loan_Model_DbTable_DbLoanss();
$_customer_code = new Zend_Dojo_Form_Element_FilteringSelect('customer_code');
$_customer_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(1);'
));
$group_opt = $dbs ->getClientByTypes(1);//code,individual,option
$_customer_code->setMultiOptions($group_opt);
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'getClientInfo(2)'
));
$options = $dbs->getClientByTypes(2);
$_member->setMultiOptions($options);
$db = new Application_Model_DbTable_DbGlobal();
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckClient();'
));
$options = $db ->getGroupCodeById(2,1,1);//show name,show group,show option
$_groupid->setMultiOptions($options);
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckCO();'
));
$options = $db ->getAllCOName(1);
$_coid->setMultiOptions($options);
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
));
$opt = array(2=>"Dollar",1=>'Khmer',3=>"Bath");
// $opt = $db->getVewOptoinTypeByType(15,1,3);
$_currency_type->setMultiOptions($opt);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'popupCheckZone();'
));
$options = $db ->getZoneList(1);
$_zone->setMultiOptions($options);
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
));
$_loan_fee->setValue(0);
//.........这里部分代码省略.........
示例3: FrmAddLoan
//.........这里部分代码省略.........
'class'=>'fullside',
));
// $opt = array(2=>"Dollar",1=>'Khmer',3=>"Bath");
$opt = $db->getVewOptoinTypeByType(15,1,3,1);
$_currency_type->setMultiOptions($opt);
$_currency_type->setValue(2);
$_loan_type = new Zend_Dojo_Form_Element_FilteringSelect('loan_type');
$_loan_type->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onChange'=>'loantype();'
));
$opt = $db->getVewOptoinTypeByType(24,1,null,1);
$opt[-1]="--- Add New---";
$_loan_type->setMultiOptions($opt);
$_loan_types = new Zend_Dojo_Form_Element_FilteringSelect('loan_types');
$_loan_types->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onChange'=>'loantype();'
));
$opts = $db->getVewOptoinTypeByType(24,1,null,1);
$opt[-1]="--- Add New---";
$_loan_types->setMultiOptions($opts);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'zone();'
));
$options = $db ->getZoneList(1);
$options[-1]="--- Add New---";
$_zone->setMultiOptions($options);
$_zones = new Zend_Dojo_Form_Element_FilteringSelect('zones');
$_zones->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'onchange'=>'zone();'
));
$optionsf = $db ->getZoneList(1);
$optionsf[-1]="--- Add New---";
$_zones->setMultiOptions($optionsf);
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
'required'=>true
));
$_loan_fee->setValue(0);
$_loan_fees = new Zend_Dojo_Form_Element_NumberTextBox('loan_fees');
$_loan_fees->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
'required'=>true
));
$_loan_fees->setValue(0);
$_other_fee = new Zend_Dojo_Form_Element_NumberTextBox('other_fee');
$_other_fee->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
示例4: FrmAddLoan
public function FrmAddLoan($data = null)
{
$_isgroup = new Zend_Dojo_Form_Element_CheckBox('is_group');
$_isgroup->setAttribs(array('dojoType' => 'dijit.form.CheckBox', 'class' => 'fullside'));
$_loan_code = new Zend_Dojo_Form_Element_TextBox('loan_code');
$_loan_code->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'readonly' => true, 'style' => 'color:red; font-weight: bold;'));
$db = new Application_Model_DbTable_DbGlobal();
$loan_number = $db->getLoanNumber();
$_loan_code->setValue($loan_number);
$_collect_term = new Zend_Dojo_Form_Element_FilteringSelect('collect_termtype');
$_collect_term->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'changeGraicePeroid();'));
$term_opt = $db->getVewOptoinTypeByType(1, 1, 3);
$_collect_term->setMultiOptions($term_opt);
$_client_code = new Zend_Dojo_Form_Element_TextBox('client_code');
$_client_code->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckClient();'));
$rows = $db->getClientByType(1);
$options = array('' => "------Select------", -1 => "Add New new group");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['client_id']] = $row['name_en'] . ',' . $row['province_en_name'] . ',' . $row['district_name'] . ',' . $row['commune_name'] . ',' . $row['village_name'];
}
}
$_groupid->setMultiOptions($options);
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$rows = $db->getAllCOName();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['co_id']] = $row['co_khname'];
}
}
$_coid->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckCO();'));
$_coid->setMultiOptions($options);
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$rows = $db->getClientByType();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['client_id']] = $row['name_en'];
}
}
$_member->setMultiOptions($options);
$_currency_type = new Zend_Dojo_Form_Element_FilteringSelect('currency_type');
$_currency_type->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside'));
$opt = array(2 => "Dollar", 1 => 'Khmer', 3 => "Bath");
$_currency_type->setMultiOptions($opt);
$_zone = new Zend_Dojo_Form_Element_FilteringSelect('zone');
$_zone->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'onchange' => 'popupCheckZone();'));
$rows = $db->getZoneList();
$options = array('' => "------Select------", -1 => "Add New");
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['zone_id']] = $row['zone_name'];
}
}
$_zone->setMultiOptions($options);
$_loan_fee = new Zend_Dojo_Form_Element_NumberTextBox('loan_fee');
$_loan_fee->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside'));
$_loan_fee->setValue(0);
$_time_collect = new Zend_Dojo_Form_Element_NumberTextBox('amount_collect');
$_time_collect->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'onkeyup' => 'getFirstPayment();'));
$_time_collect->setValue(1);
$_time_collect_pri = new Zend_Dojo_Form_Element_NumberTextBox('amount_collect_pricipal');
$_time_collect_pri->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'readonly' => true, 'required' => true));
$_time_collect_pri->setValue(2);
$_amount = new Zend_Dojo_Form_Element_NumberTextBox('total_amount');
$_amount->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_level = new Zend_Dojo_Form_Element_NumberTextBox('level');
$_level->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_level->setValue(1);
// $_rate = new Zend_Dojo_Form_Element_NumberTextBox('interest_rate');
// $_rate->setAttribs(array(
// 'data-dojo-Type'=>'dijit.form.NumberTextBox',
// 'data-dojo-props'=>"regExp:'[0-9]{1,2}',
// 'required':true,
// 'name':'batch',
// 'value':2.5,
// 'class':'fullside',
// 'invalidMessage':'អាចបញ្ជូលពី 1 ដល់ 99'"));
$_rate = new Zend_Dojo_Form_Element_ValidationTextBox("interest_rate");
$_rate->setAttribs(array('data-dojo-Type' => 'dijit.form.ValidationTextBox', 'data-dojo-props' => "\r\n\t\t\t\t'required':true,\r\n\t\t\t\t'name':'interest_rate',\r\n\t\t\t\t'value':2.5,\r\n\t\t\t\t'class':'fullside',\r\n\t\t\t\t'invalidMessage':'អាចបញ្ជូលពី 1 ដល់ 100'"));
// $value_interest = 2.5;
// $_rate->setValue($value_interest);
$_period = new Zend_Dojo_Form_Element_NumberTextBox('period');
$_period->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true', 'onkeyup' => 'calCulatePeriod();'));
$_period->setValue(12);
$_releasedate = new Zend_Dojo_Form_Element_DateTextBox('release_date');
$_releasedate->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true', 'onchange' => 'checkReleaseDate();'));
$s_date = date('Y-m-d');
$_releasedate->setValue($s_date);
$_first_payment = new Zend_Dojo_Form_Element_DateTextBox('first_payment');
$_first_payment->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true'));
//$_first_payment->setValue('2005-12-30');
$_dateline = new Zend_Dojo_Form_Element_DateTextBox('date_line');
$_dateline->setAttribs(array('dojoType' => 'dijit.form.DateTextBox', 'class' => 'fullside', 'required' => 'true', 'readonly' => true));
$_graice_pariod = new Zend_Dojo_Form_Element_TextBox('graice_pariod');
$_graice_pariod->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside', 'required' => 'true'));
//.........这里部分代码省略.........