当前位置: 首页>>代码示例>>PHP>>正文


PHP Chtml::activeId方法代码示例

本文整理汇总了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');
开发者ID:WisapeAgency,项目名称:backend,代码行数:31,代码来源:createc.php

示例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();
开发者ID:aantonw,项目名称:dcourier.system,代码行数:31,代码来源:_formAWB.php

示例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'));
?>
开发者ID:leydyk93,项目名称:conveniosunet,代码行数:31,代码来源:pasodos.php

示例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 
}
?>
开发者ID:shnellpavel,项目名称:bcgroup_lk,代码行数:31,代码来源:step2_readonly.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>
开发者ID:WisapeAgency,项目名称:backend,代码行数:31,代码来源:index.php


注:本文中的Chtml::activeId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。