Ejemplo n.º 1
0
 public static function generateLists()
 {
     return array('types' => array('покупка' => Apartment::TYPE_BUY, 'обмен' => Apartment::TYPE_CHANGE, 'съем' => Apartment::TYPE_RENT, 'сдача' => Apartment::TYPE_RENTING, 'продажа' => Apartment::TYPE_SALE), 'category' => CHtml::listData(ApartmentObjType::model()->findAll(), 'name_ru', 'id'), 'location_city' => CHtml::listData(LocationCity::model()->findAll(), 'name_ru', 'id'), 'window_view' => CHtml::listData(WindowTo::model()->findAll(), 'title_ru', 'id'));
 }
Ejemplo n.º 2
0
<?php

if ($model->canShowInForm('window_to')) {
    ?>
    <div class="rowold">
        <?php 
    echo CHtml::activeLabelEx($model, 'window_to');
    ?>
        <?php 
    echo Apartment::getTip('window_to');
    ?>
        <?php 
    echo CHtml::activeDropDownList($model, 'window_to', WindowTo::getWindowTo(), array('class' => 'width150'));
    ?>
        <?php 
    echo CHtml::error($model, 'window_to');
    ?>
    </div>
<?php 
}
Ejemplo n.º 3
0
                                                <input class="short-input-pl" type="text" id="input-name"  name="squareLiveOther" placeholder="Жилая" >
                                                <input class="short-input-pl" type="text" id="input-name"  name="squareKitchenOther" placeholder="Кухня" >
                                                <div class="placeholder">
                                                    <label for="input-name" class="input-hint">
                                                        <span class="text-placeholder">(Пример: 18+14-10)</span>
                                                    </label>
                                                    <input class="input-text short-input box-2-input" type="text" name="roomFormulaOther" id="input-name" value="" placeholder="Комнаты" >
                                                </div>
                                            </div>
                                            <?php 
$selectedClosetIndex = ApartmentCloset::getCloset()[1];
echo CHtml::dropDownList('closetOther', $select, ApartmentCloset::getCloset(), ['class' => 'short-select', 'options' => [$selectedClosetIndex => ['selected' => 'selected']]]);
$selectedBalconyIndex = ApartmentBalcony::getBalcony()[1];
echo CHtml::dropDownList('balconyOther', $select, ApartmentBalcony::getBalcony(), ['class' => 'short-select', 'options' => [$selectedBalconyIndex => ['selected' => 'selected']]]);
$selectedWindowIndex = WindowTo::getWindowTo()[1];
echo CHtml::dropDownList('windowOther', $select, WindowTo::getWindowTo(), ['class' => 'short-select', 'options' => [$selectedWindowIndex => ['selected' => 'selected']]]);
$selectedFloorIndex = ApartmentFloors::getFloors()[0];
echo CHtml::dropDownList('floorTypeOther', $select, ApartmentFloors::getFloors(), ['class' => 'short-select', 'options' => [$selectedFloorIndex => ['selected' => 'selected']]]);
$selectedFacingIndex = ApartmentFacingType::getFacing()[0];
echo CHtml::dropDownList('facingtypeOther', $select, ApartmentFacingType::getFacing(), ['class' => 'short-select middle-size-select', 'options' => [$selectedFacingIndex => ['selected' => 'selected']]]);
?>
                                            <div class="block-1-bottom-logic">
                                                <div class="logic-list">
                                                    <div class="select-tex r-h-marg-1">
                                                        <input type="checkbox" class="checkbox" name="condition[furniturehouse]" id="checkbox-8" />
                                                        <label for="checkbox-8">Мебель</label>
                                                    </div>
                                                    <div class="select-tex r-h-marg-2">
                                                        <input type="checkbox" class="checkbox" name="condition[fridgehouse]" id="checkbox-9" />
                                                        <label for="checkbox-9">Холодильник</label>
                                                    </div>
Ejemplo n.º 4
0
    <?php 
}
?>

    <?php 
if ($model->canShowInForm('window_to')) {
    ?>
	<div class="rowold">
		<?php 
    echo $form->labelEx($model, 'window_to');
    ?>
        <?php 
    echo Apartment::getTip('window_to');
    ?>
		<?php 
    echo $form->dropDownList($model, 'window_to', WindowTo::getWindowTo(), array('class' => 'width150'));
    ?>
		<?php 
    echo $form->error($model, 'window_to');
    ?>
	</div>
    <?php 
}
?>

    <?php 
if ($model->canShowInForm('berths')) {
    ?>
	<div class="rowold">
		<?php 
    echo $form->labelEx($model, 'berths');