本文整理汇总了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);
}
示例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;
}
示例3: end
public function end($options = null, $secureAttributes = array())
{
return parent::end($options, $secureAttributes) . '</div>';
}
示例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);
}
示例5: end
public function end($options = null)
{
$out = $this->hidden('_Fuzzy.detectstr', array('value' => '文字', 'id' => 'Fuzzy' . mt_rand()));
return $out . parent::end($options);
}
示例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);
}
示例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>
示例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;
}
示例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);
}
示例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);
}
示例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;
}
}
示例12: end
/**
* See FormHelper::end
*/
function end()
{
return parent::end() . "\n";
}
示例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);
}
示例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;
}
示例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);
}