本文整理汇总了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,
示例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.'"',
示例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'));
}
示例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');
}
示例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);
}
示例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",
)
));
?>
示例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();',
));