<div <?php echo ($divClass) ? 'class="' . $divClass . '' : ''; ?>>
    <div class="<?php echo $formgroup; ?>">
        <?php if ($this->searchShowLabel) { ?>
            <div class="<?php echo $textClass; ?>"><?php echo tt('Search in section', 'common'); ?></div>
        <?php } ?>
        <?php
        echo CHtml::dropDownList(
            'apType', isset($this->apType) ? CHtml::encode($this->apType) : '', HApartment::getTypesForSearch(true), array('class' => $fieldClass)
        );
        //        echo DolphinHSite::buttonGroupList(
        //            HApartment::getTypesArray(true),
        //            isset($this->apType) ? CHtml::encode($this->apType) : '',
        //            'apType',
        //            array('class' => $fieldClass)
        //        );
        ?>
    </div>
</div>
