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


PHP ZendX_JQuery_Form_Element_DatePicker::setJQueryParam方法代码示例

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


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

示例1: __construct

 public function __construct($minimumDeposit)
 {
     parent::__construct($minimumDeposit);
     $savings_amount = new Zend_Form_Element_Text('savings_amount');
     $savings_amount->addValidators(array(array('Float'), array('GreaterThan', false, array($minimumDeposit - 0.0001, 'messages' => array('notGreaterThan' => 'Minimum 
                                          Amount To open a savings account =' . $minimumDeposit)))));
     $savings_amount->setAttrib('class', 'txt_put');
     $savings_amount->setAttrib('id', 'amount');
     $savings_amount->setRequired(true);
     $savings_amount->setAttrib('onchange', 'calculateTotalAmount(this.value)');
     $memberfirstname = new Zend_Form_Element_MultiCheckbox('memberfirstname');
     $memberfirstname->setAttrib('class', 'textfield');
     $memberfirstname->setAttrib('id', 'selector');
     //         $memberfirstname->setRequired(true);
     $date1 = new ZendX_JQuery_Form_Element_DatePicker('date1', array('label' => 'Date:'));
     $date1->setAttrib('class', 'txt_put');
     $date1->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date1->setRequired(true);
     $memberId = new Zend_Form_Element_Hidden('memberId');
     $Type = new Zend_Form_Element_Hidden('Type');
     $productId = new Zend_Form_Element_Hidden('productId');
     $typeId = new Zend_Form_Element_Hidden('typeId');
     $memberTypeIdv = new Zend_Form_Element_Hidden('memberTypeIdv');
     $submit = new Zend_Form_Element_Submit('Submit');
     $Yes = new Zend_Form_Element_Submit('Yes');
     $back = new Zend_Form_Element_Submit('Back');
     $this->addElements(array($submit, $savings_amount, $memberfirstname, $memberId, $date1, $productId, $typeId, $Type, $memberTypeIdv, $back, $Yes));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:28,代码来源:Savings.php

示例2: __construct

 public function __construct($minimumDeposit, $ID, $codenum)
 {
     parent::__construct($minimumDeposit, $ID, $codenum);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $amount = $formfield->field('Text', 'amount', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $amount->addValidators(array(array('Float'), array('GreaterThan', false, array($minimumDeposit - 0.0001, 'messages' => array('notGreaterThan' => 'Minimum 
                                          Amount To open a savings account =' . $minimumDeposit)))));
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setAttrib('class', 'txt_put');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true);
     $date->setAttrib('size', 12);
     //hidden feilds
     $code = $formfield->field('Hidden', 'code', '', '', '', '', false, '', '', '', '', '', 0, $codenum);
     $Id = $formfield->field('Hidden', 'Id', '', '', '', '', false, '', '', '', '', '', 0, $ID);
     $submit = $formfield->field('Submit', 'Submit', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $Yes = $formfield->field('Submit', 'Yes', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $back = $formfield->field('Submit', 'Back', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $this->addElements(array($submit, $amount, $code, $Id, $date, $back, $Yes));
     if (substr(base64_decode($codenum), 4, 1) == 2 or substr(base64_decode($codenum), 4, 1) == 3) {
         $group = new Zend_Form_Element_MultiCheckbox('group');
         $this->addElements(array($group));
     } else {
         $group = 0;
     }
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:27,代码来源:Savings.php

示例3: __construct

 public function __construct($accNum)
 {
     parent::__construct($accNum);
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setAttrib('class', 'txt_put');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true);
     $date->setAttrib('size', 12);
     $date1 = new ZendX_JQuery_Form_Element_DatePicker('date1');
     $date1->setAttrib('class', 'txt_put');
     $date1->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date1->setRequired(true);
     $date1->setAttrib('size', 12);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $amount = $formfield->field('Text', 'amount', '', '', 'txt_put', '', true, '', '', '', '', '', 0, '');
     $graterthan = new Zend_Validate_GreaterThan(0);
     $amount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Float'), array($graterthan, true)));
     $amount->setAttrib('size', 12);
     $description = $formfield->field('Textarea', 'description', '', '', 'txt_put', '', true, '', '', '', 2, 15, '', 0, '');
     $transactionMode = $formfield->field('Select', 'transactionMode', '', '', 'txt_put', '', true, '', '', '', '', '', 0, '');
     // hidden feilds
     $accNum = $formfield->field('Hidden', 'accNum', '', '', 'txt_put', '', true, '', '', '', '', '', 0, $accNum);
     $sms = new Zend_Form_Element_Checkbox('sms');
     $back = new Zend_Form_Element_Submit('Back');
     $submit = new Zend_Form_Element_Submit('Submit');
     $this->addElements(array($date, $amount, $transactionMode, $description, $submit, $accNum, $back, $sms, $date1));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:28,代码来源:Deposit.php

示例4: init

 public function init()
 {
     $holidayname = new Zend_Form_Element_Text('holidayname');
     $holidayname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_holidayupdates', 'holidayname'));
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $office_id = new Zend_Form_Element_Select('office_id');
     $office_id->addMultiOption('', 'Select...');
     $office_id->addMultiOption('All', 'All');
     $office_id->setAttrib('class', 'txt_put');
     $office_id->setRequired(true)->addValidators(array(array('NotEmpty')));
     $holidayupdate_id = new Zend_Form_Element_Hidden('holidayupdate_id');
     $holidayfrom = new ZendX_JQuery_Form_Element_DatePicker('holidayfrom');
     $holidayfrom->setAttrib('class', 'txt_put');
     $holidayfrom->setJQueryParam('dateFormat', 'yy-mm-dd');
     $holidayfrom->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true, array('messages' => array(Zend_Validate_Date::FALSEFORMAT => 'Enter the valid date')));
     $holidayupto = new ZendX_JQuery_Form_Element_DatePicker('holidayupto');
     $holidayupto->setAttrib('class', 'txt_put');
     $holidayupto->setJQueryParam('dateFormat', 'yy-mm-dd');
     $holidayupto->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true, array('messages' => array(Zend_Validate_Date::FALSEFORMAT => 'Enter the valid date')));
     $repayment_date = new ZendX_JQuery_Form_Element_DatePicker('repayment_date');
     $repayment_date->setAttrib('class', 'txt_put');
     $repayment_date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $repayment_date->setRequired(true)->addValidators(array(array('NotEmpty')));
     array('messages' => array(Zend_Validate_Date::FALSEFORMAT => 'Enter the valid date'));
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->removeDecorator('DtDdWrapper');
     $this->addElements(array($holidayname, $office_id, $holidayfrom, $holidayupto, $repayment_date, $holidayupdate_id, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:29,代码来源:Holiday.php

示例5: __construct

 public function __construct($loanamount)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($loanamount);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setAttrib('class', 'txt_put');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true);
     $Amount = new Zend_Form_Element_Text('Amount');
     $Amount->setAttrib('class', 'textfield');
     $lessthan = new Zend_Validate_LessThan(array('max' => $loanamount + 1, 'inclusive' => false));
     $Amount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Float'), array($lessthan, true)));
     $transactionMode = $formfield->field('Select', 'transactionMode', '', '', 'tmode', '', true, '', '', '', '', '', 0, '');
     $etransfer = $formfield->field('Select', 'etransfer', '', '', 'etran', '', false, '', '', '', '', '', 0, '');
     $etransfer->setRegisterInArrayValidator(false);
     $memberid = $formfield->field('Hidden', 'memberid', '', '', 'memberclass', '', false, '', '', '', '', '', 0, '');
     $membertypeid = $formfield->field('Hidden', 'membertypeid', '', '', 'membertypeclass', '', false, '', '', '', '', '', 0, '');
     $pathhidden = $formfield->field('Hidden', 'pathhidden', '', '', 'pathclass', '', false, '', '', '', '', '', 0, '');
     $othrtext = new Zend_Form_Element_Text('othertext');
     $othrtext->setAttrib('size', 12);
     $description = new Zend_Form_Element_Textarea('description');
     $description->setAttrib('rows', '2');
     $description->setAttrib('cols', '20');
     $description->setRequired(true);
     $sms = new Zend_Form_Element_Checkbox('sms');
     $back = new Zend_Form_Element_Submit('Back');
     $back->setAttrib('id', 'button2');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('id', 'button');
     $this->addElements(array($date, $Amount, $transactionMode, $etransfer, $othrtext, $description, $sms, $memberid, $pathhidden, $membertypeid, $submit, $back));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:33,代码来源:loandisbursement.php

示例6: __construct

 public function __construct($minimumDeposit, $ID, $code, $app)
 {
     parent::__construct($minimumDeposit, $ID, $code, $app);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $amount = $formfield->field('Text', 'amount', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $amount->addValidators(array(array('Float'), array('GreaterThan', false, array($minimumDeposit - 0.0001, 'messages' => array('notGreaterThan' => 'Minimum 
                                   Amount To open a savings account =' . $minimumDeposit)))));
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setAttrib('class', 'txt_put');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true);
     $installments = $formfield->field('Select', 'installments', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $installments->setAttrib('onchange', 'getInterests(this.value,"' . $app . '",' . base64_decode($ID) . ')');
     $interest = $formfield->field('Text', 'interest', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $interest->setAttrib('size', '6');
     $interest->setAttrib('readonly', 'true');
     $interesttype = $formfield->field('Select', 'interesttype_id', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $savingAccount = $formfield->field('Select', 'savingAccount', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $fundings = $formfield->field('Select', 'fundings', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $fundings->addMultiOption('', 'Select...');
     $fundings->addMultiOption('1', 'funders');
     $fundings->addMultiOption('2', 'group');
     $fundings->setAttrib('onchange', 'displayRow(this.value)');
     $funders = $formfield->field('Radio', 'funders', '', '', 'txt_put', '', true, '', '', '', '', '', 0, 0);
     $funders->setAttrib('size', '8');
     //hidden feilds
     $code = $formfield->field('Hidden', 'code', '', '', '', '', false, '', '', '', '', '', 0, $code);
     $Id = $formfield->field('Hidden', 'Id', '', '', '', '', false, '', '', '', '', '', 0, $ID);
     $submit = $formfield->field('Submit', 'Submit', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $Yes = $formfield->field('Submit', 'Yes', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $back = $formfield->field('Submit', 'Back', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $this->addElements(array($submit, $amount, $installments, $interest, $interesttype, $savingAccount, $fundings, $funders, $code, $Id, $date, $back, $Yes));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:34,代码来源:Loans.php

示例7: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $creditline_id = new Zend_Form_Element_Text('creditline_id');
     $institution_id = new Zend_Form_Element_Text('institution_id');
     $institutionName = new Zend_Form_Element_Select('institutionname');
     $institutionName->setAttrib('class', 'txt_put');
     $institutionName->setAttrib('id', 'institutionname');
     $institutionName->setLabel('institutionname')->setRequired(true);
     $institutionName->addMultiOption('', 'Select...');
     $institutionName->setAttrib('onchange', 'getState(this.value)');
     $institutionNames = new Zend_Form_Element_Text('institutionnames');
     $institutionNames->setAttrib('class', 'txt_put');
     $institutionNames->setAttrib('readonly', 'true');
     $instituteamount = new Zend_Form_Element_Text('instituteamount');
     $instituteamount->setAttrib('class', 'txt_put');
     $instituteamount->setAttrib('readonly', 'true');
     $institutionamount = new Zend_Form_Element_Text('institutionamount');
     $institutionamount->setAttrib('class', 'txt_put');
     $institutionamount->setAttrib('readonly', 'true');
     $maxcreditlinelimit = new Zend_Form_Element_Text('maxcreditlinelimit');
     $maxcreditlinelimit->setAttrib('class', 'txt_put');
     $maxcreditlinelimit->setAttrib('readonly', 'true');
     $creditlinename = new Zend_Form_Element_Text('creditlinename');
     $creditlinename->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_creditlineinformation', 'creditlinename'));
     $creditlinename->setAttrib('class', 'txt_put');
     $creditlinename->setAttrib('id', 'creditlinename');
     $creditlinename->setLabel('creditlinename')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $creditlineshortname = new Zend_Form_Element_Text('creditline_shortname');
     $creditlineshortname->setAttrib('class', 'txt_put');
     $creditlineshortname->setAttrib('id', 'creditline_shortname');
     $creditlineshortname->setLabel('creditline_shortname')->setRequired(true)->addValidators(array('NotEmpty'));
     $creditlineamount = new Zend_Form_Element_Text('creditlineamount');
     $creditlineamount->setAttrib('class', 'txt_put');
     $creditlineamount->setAttrib('id', 'creditlineamount');
     $creditlineamount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Float')));
     $creditlineinterest = new Zend_Form_Element_Text('creditlineinterest');
     $creditlineinterest->setAttrib('class', 'txt_put');
     $creditlineinterest->setAttrib('id', 'creditlineinterest');
     $creditlineinterest->setRequired(true)->addValidators(array(array('NotEmpty'), array('stringLength', false, array(1, 3)), array('Digits')));
     $creditlinefrom = new ZendX_JQuery_Form_Element_DatePicker('creditline_beginingdate');
     $creditlinefrom->setJQueryParam('dateFormat', 'yy-mm-dd');
     $creditlinefrom->setRequired(true)->addValidators(array(array('Date')));
     $creditlinefrom->setAttrib('class', 'txt_put');
     $creditlinefrom->setAttrib('id', 'creditline_beginingdate');
     $creditlineto = new ZendX_JQuery_Form_Element_DatePicker('creditline_closingdate');
     $creditlineto->setJQueryParam('dateFormat', 'yy-mm-dd');
     $creditlineto->setRequired(true)->addValidators(array(array('Date')));
     $creditlineto->setAttrib('class', 'txt_put');
     $creditlineto->setAttrib('id', 'creditline_closingdate');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setlabel('Submit');
     $this->addElements(array($creditline_id, $institutionName, $creditlinename, $creditlineshortname, $creditlineamount, $creditlineinterest, $creditlinefrom, $creditlineto, $submit, $institutionamount, $instituteamount, $institutionNames, $institution_id, $maxcreditlinelimit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:56,代码来源:creditline.php

示例8: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $product_id = new Zend_Dojo_Form_Element_ComboBox('product_id');
     $product_id->addMultiOption('', 'Select...');
     $product_id->setAttrib('class', 'txt_put');
     $product_id->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproductname = new Zend_Dojo_Form_Element_ValidationTextBox('offerproductname');
     $offerproductname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_productsofferdetails', 'offerproductname'));
     $offerproductname->setAttrib('class', 'txt_put');
     $offerproductname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproductshortname = new Zend_Dojo_Form_Element_ValidationTextBox('offerproductshortname');
     $offerproductshortname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_productsofferdetails', 'offerproductshortname'));
     $offerproductshortname->setAttrib('class', 'txt_put');
     $offerproductshortname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproduct_description = new Zend_Dojo_Form_Element_SimpleTextarea('offerproduct_description', array('rows' => 3, 'cols' => 20));
     $offerproduct_description->setAttrib('class', '');
     $offerproduct_description->setRequired(true)->addValidators(array(array('NotEmpty')));
     //         $begindate = new Zend_Dojo_Form_Element_DateTextBox('begindate');
     //         $begindate->setLabel('Birthday');
     $begindate = new ZendX_JQuery_Form_Element_DatePicker('begindate', array('label' => 'Date:'));
     $begindate->setJQueryParam('dateFormat', 'yy-mm-dd');
     $begindate->setAttrib('class', 'txt_put');
     $begindate->setRequired(true)->addValidators(array(array('Date', true, array('messages' => array('dateNotYYYY-MM-DD' => 'Please enter in this format(YYYY-MM-DD)', 'dateInvalid' => "'%value%' is not a valid date Please enter in this format(YYYY-MM-DD)"))), array('Between', false, array($beginDate, $matureDate, 'messages' => array('notBetween' => 'date should be between ' . $beginDate . ' to (Closed date) ' . $matureDate)))));
     $minmumloanamount = new Zend_Dojo_Form_Element_NumberSpinner('minmumloanamount', array('value' => '7', 'label' => 'NumberSpinner', 'smallDelta' => 5, 'largeDelta' => 25, 'defaultTimeout' => 500, 'timeoutChangeRate' => 100, 'min' => 9, 'max' => 1550, 'places' => 0, 'maxlength' => 20));
     $minmumloanamount->setAttrib('class', 'txt_put');
     $minmumloanamount->setRequired(true)->addValidators(array(array('NotEmpty')));
     $closedate = new Zend_Dojo_Form_Element_TextBox('closedate');
     $closedate->setAttrib('class', 'txt_put');
     $closedate->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true)->addValidator(new Zend_Validate_GreaterThan($begindate));
     $applicableto = new Zend_Dojo_Form_Element_ComboBox('applicableto');
     $applicableto->addMultiOption('', 'Select...');
     $applicableto->setAttrib('class', 'txt_put');
     $applicableto->setRequired(true)->addValidators(array(array('NotEmpty')));
     $maximunloanamount = new Zend_Dojo_Form_Element_NumberTextBox('maximunloanamount');
     $maximunloanamount->setAttrib('class', 'txt_put');
     $maximunloanamount->setRequired(true);
     $validator = new Zend_Validate_Digits();
     $maximunloanamount->addValidator($validator, true);
     $minimumfrequency = new Zend_Dojo_Form_Element_NumberTextBox('minimumfrequency');
     $minimumfrequency->setAttrib('class', 'txt_put');
     $minimumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $maximumfrequency = new Zend_Dojo_Form_Element_NumberTextBox('maximumfrequency');
     $maximumfrequency->setAttrib('class', 'txt_put');
     $maximumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $graceperiodnumber = new Zend_Dojo_Form_Element_NumberTextBox('graceperiodnumber');
     $graceperiodnumber->setAttrib('class', 'txt_put');
     $graceperiodnumber->setRequired(true)->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Dojo_Form_Element_SubmitButton('Submit');
     $this->addElements(array($offerproductname, $offerproductshortname, $offerproduct_description, $begindate, $closedate, $applicableto, $minmumloanamount, $maximunloanamount, $minimumfrequency, $maximumfrequency, $graceperiodnumber, $product_id, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:52,代码来源:User.php

示例9: __construct

 public function __construct($path, $minumumbal, $maximumbal)
 {
     parent::__construct($path, $minumumbal);
     $formfield = new App_Form_Field();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setJQueryParam('dateFormat', 'dd/mm/yy');
     $date->setAttrib('autocomplete', 'off');
     $date->setRequired(true);
     $period = new Zend_Form_Element_Select('period');
     $period->addMultiOption('', 'Select...');
     $period->setRequired(true);
     $period->setAttrib('onchange', 'getInterests(this.value)');
     $interest = new Zend_Form_Element_Text('interest');
     $interest->setRequired(true);
     $tAmount = $formfield->field('Text', 'tAmount', '', '', 'mand amount1 number', 'Category name', true, '', '', '', '', '', 0, 0);
     //         $tAmount = new Zend_Form_Element_Text('tAmount');
     //         $tAmount->setAttrib('class', 'amount1');
     //         $tAmount->setAttrib('class', 'number');
     //         $tAmount->setAttrib('readonly', true);
     //         $tAmount->setRequired(true);
     $valid = new Zend_Validate_Between(array('min' => $minumumbal, 'max' => $maximumbal));
     $tAmount->addValidators(array(array($valid, true)));
     //         $tAmount->setAttrib('onchange', 'calculateMatureAmount()');
     $matureamount = new Zend_Form_Element_Text('matureamount');
     $matureamount->setAttrib('class', 'txt_put');
     $amount = new Zend_Form_Element_Text('amount');
     $amount->setAttrib('class', 'txt_put');
     //         $amount->setRequired(true);
     $amount->setAttrib('onchange', 'calculateTotalAmount(this.value),calculateMatureAmount()');
     $memberfirstname = new Zend_Form_Element_MultiCheckbox('memberfirstname');
     $memberfirstname->setAttrib('class', 'textfield');
     //         $memberfirstname->setRequired(true);
     $fixedfee = new Zend_Form_Element_Text('fixedfee');
     $fixedfee->setAttrib('class', 'txt_put');
     $fixedfee->setAttrib('readonly', 'true');
     $totalamount = new Zend_Form_Element_Text('totalamount');
     $totalamount->setAttrib('class', 'txt_put');
     $totalamount->setAttrib('readonly', 'true');
     $memberId = new Zend_Form_Element_Hidden('memberId');
     $productId = new Zend_Form_Element_Hidden('Id');
     $membercode = new Zend_Form_Element_Hidden('code');
     $typeId = new Zend_Form_Element_Hidden('typeId');
     $Type = new Zend_Form_Element_Hidden('Type');
     $memberTypeIdv = new Zend_Form_Element_Hidden('memberTypeIdv');
     $submit = new Zend_Form_Element_Submit('Submit');
     $Yes = new Zend_Form_Element_Submit('Yes');
     $back = new Zend_Form_Element_Submit('Back');
     $this->addElements(array($submit, $amount, $period, $matureamount, $interest, $tAmount, $memberfirstname, $fixedfee, $memberId, $membercode, $totalamount, $Type, $date, $productId, $typeId, $memberTypeIdv, $Yes, $back));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:50,代码来源:Fixed.php

示例10: init

 public function init()
 {
     $fundingupdates_id = new Zend_Form_Element_Hidden('fundingupdates_id');
     $funding_id = new Zend_Form_Element_Hidden('funding_id');
     $funder_id = new Zend_Form_Element_Select('funder_id');
     $funder_id->addMultiOption('', 'Select...');
     $funder_id->setAttrib('class', 'txt_put');
     $funder_id->setRequired(true)->addValidators(array(array('NotEmpty')));
     //  $funder_id = new Zend_Form_Element_Text('funder_id');
     //         $funder_id->addValidators(array(array('NotEmpty')));
     //         $funder_id->setAttrib('class', 'txt_put');
     //         $funder_id->setRequired(true)
     // 		->addValidators(array(array('NotEmpty')));
     //
     $institutionName = new Zend_Form_Element_Select('institutionname');
     $institutionName->setAttrib('class', 'txt_put');
     $institutionName->setAttrib('id', 'institutionname');
     $institutionName->setLabel('institutionname')->setRequired(true);
     $institutionName->addMultiOption('', 'Select...');
     $fundingname = new Zend_Form_Element_Text('fundingname');
     $fundingname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_fundingdetails', 'fundingname'));
     $fundingname->setAttrib('class', 'txt_put');
     $fundingname->setRequired(true)->addValidators(array('NotEmpty', 'alpha'));
     $interest = new Zend_Form_Element_Text('interest');
     $interest->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_fundingdetails', 'fundingname'));
     $interest->setAttrib('class', 'txt_put');
     $interest->setRequired(true)->addValidators(array(array('NotEmpty')));
     $funding_currency_id = new Zend_Form_Element_Select('funding_currency_id');
     $funding_currency_id->addMultiOption('', 'Select...');
     $funding_currency_id->setAttrib('class', 'txt_put');
     $funding_currency_id->setRequired(true)->addValidators(array(array('NotEmpty')));
     $fundingamount = new Zend_Form_Element_Text('fundingamount');
     $fundingamount->setAttrib('class', 'txt_put');
     $fundingamount->setRequired(true)->addValidators(array('Float'));
     $exchangerate = new Zend_Form_Element_Text('exchangerate');
     $exchangerate->setAttrib('class', 'txt_put');
     $exchangerate->setRequired(true)->addValidators(array(array('Float')));
     $fund_beginingdate = new ZendX_JQuery_Form_Element_DatePicker('fund_beginingdate');
     $fund_beginingdate->setAttrib('class', 'txt_put');
     $fund_beginingdate->setJQueryParam('dateFormat', 'yy-mm-dd');
     $fund_beginingdate->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true);
     $fund_closingdate = new ZendX_JQuery_Form_Element_DatePicker('fund_closingdate');
     $fund_closingdate->setAttrib('class', 'txt_put');
     $fund_closingdate->setJQueryParam('dateFormat', 'yy-mm-dd');
     $fund_closingdate->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true);
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->removeDecorator('DtDdWrapper');
     $this->addElements(array($fundingupdates_id, $fundingupdates_id, $funder_id, $funding_id, $fundingname, $funding_currency_id, $fundingamount, $exchangerate, $fund_beginingdate, $fund_closingdate, $institutionName, $interest, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:49,代码来源:Fundings.php

示例11: __construct

 public function __construct($path, $minumumbal, $maximumbal)
 {
     parent::__construct($path, $minumumbal);
     $date1 = new ZendX_JQuery_Form_Element_DatePicker('date1');
     $date1->setAttrib('class', 'txt_put');
     $date1->setAttrib('autocomplete', 'off');
     $date1->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date1->setRequired(true);
     $period = new Zend_Form_Element_Select('period');
     $period->addMultiOption('', 'Select...');
     $period->setAttrib('class', 'txt_put');
     $period->setRequired(true);
     $period->setAttrib('onchange', 'getInterests("' . $path . '",this.value)');
     $interest = new Zend_Form_Element_Text('interest');
     $interest->setAttrib('class', 'txt_put');
     //         $interest->setAttrib('readonly', 'true');
     $tAmount = new Zend_Form_Element_Text('tAmount');
     $tAmount->setAttrib('class', 'txt_put');
     $tAmount->setAttrib('onchange', 'calculateMatureAmount()');
     $valid = new Zend_Validate_Between(array('min' => $minumumbal, 'max' => $maximumbal));
     $tAmount->addValidators(array(array($valid, true)));
     $matureamount = new Zend_Form_Element_Text('matureamount');
     $matureamount->setAttrib('class', 'txt_put');
     $amount = new Zend_Form_Element_Text('amount');
     $amount->setAttrib('class', 'txt_put');
     //         $amount->setRequired(true);
     $amount->setAttrib('onchange', 'calculateTotalAmount(this.value),calculateMatureAmount()');
     $memberfirstname = new Zend_Form_Element_MultiCheckbox('memberfirstname');
     $memberfirstname->setAttrib('class', 'textfield');
     //         $memberfirstname->setRequired(true);
     $fixedfee = new Zend_Form_Element_Text('fixedfee');
     $fixedfee->setAttrib('class', 'txt_put');
     $fixedfee->setAttrib('readonly', 'true');
     $totalamount = new Zend_Form_Element_Text('totalamount');
     $totalamount->setAttrib('class', 'txt_put');
     $totalamount->setAttrib('readonly', 'true');
     $memberId = new Zend_Form_Element_Hidden('memberId');
     $productId = new Zend_Form_Element_Hidden('Id');
     $membercode = new Zend_Form_Element_Hidden('code');
     $typeId = new Zend_Form_Element_Hidden('typeId');
     $Type = new Zend_Form_Element_Hidden('Type');
     $memberTypeIdv = new Zend_Form_Element_Hidden('memberTypeIdv');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setRequired(false);
     $Yes = new Zend_Form_Element_Submit('Yes');
     $back = new Zend_Form_Element_Submit('Back');
     $this->addElements(array($submit, $amount, $period, $matureamount, $interest, $tAmount, $memberfirstname, $fixedfee, $memberId, $membercode, $totalamount, $Type, $date1, $productId, $typeId, $memberTypeIdv, $Yes, $back));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:48,代码来源:Recurring.php

示例12: __construct

 public function __construct($options = null)
 {
     parent::__construct($options);
     $accountId = new Zend_Form_Element_Hidden('accountcode');
     $memberId = new Zend_Form_Element_Hidden('membercode');
     $Date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $Date->setAttrib('class', 'txt_put');
     $Date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $Date->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true, array('messages' => array(Zend_Validate_Date::FALSEFORMAT => 'Enter the valid date')));
     $Amount = new Zend_Form_Element_Text('amount');
     $Amount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Float'), array('GreaterThan', false, array('0'))));
     $Amount->setAttrib('class', 'textfield');
     $Amount->setAttrib('id', 'amount');
     $Amount->setAttrib('size', '8');
     $paymenttype = new Zend_Form_Element_Select('paymenttype');
     $paymenttype->addMultiOption('', 'select');
     $paymenttype->setAttrib('class', 'NormalBtn');
     $paymenttype->setAttrib('id', 'paymenttype');
     $paymenttype->setAttrib('onchange', 'toggleField();');
     $paymenttype->setRequired(true);
     $description = new Zend_Form_Element_Textarea('transactiondescription');
     $description->setAttrib('class', 'textfield');
     $description->setAttrib('rows', '2');
     $description->setAttrib('cols', '20');
     $description->setRequired(true);
     $no = new Zend_Form_Element_Textarea('paymenttype_details');
     $no->setAttrib('class', 'textfield');
     $no->setAttrib('rows', '1');
     $no->setAttrib('cols', '20');
     $no->setAttrib('id', 'paymenttype_details');
     $no->setAttrib('style', 'display:none;');
     $no->setRequired(true);
     $categoryId = new Zend_Form_Element_Hidden('categoryId');
     $categoryId->setAttrib('class', 'textfield');
     $date1 = new Zend_Form_Element_Hidden('date1');
     $amount1 = new Zend_Form_Element_Hidden('amounts');
     $transactiondescription1 = new Zend_Form_Element_Hidden('transactiondescription1');
     $paymenttype_details1 = new Zend_Form_Element_Hidden('paymenttype_details1');
     $paymenttype1 = new Zend_Form_Element_Hidden('paymenttype1');
     $confirm = new Zend_Form_Element_Submit('confirm');
     $confirm->setAttrib('class', 'NormalBtn');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'NormalBtn');
     $submit->setLabel('submit');
     $this->addElements(array($Date, $Amount, $paymenttype, $submit, $accountId, $memberId, $description, $no, $categoryId, $confirm, $date1, $amount1, $transactiondescription1, $paymenttype_details1, $paymenttype1));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:46,代码来源:SavingsTransaction.php

示例13: __construct

 public function __construct($beginDate, $matureDate, $minimumDeposit, $maxmDeposit, $app)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($beginDate, $matureDate, $minimumDeposit, $maxmDeposit);
     $memberfirstname = new Zend_Form_Element_MultiCheckbox('memberfirstname');
     $memberfirstname->setAttrib('class', 'txt_put');
     $memberfirstname->setRequired(true);
     $savingAccount = new Zend_Form_Element_multiCheckbox('savingAccount');
     $savingAccount->setAttrib('class', 'txt_put');
     //         $savingAccount->setRequired(true);
     $startdate = new ZendX_JQuery_Form_Element_DatePicker('loanAccountdate', array('label' => 'Date:'));
     $startdate->setJQueryParam('dateFormat', 'yy-mm-dd');
     $startdate->setAttrib('size', '8');
     $startdate->setAttrib('class', 'txt_put');
     $startdate->setRequired(true);
     $amount = new Zend_Form_Element_Text('amount');
     $amount->setRequired(true);
     $amount->addValidator('Float');
     $amount->setAttrib('size', '8');
     $amount->setAttrib('class', 'txt_put');
     $amount->setAttrib('onchange', 'calculateTotalAmount(this.value)');
     $loanInstallements = new Zend_Form_Element_Select('loanInterest');
     $loanInstallements->addMultiOption('', 'Select...');
     $loanInstallements->setAttrib('class', 'txt_put');
     $loanInstallements->setAttrib('id', 'loanInterest');
     $loanInstallements->setRequired(true);
     $loanInstallements->setAttrib('onchange', 'getInterests(this.value,"' . $app . '")');
     $interest = new Zend_Form_Element_Text('interest');
     $interest->setAttrib('class', 'txt_put');
     $interest->setAttrib('id', 'interest');
     $interest->setAttrib('size', '8');
     $this->addElements(array($memberfirstname, $interest, $startdate, $amount, $loanInstallements));
     $submit = new Zend_Form_Element_Submit('Submit');
     $memberId = new Zend_Form_Element_Hidden('memberId');
     $productId = new Zend_Form_Element_Hidden('productId');
     $typeId = new Zend_Form_Element_Hidden('typeId');
     $Type = new Zend_Form_Element_Hidden('Type');
     $back = new Zend_Form_Element_Submit('Back');
     $Yes = new Zend_Form_Element_Submit('Yes');
     $this->addElements(array($submit, $memberId, $productId, $savingAccount, $typeId, $Type, $back, $Yes));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:41,代码来源:Loan.php

示例14: __construct

 public function __construct($options = null)
 {
     parent::__construct($options);
     $date = new ZendX_JQuery_Form_Element_DatePicker('Date1');
     $date->setAttrib('class', '');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true, array('messages' => array(Zend_Validate_Date::FALSEFORMAT => 'Enter the valid date')));
     $accountCode = new Zend_Form_Element_Hidden('accountcode');
     $memberId = new Zend_Form_Element_Hidden('membercode');
     $categoryId = new Zend_Form_Element_Hidden('categoryId');
     $loanAmount = new Zend_Form_Element_Hidden('loan_amount');
     $typeId = new Zend_Form_Element_Hidden('typeId');
     $creditlinebalance = new Zend_Form_Element_Text('creditlinebalance');
     $creditlinebalance->setAttrib('readonly', 'true');
     $transactionType = new Zend_Form_Element_Select('transaction_type');
     $transactionType->setAttrib('class', 'NormalBtn');
     $transactionType->setAttrib('id', 'transaction_type');
     $transactionType->addMultiOption('3', '-Loan Disbursement-');
     $Amount = new Zend_Form_Element_Text('Amount');
     $Amount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Digits'), array('GreaterThan', false, array('0'))));
     $Amount->setAttrib('class', 'textfield');
     $Amount->setAttrib('id', 'Amount');
     $description = new Zend_Form_Element_Textarea('description');
     $description->setAttrib('rows', '2');
     $description->setAttrib('cols', '20');
     $description->setRequired(true);
     $fee = new Zend_Form_Element_Text('fee');
     $fee->setAttrib('class', 'textfield');
     $fee->setAttrib('readonly', 'true');
     $Save = new Zend_Form_Element_Submit('Save');
     $Save->setAttrib('class', 'officesubmit');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $transactionTypeId = new Zend_Form_Element_Hidden('transactionType_id');
     $transactionTypeId->setAttrib('class', 'textfield');
     $disburseddate = new Zend_Form_Element_Hidden('disburseddate');
     $description1 = new Zend_Form_Element_Hidden('description1');
     $Amount1 = new Zend_Form_Element_Hidden('Amount1');
     $fee1 = new Zend_Form_Element_Hidden('fee1');
     $this->addElements(array($Amount, $date, $transactionType, $description, $categoryId, $memberId, $typeId, $fee, $submit, $loanAmount, $accountCode, $transactionTypeId, $creditlinebalance, $Save, $disburseddate, $description1, $Amount1, $fee1));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:41,代码来源:loandisbursement.php

示例15: __construct

 public function __construct($accNum, $balance, $minimumbalance)
 {
     parent::__construct($accNum, $balance, $minimumbalance);
     $limitamount = $balance - $minimumbalance;
     $date = new ZendX_JQuery_Form_Element_DatePicker('date');
     $date->setAttrib('class', 'txt_put');
     $date->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date->setRequired(true);
     $date->setAttrib('autocomplete', 'off');
     $date->setAttrib('size', 12);
     $date1 = new ZendX_JQuery_Form_Element_DatePicker('date1');
     $date1->setAttrib('class', 'txt_put');
     $date1->setJQueryParam('dateFormat', 'yy-mm-dd');
     $date1->setRequired(true);
     $date1->setAttrib('autocomplete', 'off');
     $date1->setAttrib('size', 12);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     // 		$amount = $formfield->field('Text','amount','','','txt_put maxvalue','',true,'','','','','',0,'');
     //                 $lessthan=new Zend_Validate_LessThan($limitamount);
     //                 $amount->setRequired(true)
     //                 ->addValidators(array(array('NotEmpty'),array('Float')));
     //                 $amount->setAttrib('size', 10);
     $description = $formfield->field('Textarea', 'description', '', '', 'txt_put', '', true, '', '', '', 2, 10, '', 0, '');
     $description1 = $formfield->field('Textarea', 'description1', '', '', 'txt_put', '', true, '', '', '', 2, 10, '', 0, '');
     $transactionMode = $formfield->field('Select', 'transactionMode', '', '', 'tmode', '', true, '', '', '', '', '', 0, '');
     $transactionMode1 = $formfield->field('Select', 'transactionMode1', '', '', 'tmode', '', true, '', '', '', '', '', 0, '');
     $othrtext = new Zend_Form_Element_Text('othertext');
     $othrtext->setRequired(true);
     $othrtext->setAttrib('size', 12);
     $othrtext1 = new Zend_Form_Element_Text('othertext1');
     $othrtext1->setRequired(true);
     $othrtext1->setAttrib('size', 12);
     $acc = base64_encode($accNum);
     // hidden feilds
     $accNum = $formfield->field('Hidden', 'accNum', '', '', 'txt_put', '', true, '', '', '', '', '', 0, $acc);
     $sms = new Zend_Form_Element_Checkbox('sms');
     $back = new Zend_Form_Element_Submit('Back');
     $submit = new Zend_Form_Element_Submit('Submit');
     $this->addElements(array($date, $transactionMode, $transactionMode1, $description, $description1, $submit, $accNum, $back, $sms, $othrtext, $othrtext1, $date1));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:41,代码来源:Withdrawal.php


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