= 2 && $cityId = Html::getInputId($model, $two['name']); $level >= 3 && $areaId = Html::getInputId($model, $three['name']); $level >= 4 &&$townshipId = Html::getInputId($model, $four['name']); $level >= 5 &&$villageId = Html::getInputId($model, $five['name']); ?>
= 1){ ?> field($model, $one['name'])->dropDownList($one['list'], [ 'prompt' => $one['title'], 'onchange' => "widgetProvinces" . $random . "(this, 1, '$cityId', '$areaId', '$townshipId', '$villageId')", ]); ?>
= 2){ ?> field($model, $two['name'])->dropDownList($two['list'], [ 'prompt' => $two['title'], 'onchange' => "widgetProvinces" . $random . "(this, 2, '$cityId', '$areaId', '$townshipId', '$villageId')", ]); ?>
= 3){ ?> field($model, $three['name'])->dropDownList($three['list'], [ 'prompt' => $three['title'], 'onchange' => "widgetProvinces" . $random . "(this, 3, '$cityId', '$areaId', '$townshipId', '$villageId')", ]) ?>
= 4){ ?> field($model, $four['name'])->dropDownList($four['list'], [ 'prompt' => $four['title'], 'onchange' => "widgetProvinces" . $random . "(this, 4, '$cityId', '$areaId', '$townshipId', '$villageId')", ]) ?>
= 5){ ?> field($model, $five['name'])->dropDownList($five['list'], [ 'prompt' => $five['title'], 'onchange' => "widgetProvinces" . $random . "(this, 5, '$cityId', '$areaId', '$townshipId', '$villageId')", ]) ?>