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


PHP TbHtml::hiddenField方法代码示例

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


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

示例1: renderField

 /**
  * Renders the select2 field
  */
 public function renderField()
 {
     list($name, $id) = $this->resolveNameID();
     TbArray::defaultValue('id', $id, $this->htmlOptions);
     TbArray::defaultValue('name', $name, $this->htmlOptions);
     if ($this->hasModel()) {
         echo $this->asDropDownList ? TbHtml::activeDropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions) : TbHtml::activeHiddenField($this->model, $this->attribute);
     } else {
         echo $this->asDropDownList ? TbHtml::dropDownList($this->name, $this->value, $this->data, $this->htmlOptions) : TbHtml::hiddenField($this->name, $this->value);
     }
 }
开发者ID:branJakJak,项目名称:goawtodayaldiskon,代码行数:14,代码来源:WhSelect2.php

示例2: array

<div class="form">
<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'form-ventaslevel1', 'enableClientValidation' => true, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'method' => 'get', 'action' => array('reportes/buscarBoleto'), 'clientOptions' => array('validateOnSubmit' => true)));
?>
<div class='col-2'>
<?php 
$boton = TbHtml::buttonDropdown('Buscar', array(array('label' => 'Referencia', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'venta'), array('label' => 'No. Boleto', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'boleto'), array('label' => 'No. Boleto Reimpreso', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'reimpresion'), TbHtml::menuDivider(), array('label' => 'Reservación Farmatodo', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'reservado')), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
		<?php 
echo TbHtml::textFieldControlGroup('ref', $ref > 0 ? $ref : '', array('span' => 4, 'placeholder' => 'Referencia o número de boleto', 'label' => 'Ingrese la referencia o el número de boleto:', 'id' => 'filtro', 'autofocus' => "autofocus", 'append' => $boton));
?>
	
</div>
    <div class="box1 text-left">
		<?php 
echo TbHtml::hiddenField('tipo');
//echo TbHtml::radioButtonList('tipo',isset($tipo)?$tipo:'venta',array(
//'venta'=>'Referencia',
//'boleto'=>'No. Boleto',
//'reimpresion'=>'Reimpresion',
//));
?>

    </div>

<?php 
$this->endWidget();
?>

</div><!-- form -->
</div><!-- Controles -->
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:buscarBoleto.php

示例3: run

 /**
  * Runs the widget.
  */
 public function run()
 {
     list($name, $id) = $this->resolveNameID();
     $id = $this->resolveId($id);
     echo TbHtml::openTag('div', array('class' => 'select2'));
     if ($this->hasModel()) {
         if ($this->asDropDownList) {
             echo TbHtml::activeDropDownList($this->model, $this->attribute, $this->data, $this->htmlOptions);
         } else {
             echo TbHtml::activeHiddenField($this->model, $this->attribute, $this->htmlOptions);
         }
     } else {
         if ($this->asDropDownList) {
             echo TbHtml::dropDownList($name, $this->value, $this->data, $this->htmlOptions);
         } else {
             echo TbHtml::hiddenField($name, $this->value, $this->htmlOptions);
         }
     }
     echo '</div>';
     if ($this->assetPath !== false) {
         $this->publishAssets($this->assetPath);
         $this->registerCssFile('/select2.css');
         if ($this->registerJs) {
             $this->registerScriptFile('/select2.js', CClientScript::POS_END);
         }
     }
     if ($this->bindPlugin) {
         $options = !empty($this->pluginOptions) ? CJavaScript::encode($this->pluginOptions) : '';
         $this->getClientScript()->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').select2({$options});");
     }
 }
开发者ID:juanprua,项目名称:yiistrap-widgets,代码行数:34,代码来源:TbSelect2.php

示例4: array

        <?php 
echo CHtml::tag('legend', array(), 'Configuración de la Distribución');
?>
	<div class="box box4  white-box">
		<h3>Información básica</h3>
		<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'form-forolevel1', 'enableAjaxValidation' => false, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL));
?>

<?php 
echo $form->dropDownListControlGroup($dist, 'ForoId', CHtml::listData(Foro::model()->findAll(), 'ForoId', 'ForoNom'), array('class' => '', 'disabled' => true));
$this->widget('bootstrap.widgets.TbAlert');
?>
		<?php 
echo $form->textFieldControlGroup($dist, 'ForoMapIntNom', array('class' => 'forolevel1'));
echo TbHtml::hiddenField('YII_CSRF_TOKEN', Yii::app()->request->csrfToken);
//echo TbHtml::submitButton(' Guardar información',
//array(
//'id'=>'btn-guardar',
//'class'=> 'btn fa fa-save ')
//);
$this->endWidget();
?>
	</div>

<!--- ------------------------------------------------------------------------- Distribucion-------- -->
	<div class="box box6 white-box">
		<h3>Configuración del mapa</h3>
		<?php 
$this->renderPartial('actualizar', compact('model'), false, true);
?>
开发者ID:cicb,项目名称:tpc,代码行数:31,代码来源:editor.php


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