region_rf_id "; $rezForNeedNb = mysql_query($sqlForNeedNb); $showNewbuildings = false; $countResult = mysql_fetch_assoc($rezForNeedNb); if ($countResult['count'] != '0') { $showNewbuildings = true; } if ($showNewbuildings == false) { header("location:/index.php"); die("Доступ запрещён!"); } include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/ImportRecord.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/document/target/DocTarget.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/Block.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/RoomType.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/DecorationType.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/Apartment.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/obj/Building.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/helper/Date.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/Clock/Clock.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/Clock/RealtimeClock.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/state/IReservationState.php'; include $_SERVER['DOCUMENT_ROOT'] . '/import/reservation/Reservation.php'; $get = clearInputData($_GET); if (!isset($get['blockId'])) { header("location:/newbuildings.php"); exit(); } $block = new Block(); if ($get['blockId'] > 0) { $block = Block::findOne($get['blockId']); } require($_SERVER['DOCUMENT_ROOT']."/templates/new-header.php"); ?>

«name;?>»

>Развернуть форму
Площадь:
 м2
Цена:
 p
id . '&hide_form=1'; if (isset($get['type'])) { foreach($get['type'] as $type) { $mas_url_add[] = "type[]=" . $type; } } if (isset($get['obj_type'])) { foreach($get['obj_type'] as $type) { $mas_url_add[] = "obj_type[]=" . $type; } } if (isset($get['dec_type'])) { $mas_url_add[] = "dec_type=" . $get['dec_type']; } if (isset($get['period'])) { $mas_url_add[] = "period=" . $get['period']; } if (isset($get['stoim_ot'])) { $mas_url_add[] = "stoim_ot=" . $get['stoim_ot']; } if (isset($get['stoim_do'])) { $mas_url_add[] = "stoim_do=" . $get['stoim_do']; } if (isset($get['sq_all_ot'])) { $mas_url_add[] = "sq_all_ot=" . $get['sq_all_ot']; } if (isset($get['sq_all_do'])) { $mas_url_add[] = "sq_all_do=" . $get['sq_all_do']; } if (isset($get['flat_floor_ot'])) { $mas_url_add[] = "flat_floor_ot=" . $get['flat_floor_ot']; } if (isset($get['flat_floor_do'])) { $mas_url_add[] = "flat_floor_do=" . $get['flat_floor_do']; } if($mas_url_add) { $str_url_add = implode("&", $mas_url_add); } $roomTypes = array(); $decorationTypes = array(); $periods = array(); if ($block->id) { $roomTypes = RoomType::findByBlockId($block->id); $decorationTypes = DecorationType::getListForBlock($block->id); $periods = Building::getPeriodsByBlock($block->id); } else { $roomTypes = RoomType::getElementsList(); $decorationTypes = DecorationType::getElementsList(); $periods = Building::getUniquePeriods(); } if (count($periods) > 1) { $num = 0; echo '
Период по:
'; foreach ($periods as $k => $item) { ?> >
">
'; } if (count($decorationTypes) > 1) { $num = 0; echo '
Отделка:
'; foreach ($decorationTypes as $item) { ?> id) echo "checked"; ?>>
"> name;?>
'; } $num = 0; echo '
Тип:
'; foreach ($roomTypes as $item) { ?> id, $get['obj_type'])) echo "checked"; ?>>
"> name;?>
'; ?>
Этаж:
debug'; ?>
">Вернуться к списку комплексов
id, isset($get['obj_type']) ? $get['obj_type'] : [], isset($get['dec_type']) ? $get['dec_type'] : null, isset($get['period']) ? $get['period'] : null, isset($get['stoim_ot']) ? $get['stoim_ot'] : null, isset($get['stoim_do']) ? $get['stoim_do'] : null, isset($get['sq_all_ot']) ? $get['sq_all_ot'] : null, isset($get['sq_all_do']) ? $get['sq_all_do'] : null, isset($get['flat_floor_ot']) ? $get['flat_floor_ot'] : null, isset($get['flat_floor_do']) ? $get['flat_floor_do'] : null ); $all_pages = ceil($vsego/$kol_on_page); if(isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 1; } $ot = ($page-1)*$kol_on_page; if($vsego > 0) { $sql = "SELECT a.*, b.number as building_number, b.corp as building_corp, b.floors as building_floors, b.deadline as building_deadline, b.line as building_line, r.name as room_type_name, d.name as decoration_type_name FROM apartments a, buildings b, room_types r, decoration_types d "; // $wherePart = "WHERE a.block_id = '" . $block->id . "' "; $wherePart = "WHERE d.id = a.decoration_id AND b.id = a.building_id AND r.id = a.room_type_id AND a.block_id = '" . $block->id . "' "; if (isset($get['type']) && $get['type']) { $wherePart = $wherePart . " AND a.room_type_id in (" . implode(",", $get['type']) . ")"; } if (isset($get['obj_type']) && $get['obj_type']) { $wherePart = $wherePart . " AND a.room_type_id in (" . implode(",", $get['obj_type']) . ")"; } if (isset($get['dec_type']) && $get['dec_type']) { $wherePart = $wherePart . " AND a.decoration_id = " . $get['dec_type'] . ""; } if (isset($get['stoim_ot']) && $get['stoim_ot']) { $stoim_ot = intval(str_replace(' ', '', $get['stoim_ot'])); $wherePart = $wherePart . " AND price >= " . $stoim_ot . ""; } if (isset($get['stoim_do']) && $get['stoim_do']) { $stoim_do = intval(str_replace(' ', '', $get['stoim_do'])); $wherePart = $wherePart . " AND price <= " . $stoim_do . ""; } if (isset($get['sq_all_ot']) && $get['sq_all_ot']) { $wherePart = $wherePart . " AND space_total >= " . $get['sq_all_ot'] . ""; } if (isset($get['sq_all_do']) && $get['sq_all_do']) { $wherePart = $wherePart . " AND space_total <= " . $get['sq_all_do'] . ""; } if (isset($get['flat_floor_ot']) && $get['flat_floor_ot']) { $wherePart = $wherePart . " AND flat_floor >= " . $get['flat_floor_ot'] . ""; } if (isset($get['flat_floor_do']) && $get['flat_floor_do']) { $wherePart = $wherePart . " AND flat_floor <= " . $get['flat_floor_do'] . ""; } if (isset($get['period']) && $get['period'] && $get['period'] > 0) { $wherePart .= " AND a.building_id in (select bds.id from buildings bds where UNIX_TIMESTAMP(bds.deadline) <=" . $get['period'] . ") "; } $sqlTop = $sql . $wherePart. " ORDER BY a.discount_price LIMIT $ot, $kol_on_page"; $rez = mysql_query($sqlTop); if (isset($get['dev'])) { echo $sqlTop; } $num = 1; $objects = []; while ($object = mysql_fetch_assoc($rez)) { $objects[] = $object; } function hasEmptyAll($array, $column) { foreach ($array as $subArray) { if (!empty($subArray[$column])) { return false; } } return true; } $showOrderColumn = !hasEmptyAll($objects, 'building_line'); $showBuildingNumber = !hasEmptyAll($objects, 'building_number'); // var_dump($showBuildingNumber); $firstColSpan = 6; if ( $showOrderColumn) { $firstColSpan += 1; } if ( $showBuildingNumber) { $firstColSpan += 1; } } ?>
Квартиры в комплексе
PDF Корпус Корпус Срок сдачи Очередь Тип Этаж Общая Площадь Стоимость Отделка
" id="to_send_button" data-id=""> pdf
'; // echo "

На портале используется дополненная и переработанная информация из системы ABC недвижимость

"; ?>