Пример #1
0
 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));
 }
Пример #2
0
 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));
 }
Пример #3
0
 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));
 }
Пример #4
0
 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'));
 }
Пример #5
0
 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'));
 }
Пример #6
0
 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));
 }
Пример #7
0
 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));
 }
Пример #8
0
 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));
 }
Пример #9
0
 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));
 }
Пример #10
0
 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));
 }
Пример #11
0
 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));
 }
Пример #12
0
 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));
 }
Пример #13
0
 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));
 }
Пример #14
0
 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));
 }
Пример #15
0
 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));
 }
Пример #16
0
 public function init()
 {
     Zend_Dojo::enableForm($this);
     $this->setOptions(array('method' => 'post'));
     $timezone = new Zend_Dojo_Form_Element_FilteringSelect(array('name' => 'timezone', 'label' => 'Timezone', 'autocomplete' => false));
     $timezone->addMultiOptions(array_combine(DateTimeZone::listIdentifiers(), DateTimeZone::listIdentifiers()));
     $submit = new Zend_Form_Element_Submit(array('name' => 'set', 'label' => 'Set Timezone'));
     $this->addElements(array($timezone, $submit));
     /**
      * Set decorators
      */
     $this->clearDecorators();
     $this->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'dl', 'class' => 'form-container')), 'Form'));
 }
Пример #17
0
 public function __construct($path)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($path);
     $formfield = new App_Form_Field();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $branch = $formfield->field('Select', 'branch', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $branch->setAttrib('onchange', 'Getuser(this.value,"' . $path . '")');
     $loanofficer = $formfield->field('Select', 'loanofficer', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $fromdate = $formfield->field('Text', 'fromdate', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $submit = new Zend_Form_Element_Submit('Search');
     $pdf = new Zend_Form_Element_Submit('PDF');
     $this->addElements(array($fromdate, $branch, $loanofficer, $submit, $pdf));
 }
Пример #18
0
 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_TextBox('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_TextBox('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');
     $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_TextBox('maximunloanamount');
     $maximunloanamount->setAttrib('class', 'txt_put');
     $maximunloanamount->setRequired(true);
     $validator = new Zend_Validate_Digits();
     $maximunloanamount->addValidator($validator, true);
     $minimumfrequency = new Zend_Dojo_Form_Element_TextBox('minimumfrequency');
     $minimumfrequency->setAttrib('class', 'txt_put');
     $minimumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $maximumfrequency = new Zend_Dojo_Form_Element_TextBox('maximumfrequency');
     $maximumfrequency->setAttrib('class', 'txt_put');
     $maximumfrequency->setRequired(true)->addValidators(array(array('NotEmpty')));
     $graceperiodnumber = new Zend_Dojo_Form_Element_TextBox('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));
 }
Пример #19
0
 public function __construct()
 {
     Zend_Dojo::enableForm($this);
     $grantname = new Zend_Form_Element_Text('grantname');
     $grantname->setRequired(true)->addValidators(array(array('NotEmpty')));
     $grantname->addValidator('StringLength', false, array(6, 15));
     $id = new Zend_Form_Element_Hidden('id' . $i);
     $activity_id = new Zend_Form_Element_MultiCheckbox('activity_id');
     $activity_id->setAttrib('id', 'activity_id');
     $subactivity_id = new Zend_Form_Element_MultiCheckbox('subactivity_id');
     $subactivity_id->setAttrib('id', 'subactivity_id');
     $grant_id = new Zend_Form_Element_Hidden('grant_id');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'roles');
     $submit->setLabel('Submit');
     $this->addElements(array($submit, $grantname, $grant_id, $id, $activity_id, $subactivity_id));
 }
Пример #20
0
 public function __construct($app)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($app);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$decorator,$value
     $formfield = new App_Form_Field();
     // send parameter to get input fields
     $datefrom = $formfield->field('Text', 'datefrom', '', '', 'mand', 'From date', true, '', '', '', '', '', 0, '');
     //                $dateto = $formfield->field('Text','dateto','','','mand','To date',true,'','','','','',0,'');
     $option = $formfield->field('Select', 'option', '', '', '', '', false, '', '', '', '', '', 0, '');
     $option->setAttrib('onchange', 'Getsearch(this.value,"' . $app . '")');
     $village = $formfield->field('Select', 'village', '', '', '', '', false, '', '', '', '', '', 0, '');
     $group = $formfield->field('Select', 'group', '', '', '', '', false, '', '', '', '', '', 0, '');
     $account = $formfield->field('Text', 'account', '', '', '', '', false, '', '', '', '', '', 0, '');
     //add element to form
     $this->addElements(array($datefrom, $account, $option, $village, $group));
 }
Пример #21
0
 public function init()
 {
     Zend_Dojo::enableForm($this);
     $this->setOptions(array('method' => 'post'));
     $title = new Zend_Dojo_Form_Element_TextBox(array('name' => 'title', 'label' => 'Event Title', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('length' => array('validator' => 'StringLength', 'options' => array('min' => 4, 'max' => 100)))));
     $date = new Zend_Dojo_Form_Element_DateTextBox(array('name' => 'date', 'label' => 'Date', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('date' => array('validator' => 'Date'))));
     $date->setFormatLength('long');
     $time = new Zend_Dojo_Form_Element_TimeTextBox(array('name' => 'time', 'label' => 'Time', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('time' => array('validator' => 'RegEx', 'options' => array('pattern' => '/^T(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:00$/')))));
     $desc = new Zend_Dojo_Form_Element_SimpleTextarea(array('name' => 'description', 'label' => 'Description', 'filters' => array('StringTrim'), 'cols' => 80, 'rows' => 5));
     $submit = new Zend_Form_Element_Submit(array('name' => 'create', 'label' => 'Create Event'));
     $this->addElements(array($title, $date, $time, $desc, $submit));
     /**
      * Set decorators
      */
     $this->clearDecorators();
     $this->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'dl', 'class' => 'form-container')), 'Form'));
 }
Пример #22
0
 public function __construct($path)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $attendanceupdates_id = new Zend_Form_Element_Hidden('attendanceupdates_id');
     $attendance_id = new Zend_Form_Element_Hidden('attendance_id');
     $attendance_id->setAttrib('class', 'txt_put');
     $officetype_id = new Zend_Form_Element_Select('officetype_id');
     $officetype_id->setRequired(true);
     $officetype_id->addMultiOption('', 'select' . '...');
     $officetype_id->setAttrib('class', 'selectbutton');
     $officetype_id->setAttrib('onchange', 'getGroups(this.value,"' . $path . '")');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setLabel('Submit');
     $this->addElements(array($officetype_id, $submit, $attendanceupdates_id, $attendance_id));
 }
Пример #23
0
 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $meeting_name = new Zend_Form_Element_Text('meeting_name');
     //$meeting_name->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $meeting_name->setAttrib('class', 'txt_put');
     $meeting_name->setAttrib('id', 'meetingname');
     $meeting_name->setLabel('meetingname')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $group_head = new Zend_Form_Element_Text('group_head');
     //$group_head->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $group_head->setAttrib('class', 'txt_put');
     $group_head->setAttrib('id', 'group_head');
     $group_head->setLabel('group_head')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_place = new Zend_Form_Element_Text('meeting_place');
     //$creditlinename->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $meeting_place->setAttrib('class', 'txt_put');
     $meeting_place->setAttrib('id', 'meeting_place');
     $meeting_place->setLabel('meeting_place')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_time = new Zend_Form_Element_Text('meeting_time');
     $meeting_time->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details', 'creditline_name', 'recordstatus_id=3'));
     $meeting_time->setAttrib('class', 'txt_put');
     $meeting_time->setAttrib('id', 'meeting_time');
     $meeting_time->setLabel('meeting_time')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $office_type = new Zend_Form_Element_Select('office_type');
     $office_type->addMultiOption('', 'Select...');
     $office_type->setAttrib('class', 'txt_put');
     $office_type->addValidators(array(array('NotEmpty')));
     $group_name = new Zend_Form_Element_Select('group_name');
     $group_name->addMultiOption('', 'Select...');
     $group_name->addMultiOption('All', 'All');
     $group_name->setAttrib('class', 'txt_put');
     $group_name->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_day = new Zend_Form_Element_Select('meeting_day');
     $meeting_day->addMultiOption('', 'Select...');
     //$meeting_day->addMultiOption('All','All');
     $meeting_day->setAttrib('class', 'txt_put');
     $meeting_day->setRequired(true)->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setlabel('Submit');
     $this->addElements(array($meeting_name, $group_head, $meeting_place, $meeting_time, $office_type, $group_name, $meeting_day, $submit));
     //===================================================================================================================================
 }
Пример #24
0
 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $categoryname = new Zend_Form_Element_Text('categoryname');
     $categoryname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_categorydetails', 'categoryname'));
     $categoryname->setAttrib('class', 'txt_put');
     $categoryname->setAttrib('id', 'hName')->setLabel('Category  Name');
     $categoryname->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', 'requiredSuffix' => ' *')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))));
     $category_id = new Zend_Form_Element_Hidden('category_id');
     $category_id->setAttrib('class', 'txt_put');
     $category_id->setAttrib('id', 'hName')->setLabel('');
     $categorydescription = new Zend_Form_Element_Textarea('categorydescription', array('rows' => 3, 'cols' => 20));
     $categorydescription->setAttrib('id', 'glcodeDescription')->setLabel('Category  Description');
     $categorydescription->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($categoryname, $categorydescription, $category_id, $submit));
 }
Пример #25
0
 public static function getForm()
 {
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $form = new Zend_Form();
     $form->setDecorators(array(array('ViewScript', array('viewScript' => 'editor/changesForm.phtml'))));
     $zdate = new Zend_Date();
     $e = new Zend_Dojo_Form_Element_DateTextBox('fromDate', array('label' => 'From', 'required' => true));
     $e->setAttrib('onchange', 'admin.currentManObj.refresh()');
     $form->addElement($e);
     $e = new Zend_Dojo_Form_Element_DateTextBox('toDate', array('label' => 'To', 'required' => true));
     $e->setAttrib('onchange', 'admin.currentManObj.refresh()');
     $form->addElement($e);
     //		$e = new Zend_Dojo_Form_Element_Button( 'refresh', array ('label' => 'Refresh' ) );
     //		$e->setAttrib('onchange', 'admin.currentManObj.refresh()');
     //		$form->addElement($e);
     Zend_Dojo::enableForm($form);
     $form->setDefaults(array('toDate' => $zdate->getIso(), 'fromDate' => $zdate->getIso()));
     return $form;
 }
Пример #26
0
 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $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->addMultiOption('01', 'Fee');
     $product->addMultiOption('02', 'Funders');
     $product->addMultiOption('03', 'Products');
     $product->setAttrib('class', 'txt_put');
     $product->setAttrib('onchange', 'getList(this.value);');
     $product->setRequired(true)->addValidators(array(array('NotEmpty')));
     //         $productname = new Zend_Form_Element_Select('productname');
     //         $productname->addMultiOption('','select');
     //         $productname->setAttrib('class', 'txt_put');
     //         $productname->setAttrib('id', 'productname');
     // 	$productname->setRequired(true)
     // 		->addValidators(array(array('NotEmpty')));
     $subheader = new Zend_Form_Element_Text('subheader');
     $subheader->setAttrib('class', 'txt_put');
     $subheader->setAttrib('id', 'subheader');
     // 	$subheader->setRequired(true)
     // 		->addValidators(array(array('NotEmpty')));
     $glsubaccountdescription = new Zend_Form_Element_Textarea('glsubaccountdescription', array('rows' => 3, 'cols' => 25));
     $glsubaccountdescription->setAttrib('id', 'glsubaccountdescription');
     // 	$glsubaccountdescription->setRequired(true)
     // 		->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Form_Element_Submit('Save');
     $submit->setAttrib('id', 'Save');
     $submit->setAttrib('class', 'holiday1');
     $this->addElements(array($submit, $accountHeader, $glcodeDescription, $subheader, $glsubaccountdescription, $product));
     $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));
 }
Пример #27
0
 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');
     $field1->setRequired(true);
     $field2 = new ZendX_JQuery_Form_Element_DatePicker('field2');
     $field2->setAttrib('class', 'txt_put');
     $field2->setRequired(true);
     $field3 = new Zend_Form_Element_Select('field3');
     $field3->addMultiOption('', 'Select');
     $field3->setAttrib('class', 'txt_put');
     $field4 = new Zend_Form_Element_Text('field4');
     $field4->setAttrib('class', 'txt_put');
     $field4->setRequired(true);
     $submit = new Zend_Form_Element_Submit('Search');
     $pdf = new Zend_Form_Element_Submit('PDF');
     $this->addElements(array($field1, $field2, $field3, $field4, $submit, $pdf));
 }
Пример #28
0
 public function init()
 {
     Zend_Dojo::enableForm($this);
     $this->setOptions(array('method' => 'post'));
     $id = new Zend_Form_Element_Hidden(array('name' => 'id'));
     $title = new Zend_Dojo_Form_Element_TextBox(array('name' => 'title', 'label' => 'Event Title', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('length' => array('validator' => 'StringLength', 'options' => array('min' => 4, 'max' => 100)))));
     $date = new Zend_Dojo_Form_Element_DateTextBox(array('name' => 'date', 'label' => 'Date', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('date' => array('validator' => 'Date'))));
     $date->setFormatLength('long');
     $time = new Zend_Dojo_Form_Element_TimeTextBox(array('name' => 'time', 'label' => 'Time', 'required' => true, 'filters' => array('StringTrim'), 'validators' => array('time' => array('validator' => 'Regex', 'options' => array('pattern' => '/^T(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:00$/')))));
     $reminder = new Zend_Dojo_Form_Element_NumberSpinner(array('name' => 'reminder', 'label' => 'Reminder (hours before event)', 'required' => false, 'value' => 1, 'min' => 0, 'max' => 6));
     $desc = new Zend_Dojo_Form_Element_SimpleTextarea(array('name' => 'description', 'label' => 'Description', 'filters' => array('StringTrim'), 'cols' => 80, 'rows' => 5));
     $invite = new Zend_Dojo_Form_Element_Textarea(array('name' => 'invite', 'label' => 'Invite (email, use "," for multiple)', 'style' => 'width: 400px;', 'validators' => array('length' => array('validator' => 'StringLength', 'options' => array('min' => 4, 'max' => 10000)))));
     $submit = new Zend_Form_Element_Submit(array('name' => 'create', 'label' => 'Create Event', 'ignore' => true));
     $this->addElements(array($title, $date, $time, $reminder, $desc, $invite, $submit, $id));
     /**
      * Set decorators
      */
     $this->clearDecorators();
     $this->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'dl', 'class' => 'form-container')), 'Form'));
 }
Пример #29
0
 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));
 }
Пример #30
0
 public function __construct($path)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $meetingupdates_id = new Zend_Form_Element_Hidden('meetingupdates_id');
     $meeting_id = new Zend_Form_Element_Hidden('meeting_id');
     $meeting_id->setAttrib('class', 'txt_put');
     $meeting_name = new Zend_Form_Element_Text('meeting_name');
     $meeting_name->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_name->setAttrib('class', 'txt_put');
     $meeting_name->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_meetingdetails', 'meeting_name'));
     $meeting_days = new Zend_Form_Element_Select('meeting_days');
     $meeting_days->addMultiOption('', 'SelectTheDay' . '...');
     $meeting_days->setAttrib('class', 'selectbutton');
     $meeting_place = new Zend_Form_Element_Text('meeting_place');
     $meeting_place->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_place->setAttrib('class', 'txt_put');
     $meeting_time = new Zend_Form_Element_Text('meeting_time');
     $meeting_time->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_time->setAttrib('class', 'txt_put');
     $timeg = new Zend_Form_Element_Select('timeg');
     $timeg->setRequired(true)->addValidators(array(array('NotEmpty')));
     $timeg->setAttrib('class', 'txt_put');
     $group_head = new Zend_Form_Element_Select('group_head');
     $group_head->addMultiOption('', 'select' . '...');
     $group_head->setAttrib('class', 'selectbutton');
     $officetype_id = new Zend_Form_Element_Select('officetype_id');
     $officetype_id->setRequired(true);
     $officetype_id->addMultiOption('', 'select' . '...');
     $officetype_id->setAttrib('class', 'selectbutton');
     $officetype_id->setAttrib('onchange', 'getGroups(this.value,"' . $path . '")');
     $group = new Zend_Form_Element_Select('group');
     $group->addMultiOption('', 'select' . '...');
     $group->setAttrib('class', 'selectbutton');
     $group->setRegisterInArrayValidator(false);
     //         $group->setAttrib('onchange', 'getGroupHead(this.value,"'.$path.'")');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setLabel('Submit');
     $this->addElements(array($meetingupdates_id, $meeting_id, $meeting_name, $meeting_days, $meeting_place, $timeg, $group_head, $officetype_id, $group, $submit, $meeting_time));
 }