'_province', 'enablePushState' => false, 'options'=>['class'=>'_province','style'=>'display:inline-block']]); $tmp = '
'; $tmp .= $form->field($model, 'province')->dropDownList(ArrayHelper::map(BaseAreaView::getBaseArea($pid['id1']), 'AREA_ID', 'AREA_NAME'), [ 'style' => 'width: 91px' ])->label(false); $tmp .= $form->field($model, 'city')->dropDownList(ArrayHelper::map(BaseAreaView::getBaseArea($pid['id2']), 'AREA_ID', 'AREA_NAME'), [ 'style' => 'width: 91px' ])->label(false); if($pid['id3'] != '') $tmp2 = ArrayHelper::map(BaseAreaView::getBaseArea($pid['id3']), 'AREA_ID', 'AREA_NAME'); else $tmp2 = []; $tmp .= $form->field($model, 'country')->dropDownList($tmp2, [ 'style' => 'width: 91px;'. ($tmp2 == null? 'display:none': '') ])->label(false); $tmp .= '
'; echo $tmp; \yii\widgets\Pjax::end(); if(isset($end)){ zActiveForm::end(); } ?>