本文整理汇总了PHP中TbHtml::textFieldControlGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::textFieldControlGroup方法的具体用法?PHP TbHtml::textFieldControlGroup怎么用?PHP TbHtml::textFieldControlGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::textFieldControlGroup方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<div class="bs-docs-example">
<?php
echo TbHtml::beginFormTb(TbHtml::FORM_LAYOUT_HORIZONTAL);
?>
<?php
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with warning', 'help' => 'Something may have gone wrong', 'color' => TbHtml::INPUT_COLOR_WARNING));
?>
<?php
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with error', 'help' => 'Please correct the error', 'color' => TbHtml::INPUT_COLOR_ERROR));
?>
<?php
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with info', 'help' => 'Username is taken', 'color' => TbHtml::INPUT_COLOR_INFO));
?>
<?php
echo TbHtml::textFieldControlGroup('text', '', array('label' => 'Input with success', 'help' => 'Woohoo!', 'color' => TbHtml::INPUT_COLOR_SUCCESS));
?>
<?php
TbHtml::endForm();
?>
</div>
<pre class="prettyprint linenums">
<?php echo TbHtml::textFieldControlGroup('text', '', array(
'label' => 'Input with warning',
'help' => 'Something may have gone wrong',
'color' => TbHtml::INPUT_COLOR_WARNING,
)); ?>
<?php echo TbHtml::textFieldControlGroup('text', '', array(
'label' => 'Input with error',
'help' => 'Please correct the error',
'color' => TbHtml::INPUT_COLOR_ERROR,
示例2: array
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'agregar-usuario-form', 'enableAjaxValidation' => false, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'method' => 'get'));
?>
<div class='controles'>
<h2>Usuarios Web</h2>
<div class='col-4'>
<?php
echo TbHtml::textFieldControlGroup('filtro', '', array('append' => TbHtml::submitButton('Buscar', array('class' => 'btn btn-primary')), 'span' => 3, 'placeholder' => 'Nombre del usuario o Nick o Email ', 'label' => 'Buscar:', 'id' => 'filtro-usuario', 'autofocus' => "autofocus"));
?>
<?php
$this->endWidget();
?>
</div>
<br />
</div>
<div id='tabla-usuarios'>
<?php
if ($model) {
// code...
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'usuarios-grid', 'emptyText' => 'No se encontraron coincidencias', 'dataProvider' => $model->buscar(), 'template' => '{items}<div class="col-4 centrado"> {pager}</div>', 'type' => 'condensed hover striped', 'htmlOptions' => array('class' => 'primario'), 'columns' => array('iduser', 'username', 'nombre', 'apellido_paterno', 'apellido_materno', 'email', 'state', 'telefono', 'sexo', 'codigo_postal', 'colonia', 'ciudad_municipio', 'pais', 'regdate', 'actdate', 'logondate', 'totalsessioncounter', 'currentsessioncounter')));
}
?>
</div>
<?php
Yii::app()->clientScript->registerScript('ddown', '
$currentId=-1;
$(function() {
示例3: testTextFieldControlGroup
public function testTextFieldControlGroup()
{
$I = $this->codeGuy;
$html = TbHtml::textFieldControlGroup('text', 'text');
$group = $I->createNode($html, 'div.control-group');
$label = $group->filter('label.control-label');
$I->seeNodeChildren($label, array('input[type=text]'));
}
示例4: array
<?php
$form = $this->beginWidget('yiistrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl("/deposit/payredirect"), 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'method' => 'POST', 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true, 'validateOnType' => false)));
?>
<div class="bs-callout bs-callout-info"
style="background-color: #f4f8fa; border-color: #5bc0de; margin: 20px 0; padding: 20px; border-left: 3px solid #5bc0de;">
<p><?php
echo Yii::t('translation', 'disclaimer_mid_1');
?>
</p>
</div>
<div class="panel panel-default" style="padding: 30px">
<center>
<div style="width: 50%;">
<?php
echo TbHtml::textFieldControlGroup('amount', '0.00', array('id' => 'account', 'class' => 'form-control', 'label' => Yii::t('translation', 'amount_deposit_1')));
?>
</div>
<table class="table">
<thead>
<tr>
<th colspan=3><?php
echo Yii::t('translation', 'select_bank_1');
?>
</th>
</tr>
</thead>
<tbody>
<?php
$banks = json_decode($astropay->get_banks_by_country('MX', 'json'));
示例5: array
?>
<div class="control-group">
<?php
echo TbHtml::label('Tenant', 'Tenant', array('class' => 'control-label'));
?>
<div class="controls">
<?php
$this->widget('yiiwheels.widgets.select2.WhSelect2', array('asDropDownList' => false, 'name' => 'tenant', 'pluginOptions' => array('width' => '90%', 'initSelection' => 'js:function(element,callback){}', 'ajax' => array('url' => $this->createUrl('/transaction/AddPoint/GetTenant'), 'dataType' => 'json', 'data' => "js:function(term,page) {\n return {q: term};\n }", 'results' => "js:function(data,page) {\n return {results: data};\n }"))));
?>
</div></div>
<?php
echo TbHtml::textFieldControlGroup('pointearned', '', array('label' => 'Point', 'readonly' => true));
?>
</div>
<div class="span-8" style="margin-left:-2px">
<?php
echo TbHtml::button('Add To List', array('style' => 'width:930px', 'id' => 'addtolist'));
?>
</div>
<div class="span-8" style="margin-left:-2px;margin-top:15px;">
<input type="hidden" id="table_length" name="table_length" value="0"/>
<table class="items table table-striped table-bordered" style="width:930px">
<thead>
<tr><th>ID Receipt</th><th>Receipt Date</th><th>Tenant</th><th>Payment</th><th>Total Purchase</th><th>Point Earned</th></tr>
示例6: disableMember
if(data){
$("#member_name").val(data.first_name + " " + data.family_name);
$("#point").val(data.point);
disableMember();
' . $additionalHandler . '
}else{
errorMsgBox("ID Member Not Found");
}
}'), array('id' => 'btn-search-member', 'color' => TbHtml::BUTTON_COLOR_INVERSE));
?>
</div>
</div>
<?php
echo TbHtml::textFieldControlGroup('member_name', '', array('span' => 5, 'label' => 'Member Name', 'readonly' => 'readonly'));
?>
<?php
echo TbHtml::textFieldControlGroup('point', '', array('span' => 1, 'label' => 'Point', 'readonly' => 'readonly'));
?>
</fieldset>
<?php
echo TbHtml::endForm();
?>
示例7: array
<div class='controles'>
<h2>Buscar Boleto Y Referencias</h2>
<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();
?>
示例8: defaultForm
<?php
/* @var $this UpgradeMembershipController */
Yii::app()->clientScript->registerScript('cleanForm', "\n\n// fungsi untuk membershikan form\nfunction defaultForm(){\n \$('#form-upgrade-membership').each(function(){\n this.reset();\n });\n\n \$('.alert-error').text('').hide();\n \$('#new_id_member').prop('readonly',false);\n \$('#btncommand').prop('disabled',false);\n \n}\n\n\n\n// Aksi pada saat tombol cancel diklik\n\$('#btncancel').click(function(e){\n e.preventDefault();\n defaultForm();\n defaultFormMember();\n});");
$handler = "\n var type_member = \$('#id_member').val().substring(0,1);\n if (type_member=='2'){\n \$('.alert-error').text('Member already upgraded').show();\n \$('#new_id_member').prop('readonly',true);\n \$('#btncommand').prop('disabled',true);\n }\n";
?>
<p class="alert alert-error" style="display:none"></p>
<?php
$this->renderPartial('//common/_member', array('additionalHandler' => $handler));
echo TbHtml::formTb(TbHtml::FORM_LAYOUT_HORIZONTAL, $this->createUrl('/transaction/UpgradeMembership/save'), 'post', array('id' => 'form-upgrade-membership'));
?>
<?php
echo TbHtml::textFieldControlGroup('new_id_member', '', array('span' => 3, 'label' => 'New ID Member'));
?>
<div class="form-actions">
<?php
echo TbHtml::ajaxSubmitButton('<i class="icon-fa-save icon-fa-large" style="margin-top:7px;"></i> Save', 'js:$("#form-upgrade-membership").attr("action")', array('type' => 'POST', 'data' => 'js:{id_member:$("#id_member").val(),new_id_member:$("#new_id_member").val()}', 'dataType' => 'json', 'success' => 'function(data){
successMsgBox(data.message);
$("#btncancel").trigger("click");
}'), array('color' => TbHtml::BUTTON_COLOR_INVERSE, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncommand'));
echo " ";
echo TbHtml::resetButton('<i class="icon-fa-remove-circle icon-fa-large" style="margin-top:7px;"></i> Cancel', array('color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'id' => 'btncancel'));
?>
</div>
<?php
echo TbHtml::endForm();
示例9: array
<div class='controles'>
<h2>Cancelar Venta Farmatodo</h2>
<div class="form">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'form-ventaslevel1', 'enableClientValidation' => true, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'clientOptions' => array('validateOnSubmit' => true)));
?>
<div class='col-4'>
<?php
echo TbHtml::textFieldControlGroup('buscar', $ref, array('append' => TbHtml::submitButton('Buscar', array('class' => 'btn btn-primary')), 'span' => 3, 'placeholder' => 'Número de reservación', 'label' => 'Buscar por reservación:', 'id' => 'filtro-usuario', 'autofocus' => "autofocus"));
?>
<?php
$this->endWidget();
?>
</div>
</div><!-- form -->
<?php
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('evento-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>
<?php
/*$datos = $dataProvider->getData();
if(!empty($datos[0]['id'])):
$visible = $datos[0]['Estatus']=="CANCELADO"?"0":"1";
$this->widget('zii.widgets.grid.CGridView', array(
示例10: json_decode
<?php
$itemPropValues = json_decode($item->props, true);
$itemSkus = $item->skus;
$itemProps = ItemProp::model()->with('propValues')->findAll(new CDbCriteria(array('condition' => "t.`category_id` = {$model->category_id} AND t.`type` > 1")));
foreach ($itemProps as $itemProp) {
if (!$itemProp->is_sale_prop) {
$itemPropValue = '';
if (isset($itemPropValues[$itemProp->item_prop_id])) {
$values = explode(':', $itemPropValues[$itemProp->item_prop_id]);
$itemPropValue = $values[1];
}
$name = 'ItemProp[' . $itemProp->item_prop_id . ']';
switch ($itemProp->type) {
case 1:
echo TbHtml::textFieldControlGroup($name, $itemPropValue, array('label' => $itemProp->prop_name));
break;
case 2:
$propValueData = CHtml::listData($itemProp->propValues, 'prop_value_id', 'value_name');
echo TbHtml::dropDownListControlGroup($name, $itemPropValue, $propValueData, array('label' => $itemProp->prop_name));
break;
case 3:
$propValueData = CHtml::listData($itemProp->propValues, 'prop_value_id', 'value_name');
echo TbHtml::inlineCheckBoxListControlGroup($name, $itemPropValue, $propValueData, array('label' => $itemProp->prop_name));
break;
}
}
}
?>
<hr/>
<?php
示例11: array
<?php
echo TbHtml::textFieldControlGroup('nrotransac', $nrotransac, array(
'label' => 'Nº Transacción',
'color' => TbHtml::INPUT_COLOR_INFO,
'span'=>2,
));