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


PHP Zend_Dojo::enableForm方法代码示例

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


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

示例1: __construct

 public function __construct($app, $value)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($app);
     parent::__construct($value);
     $membertitle = new Zend_Form_Element_Select('membertitle');
     $membertitle->setAttrib('class', 'txt_put');
     $membertitle->setAttrib('id', 'membertitle');
     $membertitle->setAttrib('tabindex', '3');
     $membertitle->setAttrib($value, 'true');
     $memberfirstname = new Zend_Form_Element_Text('memberfirstname');
     $memberfirstname->setAttrib('class', '');
     $memberfirstname->setAttrib('size', '10');
     $memberfirstname->setAttrib('id', 'memberfirstname');
     $memberaddressline1 = new Zend_Form_Element_Text('memberaddressline1');
     $memberaddressline1->setAttrib('class', 'txt_put');
     $memberaddressline1->setAttrib('id', 'memberaddressline1');
     $memberaddressline1->setAttrib('tabindex', '13');
     $memberaddressline1->setAttrib($value, 'true');
     $memberaddressline2 = new Zend_Form_Element_Text('memberaddressline2');
     $memberaddressline2->setAttrib('class', 'txt_put');
     $memberaddressline2->setAttrib('id', 'memberaddressline2');
     $memberaddressline2->setAttrib('tabindex', '14');
     $memberaddressline2->setAttrib($value, 'true');
     $memberaddressline3 = new Zend_Form_Element_Text('memberaddressline3');
     $memberaddressline3->setAttrib('class', 'txt_put');
     $memberaddressline3->setAttrib('id', 'memberaddressline3');
     $memberaddressline3->setAttrib('tabindex', '15');
     $memberaddressline3->setAttrib($value, 'true');
     $membercity = new Zend_Form_Element_Text('membercity');
     $membercity->setAttrib('class', 'txt_put');
     $membercity->setAttrib('id', 'membercity');
     $membercity->setAttrib('tabindex', '16');
     $membercity->setAttrib($value, 'true');
     $familymembername = new Zend_Form_Element_Text('familymembername');
     $familymembername->setAttrib('class', 'txt_put');
     $familymembername->setAttrib('size', '10');
     $familymembername->setAttrib('id', 'familymembername');
     $memberId = new Zend_Form_Element_Text('member_id');
     $memberId->setAttrib('class', 'txt_put');
     $memberId->setAttrib('readonly', 'true');
     $memberId->setAttrib('size', '10');
     $OFFICE_TYPE = new Zend_Form_Element_Select('officeType');
     $OFFICE_TYPE->addMultiOption('', 'Select');
     $OFFICE_TYPE->setAttrib('class', 'txt_put');
     $OFFICE_TYPE->setAttrib('onchange', 'getBranch(this.value,"' . $app . '")');
     $OFFICE_TYPE->setAttrib('tabindex', '1');
     $OFFICE_TYPE->setAttrib($value, 'true');
     $SUB_OFFICE = new Zend_Form_Element_Select('subOffice');
     $SUB_OFFICE->setAttrib('class', 'txt_put');
     $SUB_OFFICE->setAttrib('tabindex', '2');
     $SUB_OFFICE->setAttrib($value, 'true');
     $submit = new Zend_Form_Element_Submit('Save');
     $submit->setAttrib('id', 'save');
     $this->addElements(array($OFFICE_TYPE, $SUB_OFFICE, $memberfirstname, $familymembername, $membertitle, $memberaddressline1, $memberaddressline2, $memberaddressline3, $membercity, $submit, $memberId));
     $memberId = new Zend_Form_Element_Hidden('memberId');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $this->addElements(array($submit, $memberId));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:60,代码来源:Individualclone.php

示例2: __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

示例3: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $app = APPLICATION_PATH;
     $accountHeader = new Zend_Form_Element_Text('accountHeader');
     $accountHeader->setAttrib('class', 'txt_put');
     $accountHeader->setAttrib('id', 'accountHeader');
     $accountHeader->setRequired(true)->addValidators(array(array('NotEmpty')));
     $glcodeDescription = new Zend_Form_Element_Textarea('glcodeDescription', array('rows' => 3, 'cols' => 25));
     $glcodeDescription->setAttrib('id', 'glcodeDescription');
     $glcodeDescription->setRequired(true)->addValidators(array(array('NotEmpty')));
     $product = new Zend_Form_Element_Select('product');
     $product->setAttrib('select', '-----');
     $product->setAttrib('class', 'txt_put');
     $product->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproduct = new Zend_Form_Element_Select('offerproduct');
     $offerproduct->setAttrib('select', '-----');
     $offerproduct->setAttrib('class', 'txt_put');
     $subheader = new Zend_Form_Element_Text('subheader');
     $subheader->setAttrib('class', 'txt_put');
     $subheader->setAttrib('id', 'subheader');
     $glsubaccountdescription = new Zend_Form_Element_Textarea('glsubaccountdescription', array('rows' => 3, 'cols' => 25));
     $glsubaccountdescription->setAttrib('id', 'glsubaccountdescription');
     $submit = new Zend_Form_Element_Submit('Save');
     $submit->setAttrib('id', 'Save');
     $submit->setAttrib('class', 'holiday1');
     $this->addElements(array($submit, $accountHeader, $glcodeDescription, $subheader, $glsubaccountdescription, $product, $offerproduct));
     $glcodeUpdateId = new Zend_Form_Element_Hidden('glcodeUpdateId');
     $glsubcodeupdate_id = new Zend_Form_Element_Hidden('glsubcodeupdate_id');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'holiday');
     $this->addElements(array($submit, $glcodeUpdateId, $glsubcodeupdate_id));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:34,代码来源:Ledger.php

示例4: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $category_id = new Zend_Form_Element_Select('category_id');
     $category_id->addMultiOption('', 'Select...');
     $category_id->setAttrib('class', 'txt_put')->setLabel('Category  Name');
     $category_id->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $productname = new Zend_Form_Element_Text('productname');
     $productname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_productdetails', 'productname'));
     $productname->setAttrib('class', 'txt_put')->setLabel('Product Name');
     $productname->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $product_id = new Zend_Form_Element_Hidden('product_id');
     $product_id->setAttrib('class', 'txt_put');
     $productshortname = new Zend_Form_Element_Text('productshortname');
     $productshortname->setAttrib('class', 'txt_put')->setLabel('Product Short Name');
     $productshortname->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $product_description = new Zend_Form_Element_Textarea('product_description', array('rows' => 3, 'cols' => 20));
     $product_description->setAttrib('class', '')->setLabel('Productdescription');
     $product_description->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('id', 'save')->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('colspan' => '8 ')), array(array('data' => 'HtmlTag'), array('tag' => 'td ', 'colspan' => '8')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $this->addElements(array($category_id, $productname, $productshortname, $product_description, $product_id, $submit));
     $this->setDecorators(array('FormElements', array(array('data' => 'HtmlTag'), array('tag' => 'table', 'id' => 'hor-minimalist-b')), 'Form'));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:25,代码来源:Product.php

示例5: __construct

 public function __construct($currencysymbol)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $feename = new Zend_Form_Element_Text('feename');
     $feename->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_feedetails', 'feename'));
     $feename->setAttrib('class', 'txt_put')->setLabel('Fee Name');
     $feename->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', "'..'")), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $feedescription = new Zend_Form_Element_Textarea('feedescription', array('rows' => 3, 'cols' => 20));
     $feedescription->setAttrib('class', '')->setLabel('Description');
     $feedescription->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $feeappliesto_id = new Zend_Form_Element_Select('feeappliesto_id');
     $feeappliesto_id->addMultiOption('', 'Select...');
     $feeappliesto_id->setAttrib('class', 'txt_put')->setLabel('Member Type');
     $feeappliesto_id->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $feefrequency_id = new Zend_Form_Element_Select('feefrequency_id');
     $feefrequency_id->addMultiOption('', 'Select...');
     $feefrequency_id->setAttrib('class', 'txt_put')->setLabel('Fee for');
     $feefrequency_id->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $feevalue = new Zend_Form_Element_Text('feevalue');
     $feevalue->setAttrib('class', 'txt_put')->setLabel('Fee Amount');
     $feevalue->setRequired(true)->addValidators(array(array('NotEmpty')))->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $fee_id = new Zend_Form_Element_Hidden('fee_id');
     $fee_id->setAttrib('class', 'txt_put');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('id', 'Submit')->setDecorators(array('ViewHelper', array('Description', array('tag' => '', 'escape' => false)), 'Errors', array(array('data' => 'HtmlTag'), array('colspan' => '8 ')), array(array('data' => 'HtmlTag'), array('tag' => 'td ', 'colspan' => '8')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $this->addElements(array($fee_id, $feename, $feevalue, $feedescription, $feeappliesto_id, $feefrequency_id, $product_id, $submit));
     $this->setDecorators(array('FormElements', array(array('data' => 'HtmlTag'), array('tag' => 'table', 'id' => 'hor-minimalist-b')), 'Form'));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:29,代码来源:Fee.php

示例6: __construct

 public function __construct($currencysymbol)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $finename = new Zend_Form_Element_Text('finename');
     $finename->setRequired(true)->addValidators(array(array('NotEmpty')));
     $finename->setAttrib('class', 'txt_put');
     $finename->setAttrib('id', 'finename');
     $membertype = new Zend_Form_Element_Select('membertype');
     $membertype->setAttrib('class', 'selectbutton');
     $membertype->setAttrib('id', 'membertype');
     $membertype->setRequired(true)->addValidators(array(array('NotEmpty')));
     $finedescription = new Zend_Form_Element_Text('finedescription');
     $finedescription->setAttrib('class', 'txt_put');
     $finedescription->setAttrib('id', 'finedescription');
     $finedescription->setRequired(true)->addValidators(array(array('NotEmpty')));
     $finevalue = new Zend_Form_Element_Text('finevalue');
     $finevalue->setAttrib('class', 'txt_put');
     $finevalue->setAttrib('id', 'finevalue');
     $finevalue->setAttrib('size', '6');
     $finevalue->setRequired(true)->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Form_Element_Submit('Save');
     $submit->setAttrib('id', 'save');
     $this->addElements(array($finename, $finedescription, $membertype, $finevalue));
     $fineId = new Zend_Form_Element_Hidden('fineId');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'finesubmit');
     $submit->setLabel('submit');
     $this->addElements(array($submit, $fineId));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:30,代码来源:Fine.php

示例7: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $holidayname = new Zend_Form_Element_Text('holidayname');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $office_id = new Zend_Form_Element_Select('office_id');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $holiday_id = new Zend_Form_Element_Hidden('holiday_id');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $holidayfrom = new ZendX_JQuery_Form_Element_DatePicker('holidayfrom');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $holidayupto = new ZendX_JQuery_Form_Element_DatePicker('holidayupto');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $holidayrepayment_id = new ZendX_JQuery_Form_Element_DatePicker('holidayrepayment_id');
     $holidayname->setAttrib('class', 'txt_put');
     $holidayname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Form_Element_Submit('Submit');
     $this->addElements(array($holidayname, $office_id, $holidayfrom, $holidayupto, $holiday_id, $holidayrepayment_id, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:25,代码来源:Holiday.php

示例8: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('id', 'save');
     $this->addElements(array($submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:8,代码来源:Submit.php

示例9: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $accountnumber = new Zend_Form_Element_Text('accountnumber');
     $accountnumber->setAttrib('class', 'txt_put');
     $submit = new Zend_Form_Element_Submit('Search');
     $this->addElements(array($accountnumber, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:9,代码来源:Loanrepayment.php

示例10: __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

示例11: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $field1 = new ZendX_JQuery_Form_Element_DatePicker('field1');
     $field1->setAttrib('class', 'txt_put');
     $submit = new Zend_Form_Element_Submit('Search');
     $pdf = new Zend_Form_Element_Submit('PDF');
     $this->addElements(array($field1, $submit, $pdf));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:10,代码来源:Search.php

示例12: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $member_id = new Zend_Form_Element_Text('member_id');
     $member_id->setAttrib('class', 'txt_put');
     $submit = new Zend_Form_Element_Submit('Search');
     $submit->setAttrib('id', 'save');
     $this->addElements(array($member_id, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:10,代码来源:Membersearch.php

示例13: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $product_id = new Zend_Form_Element_Select('product_id');
     $product_id->addMultiOption('', 'Select...');
     $product_id->setAttrib('class', 'txt_put');
     $product_id->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproductname = new Zend_Form_Element_Text('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_Form_Element_Text('offerproductshortname');
     $offerproductshortname->setAttrib('class', 'txt_put');
     $offerproductshortname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $offerproduct_description = new Zend_Form_Element_Textarea('offerproduct_description', array('rows' => 3, 'cols' => 20));
     $offerproduct_description->setAttrib('class', '');
     $offerproduct_description->setRequired(true)->addValidators(array(array('NotEmpty')));
     $begindate = new Zend_Form_Element_Text('begindate');
     $begindate->setAttrib('class', 'txt_put');
     $begindate->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true);
     $closedate = new Zend_Form_Element_Text('closedate');
     $closedate->setAttrib('class', 'txt_put');
     $closedate->setRequired(true)->addValidator(new Zend_Validate_Date('YYYY-MM-DD'), true);
     $applicableto = new Zend_Form_Element_Select('applicableto');
     $applicableto->addMultiOption('', 'Select...');
     $applicableto->setAttrib('class', 'txt_put');
     $applicableto->setRequired(true)->addValidators(array(array('NotEmpty')));
     $minmumloanamount = new Zend_Form_Element_Text('minmumloanamount');
     $minmumloanamount->setAttrib('class', 'txt_put');
     $maximunloanamount = new Zend_Form_Element_Text('maximunloanamount');
     $maximunloanamount->setAttrib('class', 'txt_put');
     $minimumfrequency = new Zend_Form_Element_Text('minimumfrequency');
     $minimumfrequency->setAttrib('class', 'txt_put');
     $minimumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $maximumfrequency = new Zend_Form_Element_Text('maximumfrequency');
     $maximumfrequency->setAttrib('class', 'txt_put');
     $maximumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $graceperiodnumber = new Zend_Form_Element_Text('graceperiodnumber');
     $graceperiodnumber->setAttrib('class', 'txt_put');
     $graceperiodnumber->setRequired(true)->addValidators(array(array('NotEmpty')));
     $penal_Interest = new Zend_Form_Element_Text('penal_Interest');
     $penal_Interest->setAttrib('class', 'txt_put');
     $period_ofrange_monthfrom = new Zend_Form_Element_Text('period_ofrange_monthfrom');
     $period_ofrange_monthfrom->setAttrib('class', 'txt_put');
     $period_ofrange_monthfrom->setAttrib('size', '5');
     $period_ofrange_monthto = new Zend_Form_Element_Text('period_ofrange_monthto');
     $period_ofrange_monthto->setAttrib('class', 'txt_put');
     $period_ofrange_monthto->setAttrib('size', '5');
     $Interest = new Zend_Form_Element_Text('Interest');
     $Interest->setAttrib('class', 'txt_put');
     $Interest->setAttrib('size', '5');
     $submit = new Zend_Form_Element_Submit('Submit');
     $this->addElements(array($offerproductname, $offerproductshortname, $offerproduct_description, $begindate, $closedate, $penal_Interest, $applicableto, $minmumloanamount, $maximunloanamount, $minimumfrequency, $maximumfrequency, $graceperiodnumber, $fund_id, $product_id, $submit, $period_ofrange_monthfrom, $period_ofrange_monthto, $Interest));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:55,代码来源:Loan.php

示例14: __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

示例15: __construct

 public function __construct($app, $value)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($app);
     parent::__construct($value);
     $memberfirstname = new Zend_Form_Element_Text('memberfirstname');
     $memberfirstname->setAttrib('class', '');
     $memberfirstname->setAttrib('size', '10');
     $memberfirstname->setAttrib('id', 'memberfirstname');
     $memberfirstname->setAttrib($value, 'true');
     $submit = new Zend_Form_Element_Submit('Submit');
     $this->addElements(array($submit, $memberfirstname));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:13,代码来源:Sample.php


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