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


PHP Zend_Form_Element_Submit::setlabel方法代码示例

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


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

示例1: init

 public function init()
 {
     /*
     	$captcha = new Zend_Form_Element_Captcha('foo', array(
         'label' => "Please verify you're a human",
         'captcha' => 'Figlet',
         'captchaOptions' => array(
             'captcha' => 'Figlet',
             'wordLen' => 6,
             'timeout' => 300,
         ),
     ));
      $submit = new Zend_Form_Element_Submit('submit');
     	 $submit->setlabel('submit')
     	        ->setIgnore(true);
     	$this->addElements(
     			      array(
     				    $captcha,$submit));
     					}*/
     $recaptchakeys = Zend_Registry::get('config.recaptcha');
     $recaptcha = new Zend_Service_Recaptcha($recaptchakeys['publickeys'], $recaptchakeys['privatekeys'], NULL, array('theme' => 'red'));
     $captcha = new Zend_Form_Element_Captcha('captcha', array('label' => 'type the characters', 'captcha' => 'Recaptcha', 'captchaOptions' => array('captcha' => 'Recaptcha', 'service' => $recaptcha)));
     $submit = new Zend_Form_Element_Submit('submit');
     $submit->setlabel('submit')->setIgnore(true);
     $this->addElements(array($captcha, $submit));
 }
开发者ID:pshreez,项目名称:PHP,代码行数:26,代码来源:Captcha.php

示例2: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $creditline_id = new Zend_Form_Element_Text('creditline_id');
     $institution_id = new Zend_Form_Element_Text('institution_id');
     $institutionName = new Zend_Form_Element_Select('institutionname');
     $institutionName->setAttrib('class', 'txt_put');
     $institutionName->setAttrib('id', 'institutionname');
     $institutionName->setLabel('institutionname')->setRequired(true);
     $institutionName->addMultiOption('', 'Select...');
     $institutionName->setAttrib('onchange', 'getState(this.value)');
     $institutionNames = new Zend_Form_Element_Text('institutionnames');
     $institutionNames->setAttrib('class', 'txt_put');
     $institutionNames->setAttrib('readonly', 'true');
     $instituteamount = new Zend_Form_Element_Text('instituteamount');
     $instituteamount->setAttrib('class', 'txt_put');
     $instituteamount->setAttrib('readonly', 'true');
     $institutionamount = new Zend_Form_Element_Text('institutionamount');
     $institutionamount->setAttrib('class', 'txt_put');
     $institutionamount->setAttrib('readonly', 'true');
     $maxcreditlinelimit = new Zend_Form_Element_Text('maxcreditlinelimit');
     $maxcreditlinelimit->setAttrib('class', 'txt_put');
     $maxcreditlinelimit->setAttrib('readonly', 'true');
     $creditlinename = new Zend_Form_Element_Text('creditlinename');
     $creditlinename->addValidator(new Zend_Validate_Db_NoRecordExists('ourbank_creditlineinformation', 'creditlinename'));
     $creditlinename->setAttrib('class', 'txt_put');
     $creditlinename->setAttrib('id', 'creditlinename');
     $creditlinename->setLabel('creditlinename')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $creditlineshortname = new Zend_Form_Element_Text('creditline_shortname');
     $creditlineshortname->setAttrib('class', 'txt_put');
     $creditlineshortname->setAttrib('id', 'creditline_shortname');
     $creditlineshortname->setLabel('creditline_shortname')->setRequired(true)->addValidators(array('NotEmpty'));
     $creditlineamount = new Zend_Form_Element_Text('creditlineamount');
     $creditlineamount->setAttrib('class', 'txt_put');
     $creditlineamount->setAttrib('id', 'creditlineamount');
     $creditlineamount->setRequired(true)->addValidators(array(array('NotEmpty'), array('Float')));
     $creditlineinterest = new Zend_Form_Element_Text('creditlineinterest');
     $creditlineinterest->setAttrib('class', 'txt_put');
     $creditlineinterest->setAttrib('id', 'creditlineinterest');
     $creditlineinterest->setRequired(true)->addValidators(array(array('NotEmpty'), array('stringLength', false, array(1, 3)), array('Digits')));
     $creditlinefrom = new ZendX_JQuery_Form_Element_DatePicker('creditline_beginingdate');
     $creditlinefrom->setJQueryParam('dateFormat', 'yy-mm-dd');
     $creditlinefrom->setRequired(true)->addValidators(array(array('Date')));
     $creditlinefrom->setAttrib('class', 'txt_put');
     $creditlinefrom->setAttrib('id', 'creditline_beginingdate');
     $creditlineto = new ZendX_JQuery_Form_Element_DatePicker('creditline_closingdate');
     $creditlineto->setJQueryParam('dateFormat', 'yy-mm-dd');
     $creditlineto->setRequired(true)->addValidators(array(array('Date')));
     $creditlineto->setAttrib('class', 'txt_put');
     $creditlineto->setAttrib('id', 'creditline_closingdate');
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setlabel('Submit');
     $this->addElements(array($creditline_id, $institutionName, $creditlinename, $creditlineshortname, $creditlineamount, $creditlineinterest, $creditlinefrom, $creditlineto, $submit, $institutionamount, $instituteamount, $institutionNames, $institution_id, $maxcreditlinelimit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:56,代码来源:creditline.php

示例3: init

 public function init()
 {
     $this->setMethod('post')->setAction('/venta/registrar')->setAttrib('id', 'frmVenta')->setAttrib('style', 'width: 300px;margin:auto;');
     // Comentarios
     $e = new Zend_Form_Element_Textarea('comentarios');
     $e->setLabel('Comentarios');
     $e->setRequired(false);
     $e->addValidator(new Zend_Validate_StringLength(array('min' => 5, 'max' => 100)));
     $e->setAttrib('cols', '20');
     $e->setAttrib('rows', '2');
     $this->addElement($e);
     //Submit
     $e = new Zend_Form_Element_Submit('submit');
     $e->setlabel('Registrar');
     $this->addElement($e);
 }
开发者ID:helmutpacheco,项目名称:ventas,代码行数:16,代码来源:Venta.php

示例4: __construct

 public function __construct($options = null)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($options);
     $meeting_name = new Zend_Form_Element_Text('meeting_name');
     //$meeting_name->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $meeting_name->setAttrib('class', 'txt_put');
     $meeting_name->setAttrib('id', 'meetingname');
     $meeting_name->setLabel('meetingname')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $group_head = new Zend_Form_Element_Text('group_head');
     //$group_head->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $group_head->setAttrib('class', 'txt_put');
     $group_head->setAttrib('id', 'group_head');
     $group_head->setLabel('group_head')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_place = new Zend_Form_Element_Text('meeting_place');
     //$creditlinename->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details','creditline_name','recordstatus_id=3'));
     $meeting_place->setAttrib('class', 'txt_put');
     $meeting_place->setAttrib('id', 'meeting_place');
     $meeting_place->setLabel('meeting_place')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_time = new Zend_Form_Element_Text('meeting_time');
     $meeting_time->addValidator(new Zend_Validate_Db_NoRecordExists('ob_creditline_details', 'creditline_name', 'recordstatus_id=3'));
     $meeting_time->setAttrib('class', 'txt_put');
     $meeting_time->setAttrib('id', 'meeting_time');
     $meeting_time->setLabel('meeting_time')->setRequired(true)->addValidators(array(array('NotEmpty')));
     $office_type = new Zend_Form_Element_Select('office_type');
     $office_type->addMultiOption('', 'Select...');
     $office_type->setAttrib('class', 'txt_put');
     $office_type->addValidators(array(array('NotEmpty')));
     $group_name = new Zend_Form_Element_Select('group_name');
     $group_name->addMultiOption('', 'Select...');
     $group_name->addMultiOption('All', 'All');
     $group_name->setAttrib('class', 'txt_put');
     $group_name->setRequired(true)->addValidators(array(array('NotEmpty')));
     $meeting_day = new Zend_Form_Element_Select('meeting_day');
     $meeting_day->addMultiOption('', 'Select...');
     //$meeting_day->addMultiOption('All','All');
     $meeting_day->setAttrib('class', 'txt_put');
     $meeting_day->setRequired(true)->addValidators(array(array('NotEmpty')));
     $submit = new Zend_Form_Element_Submit('Submit');
     $submit->setAttrib('class', 'officesubmit');
     $submit->setlabel('Submit');
     $this->addElements(array($meeting_name, $group_head, $meeting_place, $meeting_time, $office_type, $group_name, $meeting_day, $submit));
     //===================================================================================================================================
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:44,代码来源:Meeting.php

示例5: init

 public function init()
 {
     $this->setMethod('post')->setAction('/test/catalogo/')->setAttrib('id', 'frmVentaCataloto');
     $e = new Zend_Form_Element_Hidden('id_producto');
     $e->setLabel('Producto');
     $e->setRequired();
     $this->addElement($e);
     // Cantidad
     $e = new Zend_Form_Element_Text('cantidad');
     $e->setLabel('Cantidad');
     $e->setRequired();
     $e->addValidator(new Zend_Validate_Int(new Zend_Locale('US')));
     $e->addValidator(new Zend_Validate_GreaterThan(0));
     $e->addValidator(new Zend_Validate_LessThan(100));
     $this->addElement($e);
     //Submit
     $e = new Zend_Form_Element_Submit('submit');
     $e->setlabel('Registrar');
     $this->addElement($e);
 }
开发者ID:helmutpacheco,项目名称:ventas,代码行数:20,代码来源:VentaCatalogo.php

示例6: __construct

 public function __construct($app)
 {
     Zend_Dojo::enableForm($this);
     parent::__construct($app);
     $office_id = new Zend_Form_Element_Select('office_id');
     $office_id->addMultiOption('', 'Select...');
     $office_id->setAttrib('class', 'txt_put');
     $office_id->setAttrib('id', 'office_id');
     $office_id->setAttrib('onchange', 'getGroups(this.value,"' . $app . '"),getMember(this.value,"' . $app . '")');
     $groupname = new Zend_Form_Element_Text('groupname');
     $groupname->setAttrib('id', 'groupname');
     $groupname->setAttrib('class', 'txt_put');
     //$groupname->setAttrib('size', '14');
     $groupaddress_line1 = new Zend_Form_Element_Text('groupaddress_line1');
     $groupaddress_line1->setAttrib('id', 'groupaddress_line1');
     $groupaddress_line1->setAttrib('class', 'txt_put');
     //$groupaddress_line1->setAttrib('size', '14');
     $groupaddress_line2 = new Zend_Form_Element_Text('groupaddress_line2');
     $groupaddress_line2->setAttrib('id', 'groupaddress_line2');
     $groupaddress_line2->setAttrib('class', 'txt_put');
     //$groupaddress_line2->setAttrib('size', '14');
     $groupaddress_line3 = new Zend_Form_Element_Text('groupaddress_line3');
     $groupaddress_line3->setAttrib('id', 'groupaddress_line3');
     $groupaddress_line3->setAttrib('class', 'txt_put');
     //$groupaddress_line3->setAttrib('size', '14');
     $groupaddress_location = new Zend_Form_Element_Text('groupaddress_location');
     $groupaddress_location->setAttrib('id', 'groupaddress_location');
     $groupaddress_location->setAttrib('class', 'txt_put');
     //$groupaddress_location->setAttrib('size', '14');
     $groupname1 = new Zend_Form_Element_MultiCheckbox('groupname1');
     $groupname1->setAttrib('id', 'groupname1');
     $groupname1->setAttrib('class', 'txt_put');
     $groupname1->setAttrib('disabled', 'true');
     $member_id = new Zend_Form_Element_MultiCheckbox('member_id');
     $member_id->setAttrib('id', 'member_id');
     $member_id->setAttrib('class', 'txt_put');
     $submit = new Zend_Form_Element_Submit('submit');
     $submit->setAttrib('class', 'groups');
     $submit->setlabel('submit');
     $this->addElements(array($office_id, $groupname, $groupaddress_line1, $groupaddress_line2, $groupaddress_line3, $groupaddress_location, $member_id, $groupname1, $submit));
 }
开发者ID:maniargaurav,项目名称:OurBank,代码行数:41,代码来源:Group.php


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