|
<%@ include file="../WEB-INF/jsp/city_side_menu2.jspf" %>
|
|
<%@ include file="../WEB-INF/jsp/top_menu.jspf" %>
|
<%=city_name%>, <%=region_name%>
Filter the results on the map and on the property list by changing criteria.
All properties meeting criteria are shown automatically.
|
|
Properties in <%=city_name%>
| Property ID |
Address |
City |
Bedrooms |
Bathrooms |
Square feet |
<%@ include file="/WEB-INF/jsp/radius_function.jsp" %>
<%
Connection con = null;
try {
// lat and lng definition are on file city_scriptlet.jspf
double[] cords = getRadiusCords(60, lat, lng);
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/sstrehli1?user=sstrehli1&password=frboadmin2007");
String query = "SELECT property_id, address, country_id, country_name, bedrooms, bathrooms, sqft, property.latitude, property.longitude, cities.city, property.city_id FROM property, cities WHERE property.city_id = cities.city_id AND property.enabled = 1 AND property.latitude >= " + cords[0] + " AND property.longitude >= " + cords[1] + " AND property.latitude <= " +cords[2] + " AND property.longitude <= " +cords[3];
PreparedStatement Ps = con.prepareStatement(query);
//Ps.setInt(1,city_id);
ResultSet Rs = Ps.executeQuery();
while(Rs.next()) {
long property_id = Rs.getLong("property_id");
int country_id = Rs.getInt("country_id");
double latitude = Rs.getDouble("latitude");
double longitude = Rs.getDouble("longitude");
String address = Rs.getString("address");
String country_name = Rs.getString("country_name");
String city_name2 = Rs.getString("city");
int city_id2 = Rs.getInt("city_id");
int bedrooms = Rs.getInt("bedrooms");
int bathrooms = Rs.getInt("bathrooms");
int sqft = Rs.getInt("sqft");
String query2 = "SELECT date_in, date_out FROM rates WHERE property_id = ?";
PreparedStatement Ps2 = con.prepareStatement(query2);
Ps2.setLong(1, property_id);
ResultSet Rs2 = Ps2.executeQuery();
%>
| #<%=property_id%> |
<%=address%> |
<%=city_name2%> |
<%=bedrooms%> |
<%=bathrooms%> |
<%=sqft%> |
<%
Rs2.close();
Ps2.close();
}
Rs.close();
Ps.close();
con.close();
con = null;
} catch(Exception e) {out.print(e.toString()); out.print(e.getMessage());
}
finally {
if(con!=null) {
con.close();
con = null;
}
}
%>
| |
|
|
|
|
|
<%@ include file="../WEB-INF/jsp/footer.jspf" %>
|
Bahamas Rental Links
Whale Point rental homes and Whale Point vacation rentals
Lucaya apartments for rent, home rentals, and Lucaya Bahamas homes for rent
Sumner Point rent house, short term rentals in Sumner Point Bahamas, homes for rent by owner in Sumner Point Bahamas, and Sumner Point Bahamas rental homes
Hartswell rental properties and house rentals
Pelican Point Bahamas for rent by owner homes, rental properties Pelican Point, and Pelican Point Bahamas rent houses
Rental homes Pelican Point, vacation rental in Pelican Point Bahamas, homes for rent by owner in Pelican Point Bahamas, and holiday rentals in Pelican Point
Acklins Island rental properties and homes for rent by owner in Acklins Island Bahamas
Stella Maris homes for rent by owner, vacation rentals in Stella Maris Bahamas, and condo rentals in Stella Maris
Whale Point Bahamas home rentals, vacation rentals Whale Point, vacation homes for rent by owner in Whale Point Bahamas, and condo rentals in Whale Point Bahamas
Bed and breakfast rentals in Rock Sound Bahamas and bed and breakfast rentals in Rock Sound
Vacation homes in Windermere Island, houses for rent in Windermere Island Bahamas, and Windermere Island real estate rentals
Short term rentals in Sumner Point, Sumner Point Bahamas rental houses, vacation rentals in Sumner Point Bahamas, and house rentals
Staniel Cay Bahamas condo rentals and home rentals in Staniel Cay
Vacation homes in North Palmetto Point Bahamas, North Palmetto Point condo rentals, and North Palmetto Point for rent by owner homes
Holiday rentals in Ten Bay Beach, house rentals in Ten Bay Beach, Ten Bay Beach short term rentals, and house rentals
Home rentals in Harbour Island and Harbour Island rental homes
Condo rentals in Cherokee Sound Bahamas, Cherokee Sound Bahamas rental houses, and vacation homes for rent by owner Cherokee Sound
Rent house in Hermitage Bahamas, home rentals, Hermitage apartments for rent, and Hermitage Bahamas homes for rent
South Bimini Island Bahamas rent house and South Bimini Island Bahamas home rentals
Rental properties in Marsh Harbour Bahamas, Marsh Harbour short term rentals, and Marsh Harbour Bahamas holiday rentals
Rock Sound Bahamas condo rentals, rental apartment Rock Sound Bahamas, Rock Sound Bahamas rent houses, and short term rentals
Vacation rentals in Great Guana Cay Bahamas and apartment rentals in Great Guana Cay Bahamas
Sumner Point Bahamas apartment rentals, Sumner Point Bahamas vacation rentals, and vacation homes in Sumner Point Bahamas
Vacation homes, holiday rentals, vacation homes in Double Bay Bahamas, and Double Bay Bahamas houses for rent
Holiday rentals in Ten Bay Beach and Ten Bay Beach Bahamas real estate rentals
Vacation homes for rent by owner, Hermitage apartments for rent, and for rent by owner homes
Homes for rent Lucaya, vacation homes for rent by owner in Lucaya, Lucaya Bahamas rental apartment, and Lucaya Bahamas rent houses
Short term rentals Rainbow Bay Bahamas and vacation homes in Rainbow Bay Bahamas
Great Harbour Cay apartments for rent, short term rentals in Great Harbour Cay Bahamas, and Great Harbour Cay Bahamas homes for rent by owner
North Palmetto Point real estate rentals, North Palmetto Point Bahamas home rentals, North Palmetto Point Bahamas vacation homes for rent by owner, and houses for rent in North Palmetto Point
Condo rentals Rainbow Bay and condos for rent
Apartment rentals in Rock Sound, holiday rentals, and condo rentals in Rock Sound Bahamas
Vacation rentals and Lucaya holiday rentals
Cherokee Sound Bahamas homes for rent by owner, rental houses in Cherokee Sound, and vacation rentals in Cherokee Sound Bahamas
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|