本文整理汇总了PHP中Apartment::getExistsRooms方法的典型用法代码示例。如果您正苦于以下问题:PHP Apartment::getExistsRooms方法的具体用法?PHP Apartment::getExistsRooms怎么用?PHP Apartment::getExistsRooms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Apartment
的用法示例。
在下文中一共展示了Apartment::getExistsRooms方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getExistRooms
public function getExistRooms()
{
return Apartment::getExistsRooms();
}
示例2:
?>
<?php
$selectedRegionIndex = LocationRegion::getAllRegions()[0];
echo CHtml::dropDownList('region', $select, LocationRegion::getAllRegions(), ['class' => 'main-select-option', 'options' => [$selectedRegionIndex => ['selected' => 'selected']]]);
?>
<?php
$selectedCityIndex = LocationCity::getCities()[0];
echo CHtml::dropDownList('city', $select, LocationCity::getCities(), ['class' => 'main-select-option', 'options' => [$selectedCityIndex => ['selected' => 'selected']]]);
?>
<?php
$selectedObjIndex = ApartmentObjType::getApartmentObjects()[0];
echo CHtml::dropDownList('objectType', $select, ApartmentObjType::getApartmentObjects(), ['class' => 'main-select-option', 'options' => [$selectedObjIndex => ['selected' => 'selected']]]);
?>
<?php
echo CHtml::dropDownList('room', $select, Apartment::getExistsRooms(), ['class' => 'main-select-option']);
?>
<input type="hidden" name="apartmentType" value="2">
<div class="price-counter">
<div class="list-slider">
<div class="slider-range"></div>
<div class="slider-values">
<input class="min" name="priceIn" readonly value="0">
<input class="max" name="priceOut" readonly value="250000000">
</div>
</div>
</div>
<select class="price-range">
<option>Ценовой диапазон, РУБ.</option>