">
console.log($jsondata)"); $roomTypes = Block::getRoomTypesWithPrices($obj['id'], $get['period'], $str_usl_bd); if ($roomTypes && count($roomTypes)) { foreach ($roomTypes as $id => $namePrice) { if (isset($get['type'])) { $found = false; foreach($get['type'] as $type) { if ($type == $id) { $found = true; } } if (!$found) { continue; } } if (isset($get['period']) && $get['period'] && $get['period'] > 0) { if ($get['period'] < strtotime($namePrice['deadline'])) { continue; } } ?>
 от p