Example #1
0
 public function __construct($app)
 {
     $formfield = new App_Form_Field();
     //           $fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $month = $formfield->field('Select', 'month', '', '', 'mand required', '', true, '', '', '', '', '', 0, 0);
     $this->addElements(array($month));
 }
Example #2
0
 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));
 }
Example #3
0
 public function __construct($id, $subId)
 {
     parent::__construct($id);
     //record id
     parent::__construct($subId);
     //module id
     //create a contact details form elements
     $vtype = array('Digits');
     $formfield = new App_Form_Field();
     $contactPerson = $formfield->field('Text', 'contact_person', '', '', 'mand', 'Contact person', true, '', '', '', '', '', 1, 0);
     $contactPerson->setAttrib('maxlength', 30);
     $telephone = $formfield->field('Text', 'telephone', '', '', 'mand', 'Telephone number', true, $vtype, '', '', '', '', 1, 0);
     $telephone->setAttrib('maxlength', 12);
     $mobile = $formfield->field('Text', 'mobile', '', '', 'mand', 'mobile', true, $vtype, 1, 15, '', '', 1, 0);
     $mobile->setAttrib('maxlength', 10);
     $email = $formfield->field('Text', 'email', '', '', 'mand', 'Email', true, '', '', '', '', '', 1, 0);
     $email->addValidator('EmailAddress');
     $email->addErrorMessage('Enter valid email address');
     //hidden feilds
     $id = $formfield->field('Hidden', 'id', '', '', '', '', false, '', '', '', '', '', 0, $id);
     $subId = $formfield->field('Hidden', 'submodule_id', '', '', '', '', false, '', '', '', '', '', 0, $subId);
     $createdBy = $formfield->field('Hidden', 'created_by', '', '', '', '', false, '', '', '', '', '', 0, 1);
     $createdDate = $formfield->field('Hidden', 'created_date', '', '', '', '', false, '', '', '', '', '', 0, date("y/m/d H:i:s"));
     $recordstatusId = $formfield->field('Hidden', 'recordstatus_id', '', '', '', '', false, '', '', '', '', '', 0, 3);
     $this->addElements(array($id, $contactPerson, $telephone, $mobile, $email, $subId, $createdBy, $createdDate));
 }
Example #4
0
 public function __construct($id, $subId)
 {
     parent::__construct($id, $subId);
     $formfield = new App_Form_Field();
     $cropId = new Zend_Form_Element_Select('crop_id[]');
     $cropId->setAttrib('class', 'txt_put');
     $cropId->setAttrib('id', 'crop_id[]');
     $season = new Zend_Form_Element_Select('season[]');
     $season->setAttrib('class', 'txt_put');
     $season->setAttrib('id', 'crop_id[]');
     // $cropId = $formfield->field('Select','crop_id[]','','','','',true,'','','','','',0,0);
     $acre = $formfield->field('Text', 'acre[]', '', '', '', '', true, '', '', '', '', '', 0, 0);
     $acre->setAttrib('size', 8);
     $quantity = $formfield->field('Text', 'quantity[]', '', '', '', '', true, '', '', '', '', '', 0, 0);
     $quantity->setAttrib('size', 12);
     $marketed = $formfield->field('Text', 'marketed[]', '', '', '', '', true, '', '', '', '', '', 0, 0);
     $marketed->setAttrib('size', 12);
     $price = $formfield->field('Text', 'price[]', '', '', '', '', true, '', '', '', '', '', 0, 0);
     //hidden feilds
     $id = $formfield->field('Hidden', 'id[]', '', '', '', '', false, '', '', '', '', '', 0, $id);
     $subId = $formfield->field('Hidden', 'submodule_id[]', '', '', '', '', false, '', '', '', '', '', 0, $subId);
     $createdBy = $formfield->field('Hidden', 'created_by[]', '', '', '', '', false, '', '', '', '', '', 0, 1);
     $createdDate = $formfield->field('Hidden', 'created_date[]', '', '', '', '', false, '', '', '', '', '', 0, date("y/m/d H:i:s"));
     $crpid = $formfield->field('Hidden', 'crpid[]', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $this->addElements(array($id, $cropId, $acre, $quantity, $marketed, $price, $subId, $createdBy, $createdDate, $crpid, $season));
 }
Example #5
0
 public function init()
 {
     $formfield = new App_Form_Field();
     $field1 = new Zend_Form_Element_Select('field1');
     $field1->addMultiOption('', 'Select');
     $field1->setAttrib('size', '12');
     $field2 = new Zend_Form_Element_Text('field2');
     $field2->setAttrib('size', '12');
     $field3 = new Zend_Form_Element_Text('field3');
     $field3->setAttrib('size', '12');
     $field4 = $formfield->field('Text', '$field4', '', '', 'mand digits', '', false, '', '', '', '', '', 0, 0);
     // $field4 = new Zend_Form_Element_Text('field4');
     $field4->setAttrib('size', '12');
     $field5 = new Zend_Form_Element_Select('field5');
     $field5->addMultiOption('', 'Select');
     $field6 = new Zend_Form_Element_Text('field6');
     $field6->setAttrib('size', '12');
     $field7 = new ZendX_JQuery_Form_Element_DatePicker('field7');
     $field7->setAttrib('size', '12');
     $field8 = new ZendX_JQuery_Form_Element_DatePicker('field8');
     $field8->setAttrib('size', '12');
     $field9 = new Zend_Form_Element_Select('field9');
     $field9->addMultiOption('', 'Select');
     $field10 = new Zend_Form_Element_Select('field10');
     $field10->addMultiOption('', 'Select');
     $submit = new Zend_Form_Element_Submit('Search');
     $this->addElements(array($field1, $field2, $field3, $field4, $field5, $field6, $field7, $field8, $submit, $field9, $field10));
 }
Example #6
0
 public function init()
 {
     $formfield = new App_Form_Field();
     $search_meeting_name_att = $formfield->field('Select', 'search_meeting_name_att', '', '', '', '', '', '', '', '', '', '', '', '');
     $search_meeting_date = $formfield->field('Text', 'search_meeting_date', '', '', '', '', '', '', '', '', '', '', '', '');
     $search_meeting_date->setAttrib('autocomplete', 'off');
     $this->addElements(array($search_meeting_name_att, $search_meeting_date));
 }
Example #7
0
 public function init()
 {
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $membercode = $formfield->field('Text', 'membercode', '', '', 'mand', '', true, '', '', '', '', '', 0, 0);
     $submit = $formfield->field('Submit', 'Submit', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $this->addElements(array($membercode, $submit));
 }
Example #8
0
 public function init()
 {
     // create instance for common form field
     $formfield = new App_Form_Field();
     // send required parameters to get respective form fields ( first parameter is a input type)
     $profession = $formfield->field('MultiCheckbox', 'profession', '', '', 'profid', '', false, '', '', '', '', '', 0, 0);
     $this->addElements(array($profession));
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $remarks = $formfield->field('Textarea', 'remarks', '', '', 'mand', '', true, '', '', '', 3, 18, 1, 0);
     $this->addElements(array($remarks));
 }
Example #10
0
 public function init()
 {
     $vtype = array('Alpha', 'StringLength');
     $formfield = new App_Form_Field();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $name = $formfield->field('Text', 'membercode', '', '', 'mand', '', true, '', '', '', '', '', 0, 0);
     $this->addElements(array($name));
 }
Example #11
0
 public function init()
 {
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $groupcode = $formfield->field('Text', 'groupcode', '', '', 'mand', '', true, '', '', '', '', '', 0, 0);
     $groupcode->addValidator('digits')->addErrorMessage('Enter Numeric data');
     $submit = $formfield->field('Submit', 'Submit', '', '', '', '', false, '', '', '', '', '', 1, 0);
     $this->addElements(array($groupcode, $submit));
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$decorator,$value
     $formfield = new App_Form_Field();
     //$vtype=array('Alpha');
     $datefrom = $formfield->field('Text', 'datefrom', '', '', 'mand', 'From date', true, '', '', '', '', '', 0, '');
     $this->addElements(array($datefrom));
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$decorator,$value
     $formfield = new App_Form_Field();
     $datefrom = $formfield->field('Select', 'glsubcode', '', '', 'mand', 'Sub ledger', true, '', '', '', '', '', 0, '');
     //add element to form
     $this->addElements(array($datefrom));
 }
Example #14
0
 public function init()
 {
     $formfield = new App_Form_Field();
     $search_weekdays = $formfield->field('Select', 'search_weekdays', '', '', '', '', '', '', '', '', '', '', '', '');
     $search_meeting_name = $formfield->field('Text', 'search_meeting_name', '', '', '', '', '', '', '', '', '', '', '', '');
     $search_meeting_place = $formfield->field('Text', 'search_meeting_place', '', '', '', '', '', '', '', '', '', '', '', '');
     $search_group_name = $formfield->field('Text', 'search_group_name', '', '', '', '', '', '', '', '', '', '', '', '');
     $this->addElements(array($search_weekdays, $search_meeting_name, $search_meeting_place, $search_group_name));
 }
Example #15
0
 public function init()
 {
     //create a object field
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $gramapanchayat = $formfield->field('Select', 'gramapanchayat', '', '', 'mand', ' ', true, '', '', '', '', '', 0, '');
     $submit = new Zend_Form_Element_Submit('Search');
     //adding form elements
     $this->addElements(array($gramapanchayat, $submit));
 }
Example #16
0
 public function __construct()
 {
     parent::__construct();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     // create instance to call common field
     $formfield = new App_Form_Field();
     // send parameters to get textarea as a form field
     $remarks = $formfield->field('Textarea', 'remarks', '', '', 'mand', '', true, '', '', '', 3, 18, 0, 0);
     $this->addElements(array($remarks));
 }
Example #17
0
 public function __construct()
 {
     parent::__construct();
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$decorator,$value
     $formfield = new App_Form_Field();
     // send parameters to get input fields
     $groupcode = $formfield->field('Text', 'groupcode', '', '', '', 'Group code', false, '', '', '', '', '', 1, '');
     $groupname = $formfield->field('Text', 'groupname', '', '', '', 'Group name', false, '', '', '', '', '', 1, '');
     $this->addElements(array($groupcode, $groupname));
 }
Example #18
0
 public function init()
 {
     $vtype = array('Alpha', 'StringLength');
     $formfield = new App_Form_Field();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $categoryname = $formfield->field('Text', 'name', '', '', 'mand', '', false, '', '', '', '', '', 0, 0);
     $categorydescription = $formfield->field('Text', 'description', '', '', 'mand', '', false, '', '', '', '', '', 0, 0);
     // Hidden Feilds
     $id = $formfield->field('Hidden', 'id', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $this->addElements(array($categoryname, $categorydescription, $id));
 }
Example #19
0
 public function __construct($memberid)
 {
     //$number = number family members
     //create a health form elements...
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     foreach ($memberid as $memberids) {
         $healthdisease = $formfield->field('MultiCheckbox', 'healthdisease' . $memberids, '', '', ' alldisease' . $memberids, '', false, '', '', '', '', '', 0, 0);
         $this->addElements(array($healthdisease));
     }
 }
Example #20
0
 public function __construct()
 {
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     // create instance for common field php file to access field method
     $formfield = new App_Form_Field();
     // send parameters to get text as a form field
     $grantname = $formfield->field('Text', 'grantname', '', '', 'mand', 'Grant name', true, '', 4, 15, '', '', '', '');
     $grantname->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_grant', 'name'));
     $grantname->addValidator('Alnum', true, array('allowWhiteSpace' => true));
     $this->addElements(array($grantname));
 }
Example #21
0
 public function __construct()
 {
     parent::__construct();
     $formfield = new App_Form_Field();
     $membername = $formfield->field('Text', 'membername', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $membername->setAttrib('size', 12);
     $village = $formfield->field('Select', 'village', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $regional = $formfield->field('Text', 'name_inregional', '', '', '', '', false, '', '', '', '', '', 0, 0);
     $regional->setAttrib('size', 12);
     $this->addElements(array($membername, $village, $regional));
 }
Example #22
0
 public function __construct($path)
 {
     parent::__construct($path);
     $vtype = array('Alpha', 'StringLength');
     $formfield = new App_Form_Field();
     // $fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $name = $formfield->field('Select', 'name', '', '', '', 'Name', true, '', '', '', '', '', 1, 0);
     $name->setAttrib('onchange', 'getnames(this.value,"' . $path . '")');
     // Hidden Feilds
     $this->addElements(array($name));
 }
Example #23
0
 public function init()
 {
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $vtype = array('Digits');
     $office_type = $formfield->field('Select', 'office', '', '', '', 'Office type:', '', '', '', '', '', '', 0, 0);
     $shortname = $formfield->field('Text', 'shortname', '', '', '', 'Office Short Name:', '', '', '', '', '', '', 0, 0);
     $city = $formfield->field('Text', 'city', '', '', '', 'City:', '', '', '', '', '', '', 0, 0);
     $officename = $formfield->field('Text', 'officename', '', '', '', 'Office Name:', '', '', '', '', '', '', 0, 0);
     //add elements to form
     $this->addElements(array($office_type, $shortname, $city, $officename));
 }
Example #24
0
 public function __construct($app)
 {
     $vtype = array('Alpha', 'StringLength');
     $formfield = new App_Form_Field();
     parent::__construct($app);
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $officebranch = $formfield->field('Select', 'bank_id', '', '', 'mand', '', false, '', '', '', '', '', 0, 0);
     $officebranch->setAttrib('onchange', 'Getofficer(this.value,"' . $app . '")');
     $loanofficer = $formfield->field('Select', 'loanofficer', '', '', 'mand', '', false, '', '', '', '', '', 0, 0);
     $date = $formfield->field('Text', 'datefrom', '', '', 'mand', '', true, '', '', '', '', '', 0, 0);
     $this->addElements(array($loanofficer, $officebranch, $date));
 }
Example #25
0
 public function __construct()
 {
     parent::__construct();
     // 	$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     // create instance to call common field
     $formfield = new App_Form_Field();
     // send parameters to get form fields (first parameter is a form field type)
     $prodname = $formfield->field('Text', 'prodname', '', '', '', 'Product name', false, '', '', '', '', '', 0, '');
     $shrtname = $formfield->field('Text', 'shname', '', '', '', 'Short name', false, '', '', '', '', '', 0, '');
     $fromdate = $formfield->field('Text', 'fromdate', '', '', '', 'Begin date', false, '', '', '', '', '', 0, '');
     $closedate = $formfield->field('Text', 'todate', '', '', '', 'Close date', false, '', '', '', '', '', 0, '');
     $this->addElements(array($prodname, $shrtname, $fromdate, $closedate));
 }
Example #26
0
 public function init()
 {
     //description
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     //create instance of form fields
     $formfield = new App_Form_Field();
     $code = $formfield->field('Text', 'code', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $name = $formfield->field('Text', 'name', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $type = $formfield->field('Select', 'type', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $submit = new Zend_Form_Element_Submit('Search');
     // Add elements to form:
     $this->addElements(array($code, $name, $type, $submit));
 }
Example #27
0
 public function __construct()
 {
     parent::__construct();
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$decorator,$value
     // create instance for common field php file to access field method
     $formfield = new App_Form_Field();
     // set validation type as alphabetics
     $vtype = array('Alpha');
     // send parameters to get text as a form field
     $grantname = $formfield->field('Text', 'grantname', '', '', '', 'Grant name:', false, '', '', '', '', '', 1, '');
     $grantedby = $formfield->field('Text', 'granteddate', '', '', '', 'Granted date:', false, '', '', '', '', '', 1, '');
     $this->addElements(array($grantname, $grantedby));
 }
Example #28
0
 public function init()
 {
     //create a object field
     //$fieldtype,$fieldname,$table,$columnname,$cssname,$labelname,$required,$validationtype,$min,$max,$rows,$cols,$decorator,$value
     $formfield = new App_Form_Field();
     $place = $formfield->field('Text', 'place', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $meetingname = $formfield->field('Text', 'meetingname', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $frequency = $formfield->field('Select', 'frequency', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $office = $formfield->field('Select', 'office', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $submit = new Zend_Form_Element_Submit('Search');
     //adding form elements
     $this->addElements(array($place, $meetingname, $frequency, $office, $submit));
 }
Example #29
0
 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));
 }
Example #30
0
 public function __construct($path)
 {
     parent::__construct($path);
     $formfield = new App_Form_Field();
     $accountHeader = $formfield->field('Text', 'accountHeader', '', '', 'txt_put', '', true, '', '', '', '', '', '', '');
     $glcodeDescription = new Zend_Form_Element_Textarea('glcodeDescription', array('rows' => 3, 'cols' => 25));
     $glcodeDescription->setAttrib('id', 'glcodeDescription');
     $glcodeDescription->setRequired(true)->addValidators(array(array('NotEmpty')));
     $product = $formfield->field('Select', 'product', '', '', 'txt_put', '', true, '', '', '', '', '', '', '');
     $product->setAttrib('onchange', 'getGlcode("' . $path . '",this.value)');
     $offerproduct = $formfield->field('Select', 'offerproduct', '', '', 'txt_put', '', '', '', '', '', '', '', '', '');
     $officelevel = $formfield->field('Select', 'officelevel', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $officelevel->setRegisterInArrayValidator(false);
     $officelevel->setAttrib('onchange', 'getoffice("' . $path . '",this.value)');
     $office = $formfield->field('Select', 'office', '', '', '', '', '', '', '', '', '', '', 0, 0);
     $office->setRegisterInArrayValidator(false);
     $subheader = $formfield->field('Text', 'subheader', '', '', 'txt_put', '', '', '', '', '', '', '', '', '');
     $glsubaccountdescription = new Zend_Form_Element_Textarea('glsubaccountdescription', array('rows' => 3, 'cols' => 25));
     $glsubaccountdescription->setAttrib('id', 'glsubaccountdescription');
     $submit = $formfield->field('Submit', 'Save', '', '', '', 'holiday1', '', '', '', '', '', '', '', '');
     $this->addElements(array($submit, $accountHeader, $glcodeDescription, $subheader, $glsubaccountdescription, $product, $offerproduct, $officelevel, $office));
     $glcodeHiddenId = new Zend_Form_Element_Hidden('hidden_glcodeid');
     $glsubcodeHiddenId = new Zend_Form_Element_Hidden('hidden_glsubcodeid');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'holiday');
     $this->addElements(array($submit, $glcodeHiddenId, $glsubcodeHiddenId));
 }