Пример #1
0
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
0
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
0
				<!--************************************************************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
0
?>
">
        По скольким регионам потребуется отдельный анализ (отдельный отчет)?
        <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
0
?>
                                            <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>