本文整理汇总了PHP中TbHtml::TextField方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::TextField方法的具体用法?PHP TbHtml::TextField怎么用?PHP TbHtml::TextField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TbHtml
的用法示例。
在下文中一共展示了TbHtml::TextField方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
" class="column_ad"><img src="<?php
echo Yii::app()->request->baseUrl . $col1->images[0]->source;
?>
" title="<?php
echo $col1->title;
?>
"/></a>
<?php
}
?>
<div class="newsletter">
<?php
echo TbHtml::beginForm(array('site/newsletter'), 'post');
?>
<?php
echo TbHtml::TextField('email', 'Enter your Email here', array('class' => 'nl_input'));
?>
<input type="submit" class="nl_submit" value=""/>
<div class="clear"></div>
<?php
echo TbHtml::endForm();
?>
</div>
<?php
if (!empty($col2)) {
?>
<a href="<?php
echo $col1->link;
?>
" class="column_ad"><img src="<?php
echo Yii::app()->request->baseUrl . $col2->images[0]->source;
示例2: array
<div class="form">
<?php
echo TbHtml::beginForm(Yii::app()->createUrl('/library/search/search'), 'post', array('enctype' => 'multipart/form-data'));
?>
<div class="form-group has-success clearfix">
<div class="wr col-sm-6">
<?php
echo TbHtml::TextField('search_field', "", array('placeholder' => 'Введите фразу для поиска', 'required' => 'true'));
?>
</div>
<div>
<?php
echo TbHtml::submitButton('Выдать', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<?php
echo TbHtml::endForm();
?>
</div>
</div>
<?php
if (isset($result)) {
$this->widget('bootstrap.widgets.TbGridView', array('dataProvider' => $result, 'template' => "{items}", 'columns' => array(array('name' => 'name', 'header' => 'Название книги', 'htmlOptions' => array('color' => 'width: 60px')))));
}
示例3: array
</div>
<?php
} else {
?>
<div class="form">
<?php
echo TbHtml::beginForm();
?>
<div class="row-fluid">
<?php
echo TbHtml::Label('Transaction Reference #', 'trans_id');
?>
<?php
echo TbHtml::TextField('trans_id');
?>
<p class="hint"><?php
echo Yii::t('label', "Please enter your Transaction Reference Number.");
?>
</p>
</div>
<div class="row-fluid submit">
<?php
echo TbHtml::button(yii::t('label', 'Get Status'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'submit' => ''));
?>
</div>
<?php
echo TbHtml::endForm();
示例4: array
}
?>
"><a href="<?php
echo Yii::app()->createUrl('category/all', array('category' => $category->getLink()));
?>
"><?php
echo $name;
?>
<span class="pull-right glyphicon glyphicon-chevron-right"></span></a></li>
<?php
$c++;
}
}
?>
</ul>
<?php
}
?>
<br/>
<?php
echo TbHtml::beginForm(array('site/newsletter'), 'post');
?>
<div class="input-group input-group-lg" style="padding: 0px 15px 0px 0px; ">
<?php
echo TbHtml::TextField('email', 'Newsletter', array('class' => 'form-control'));
?>
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<div class="clear"></div>
</div>
<?php
echo TbHtml::endForm();