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


PHP FormHelper::end方法代码示例

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


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

示例1: end

 function end($options = null)
 {
     if ($this->_fieldsetOpen === true) {
         return "</fieldset>\n" . parent::end($options);
     }
     return parent::end($options);
 }
开发者ID:kouak,项目名称:ircube,代码行数:7,代码来源:uni_form.php

示例2: end

 public function end($string = 'Salvar', $options = array())
 {
     $optionsDefault = array('class' => 'btn btn-primary', 'div' => 'form-group');
     $options = array_merge_recursive($optionsDefault, $options);
     $retorno = parent::submit($string, $options);
     $retorno .= parent::end();
     return $retorno;
 }
开发者ID:brnagn7,项目名称:spydercake,代码行数:8,代码来源:CakePHPFTPFormHelper.php

示例3: end

 public function end($options = null, $secureAttributes = array())
 {
     return parent::end($options, $secureAttributes) . '</div>';
 }
开发者ID:Fyr,项目名称:yday,代码行数:4,代码来源:PHFormHelper.php

示例4: end

 /**
  * end
  * フック用にラッピング
  *
  * @param	array	$options
  * @return	string
  * @access	public
  */
 function end($options = null)
 {
     $options = $this->executeHook('beforeFormEnd', $options);
     $out = parent::end($options);
     return $this->executeHook('afterFormEnd', $out);
 }
开发者ID:ryuring,项目名称:basercms,代码行数:14,代码来源:bc_form.php

示例5: end

 public function end($options = null)
 {
     $out = $this->hidden('_Fuzzy.detectstr', array('value' => '文字', 'id' => 'Fuzzy' . mt_rand()));
     return $out . parent::end($options);
 }
开发者ID:k1low,项目名称:fuzzy,代码行数:5,代码来源:FuzzyFormHelper.php

示例6: end

 /**
  * End a form, Twitter Bootstrap like.
  * 
  * @param string|array $options Label for the submit button as string ou array with label key and other options.
  * @param array $secureAttributes To add secure attributes.
  *
  * Extra options:
  * 	- ga_type       : string Button type GA_PRIMARY|GA_INFO|GA_SUCCESS|GA_WARNING|GA_DANGER|GA_INVERSE|GA_LINK
  * 	- ga_size       : string Button size GA_MINI|GA_SMALL|GA_LARGE
  */
 public function end($options = null, $secureAttributes = [])
 {
     if ($options === null) {
         return parent::end($options, $secureAttributes);
     }
     if (is_string($options)) {
         $options = ['label' => $options];
     }
     if (!in_array($this->formType, [GA_INLINE, GA_SEARCH, GA_HORIZONTAL])) {
         if (!array_key_exists('div', $options)) {
             $options['div'] = [];
         }
         $options['div']['class'] = GA_FORM_ACTIONS;
     }
     if ($this->formType === GA_HORIZONTAL) {
         if (!array_key_exists('div', $options)) {
             $options['div'] = [];
         }
         $options['div']['class'] = GA_CONTROL_GROUP;
         $before = $this->Html->tag('div', null, ['class' => GA_CONTROLS]);
         if (!empty($options['before'])) {
             $before = $options['before'] . $before;
         }
         $options['before'] = $before;
         $after = $this->Html->tag('/div');
         if (!empty($options['after'])) {
             $after = $after . $options['after'];
         }
         $options['after'] = $after;
     }
     return parent::end($options, $secureAttributes);
 }
开发者ID:gezeresolutionsweb,项目名称:cakeganache,代码行数:42,代码来源:GanacheFormHelper.php

示例7:

                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <button type="button" onclick="App.Pedido.AdicionaProduto()" class='btn btn-primary btn-sm'><span class='glyphicon glyphicon-plus'></span> Adicionar produto</button>
        </div>
    </div>
    <div class="row" style="padding:30px 0">
        <div class="col-md-12">
            <div class="col-md-3">
                <legend>Valor</legend>
                <input type="text" id="saldo"  class="valor alert-success" value="0.00" readonly/>
            </div>
            <div class="col-md-3">
                <legend>Desconto (%)</legend>
                <input type="text" id="desconto" class="valor alert-danger" placeholder="0%"  onkeyup="App.Pedido.Descontar(this.value)"/>
            </div>
            <div class="col-md-3">
                <legend>Soma</legend>
                <input type="text" id="montante" class="valor alert-info" value="0.00" readonly/>
            </div>
        </div>
    </div>
    <?php 
FormHelper::end(false);
?>
<script type="text/javascript">
    App.Pedido.AdicionaProduto();
</script>
开发者ID:neurosoftbrasil,项目名称:adminns,代码行数:31,代码来源:inserir.php

示例8: end

 /**
  * Unsets Parsley processor.
  *
  * @param array $options
  * @return string
  */
 public function end($options = null, $secureAttributes = array())
 {
     $end = parent::end($options);
     unset($this->_processor);
     return $end;
 }
开发者ID:codaxis,项目名称:cakephp-parsley-helper,代码行数:12,代码来源:ParsleyFormHelper.php

示例9: end

 /**
  *
  * End a form, Twitter Bootstrap like.
  *
  * New options:
  *  - bootstrap-type: Twitter bootstrap button type (primary, danger, info, etc.)
  *  - bootstrap-size: Twitter bootstrap button size (mini, small, large)
  *
  **/
 public function end($options = null, $secureAttributes = array())
 {
     if ($options == null) {
         return parent::end($options, $secureAttributes);
     }
     if (is_string($options)) {
         $options = array('label' => $options);
     }
     if (!$this->inline) {
         if (!array_key_exists('div', $options)) {
             $options['div'] = array();
         }
         if (!isset($options['div']['class'])) {
             $options['div']['class'] = '';
         }
         $options['div']['class'] .= ' form-actions';
     }
     return parent::end($options, $secureAttributes);
 }
开发者ID:tsmsogn,项目名称:cakephp-bootstrap3-helpers,代码行数:28,代码来源:BootstrapFormHelper.php

示例10: end

 /**
  * Add divs and classes necessary for bootstrap
  *
  */
 public function end($options = null)
 {
     if ($options !== null) {
         if (!is_array($options)) {
             $options = array('label' => $options);
         }
         $defaults = array('class' => 'btn btn-primary', 'div' => array('class' => 'form-actions'));
         $options = Set::merge($defaults, $options);
     }
     return parent::end($options);
 }
开发者ID:wangshipeng,项目名称:license,代码行数:15,代码来源:BootstrapFormHelper.php

示例11: end

 /**
  * Closes an HTML form, cleans up values set by Bs3FormHelper::create(), and writes hidden
  * input fields where appropriate.
  *
  * @param string|array $options as a string will use $options as the value of button,
  * @return string a closing FORM tag optional submit button.
  */
 public function end($options = null, $secureAttributes = array())
 {
     $t = parent::end($options, $secureAttributes) . $this->tinyMceScript();
     if (!$this->_isAnAdminPanel()) {
         return $t;
     }
 }
开发者ID:bramas,项目名称:cakephp2-admin,代码行数:14,代码来源:AdminFormHelper.php

示例12: end

 /**
  * See FormHelper::end
  */
 function end()
 {
     return parent::end() . "\n";
 }
开发者ID:stripthis,项目名称:BlackRabbit,代码行数:7,代码来源:my_form.php

示例13: end

 /**
  * End
  *
  * @param string $submit
  * @param array $settings
  * @return string
  * @access public
  * @since 1.0
  */
 public function end($submit = null, $settings = array())
 {
     if (!$this->_hasComponent()) {
         return '';
     }
     return parent::end($submit, $settings);
 }
开发者ID:ederdsr,项目名称:civisindicadores,代码行数:16,代码来源:FilterFormHelper.php

示例14: end

 function end($options = null)
 {
     $view = Sl::getInstance()->view;
     $options2 = is_array($options) ? $options : array();
     $options2 += array('validation' => true);
     if ($options2['validation'] && $view->model && isset($view->Validation)) {
         SlConfigure::write('Asset.js.jquery', 'head');
         SlConfigure::write('Asset.js.head.jqueryValidation', 'jquery.validation.min');
         $html = $view->Validation->bind($view->model);
     } else {
         $html = '';
     }
     return parent::end($options) . $html;
 }
开发者ID:sandulungu,项目名称:StarLight,代码行数:14,代码来源:sl_form.php

示例15: end

 /**
  * Add divs and classes necessary for bootstrap to end form.
  *
  * @param array $options
  * @param array $secureAttributes
  * @return string
  */
 public function end($options = null, $secureAttributes = [])
 {
     if (!empty($options)) {
         if (!is_array($options)) {
             $options = ['label' => $options];
         }
         $defaults = ['class' => 'btn btn-success'];
         $options = array_merge($defaults, $options);
     }
     return parent::end($options, $secureAttributes);
 }
开发者ID:cakeoven,项目名称:CakeTwitterBootstrap,代码行数:18,代码来源:BootstrapFormHelper.php


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