本文整理汇总了PHP中Zend_Dojo_Form_Element_FilteringSelect::setvalue方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Dojo_Form_Element_FilteringSelect::setvalue方法的具体用法?PHP Zend_Dojo_Form_Element_FilteringSelect::setvalue怎么用?PHP Zend_Dojo_Form_Element_FilteringSelect::setvalue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Dojo_Form_Element_FilteringSelect
的用法示例。
在下文中一共展示了Zend_Dojo_Form_Element_FilteringSelect::setvalue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FrmAddLoan
//.........这里部分代码省略.........
$_repayment_method = new Zend_Dojo_Form_Element_FilteringSelect('repayment_method');
$_repayment_method->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'required' =>'true',
'onchange'=>'chechPaymentMethod()'
));
$options = $db->getAllPaymentMethod(null,1);
$_repayment_method->setMultiOptions($options);
$_status = new Zend_Dojo_Form_Element_FilteringSelect('status_using');
$_status->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'required' =>'true'
));
// $options= array(1=>"Befor",2=>"After",3=>"Cancel");
$options= array(1=>"Active",0=>"Cancel");
$_status->setMultiOptions($options);
$_interest = new Zend_Dojo_Form_Element_TextBox("interest");
$_interest->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'required' =>'true'
));
$penalize = new Zend_Dojo_Form_Element_TextBox("penalize");
$penalize->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'required' =>'true'
));
$_service_charge = new Zend_Dojo_Form_Element_TextBox("service_charge");
$_service_charge->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
'required' =>'true'
));
$_instalment_date = new Zend_Form_Element_Hidden("instalment_date");
$_release_date = new Zend_Form_Element_Hidden("old_release_date");
$_interest_rate = new Zend_Form_Element_Hidden("old_rate");
$_old_payterm = new Zend_Form_Element_Hidden("old_payterm");
$_id = new Zend_Form_Element_Hidden('id');
if($data!=null){
// print_r($data);
$_branch_id->setValue($data['branch_id']);
$_loan_code->setValue($data['loan_number']);
$_level->setValue($data['level']);
$_loan_fee->setValue($data['admin_fee']);
$_other_fee->setValue($data['other_fee']);
// $_member->setValue($data['client_id']);
$_customer_code->setValue($data['client_id']);
$_coid->setValue($data['co_id']);
$_zone->setValue($data['zone_id']);
$_releasedate->setValue($data['date_release']);
$_period->setValue($data['total_duration']);
$_first_payment->setValue($data['first_payment']);
$_time->setValue($data['time_collect']);
$_every_payamount->setValue($data['holiday']);
$_amount->setValue($data['total_capital']);
$_currency_type->setValue($data['currency_type']);
$_rate->setValue($data['interest_rate']);//
$_rate->setAttribs(array(
'data-dojo-props'=>"
'value':'".$data['interest_rate']."'"));
$_repayment_method->setValue($data['payment_method']);
$_graice_pariod->setValue($data['graice_period']);
$_time_collect_pri->setValue($data['semi']);
$_dateline->setValue($data['date_line']);
$_pay_every->setValue($data['pay_term']);
$_time_collect->setValue($data['amount_collect_principal']);
$_collect_term->setValue($data['collect_typeterm']);
$_pay_late->setValue($data['pay_after']);
$_paybefore->setValue($data['pay_before']);
$_id->setValue($data['g_id']);
$_group_code->setValue($data['client_id']);
// $_groupid->setValue($data['client_id']);
$get_laonnumber->setvalue($data['g_id']);
$_status->setValue($data['status']);
// print_r($data);
}
$this->addElements(array($_groupid,$_old_payterm,$_interest_rate,$_release_date,$_instalment_date,$_interest,$penalize,$_service_charge,$schedule_opt,$_loan_types,$_loan_fees,$_other_fees,$_zones
,$_client_codes,$_loan_codes,$_members,$_customer_codes,$_levels,$_coids,$get_laonnumber,$_loan_type,
$_other_fee,$_isgroup,$_client_code,$_time_collect,$_loan_fee,$_level,$_paybefore,
$_pay_late,$_branch_id,$_coid,$_currency_type,$_zone,$_amount,$_rate,$_releasedate
,$_payterm,$_every_payamount,$_time,$_time_collect_pri,$_status,$_graice_pariod,$_period,
$_first_payment,$_repayment_method,$_pay_every,$_loan_code,$_collect_term,$_dateline,
$_group_code,$_customer_code,$_id));
return $this;
}