예제 #1
0
                                <?php 
echo Fun::DropDown($ArrGender, $model->gender, 'form-control drop', 'gender');
?>
                                <div class="help-block"></div>
                            </div>


                            <?php 
echo $form->field($model, 'city_id');
?>


                            <div class="form-group" >
                                <label class="control-label" >Страна</label>
                                <?php 
echo Fun::DropDown(ArrayHelper::map(GeoCountry::find()->all(), 'id', 'name_ru'), 20, 'form-control drop', 'country_id');
?>
                                <div class="help-block"></div>

                            </div>

                            <div class="photo" onchange="startUpload()"><?php 
echo $form->field($model, 'avatar')->fileInput()->label('Аватарка', ['class' => 'red-b']);
?>
</div>
                            <div class="avatar"> <?php 
if (file_exists($file_avatar)) {
    echo Html::img($shot);
}
?>
</div>
예제 #2
0
 echo $form->field($model_form, 'ip')->hiddenInput(['value' => yii::$app->session->id, 'class' => 'hidden'])->label('');
 ?>
         <?php 
 echo $form->field($model_form, 'created_at')->hiddenInput(['value' => time(), 'class' => 'hidden'])->label('');
 ?>
         <div class="col-sm-6">
             <div class="chose_area">
                 <h5 class="header_title">Обьязательные поля </h5>
                 <ul class="user_info">
                     <label>Индекс:</label>
                     <?php 
 echo $form->field($model_form, 'post_index')->textInput(['width' => '20px!important'])->label('');
 ?>
                     <label>Страна:</label>
                     <?php 
 echo $form->field($model_form, 'country_id')->dropDownList(ArrayHelper::map(GeoCountry::find()->where(['id' => ['20', '112', '113']])->all(), 'id', 'name_ru'), ['onchange' => 'getArrCities()', 'id' => 'country'])->label('');
 ?>
                     <label>Город:</label>
                     <?php 
 echo $form->field($model_form, 'city_id')->dropDownList(ArrayHelper::map(GeoCity::find()->where(['country_id' => 20])->all(), 'id', 'name_ru'), ['id' => 'city'])->label('');
 ?>
                     <label>Улица:</label>
                     <?php 
 echo $form->field($model_form, 'street')->textInput(['width' => '20px!important'])->label('');
 ?>
                     <label>Имя:</label>
                     <?php 
 echo $form->field($model_form, 'first_name')->label('');
 ?>
                     <label>Фамилия:</label>
                     <?php