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


PHP TbHtml::customActiveControlGroup方法代码示例

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


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

示例1: array

             'url'=>CController::createUrl('Datoimpositivo/verformulario'), //url to call.
            'update'=>'#formulario', //selector to update

 ))); 
  

 ?>
<?php  
            $mask = $this->widget('CMaskedTextField', array(
                'model' => $model,
                'attribute' => 'periodoinscrip',
                'mask' => '99/9999',
                'placeholder' => 'x',
                'htmlOptions' => array('size' => 9)
                    ), true);
            echo TbHtml::customActiveControlGroup($mask, $model, 'periodoinscrip');
//           
//        
//
?>
<?php

echo "<div class='control-group'>";
echo $form->labelEx($model, 'registracion', array('class' => 'control-label'));
echo "<div class='controls'>";

$this->widget('CJuiDateTimePicker', array(
    'model' => $model,
    'name' => 'Datoimpositivo[registracion]',
    'language' => 'es',
    'value' => $model->registracion ? $model->registracion:null,
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_datoimpositivo.php

示例2: array




echo TbHtml::customActiveControlGroup($input, $model, 'mesanio');


$input = $this->widget(
            'yiiwheels.widgets.maskinput.WhMaskInput', array(
        'model' => $model,
        'attribute' => 'arancel',
        'mask' => '999999.99',
        'htmlOptions' => array('placeholder' => '0.00'),
            ), true
    );
//echo $form->textFieldControlGroup($model,'arancel',array('size'=>11,'maxlength'=>11));
echo TbHtml::customActiveControlGroup($input, $model, 'arancel');
echo $form->hiddenField($model,'idosplan',array('value'=>$model->idosplan));
 ?>
</fieldset>
    
    <div class="form-actions">
        <?php
        echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
//    'url'=>Yii::app()->request->urlReferrer,
//            'onclick' => 'js:window.location="'.Yii::app()->baseUrl.'/index.php"',
    // para volver a la vista que llamó a esta
              'onclick'=>'js:window.location="'.Yii::app()->request->urlReferrer.'"',
开发者ID:juankie,项目名称:gestcb9git,代码行数:28,代码来源:_form.php

示例3: testActiveCustomControlGroup

 public function testActiveCustomControlGroup()
 {
     $I = $this->codeGuy;
     $html = TbHtml::customActiveControlGroup('<div class="widget"></div>', new Dummy(), 'text', array('label' => false));
     $group = $I->createNode($html, 'div.control-group');
     $controls = $group->filter('div.controls');
     $I->seeNodeChildren($controls, array('div.widget'));
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:8,代码来源:TbHtmlTest.php

示例4: array





if ($model->mostrarCampo('matriculamedico')) {
    $input = $this->widget(
            'yiiwheels.widgets.maskinput.WhMaskInput', array(
        'model' => $model,
        'attribute' => 'matriculamedico',
        'mask' => '999999999999999',
        'htmlOptions' => array('class' => 'borrable'),
            ), true
    );
    echo TbHtml::customActiveControlGroup($input, $model, 'matriculamedico');
}


if ($model->mostrarCampo('fechaemision')) {
    $input = $this->widget(
            'yiiwheels.widgets.maskinput.WhMaskInput', array(
        'model' => $model,
        'attribute' => 'fechaemision',
        'mask' => '99/99/9999',
        'htmlOptions' => array('placeholder' => 'dd/mm/aaaa'),
            ), true
    );

    echo TbHtml::customActiveControlGroup($input, $model, 'fechaemision');
}
    
开发者ID:juankie,项目名称:gestcb9git,代码行数:25,代码来源:_formdatoscarga.php

示例5: customControlGroup

 public function customControlGroup($input, $model, $attribute, $htmlOptions = array())
 {
     $htmlOptions = $this->processControlGroupOptions($model, $attribute, $htmlOptions);
     //echo Yii::trace(CVarDumper::dumpAsString($htmlOptions),'vardump');
     return TbHtml::customActiveControlGroup($input, $model, $attribute, $htmlOptions);
 }
开发者ID:cicb,项目名称:tpc,代码行数:6,代码来源:TbActiveForm.php

示例6: array

        ),
    ),true);
 echo TbHtml::customActiveControlGroup($input, $model, 'idosplan');
 

 echo $form->dropDownListControlGroup($model, 'idprestaciontipo', CHtml::listData(Prestaciontipo::model()->findAll(array('order' => 'idprestaciontipo')), 'idprestaciontipo', 'nombrecompuesto'), array(
            'style' => 'width:220px;',
        ));
$input=$this->widget('CMaskedTextField', array(
                'mask' => "99/9999",
                'placeholder' => 'x',
                'model' => $model,
                'attribute' => 'periodofacturacion',
            ),true);

  echo TbHtml::customActiveControlGroup($input, $model, 'periodofacturacion');
  
    
    echo $form->dropDownListControlGroup($model, 'iddescuentocoseguro', CHtml::listData($model->findAll(array('order' => 'iddescuentocoseguro')), 'iddescuentocoseguro', 'nombre'), array(
            'style' => 'width:220px;',
            'prompt' => 'Seleccionar',
             'id'=>  uniqid(),
                'ajax' => array(
                        'type' => 'POST', //request type
                        'dataType' => 'html',
                        'data' => array('iddescuentocoseguro' => 'js:this.value'),
                        'url' => CController::createUrl('muestravalores'), //url to call.
                        'update' => "#formvalores",
            )
        ));
    ?> 
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_form_cabecera.php

示例7: array

 
            $this->renderPartial('_form_domi_completo', array(
            'modelDomicilio' => $model,
            'modellocalidad' => $model,   
                'form' => $form));
       
            ?>
        
        <fieldset>
            <?php  $federado=$this->widget('CMaskedTextField', array(
                'mask' => "9999-9",
                'placeholder' => 'X',
                'model' => $model,
                'attribute' => 'federado',
            ),true); 
            echo TbHtml::customActiveControlGroup($federado, $model, 'federado');  ?>
 
           </fieldset>
    
    <div class="form-actions">
        <?php
        echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
            'style'=>'margin-left:30px;',
            'color' => TbHtml::BUTTON_COLOR_DANGER,
            'size' => TbHtml::BUTTON_SIZE_SMALL,
            'onclick' => 'updateDialog.close();',
            ));
开发者ID:juankie,项目名称:gestcb9git,代码行数:30,代码来源:_form_domicilioprofesionalotro.php


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