<div class="<?php echo $divClass; ?>">
    <?php if ($this->searchShowLabel) { ?>
        <div class="<?php echo $textClass; ?>"><?php echo Yii::t('common', 'Apartment ID'); ?>:</div>
    <?php } ?>
    <div class="<?php echo $controlClass; ?>">
        <?php
        echo CHtml::numberField('sApId', (isset($this->sApId) && $this->sApId) ? CHtml::encode($this->sApId) : '', array(
            'class' => 'search-input-new',
            'onChange' => 'changeSearch();',
            'placeholder' => Yii::t('common', 'Apartment ID')
        ));
        Yii::app()->clientScript->registerScript('sApIdFocusSubmit', '
			jQuery(function($) {
				focusSubmit($("input#sApId"));
			});
		', CClientScript::POS_END, array(), true);
        ?>
    </div>
</div>
