本文整理汇总了PHP中Chtml::textField方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::textField方法的具体用法?PHP Chtml::textField怎么用?PHP Chtml::textField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::textField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'detgui-form', 'enableClientValidation' => TRUE, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true), 'enableAjaxValidation' => FALSE));
echo $form->errorSummary($model);
?>
<div class="row">
<?php
echo $form->labelEx($model, 'tipoitem');
?>
<?php
//print_r($model->attributes);yii::app()->end();
?>
<?php
echo Chtml::textField('cantidax', $model->tipoitem, array('disabled' => 'disabled', 'maxlenght' => 1));
?>
</div>
<div class="row">
示例2: array_key_exists
<div class="form-group">
<label class="col-md-3 control-label">Email</label>
<div class="col-md-9">
<?php
echo Chtml::textField('filter[email]', array_key_exists('email', $filter) ? $filter['email'] : '', array('class' => 'input-large form-control'));
?>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label"><?php
echo Yii::t('app', 'Логин спонсора');
?>
</label>
<div class="col-md-9">
<?php
echo Chtml::textField('filter[sponsor_username]', array_key_exists('sponsor_username', $filter) ? $filter['sponsor_username'] : '', array('class' => 'input-large form-control'));
?>
</div>
</div>
<?php
echo CHtml::endForm();
?>
</div>
<div class="form-actions">
<?php
echo CHtml::button(Yii::t('app', 'Найти'), array('name' => 'btn_filter', 'onClick' => 'saveFilter()', 'class' => 'btn blue'));
?>
<?php
echo CHtml::link(Yii::t('app', 'Сбросить фильтр'), 'javascript: void(0)', array('class' => 'btn grey', 'onClick' => 'location.href="/office/wallets/manage/wallets"'));
?>
</div>
示例3: array
echo $form->error($model, 'codart');
} else {
echo CHtml::textField('Sax', $model->codart, array('disabled' => 'disabled', 'size' => 8));
echo CHtml::textField('Sa', $model->maestro->descripcion, array('disabled' => 'disabled', 'size' => 40));
}
?>
</div>
<div class="row">
<?php
echo Chtml::label('um', 'um');
?>
<?php
echo Chtml::textField('ssfsfs', $model->maestro->maestro_ums->desum, array('disabled' => 'disabled', 'size' => 3, 'maxlength' => 3));
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'cantlibre');
?>
<?php
echo $form->textField($model, 'cantlibre', array('disabled' => 'disabled'));
?>
<?php
echo $form->error($model, 'cantlibre');
?>
</div>
示例4: array
<img alt="<?php
echo Yii::app()->params['title'];
?>
"
src="<?php
echo Yii::app()->theme->baseUrl;
?>
/image/logo.png"
width="227" height="80">
</a></div>
<?php
echo CHtml::beginForm(Yii::app()->createUrl('catalog/index'), 'get', array('class' => 'search'));
?>
<div class="search_box">
<?php
echo Chtml::textField('key', isset($_GET['key']) ? $_GET['key'] : '');
?>
<button></button>
</div>
<div class="search_hot">
热门搜索:
<?php
foreach (array('皮雕', '软皮', '压花') as $v) {
echo CHtml::link($v, Yii::app()->createUrl('catalog/index', array('key' => $v)));
}
?>
</div>
<?php
echo Chtml::endForm();
?>
<a href="<?php
示例5: array
<?php
if (is_null($model->codocuref) or empty($model->codocuref)) {
?>
<?php
$datos1 = CHtml::listData(Documentos::model()->findAll(array('order' => 'desdocu')), 'coddocu', 'desdocu');
echo $form->DropDownList($model, 'codocuref', $datos1, array('empty' => '--Seleccione un documento--', 'disabled' => $model->isNewRecord ? '' : 'disabled'));
?>
<?php
} else {
?>
<?php
echo Chtml::textField('SORA', Almacenmovimientos::model()->findByPk($model->codmovimiento)->documentos->desdocu, array('disabled' => 'disabled', 'size' => 30));
?>
<?php
$form->hiddenField($model, 'codocuref');
?>
<?php
}
?>
<?php
echo $form->error($model, 'codocuref');
?>
示例6: array
<p>
Введіть код який абітурієнта отримав при реестрації у поле пошуку.
</p>
<?php
if (Yii::app()->user->hasFlash("message")) {
echo "<span style='color: red;'>" . Yii::app()->user->getFlash("message") . "</span><br>";
}
?>
<br>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'searchForm', 'type' => 'search', 'action' => Yii::app()->createUrl("Personspeciality/studupdate"), 'method' => "get"));
?>
<div class="input-prepend"><span class="add-on"><i class="icon-search"></i></span>
<?php
echo Chtml::textField("id", "", array('class' => 'span2'));
?>
</div>
<?php
$url = "'Personspeciality/studupdate/' +\$('#id').val() ";
$this->widget('bootstrap.widgets.TbButton', array('label' => 'Редагувати', 'buttonType' => 'submit', 'icon' => 'pencil', 'size' => null, 'loadingText' => 'Зачекайте...', 'htmlOptions' => array("style" => "margin-top: 2px;", 'onclick' => "PSN.editStudpric(this,{$url});")));
?>
<?php
$this->endWidget();
?>
<hr>
<div id="spec-modal-holder"></div>
示例7: array_key_exists
?>
</h4>
<div class="form-group" style="margin-left: 0; margin-right: 0;">
<?php
echo Chtml::textField('filter[first_name]', array_key_exists('first_name', $filter) ? $filter['first_name'] : '', array('class' => 'form-control input-inline input-large'));
?>
</div>
</div>
<div class="col-md-4">
<h4 class="form-section"> <?php
echo $profileLang->getAttributeLabel('second_name');
?>
</h4>
<div class="form-group" style="margin-left: 0; margin-right: 0;">
<?php
echo Chtml::textField('filter[second_name]', array_key_exists('second_name', $filter) ? $filter['second_name'] : '', array('class' => 'form-control input-inline input-large'));
?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4 class="form-section"><?php
echo Yii::t('app', 'Дата регистрации');
?>
</h4>
<div class="row" style="margin: 0 15px 0;">
<div class="form-group">
<label class="сontrol-label col-md-3"><?php
echo Yii::t('app', 'ОТ');
?>
示例8: array
?>
<?php
echo $form->error($model, 'desalm');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'codcen');
?>
<?php
echo Chtml::textField('nomal', $model->centros->nomcen, array('value' => $model->centros->nomcen, 'size' => 35, 'maxlength' => 35, 'disabled' => 'disabled'));
?>
<?php
echo $form->error($model, 'codcen');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'tipovaloracion');
?>
<?php
echo $form->textField($model, 'tipovaloracion', array('size' => 2, 'maxlength' => 2, 'disabled' => 'disabled'));
?>
示例9: array
if($(itemActive).find("span").css("color") != '#000'){
$(itemActive).find("span").css("color","#000");
}
$(itemActive).find("#nav_sub").show();
});
});
</script>
</div>
<div id="search_mn">
<div id="search_mn_left">
<div id="search_mn_center">
<div id="search_mn_right">
<?php
echo CHtml::beginForm();
echo Chtml::textField('keyword', null, array('id' => 'txt_key'));
echo CHtml::submitButton('', array('id' => 'bt_search'));
echo CHtml::endForm();
?>
<!-- <input id="txt_key" name="keyword" type="text" /> <input id="bt_search" type="submit"
value="" /> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- mainmenu -->
示例10: array
?>
</td>
<td><?php
echo Chtml::textField('typePlatezh', $value['Type_platezh'], array('readonly' => 'true'));
?>
</td>
<td><?php
echo $value['Num_credit'];
?>
</td>
<td><?php
echo $value['Oforml_credit_date'];
?>
</td>
<td><?php
echo Chtml::textField('lessSum', $value['Less_sum'], array('readonly' => 'true'));
?>
</td>
<td><?php
echo $value['P_sum'];
?>
</td>
<td><?php
echo $value['P_proc'];
?>
</td>
<td><?php
echo CHtml::submitButton('+');
?>
</td>
<?php
示例11: strtoupper
?>
<?php
echo $model->isNewRecord ? '' : Chtml::textField('iduser', strtoupper(Yii::app()->user->um->loadUserById($model->iduser, false)->username));
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'fechacreac');
?>
<?php
echo $model->isNewRecord ? '' : Chtml::textField('fechacreac', $model->fechacreac);
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'insercion');
?>
<?php
if (!$model->insercion == '1') {
?>
<?php
echo $form->checkBox($model, 'insercion', array('disabled' => $model->isNewRecord ? '' : 'disabled'));
示例12: array
echo CHtml::hiddenField(FALSE, $model->id, array('id' => 'questionId'));
?>
<?php
echo CHtml::beginForm(NULL, 'POST', array('id' => 'filterform'));
?>
<div class="form-body">
<div class="form-group mt20">
<div class="col-md-3 control-label">
<label><?php
echo Users::model()->getAttributeLabel('username');
?>
</label>
</div>
<div class="col-md-9">
<?php
echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : '', array('class' => 'form-control input-large'));
?>
</div>
</div>
</div>
<div class="form-actions">
<?php
echo Chtml::submitButton(Yii::t('app', 'Найти'), array('name' => 'btn_filter', 'class' => 'btn green'));
?>
<a href="javascript: void(0)" onClick="location.href=app.createAbsoluteUrl('admin/register/questions/view/id/<?php
echo $model->id;
?>
')" class="btn red"><?php
echo Yii::t('app', 'Сбросить фильтр');
?>
</a>
示例13: array_key_exists
<style>
.list .action form { display: inline; }
</style>
<br /><br />
<h3><span class="wrapper-3">Фильтр</span></h3>
<?php
echo CHtml::beginForm();
?>
<table class="list">
<tbody>
<tr>
<td>Логин</td>
<td><?php
echo Chtml::textField('filter[username]', array_key_exists('username', $filter) ? $filter['username'] : '');
?>
</td>
</tr>
<tr>
<td><a href="javascript: void(0)" onClick="location.href='/admin/roles/authmanager/assignment'">Сбросить фильтр</a></td>
<td><?php
echo Chtml::button('Найти', array('name' => 'btn_filter', 'onClick' => 'saveFilter()'));
?>
</td>
</tr>
</tbody>
</table>
<?php
echo CHtml::endForm();
?>
<br /><br />
示例14: isset
echo $form->labelEx($model, 'image');
?>
<?php
echo $form->fileField($model, 'image');
?>
<?php
echo $form->error($model, 'image');
?>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'image');
?>
<?php
echo Chtml::textField('sd', isset($model->image) ? $model->image : '', array('size' => 60, 'maxlength' => 255, 'disabled' => true, 'class' => 'form-control'));
?>
<?php
echo $form->error($model, 'image');
?>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'meta_title_ru');
?>
<?php
echo $form->textField($model, 'meta_title_ru', array('size' => 60, 'maxlength' => 255, 'class' => 'form-control'));
?>
<?php
echo $form->error($model, 'meta_title_ru');
示例15: array
<?php
if (Yii::app()->hasModule('page')) {
echo CHtml::radioButton('MenuItem[type]', $model->type == 'content', array('value' => 'content', 'id' => 'radio_content'));
echo Yii::t('app', 'Content') . ' ';
echo CHtml::dropDownList('MenuItem[content]', $model->link, CHtml::listData(Page::model()->findAll(), 'path', 'title'), array('onfocus' => 'js:$("#radio_content").attr("checked", "checked");'));
}
?>
<br/>
<?php
echo CHtml::radioButton('MenuItem[type]', $model->type == 'url', array('value' => 'url', 'id' => 'radio_url'));
?>
<?php
echo Yii::t('app', 'Link') . ' ';
?>
<?php
echo Chtml::textField('MenuItem[url]', $model->link, array('size' => 60, 'onfocus' => 'js:$("#radio_url").attr("checked", "checked");'));
?>
<?php
echo $form->error($model, 'link');
?>
<br/>
<p class="hint">
/item points to base_url/item, //item points to root_of_server/item, item creates link relative to dynamic user location,
URLs rendered as is.
</p>
</div><!-- row -->
<div class="row">
<?php
echo $form->labelEx($model, 'description');
?>