本文整理汇总了PHP中Chtml::activeName方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::activeName方法的具体用法?PHP Chtml::activeName怎么用?PHP Chtml::activeName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::activeName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
<div class="form-group">
<label class="control-label" for="<?php
echo Chtml::activeId($formModel, 'regions');
?>
">
По скольким регионам потребуется отдельный анализ (отдельный отчет)?
<a class="view" title="Например: Москва и Екатеринбург или Казань и Россия" data-toggle="tooltip" href="#">
<span class="glyphicon glyphicon-question-sign"></span>
</a>
</label>
<div>
<select multiple="multiple" disabled="disabled"
class="tags select2 form-control"
name="<?php
echo Chtml::activeName($formModel, 'regions') . '[]';
?>
"
id="<?php
echo Chtml::activeId($formModel, 'regions');
?>
">
<?php
foreach ((array) $formModel->regions as $region) {
?>
<option value="<?php
echo $region;
?>
" selected="selected"><?php
echo $region;
?>
示例2: array
echo $form->error($request_model_c, 'last_name');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($request_model_c, 'company_name');
?>
<?php
echo $form->textField($request_model_c, 'company_name', array('size' => 60, 'maxlength' => 255));
?>
<?php
echo $form->error($request_model_c, 'company_name');
?>
</div>
<?php
$this->widget('ext.countrySelectorWidget', array('value' => $request_model_c->country, 'name' => Chtml::activeName($request_model_c, 'country'), 'id' => Chtml::activeId($request_model_c, 'country'), 'useCountryCode' => false, 'firstEmpty' => true));
?>
<div class="row">
<?php
echo $form->labelEx($request_model_c, 'user_email');
?>
<?php
echo $form->textField($request_model_c, 'user_email', array('size' => 60, 'maxlength' => 100));
?>
<?php
echo $form->error($request_model_c, 'user_email');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($request_model_c, 'message');
示例3: array
?>
<div class="poptip" id="RequestPerson_first_name_em_" style="display: none">
<span class="poptip-arrow poptip-arrow-top"><em>◆</em><i>◆</i></span>
<span id="RequestPerson_first_name_em_text"></span>
</div>
<?php
echo $form->textField($model_p, 'last_name', array('class' => 'grabtn width-49 tman', 'value' => 'Last Name', 'onclick' => 'if(this.value == \'Last Name\'){ this.value=\'\';}else if(this.value==\'\'){ this.value=\'Last Name\';}'));
?>
<div class="poptip type2" id="RequestPerson_last_name_em_" style="display: none">
<span class="poptip-arrow poptip-arrow-top"><em>◆</em><i>◆</i></span>
<span id="RequestPerson_last_name_em_text"></span>
</div>
</li>
<li>
<?php
$this->widget('ext.CountrySelectorWidget', array('value' => $model_p->country, 'name' => Chtml::activeName($model_p, 'country'), 'id' => Chtml::activeId($model_p, 'country'), 'useCountryCode' => false, 'firstEmpty' => true, 'cssClass' => 'grabtn width-100 tbiao'));
?>
<div class="poptip" id="RequestPerson_country_em_" style="display: none">
<span class="poptip-arrow poptip-arrow-top"><em>◆</em><i>◆</i></span>
<span id="RequestPerson_country_em_text"></span>
</div>
</li>
<li>
<?php
echo $form->textField($model_p, 'user_email', array('class' => 'grabtn width-100 thmail', 'placehoder' => 'Email'));
?>
<div class="poptip" id="RequestPerson_user_email_em_" style="display: none">
<span class="poptip-arrow poptip-arrow-top"><em>◆</em><i>◆</i></span>
<span id="RequestPerson_user_email_em_text"></span>
</div>
</li>