本文整理汇总了PHP中Application_Model_DbTable_DbGlobal::getAllPaymentMethod方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_DbTable_DbGlobal::getAllPaymentMethod方法的具体用法?PHP Application_Model_DbTable_DbGlobal::getAllPaymentMethod怎么用?PHP Application_Model_DbTable_DbGlobal::getAllPaymentMethod使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_DbTable_DbGlobal
的用法示例。
在下文中一共展示了Application_Model_DbTable_DbGlobal::getAllPaymentMethod方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdvanceSearch
public function AdvanceSearch($data=null){
$db = new Application_Model_DbTable_DbGlobal();
$request=Zend_Controller_Front::getInstance()->getRequest();
$_status= new Zend_Dojo_Form_Element_FilteringSelect('status');
$_status->setAttribs(array('dojoType'=>'dijit.form.FilteringSelect'));
$_status_opt = array(
-1=>$this->tr->translate("ALL"),
1=>$this->tr->translate("ACTIVE"),
0=>$this->tr->translate("DACTIVE"));
$_status->setMultiOptions($_status_opt);
$_status->setValue($request->getParam("status"));
$_title = new Zend_Dojo_Form_Element_TextBox('adv_search');
$_title->setAttribs(array('dojoType'=>'dijit.form.TextBox',
'onkeyup'=>'this.submit()',
'placeholder'=>$this->tr->translate("ADVANCE_SEARCH")
));
$_title->setValue($request->getParam("adv_search"));
$_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
$_btn_search->setAttribs(array(
'dojoType'=>'dijit.form.Button',
'iconclass'=>'dijitIconSearch',
));
$_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);
$_group_code->setValue($request->getParam("group_code"));
$_customer_code = new Zend_Dojo_Form_Element_FilteringSelect('customer_code');
$_customer_code->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'getmemberIdGroup();'
));
$group_opt = $db ->getGroupCodeById(1,0,1);//code,individual,option
$_customer_code->setMultiOptions($group_opt);
$_customer_code->setValue($request->getParam("customer_code"));
$_member = new Zend_Dojo_Form_Element_FilteringSelect('member');
$_member->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'checkMember()'
));
$options = $db->getGroupCodeById(2,0,1);
$_member->setMultiOptions($options);
$_member->setValue($request->getParam("member"));
$_groupid = new Zend_Dojo_Form_Element_FilteringSelect('group_id');
$_groupid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckClient();'
));
$options = $db ->getGroupCodeById(2,1,1);//show name,show group,show option
$_groupid->setMultiOptions($options);
$_groupid->setValue($request->getParam("group_id"));
$_coid = new Zend_Dojo_Form_Element_FilteringSelect('co_id');
$_coid->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'onchange'=>'popupCheckCO();'
));
$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',
//.........这里部分代码省略.........
示例2: FrmGroupPayment
//.........这里部分代码省略.........
'OnChange'=>'getLaonPayment();'
));
$option_status = array(1=>'បង់ធម្មតា',2=>'បង់មុន',3=>'បង់រំលោះប្រាក់ដើម',4=>'បង់ផ្តាច់');
$option_pay->setMultiOptions($option_status);
$amount_payment_term = new Zend_Form_Element_Hidden("amount_payment_term");
$amount_payment_term->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
));
// $id = new Zend_Form_Element_Text('id');
// $id->setAttrib('dojoType', 'dijit.form.TextBox');
$installment_date = new Zend_Form_Element_Hidden("installment_date");
$installment_date->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
));
$old_tota_pay = new Zend_Form_Element_Text("oldTotalPay");
$old_tota_pay->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside',));
$release_date = new Zend_Dojo_Form_Element_TextBox("release_date");
$release_date->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$old_release_date = new Zend_Form_Element_Hidden("old_release_date");
$old_release_date->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$loan_level= new Zend_Dojo_Form_Element_TextBox("load_level");
$loan_level->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$remain= new Zend_Dojo_Form_Element_NumberTextBox("remain");
$remain->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$total_amount_loan = new Zend_Dojo_Form_Element_TextBox("total_amount_loan");
$total_amount_loan->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$loan_period = new Zend_Dojo_Form_Element_TextBox("loan_period");
$loan_period->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$candition_payment = new Zend_Dojo_Form_Element_TextBox("pay_condition");
$candition_payment->setAttribs(array('dojoType'=>'dijit.form.TextBox','class'=>'fullside','readOnly'=>'readOnly'));
$options = $db->getAllPaymentMethod(null,1);
$payment_method= new Zend_Dojo_Form_Element_FilteringSelect("payment_method");
$payment_method->setAttribs(array('dojoType'=>'dijit.form.FilteringSelect','class'=>'fullside','readOnly'=>'readOnly'));
$payment_method->setMultiOptions($options);
$using_date = new Zend_Dojo_Form_Element_DateTextBox("using_date");
$using_date->setAttribs(array(
'dojoType'=>'dijit.form.DateTextBox',
'class'=>'fullside',
'required' =>true
));
$_last_payment_date = new Zend_Form_Element_Hidden("last_payment_date");
$_last_payment_date->setAttribs(array(
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
//'required' =>true
));
if($data!=""){
$id->setValue($data["id"]);
// $_groupid->setValue($data["group_id"]);
// $_loan_number->setValue($data["loan_number"]);
// $_branch_id->setValue($data["branch_id"]);
// $_client_code->setValue($data["group_id"]);
// $reciept_no->setValue($data["receipt_no"]);
// $_coid->setValue($data["co_id"]);
// $option_pay->setValue($data["status"]);
// $_amount_receive->setValue($data["recieve_amount"]);
// $_amount_return->setValue($data["return_amount"]);
// $_penalize_amount->setValue($data["penalize_amount"]);
// $_total_payment->setValue($data["total_payment"]);
// $_priciple_amount->setValue($data["principal_amount"]);
// $_os_amount->setValue($data["total_principal_permonth"]);
// // $discount->setValue($data["total_discount"]);
// $_rate->setValue($data["total_interest"]);
// $_note->setValue($data["note"]);
// $date_input->setValue($data["date_input"]);
// $_collect_date->setValue(date("y-m-d"));
// $_service_charge->setValue($data["service_charge"]);
// $reciever->setValue($data["receiver_id"]);
// $_currency_type->setValue($data["currency_type"]);
// $amount_payment_term->setValue($data["amount_term"]);
// $_interest_rate->setValue($data["interest_rate"]);
// $_payterm->setValue($data["collect_typeterm"]);
// $_collect_date->setValue($data["date_pay"]);
// $old_tota_pay->setValue($data["total_payment"]-$data["service_charge"]);
}
$this->addElements(array($_client_code,$_loan_number,$old_release_date,$old_service_charge,$old_penelize,$_cocode,$_last_payment_date,$using_date,
$total_amount_loan,$loan_period,$candition_payment,$payment_method,$release_date,$loan_level,$remain,$old_tota_pay,
$installment_date,$amount_payment_term,$_interest_rate,$_payterm,$_currency_type,$id,$option_pay,$date_input,$reciept_no,
$reciever,$discount,$id,$_coid,$_priciple_amount,$_loan_fee,$_os_amount,$_rate,
$_penalize_amount,$_collect_date,$_total_payment,$_note,$_service_charge,$_amount_return,
$_amount_receive,$_branch_id,$_hide_total_payment));
return $this;
}
示例3: FrmAddLoan
//.........这里部分代码省略.........
'dojoType'=>'dijit.form.TextBox',
'class'=>'fullside',
));
$set_time='10:00-11:00 AM';
$_time->setValue($set_time);
$_paybefore = new Zend_Dojo_Form_Element_NumberTextBox('pay_before');
$_paybefore->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
'required' =>'true'
));
$_paybefore->setValue(0);
$_pay_late = new Zend_Dojo_Form_Element_NumberTextBox('pay_late');
$_pay_late->setAttribs(array(
'dojoType'=>'dijit.form.NumberTextBox',
'class'=>'fullside',
'required' =>'true'
));
$_pay_late->setValue(0);
$_branch_id = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
$_branch_id->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'required' =>'true'
));
$rows = $db->getAllBranchName();
$options='';
if(!empty($rows))foreach($rows AS $row){
$options[$row['br_id']]=$row['branch_namekh'];
}
$_branch_id->setMultiOptions($options);
$_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);
$_holiday = new Zend_Dojo_Form_Element_FilteringSelect('holiday');
$_holiday->setAttribs(array(
'dojoType'=>'dijit.form.FilteringSelect',
'class'=>'fullside',
'required' =>'true'
));
$options= array(1=>"Befor",2=>"After",3=>"Cancel");
$_holiday->setMultiOptions($options);
$_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']);
$_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']);
// print_r($data);
}
$this->addElements(array($_isgroup,$_groupid,$_client_code,$_time_collect,$_loan_fee,$_level,$_paybefore,$_pay_late,$_branch_id,$_member,$_coid,$_currency_type,$_zone,$_amount,$_rate,$_releasedate
,$_payterm,$_every_payamount,$_time,$_time_collect_pri,$_holiday,$_graice_pariod,$_period,
$_first_payment,$_repayment_method,$_pay_every,$_loan_code,$_collect_term,$_dateline,
$_group_code,$_customer_code,$_id));
return $this;
}
示例4: FrmAddLoan
//.........这里部分代码省略.........
'required' =>'true',
'onchange'=>'filterClient();'
));
$rows = $db->getAllBranchName();
$options=array(''=>'---Select Branch---');
if(!empty($rows))foreach($rows AS $row){
$options[$row['br_id']]=$row['branch_namekh'];
}
$_branch_id->setMultiOptions($options);
// $_branch_ids = new Zend_Dojo_Form_Element_FilteringSelect('branch_ids');
// $_branch_ids->setAttribs(array(
// 'dojoType'=>'dijit.form.FilteringSelect',
// 'class'=>'fullside',
// 'required' =>'true',
// 'onchange'=>'filterClient();'
// ));
// $rows = $db->getAllBranchName();
// $optionsa=array(''=>'---Select Branch---');
// if(!empty($rows))foreach($rows AS $row){
// $optionsa[$row['br_id']]=$row['branch_namekh'];
// }
// $_branch_ids->setMultiOptions($optionsa);
$_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'
));
示例5: FrmAddLoan
//.........这里部分代码省略.........
// $_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'));
$_graice_pariod->setValue(0);
$_payterm = new Zend_Dojo_Form_Element_FilteringSelect('payment_term');
$_payterm->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true'));
$options = array(1 => "Day", 2 => "Week", 3 => "Month");
$_payterm->setMultiOptions($options);
$_pay_every = new Zend_Dojo_Form_Element_FilteringSelect('pay_every');
$_pay_every->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true', 'onchange' => 'changeCollectType();'));
$options = array(1 => "Day", 2 => "Week", 3 => "Month");
$_pay_every->setMultiOptions($options);
$_pay_every->setValue(3);
$_every_payamount = new Zend_Dojo_Form_Element_FilteringSelect('every_payamount');
$_every_payamount->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true'));
$options = array(2 => "After", 1 => "Before", 3 => "Normal");
$_every_payamount->setMultiOptions($options);
$_time = new Zend_Dojo_Form_Element_TextBox('time');
$_time->setAttribs(array('dojoType' => 'dijit.form.TextBox', 'class' => 'fullside'));
$set_time = '10:00-11:00 AM';
$_time->setValue($set_time);
$_paybefore = new Zend_Dojo_Form_Element_NumberTextBox('pay_before');
$_paybefore->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_paybefore->setValue(0);
$_pay_late = new Zend_Dojo_Form_Element_NumberTextBox('pay_late');
$_pay_late->setAttribs(array('dojoType' => 'dijit.form.NumberTextBox', 'class' => 'fullside', 'required' => 'true'));
$_pay_late->setValue(0);
$_branch_id = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
$_branch_id->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true'));
$rows = $db->getAllBranchName();
$options = '';
if (!empty($rows)) {
foreach ($rows as $row) {
$options[$row['br_id']] = $row['branch_namekh'];
}
}
$_branch_id->setMultiOptions($options);
$_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= array(1=>"Decline",2=>"Baloon",3=>"Fixed Rate",4=>"Fixed Payment",5=>"Semi Baloon");
// $options= array(
// 1=>"Decline",
// 2=>"Baloon",
// 3=>"Fixed Rate",
// 4=>"Fixed Pyment(Full Last Period)",
// 5=>"Semi Baloon",
// 6=>"Fixed Payment (Fixed Rate)");
$options = $db->getAllPaymentMethod(null, 1);
$_repayment_method->setMultiOptions($options);
$_holiday = new Zend_Dojo_Form_Element_FilteringSelect('holiday');
$_holiday->setAttribs(array('dojoType' => 'dijit.form.FilteringSelect', 'class' => 'fullside', 'required' => 'true'));
$options = array(1 => "Befor", 2 => "After", 3 => "Cancel");
$_holiday->setMultiOptions($options);
if ($data != null) {
print_r($data);
$_branch_id->setValue($data['member_id']);
$_level->setValue($data['level']);
$_loan_fee->setValue($data['admin_fee']);
$_member->setValue($data['client_id']);
$_coid->setValue($data['co_id']);
$_zone->setValue($data['zone_id']);
$_releasedate->setValue($data['date_release']);
$_period->setValue($data['zone_id']);
$_first_payment->setValue($data['zone_id']);
$_time->setValue($data['time_collect']);
$_every_payamount->setValue($data['pay_term']);
$_amount->setValue($data['total_capital']);
$_currency_type->setValue($data['payment_method']);
$_rate->setValue($data['zone_id']);
$_repayment_method->setValue($data['payment_method']);
$_graice_pariod->setValue($data['graice_pariod']);
$_time_collect_pri->setValue($data['amount_collect_pricipal']);
}
$this->addElements(array($_isgroup, $_groupid, $_client_code, $_time_collect, $_loan_fee, $_level, $_paybefore, $_pay_late, $_branch_id, $_member, $_coid, $_currency_type, $_zone, $_amount, $_rate, $_releasedate, $_payterm, $_every_payamount, $_time, $_time_collect_pri, $_holiday, $_graice_pariod, $_period, $_first_payment, $_repayment_method, $_pay_every, $_loan_code, $_collect_term, $_dateline));
return $this;
}