if , type=rent
{
how to hide, 'independent floor ' property type in dropdownbox.
}
<div class="rowold">
<?php echo $form->labelEx($model, 'obj_type_id'); ?>
<?php echo $form->dropDownList($model, 'obj_type_id', Apartment::getObjTypesArray(), array('class' => 'width240', 'id' => 'obj_type')); ?>
<?php echo $form->error($model, 'obj_type_id'); ?>
</div>
<?php
$objTypesArr = Apartment::getObjTypesArray();
if($model->type == 1 && isset($objTypesArr[12])){
unset($objTypesArr[12]);
}
?>
<div class="rowold">
<?php echo $form->labelEx($model, 'obj_type_id'); ?>
<?php echo $form->dropDownList($model, 'obj_type_id', $objTypesArr, array('class' => 'width240', 'id' => 'obj_type')); ?>
<?php echo $form->error($model, 'obj_type_id'); ?>
</div>
Return to Questions and help for changes
Users browsing this forum: No registered users and 33 guests