本文整理汇总了PHP中Zend_Dojo类的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Dojo类的具体用法?PHP Zend_Dojo怎么用?PHP Zend_Dojo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Zend_Dojo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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'));
}
示例2: __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));
}
示例3: __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));
}
示例4: _initViewSettings
/**
* Setup the view
*/
protected function _initViewSettings()
{
$this->bootstrap('view');
$this->_view = $this->getResource('view');
// add global helpers
$this->_view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'Zend_View_Helper');
Zend_Dojo::enableView($this->_view);
//$this->_view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
// set encoding and doctype
$this->_view->setEncoding('koi8-r');
$this->_view->doctype('XHTML1_STRICT');
$config = $this->getResource('config');
$prefix = $config["urlprefix"];
// set css links and a special import for the accessibility styles
// $this->_view->headStyle()->setStyle('@import "/css/access.css";');
// $this->_view->headLink()->appendStylesheet('/reg2/css/reset.css');
$this->_view->headLink()->appendStylesheet($prefix . '/css/form.css');
$this->_view->headLink()->appendStylesheet($prefix . '/css/reg2.css');
// setting the site in the title
$this->_view->headTitle('ιώβ-10');
// setting a separator string for segments:
$this->_view->headTitle()->setSeparator(' - ');
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
$viewRenderer->setView($this->_view);
return $this->_view;
}
示例5: __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'));
}
示例6: __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));
}
示例7: _initView
protected function _initView()
{
$this->bootstrap(array('request'));
// Initialize view
$view = new Zend_View();
$view->setEncoding('UTF-8');
$view->doctype('XHTML1_STRICT');
$view->headTitle()->setSeparator(' » ');
// Save the base URL
$view->baseUrl = $this->getResource('request')->getBaseUrl();
// Add it to the ViewRenderer
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
$viewRenderer->setView($view);
// Add some stylesheet
$view->headLink()->appendStylesheet($view->baseUrl . '/css/default.css');
// Set user info
/*
$session = $this->getResource('session');
$view->userLoggedIn = $session->logged_in;
$view->userInfo = $session->user;
*/
$view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'SimpleCal_View_Helper_');
Zend_Dojo::enableView($view);
// Return it, so that it can be stored by the bootstrap
return $view;
}
示例8: __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));
}
示例9: __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));
}
示例10: __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));
}
示例11: _initView
protected function _initView()
{
$view = new Zend_View();
Zend_Dojo::enableView($view);
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setView($view);
$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
return $view;
}
示例12: __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));
}
示例13: init
/**
* I think this is needed for something. can't remember
*
*/
public function init()
{
Zend_Dojo::enableView($this->view);
$this->view->url = Zend_Registry::get('config')->site->url;
$this->view->action = $this->getRequest()->getActionName();
header('Content-Type: text/html; charset=ISO-8859-1');
$this->_db = Zend_Registry::get('db');
Bvb_Grid_Deploy_Ofc::$url = Zend_Registry::get('config')->site->url;
}
示例14: setUp
/**
* Sets up the fixture, for example, open a network connection.
* This method is called before a test is executed.
*
* @return void
*/
public function setUp()
{
$registry = Zend_Registry::getInstance();
if (isset($registry['Zend_Dojo_View_Helper_Dojo'])) {
unset($registry['Zend_Dojo_View_Helper_Dojo']);
}
$this->view = new Zend_View();
Zend_Dojo::enableView($this->view);
}
示例15: __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));
}