0) {
$objLocationInfo = mysql_fetch_assoc($rezLocationInfo);
echo $objLocationInfo['address'];
} else {
$sql = "SELECT * FROM rayon WHERE id in (select rayon from objects where id = $concurrentObject[id])";
$result = mysql_query($sql);
if ($result) {
$rayon = mysql_fetch_assoc($result);
}
if ($concurrentObject['id_rf_region'] == 50) {
if(is_bool(strpos($concurrentObject['adres'], "Ленинградская область"))){
echo "Ленинградская область,";
}
}else if($concurrentObject['id_rf_region'] == 81){
echo "Санкт Петербург,";
} else if($concurrentObject['id_rf_region'] == 77) {
$sqlRegion = "SELECT parent.name as parent,rf_regions.name FROM rf_regions as parent
LEFT JOIN rf_regions on rf_regions.parent = parent.id
LEFT JOIN rf_region_rayons ON rf_region_rayons.rf_region_id = rf_regions.id
WHERE rayon_id in (select rayon from objects where id = $concurrentObject[id])";
$rezRegion = mysql_query($sqlRegion);
if($rezRegion){
$region = mysql_fetch_assoc($rezRegion);
echo $region['parent'].','.$region['name'].' округ,';
}
}
?>
Ссылка на источник:
' . $concurrentObject['land_area'] * 1 . ' cоток';
}
if ($concurrentObject['land_usage_name']) {
echo '' . $concurrentObject['land_usage_name'] . '';
}
} else {
if ($concurrentObject['type'] == 3 || $concurrentObject['type'] == 5) {
if ($concurrentObject['ploshad'] * 1 != 0) {
echo '' . $concurrentObject['ploshad'] * 1 . ' кв. м';
}
if ($concurrentObject['land_area']) {
echo 'Участка: ' . $concurrentObject['land_area'] * 1 . ' cоток';
}
if ($concurrentObject['house_category']) {
echo 'Вид объекта: ';
if ($concurrentObject['house_category'] == 1) {
echo 'Дача';
}
if ($concurrentObject['house_category'] == 2) {
echo 'Коттедж';
}
if ($concurrentObject['house_category'] == 3) {
echo 'Таунхаус';
}
if ($concurrentObject['house_category'] == 4) {
echo 'Дом';
}
echo '';
}
} else {
if ($concurrentObject['ploshad'] * 1 != 0) {
echo '' . $concurrentObject['ploshad'] * 1 . ' кв. м';
}
if ($concurrentObject['ploshad_komn']) {
echo 'Жилая: ' . $concurrentObject['ploshad_komn'] . ' кв. м';
}
if ($concurrentObject['ploshad_k'] * 1 != 0) {
echo 'Кухни: ' . $concurrentObject['ploshad_k'] * 1 . ' кв. м';
}
if ($concurrentObject['land_usage_name']) {
echo '' . $concurrentObject['land_usage_name'] . '';
}
if ($concurrentObject['type_category'] == 6) {
echo 'Всего этажей: ';
if ($concurrentObject['etazh_iz'] * 1 != 0) {
echo " " . $concurrentObject['etazh_iz'];
}
echo '
';
} else {
if ($concurrentObject['etazh'] * 1 != 0) {
if ($concurrentObject['type'] == 3) {
echo '
';
if ($concurrentObject['etazh_iz'] * 1 != 0) {
echo $concurrentObject['etazh_iz'] . " этажей";
}
echo '';
} else {
$etaz = $concurrentObject['etazh'] . ' этаж';
if ((int)$concurrentObject['etazh'] == 1 && !empty($concurrentObject['etaz_first_type'])) {
$etaz = $etaz_first_types[$concurrentObject['etaz_first_type']];
}
echo '
' . $etaz;
if ($concurrentObject['etazh_iz'] * 1 != 0) {
echo " из " . $concurrentObject['etazh_iz'];
}
echo '';
}
}
}
}
}
?>