本文整理汇总了PHP中Chtml::activeId方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::activeId方法的具体用法?PHP Chtml::activeId怎么用?PHP Chtml::activeId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chtml
的用法示例。
在下文中一共展示了Chtml::activeId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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');
示例2:
echo CJSON::encode(CHtml::activeId($shipment, 'service_code'));
?>
,
name:<?php
echo CJSON::encode(CHtml::activeName($shipment, 'service_code'));
?>
,
value:<?php
echo CJSON::encode($shipment->service_code);
?>
,
listeners:{
focus:function(){
var that = this;
var customer_id = formPanel.down('#<?php
echo Chtml::activeId($shipment, 'customer_id');
?>
').getValue();
var shipper_country = formPanel.down('#<?php
echo CHtml::activeId($shipment, 'shipper_country');
?>
').getValue();
var receiver_country = formPanel.down('#<?php
echo CHtml::activeId($shipment, 'receiver_country');
?>
').getValue();
var product;
var routing_code = Ext.getCmp('<?php
echo CHtml::activeId($shipment, 'destination_code');
?>
').getValue();
示例3: array
<!--************************************************************aca -->
<div id="MensajeInstitucion"></div>
<!-- ***********************************************************-->
<?php
$formi = $this->beginWidget("CActiveForm", array('htmlOptions' => array('class' => 'form-horizontal'), 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true, 'validateOnType' => true)));
?>
<div class="form-group">
<?php
echo $formi->labelEx($paises, 'idPais', array('class' => 'control-label col-sm-3'));
?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++validacion para dropdownlist dependiente ++++++++++++++++++++ -->
<div class="col-sm-9">
<?php
echo $formi->dropDownList($paises, "idPais", CHtml::listData(Paises::model()->findAll(), 'idPais', 'nombrePais'), array('class' => 'form-control input-sm', 'ajax' => array('type' => 'POST', 'url' => CController::createurl('Convenios/Selectdos'), 'update' => '#' . Chtml::activeId($instituciones, 'estados_idEstado')), 'prompt' => 'Seleccione'));
?>
<?php
echo $formi->error($paises, "idPais");
?>
</div>
</div>
<div class="form-group">
<?php
echo $formi->labelEx($instituciones, 'estados_idEstado', array('class' => 'control-label col-sm-3'));
?>
<div class="col-sm-9">
<?php
echo $formi->dropDownList($instituciones, "estados_idEstado", array(), array('class' => 'form-control input-sm'));
?>
示例4:
?>
">
По скольким регионам потребуется отдельный анализ (отдельный отчет)?
<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;
?>
</option>
<?php
}
?>
示例5: 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>