本文整理汇总了PHP中Zend_Form_Element_Hidden::addFilter方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::addFilter方法的具体用法?PHP Zend_Form_Element_Hidden::addFilter怎么用?PHP Zend_Form_Element_Hidden::addFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element_Hidden
的用法示例。
在下文中一共展示了Zend_Form_Element_Hidden::addFilter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
$this->setMethod('post');
$this->setAction('/main/new');
$this->setAttrib('id', 'newRoute');
$note = new Zend_Form_Element_Note('title', array('value' => '<h2 id="titleProductDetails">Create a New Route</h2>'));
$intermed = new Zend_Form_Element_Hidden('intermed');
$intermed->setAttrib('readonly', 'readonly');
$intermed->addFilter('StripTags');
$intermed->addFilter('HtmlEntities');
$intermed->addFilter('StringTrim');
$start = new Zend_Form_Element_Text('startForm');
$start->setLabel('Starting Point*');
$start->setAttrib('autocomplete', 'off');
$start->addFilter('StripTags');
$start->addFilter('HtmlEntities');
$start->setAttrib('class', 'form-control');
$start->addFilter('StringTrim');
$start->setRequired(true)->addErrorMessage('Start Location Required');
// $start->addValidator('Regex', true, array('/^[a-zA-Z0-9.,:-\s]*$/'))->addErrorMessage('Invalid characters used');
// $start->addValidator('StringLength', true, array(0, 255))->addErrorMessage('Required Field');
$end = new Zend_Form_Element_Text('endForm');
$end->setLabel('Destination*');
$end->setAttrib('autocomplete', 'off');
$end->addFilter('StripTags');
$end->setAttrib('class', 'form-control');
$end->addFilter('HtmlEntities');
$end->addFilter('StringTrim');
$end->setRequired(true)->addErrorMessage('Destination Required');
// $end->addValidator('StringLength', true, array(0, 255))->addErrorMessage('Required Field');
$routeDate = new Zend_Form_Element_Text('routeDate');
$routeDate->setAttrib('autocomplete', 'off');
$routeDate->setAttrib('readonly', 'readonly');
$routeDate->setAttrib('maxlength', '10');
$routeDate->setAttrib('class', 'form-control');
$routeDate->setLabel('Date of Journey' . '*');
$routeDate->addFilter('StripTags');
$routeDate->addFilter('HtmlEntities');
$routeDate->addFilter('StringTrim');
$routeDate->setRequired(true)->addErrorMessage('Date Required');
$routeDate->addValidator('Regex', true, array('/^[0-9.\\s]*$/'))->addErrorMessage('Invalid characters used');
$routeDate->addValidator('StringLength', true, array(10, 10))->addErrorMessage('Required Field');
$passangers = new Zend_Form_Element_Select('passangers');
$passangers->setLabel('No of Passangers*');
$passangers->setAttrib('autocomplete', 'off');
$passangers->setAttrib('class', 'form-control');
$passangers->addFilter('StripTags');
$passangers->addFilter('HtmlEntities');
$passangers->addFilter('StringTrim');
$passangers->setRequired(true)->addErrorMessage('Password Required');
$passangers->setMultiOptions(array('1' => '1 Passanger', '2' => '2 Passangers', '3' => '3 Passangers', '4' => '4 Passangers', '5' => '5 Passangers', '6' => '6 Passangers'));
$submit = new Zend_Form_Element_Submit('newRoute');
$submit->setLabel('New Route');
$submit->setAttrib('class', 'btn btn-info');
$submit->setAttrib('style', 'margin-top:20px');
$this->addElements(array($note, $intermed, $start, $end, $passangers, $routeDate, $submit));
$this->setElementDecorators(array('ViewHelper', 'Label', 'Errors'));
$submit->setDecorators(array('ViewHelper'));
$this->setDecorators(array('FormElements', 'Form', array('HtmlTag', array('tag' => 'div', 'id' => 'newRouteFormContainer'))));
}
示例2: init
/**
* Overrides init() in Zend_Form
*
* @access public
* @return void
*/
public function init()
{
// init the parent
parent::init();
// set the form's method
$this->setMethod('post');
$idMember = App_Utilities::getIdMember();
$member_id = new Zend_Form_Element_Hidden('member_id');
$member_id->addFilter('Int')->setValue($idMember);
$this->addElement($member_id);
$start_date = new Zend_Form_Element_Text('start_date');
$start_date->setOptions(array('label' => $this->t('Start date'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($start_date);
$end_date = new Zend_Form_Element_Text('end_date');
$end_date->setOptions(array('label' => $this->t('End Date'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($end_date);
$is_posted = new Zend_Form_Element_Checkbox('is_posted');
$this->addElement($is_posted);
$companyName = new Zend_Form_Element_Text('name');
$companyName->setOptions(array('label' => $this->t('Company'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($companyName);
$function = new Zend_Form_Element_Text('function');
$function->setOptions(array('label' => $this->t('function'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($function);
$mission = new Zend_Form_Element_Textarea('mission');
$mission->setOptions(array('label' => $this->t('mission'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($mission);
$city_name = new Zend_Form_Element_Text('city_name');
$city_name->setOptions(array('label' => $this->t('city'), 'required' => true, 'filters' => array('StringTrim', 'StripTags'), 'validators' => array('NotEmpty')));
$this->addElement($city_name);
$submit = new Zend_Form_Element_Submit('submit');
$submit->setOptions(array('label' => $this->t('Save'), 'required' => true));
$this->addElement($submit);
}
示例3: init
public function init()
{
$this->setName('shipping_address');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$customerid = new Zend_Form_Element_Hidden('customerid');
$customerid->addFilter('Int');
$address1 = new Zend_Form_Element_Text('shipping_address1');
$address1->setLabel('Street Address')->setAttrib('id', 'address1')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$address2 = new Zend_Form_Element_Text('shipping_address2');
$address2->setLabel('')->setAttrib('id', 'address2')->addFilter('StripTags')->addFilter('StringTrim');
$address3 = new Zend_Form_Element_Text('shipping_address3');
$address3->setLabel('')->setAttrib('id', 'address3')->addFilter('StripTags')->addFilter('StringTrim');
$postcode = new Zend_Form_Element_Text('shipping_postcode');
$postcode->setLabel('Postcode')->setAttrib('id', 'postcode')->addFilter('StripTags')->addFilter('StringTrim');
$country = new Zend_Form_Element_Text('shipping_country');
$country->setLabel('Country')->setAttrib('id', 'country')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$city = new Zend_Form_Element_Text('shipping_city');
$city->setLabel('City')->setAttrib('id', 'city')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$phone = new Zend_Form_Element_Text('shipping_phone');
$phone->setLabel('Phone')->setAttrib('id', 'phone')->addFilter('StripTags')->addFilter('StringTrim');
$fax = new Zend_Form_Element_Text('shipping_fax');
$fax->setLabel('Fax')->setAttrib('id', 'fax')->addFilter('StripTags')->addFilter('StringTrim');
$email = new Zend_Form_Element_Text('shipping_email');
$email->setLabel('E-Mail')->setAttrib('id', 'email')->addFilter('StripTags')->addFilter('StringTrim');
$internet = new Zend_Form_Element_Text('shipping_internet');
$internet->setLabel('Internet')->setAttrib('id', 'internet')->addFilter('StripTags')->addFilter('StringTrim');
$submit = new Zend_Form_Element_Button('shipping_submit');
$submit->setAttrib('onclick', 'addAddress()');
$this->addElements(array($id, $customerid, $address1, $address2, $address3, $postcode, $city, $country, $phone, $fax, $email, $internet, $submit));
}
示例4: init
public function init()
{
/* Form Elements & Other Definitions Here ... */
$this->setName('FormularioNoticia');
$ID_NOTICIA = new Zend_Form_Element_Hidden('ID_NOTICIA');
$ID_NOTICIA->addFilter('Int');
$ID_NOTICIA->removeDecorator('Label');
$FK_ARQUIVO = new Zend_Form_Element_Hidden('FK_ARQUIVO');
$FK_ARQUIVO->addFilter('Int');
$FK_ARQUIVO->removeDecorator('Label');
$DS_TITULO = new Zend_Form_Element_Text('DS_TITULO');
$DS_TITULO->setLabel('TÍTULO')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->removeDecorator('DtDdWrapper')->removeDecorator('HtmlTag')->removeDecorator('Label')->setAttrib('class', 'form-control')->setAttrib('placeholder', "Enter t�tulo");
$TX_NOTICIA = new Zend_Form_Element_Textarea('TX_NOTICIA');
$TX_NOTICIA->setLabel('TEXTO')->setRequired(true)->removeDecorator('DtDdWrapper')->removeDecorator('HtmlTag')->removeDecorator('Label')->setAttrib('class', 'form-control')->setAttrib('rows', '20');
$DS_RESUMO = new Zend_Form_Element_Textarea('DS_RESUMO');
$DS_RESUMO->setLabel('RESUMO')->setRequired(true)->removeDecorator('DtDdWrapper')->removeDecorator('HtmlTag')->removeDecorator('Label')->setAttrib('class', 'form-control')->setAttrib('rows', '5');
$DT_NOTICIA = new Zend_Form_Element_Hidden('DT_NOTICIA');
$DT_NOTICIA->removeDecorator('Label');
$tiposNoticia = array("1" => "NOTICIAS", "2" => "NOVIDADES", "3" => "RECADOS");
$FK_TIPO_NOTICIA = new Zend_Form_Element_Select('FK_TIPO_NOTICIA');
$FK_TIPO_NOTICIA->setLabel('TIPO NOTÍCIA')->setRequired(true)->addMultiOptions($tiposNoticia)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->removeDecorator('DtDdWrapper')->removeDecorator('HtmlTag')->removeDecorator('Label')->setAttrib('class', 'form-control select2')->setAttrib('placeholder', "Enter tipo not�cia");
$FK_OPERADOR = new Zend_Form_Element_Hidden('FK_OPERADOR');
$FK_OPERADOR->addFilter('Int');
$FK_OPERADOR->removeDecorator('Label');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel("Adiconar");
$submit->setAttrib('id', 'submitbutton');
$submit->removeDecorator('DtDdWrapper')->setAttrib('class', 'btn btn-primary button')->removeDecorator('HtmlTag')->removeDecorator('Label');
$this->addElements(array($ID_NOTICIA, $DS_TITULO, $TX_NOTICIA, $FK_ARQUIVO, $DS_RESUMO, $DT_NOTICIA, $FK_TIPO_NOTICIA, $FK_OPERADOR, $submit));
$this->setDecorators(array(array('ViewScript', array('viewScript' => '/forms/formularioNoticia.phtml'))));
}
示例5: init
public function init()
{
$this->setName('resource_activity_has_receipt');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$id->removeDecorator('label');
$name = new Zend_Form_Element_Text('name');
$name->setLabel('name')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
//
// $resource_activity_has_receipt_types_id = new Zend_Form_Element_Select('resource_activity_has_receipt_types_id');
// $resource_activity_has_receipt_types_id->setLabel('resource_activity_has_receipt types')
// ->addValidator('NotEmpty', true)
// ->setmultiOptions($this->_selectOptions_types())
// ->setAttrib('maxlength', 200)
// ->setAttrib('size', 1)
// ->setAttrib("class", "toolboxdrop")
// ->setDecorators(array(array('ViewScript', array(
// 'viewScript' => 'forms/_element_select.phtml'))))
// ;
//
// $resource_activity_has_receipt_types_id = new Zend_Form_Element_Multiselect('$resource_activity_has_receipt_types_id');
// $resource_activity_has_receipt_types_id->setLabel('resource_activity_has_receipt types')
// ->setmultiOptions($this->_selectOptions_types())
// ->setAttrib('maxlength', 200)
// ->setAttrib('size', 5)
// ->setDecorators(array(array('ViewScript', array(
// 'viewScript' => 'forms/_element_select.phtml'))))
// ->setAttrib("class","toolboxdrop")
// ;
//
$submit = new Zend_Form_Element_Submit('submit');
$submit->setValue('Guardar')->setAttrib('id', 'submitbutton')->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_submit.phtml'))))->setAttrib('class', 'btn')->removeDecorator('label');
$this->addElements(array($id, $name, $submit));
}
示例6: init
public function init()
{
$this->setName('activity');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$id->removeDecorator('label');
$name = new Zend_Form_Element_Text('name');
$name->setLabel('Name')->setRequired(true)->addFilter('StripTags')->addfilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$activity_types_id = new Zend_Form_Element_Select('activity_types_id');
$activity_types_id->setLabel('activity type')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsActivity_types())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$contact_own_company_id = new Zend_Form_Element_Select('contact_own_company_id');
$contact_own_company_id->setLabel('contact own company')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsContactOwnCompanies())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
//
$contact_client_company_id = new Zend_Form_Element_Select('contact_client_company_id');
$contact_client_company_id->setLabel('contact client company')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsContactClientCompanies())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$status_id = new Zend_Form_Element_Select('status_id');
$status_id->setLabel('Status')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsStatus())->setAttrib('maxlength', 300)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$date_start = new Zend_Form_Element_Text('date_start');
$date_start->setLabel('date start')->setRequired(true)->addFilter('StripTags')->addfilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))))->setAttrib('id', 'f_date_start');
$date_end = new Zend_Form_Element_Text('date_end');
$date_end->setLabel('date end')->setRequired(true)->addFilter('StripTags')->addfilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))))->setAttrib('id', 'f_date_end');
$observation = new Zend_Form_Element_Text('observation');
$observation->setLabel('Observation')->setRequired(true)->addfilter('StripTags')->addfilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setValue('Guardar')->setAttrib('id', 'submitbutton')->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_submit.phtml'))))->setAttrib('class', 'btn')->removeDecorator('label');
$this->addElements(array($id, $name, $activity_types_id, $contact_own_company_id, $contact_client_company_id, $status_id, $date_start, $date_end, $observation, $submit));
}
示例7: init
public function init()
{
$this->setName('client');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$id->removeDecorator('label');
$name = new Zend_Form_Element_Text('name');
$name->setLabel('name')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$fiscal_name = new Zend_Form_Element_Text('fiscal_name');
$fiscal_name->setLabel('Fiscal name')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$company_types_id = new Zend_Form_Element_Select('company_types_id');
$company_types_id->setLabel('Type')->setRequired(true)->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsCompanyTypes())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$email = new Zend_Form_Element_Text('email');
$email->setLabel('Email')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('emailAddress', TRUE)->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$telephone = new Zend_Form_Element_Text('telephone');
$telephone->setLabel('Telephone')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$fax = new Zend_Form_Element_Text('fax');
$fax->setLabel('fax')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$direction = new Zend_Form_Element_Text('direction');
$direction->setLabel('Direction')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$city = new Zend_Form_Element_Text('city');
$city->setLabel('City')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$country = new Zend_Form_Element_Text('country');
$country->setLabel('Country')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$postal_code = new Zend_Form_Element_Text('postal_code');
$postal_code->setLabel('Postal code')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$observation = new Zend_Form_Element_Text('observation');
$observation->setLabel('Observation')->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setValue('Guardar')->setAttrib('id', 'submitbutton')->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_submit.phtml'))))->setAttrib('class', 'btn')->removeDecorator('label');
$this->addElements(array($id, $name, $fiscal_name, $company_types_id, $email, $telephone, $fax, $direction, $city, $country, $postal_code, $observation, $submit));
}
示例8: init
public function init()
{
$this->setName('resource');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$id->removeDecorator('label');
$name = new Zend_Form_Element_Text('name');
$name->setLabel('name')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$suppliers_id = new Zend_Form_Element_Select('suppliers_id');
$suppliers_id->setLabel('suppliers')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsSuppliers())->setOptions(array('onChange' => 'javascript:getAjaxResponse("http://globalpms.es/production/resource/getdataresource/id/"+this.value,"resource_id");javascript:getAjaxResponse("http://globalpms.es/production/resource/getdata/id/"+this.value,"contacts_id");'))->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$contacts_id = new Zend_Form_Element_Select('contacts_id');
$contacts_id->setLabel('supplier contact ')->setmultiOptions($this->_selectOptionsContactSuppliers())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$resource_id = new Zend_Form_Element_Select('resource_id');
$resource_id->setLabel('resource')->setmultiOptions($this->_selectOptionsResources())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$unbilled_hours = new Zend_Form_Element_Text('unbilled_hours');
$unbilled_hours->setLabel('Unbilled hours')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$facturation_types_id = new Zend_Form_Element_Select('facturation_types_id');
$facturation_types_id->setLabel('Facturation type')->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsFacturation_types())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$price = new Zend_Form_Element_Text('price');
$price->setLabel('Price')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$observation = new Zend_Form_Element_Text('observation');
$observation->setLabel('observation')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setValue('Guardar')->setAttrib('id', 'submitbutton')->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_submit.phtml'))))->setAttrib('class', 'btn')->removeDecorator('label');
$this->addElements(array($id, $name, $suppliers_id, $resource_id, $contacts_id, $unbilled_hours, $facturation_types_id, $price, $observation, $submit));
}
示例9: _id_encontro
protected function _id_encontro()
{
$e = new Zend_Form_Element_Hidden('id_encontro');
$e->addFilter('Int');
$e->setDecorators(array('ViewHelper', 'Description', 'Errors', array('HtmlTag', ''), array('Label', '')));
return $e;
}
示例10: init
public function init()
{
$this->setName('transfer_target');
$this->setAttrib('class', 'form-inline');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$host2 = new Zend_Form_Element_Text('host2');
$host2->setAttrib('class', 'form-control')->setLabel('host2');
$host2->setDecorators(array('ViewHelper', 'Label', array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group col-md-3'))));
$user2 = new Zend_Form_Element_Text('user2');
$user2->setLabel('user2');
$user2->setAttrib('class', 'form-control');
$user2->setDecorators(array('ViewHelper', 'Description', 'Errors', 'Label', array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group col-md-3'))));
$password2 = new Zend_Form_Element_Text('password2');
$password2->setLabel('pass2');
$password2->setAttrib('class', 'form-control');
$password2->setDecorators(array('ViewHelper', 'Description', 'Errors', 'Label', array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group col-md-3'))));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel('Submit');
$submit->setAttrib('class', 'btn btn-default');
$submit->setValue('transfer_target');
$submit->setDecorators(array('ViewHelper', 'Description', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'div', 'colspan' => 2, 'align' => 'center')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
$this->addElements(array($host2, $user2, $password2, $submit));
$this->setDecorators(array('FormElements', 'Form'));
}
示例11: init
public function init()
{
$this->setName('cliente')->setAttrib('class', 'form-horizontal');
$cli_id_cliente = new Zend_Form_Element_Hidden('cli_id_cliente');
$cli_id_cliente->addFilter('Int');
$cli_nombre = new Zend_Form_Element_Text('cli_nombre');
$cli_nombre->setAttrib('placeholder', 'Nombres')->setLabel('Nombres:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$cli_apellido_1 = new Zend_Form_Element_Text('cli_apellido_1');
$cli_apellido_1->setAttrib('placeholder', 'Apellido Paterno')->setLabel('Apellido Paterno:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$cli_apellido_2 = new Zend_Form_Element_Text('cli_apellido_2');
$cli_apellido_2->setAttrib('placeholder', 'Apellido Paterno')->setLabel('Apellido Paterno:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$cli_rut = new Zend_Form_Element_Text('cli_rut');
$cli_rut->setAttrib('placeholder', 'RUT')->setLabel('RUT:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$cli_fono_1 = new Zend_Form_Element_Text('cli_fono_1');
$cli_fono_1->setAttrib('placeholder', 'Teléfono Móvil')->setLabel('Teléfono Móvil:')->addFilter('StripTags')->addFilter('StringTrim');
$cli_fono_2 = new Zend_Form_Element_Text('cli_fono_2');
$cli_fono_2->setAttrib('placeholder', 'Teléfono Fijo')->setLabel('Teléfono Fijo:')->addFilter('StripTags')->addFilter('StringTrim');
$cli_direccion = new Zend_Form_Element_Text('cli_direccion');
$cli_direccion->setAttrib('placeholder', 'Dirección')->setLabel('Dirección:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$cli_lugar_de_trabajo = new Zend_Form_Element_Text('cli_lugar_de_trabajo');
$cli_lugar_de_trabajo->setAttrib('placeholder', 'Dirección')->setLabel('Lugar de trabajo:')->addFilter('StripTags')->addFilter('StringTrim');
$cli_ciudad = new Zend_Form_Element_Text('cli_ciudad');
$cli_ciudad->setAttrib('placeholder', 'Ciudad')->setLabel('Ciudad:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setAttrib('id', 'submitbutton');
$this->addElements(array($cli_id_cliente, $cli_rut, $cli_nombre, $cli_apellido_1, $cli_apellido_2, $cli_fono_1, $cli_fono_2, $cli_direccion, $cli_lugar_de_trabajo, $cli_ciudad, $submit));
}
示例12: init
public function init()
{
// Задаём имя форме
$this->setName('warehouse');
// Создаём переменную, которая будет хранить сообщение валидации
$isEmptyMessage = 'Значение является обязательным и не может быть пустым';
// Создаём элемент формы – text c именем = number
$image = new Zend_Form_Element_File('image');
$image->setLabel('Загрузить фотографию')->setDestination(DATA_PATH . '/public/img/')->addValidator('Size', false, '204800000')->addValidator('Extension', true, 'png,jpg,gif')->addValidator('ImageSize', false, array('minwidth' => 50, 'minheight' => 50, 'maxwidth' => 5000, 'maxheight' => 5000));
$serial = new Zend_Form_Element_Text('serial', array('class' => 'form-control'));
$serial->setLabel('Серийный номер')->setAttrib('placeholder', 'S\\N:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $isEmptyMessage)))->addValidator('regex', true, array("/^[а-яА-Яa-zA-Z0-9 \\. \\-]{3,200}\$/i", 'messages' => 'Не верный формат ввода'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('class' => 'test')), array('Label', array('tag' => 'div', 'class' => 'form-control-static')), array('Errors', array('tag' => 'div', 'class' => 'form-control-static')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
$name = new Zend_Form_Element_Text('name', array('class' => 'form-control'));
$name->setLabel('Название')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty', true, array('messages' => 'Йо на, не может быть пустым'))->addValidator('regex', true, array("/^[а-яА-Яa-zA-Z0-9 \\. \\- \\s ]{3,50}\$/i", 'messages' => 'Не верный формат ввода'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('class' => 'test')), array('Label', array('tag' => 'div', 'class' => 'form-control-static')), array('Errors', array('tag' => 'div', 'class' => 'form-control-static')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
$type = new Zend_Form_Element_Text('type', array('class' => 'form-control'));
$type->setLabel('Тип')->setAttrib('placeholder', 'Viena,Royal,All')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty', true, array('messages' => 'Йо на, не может быть пустым'))->addValidator('regex', true, array("/^[a-zA-Z0-9 \\- \\s]{3,20}\$/i", 'messages' => 'Не верный формат ввода'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('class' => 'test')), array('Label', array('tag' => 'div', 'class' => 'form-control-static')), array('Errors', array('tag' => 'div', 'class' => 'form-control-static')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
$remain = new Zend_Form_Element_Text('remain', array('class' => 'form-control'));
$remain->setLabel('Остаток')->setAttrib('placeholder', 'кол-во')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty', true, array('messages' => 'Йо на, не может быть пустым'))->addValidator('regex', true, array("/^[0-9 \\-]{1,20}\$/i", 'messages' => 'Не верный формат ввода'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('class' => 'test')), array('Label', array('tag' => 'div', 'class' => 'form-control-static')), array('Errors', array('tag' => 'div', 'class' => 'form-control-static')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
$price = new Zend_Form_Element_Text('price', array('class' => 'form-control'));
$price->setLabel('Цена')->setAttrib('placeholder', 'введите цену в грн')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty', true, array('messages' => 'Йо на, не может быть пустым'))->addValidator('regex', true, array("/^[0-9]{0,20}\$/i", 'messages' => 'Не верный формат ввода, для ввода доступны только цифры'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('class' => 'test')), array('Label', array('tag' => 'div', 'class' => 'form-control-static')), array('Errors', array('tag' => 'div', 'class' => 'form-control-static')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'form-group'))));
// Создаём элемент hidden c именем = id
$id = new Zend_Form_Element_Hidden('id');
// Указываем, что данные в этом элементе фильтруются как число int
$id->addFilter('Int')->removeDecorator('label')->removeDecorator('element');
// Создаём элемент hidden c именем = id
$path = new Zend_Form_Element_Hidden('path');
// Указываем, что данные в этом элементе фильтруются как число int
$path->removeDecorator('label')->removeDecorator('element');
// Создаём элемент формы Submit c именем = submit
$submit = new Zend_Form_Element_Submit('submit', array('class' => 'btn btn-default'));
// Добавляем все созданные элементы к форме.
$this->addElements(array($id, $serial, $name, $type, $remain, $price, $image, $submit, $path));
}
示例13: init
public function init()
{
$this->setName('destinatario')->setAttrib('class', 'form-horizontal');
$des_id_destinatario = new Zend_Form_Element_Hidden('des_id_destinatario');
$des_id_destinatario->addFilter('Int');
$des_nombre = new Zend_Form_Element_Text('des_nombre');
$des_nombre->setAttrib('placeholder', 'Nombre')->setLabel('Nombre:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_rut = new Zend_Form_Element_Text('des_rut');
$des_rut->setAttrib('placeholder', 'RUT')->setLabel('RUT:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_direccion = new Zend_Form_Element_Text('des_direccion');
$des_direccion->setAttrib('placeholder', 'Dirección')->setLabel('Dirección:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_ciudad = new Zend_Form_Element_Text('des_ciudad');
$des_ciudad->setAttrib('placeholder', 'Ciudad')->setLabel('Ciudad:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_telefono = new Zend_Form_Element_Text('des_telefono');
$des_telefono->setAttrib('placeholder', 'Teléfono')->setLabel('Teléfono:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_tipo = new Zend_Form_Element_Select('des_tipo');
$des_tipo->setAttrib('placeholder', 'Tipo')->setLabel('Tipo:')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty');
$des_tipo->addMultiOption("CLIENTE", "Cliente");
$des_tipo->addMultiOption("PROVEEDOR", "Proveedor");
$des_tipo->addMultiOption("INTERNO", "Tienda SMO (Interno)");
$des_comuna = new Zend_Form_Element_Text('des_comuna');
$des_comuna->setAttrib('placeholder', 'Comuna')->setLabel('Comuna:')->addFilter('StripTags')->addFilter('StringTrim');
$des_region = new Zend_Form_Element_Text('des_region');
$des_region->setAttrib('placeholder', 'Región')->setLabel('Región:')->addFilter('StripTags')->addFilter('StringTrim');
$des_contacto = new Zend_Form_Element_Text('des_contacto');
$des_contacto->setAttrib('placeholder', 'Contacto')->setLabel('Contacto:')->addFilter('StripTags')->addFilter('StringTrim');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setAttrib('id', 'submitbutton');
$this->addElements(array($des_id_destinatario, $des_nombre, $des_rut, $des_direccion, $des_ciudad, $des_telefono, $des_tipo, $des_comuna, $des_region, $des_contacto, $submit));
}
示例14: init
public function init()
{
$this->setName('user');
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int');
$id->removeDecorator('label');
$name = new Zend_Form_Element_Text('name');
$name->setLabel('name')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Password')->addValidator('NotEmpty', true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('StringLength', false, array(3, 20))->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$date = new Zend_Form_Element_Text('date');
$date->setLabel('Date')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$email = new Zend_Form_Element_Text('email');
$email->setLabel('Email')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('emailAddress', TRUE)->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$status = new Zend_Form_Element_Text('status');
$status->setLabel('status')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$person_id = new Zend_Form_Element_Text('person_id');
$person_id->setLabel('person_id')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$validation_code = new Zend_Form_Element_Text('validation_code');
$validation_code->setLabel('validation')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$phone = new Zend_Form_Element_Text('phone');
$phone->setLabel('Phone')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setAttrib('size', 30)->setAttrib('maxlength', 80)->setAttrib("class", "inputbox")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_text.phtml'))));
$role_id = new Zend_Form_Element_Select('role_id');
$role_id->setLabel('Role')->setRequired(true)->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsRole())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$company_id = new Zend_Form_Element_Select('company_id');
$company_id->setLabel('company')->setRequired(true)->addValidator('NotEmpty', true)->setmultiOptions($this->_selectOptionsCompany())->setAttrib('maxlength', 200)->setAttrib('size', 1)->setAttrib("class", "toolboxdrop")->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_select.phtml'))));
$submit = new Zend_Form_Element_Submit('submit');
$submit->setValue('Guardar')->setAttrib('id', 'submitbutton')->setDecorators(array(array('ViewScript', array('viewScript' => 'forms/_element_submit.phtml'))))->setAttrib('class', 'btn')->removeDecorator('label');
$add_contact = new Zend_Form_Element_Checkbox('add_contact');
$add_contact->setLabel('add contact')->setRequired(true);
$this->addElements(array($id, $name, $password, $date, $email, $status, $validation_code, $person_id, $phone, $role_id, $company_id, $add_contact, $submit));
}
示例15: init
public function init()
{
$this->setName('f2')->setMethod('post')->setAttribs(array('id' => 'user'));
$id = new Zend_Form_Element_Hidden('id');
$id->addFilter('Int')->removeDecorator('label');
$username = new Zend_Form_Element_Text('ten_dang_nhap');
$username->setLabel('Tên đăng nhập (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addFilter('StringToLower')->addValidator('NotEmpty')->addValidator(new Zend_Validate_StringLength(0, 32))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'style' => 'width: 83%')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'ten_dang_nhap', 'class' => 'text-input'));
$password = new Zend_Form_Element_Password('mat_khau');
$password->setLabel('Mật khẩu (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'mat_khau', 'class' => 'text-input'));
$repassword = new Zend_Form_Element_Password('mat_khau_2');
$repassword->setLabel('Nhập lại mật khẩu (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator(new Zend_Validate_Identical('mat_khau'))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'mat_khau_2', 'class' => 'text-input'));
$ho = new Zend_Form_Element_Text('ho');
$ho->setLabel('Họ (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->addValidator(new Zend_Validate_StringLength(0, 100))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'style' => 'width: 83%')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'ho', 'class' => 'text-input'));
$ten = new Zend_Form_Element_Text('ten');
$ten->setLabel('Tên (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->addValidator(new Zend_Validate_StringLength(0, 20))->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'ten', 'class' => 'text-input'));
$ngay_sinh = new Zend_Form_Element_Text('ngay_sinh');
$ngay_sinh->setLabel('Ngày sinh (*)')->setDescription('(dd-mm-YYYY)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->setDecorators(array('ViewHelper', 'Errors', array('Description', array('tag' => 'span')), array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'ngay_sinh', 'class' => 'text-input'));
$email = new Zend_Form_Element_Text('email');
$email->setLabel('Email (*)')->setRequired(true)->addFilter('StripTags')->addFilter('StringTrim')->addValidator('NotEmpty')->addValidator(new Zend_Validate_EmailAddress())->setDecorators(array('ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row' => 'HtmlTag'), array('tag' => 'tr'))))->setAttribs(array('id' => 'email', 'class' => 'text-input'));
$submitCon = new Zend_Form_Element_Submit('submitCon');
$submitCon->setDecorators(array('ViewHelper', array(array('data' => 'HtmlTag'), array('tag' => 'span')), array(array('row' => 'HtmlTag'), array('tag' => 'span'))))->setAttribs(array('class' => 'button'));
$submitExit = new Zend_Form_Element_Submit('submitExit');
$submitExit->setDecorators(array('ViewHelper', array(array('data' => 'HtmlTag'), array('tag' => 'span')), array(array('row' => 'HtmlTag'), array('tag' => 'span'))))->setAttribs(array('class' => 'button'));
$url = new Zend_View_Helper_Url();
$link = $url->url(array('module' => 'admin', 'controller' => 'index', 'action' => 'index'));
$cancel = new Zend_Form_Element_Button('cancel');
$cancel->setDecorators(array('ViewHelper', array(array('data' => 'HtmlTag'), array('tag' => 'span')), array(array('row' => 'HtmlTag'), array('tag' => 'span'))))->setAttribs(array('class' => 'button', 'onclick' => 'window.location.href="' . $link . '"'));
$this->addElements(array($id, $username, $password, $repassword, $ho, $ten, $ngay_sinh, $email, $submitCon, $submitExit, $cancel));
$this->addDisplayGroup(array('submitCon', 'submitExit', 'cancel'), 'submitbtn', array('decorators' => array('FormElements', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'colspan' => 2)), array(array('row' => 'HtmlTag'), array('tag' => 'td')), array('HtmlTag', array('tag' => 'tr', 'id' => 'btn')))));
$this->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'table')), 'Form'));
}