|
<%@ 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
Lubbers Quarters Cay Bahamas vacation rental and homes for rent Lubbers Quarters Cay Bahamas
Sumner Point Bahamas vacation rental, Sumner Point real estate rentals, and holiday rentals in Sumner Point Bahamas
Vacation rental Casuarina Point, Casuarina Point house rentals, Casuarina Point Bahamas rental homes, and Casuarina Point holiday rentals
Rental houses and condo rentals Staniel Cay
George Town Bahamas for rent by owner homes, George Town Bahamas holiday rentals, and houses for rent in George Town Bahamas
Rental properties in South Bimini Island Bahamas, vacation homes for rent by owner South Bimini Island, South Bimini Island rental homes, and apartments for rent South Bimini Island
Vacation rental in Sumner Point Bahamas and apartment rentals in Sumner Point Bahamas
Apartment rentals Green Turtle Cay, vacation homes for rent by owner in Green Turtle Cay, and real estate rentals Green Turtle Cay Bahamas
Casuarina Point rental houses, Casuarina Point Bahamas homes for rent by owner, apartments for rent in Casuarina Point, and bed and breakfast rentals in Casuarina Point Bahamas
Rental homes in Green Turtle Cay Bahamas and rental homes Green Turtle Cay
Vacation homes for rent by owner, bed and breakfast rentals in Freeport Bahamas, and homes for rent in Freeport
George Town Bahamas home rentals, house rentals in George Town Bahamas, George Town condos for rent, and apartments for rent
Vacation rental in Rainbow Bay Bahamas and Rainbow Bay Bahamas rental properties
Hopetown Bahamas house rentals, Hopetown Bahamas rental home, and home rentals in Hopetown Bahamas
Rent houses Double Bay Bahamas, rent houses in Double Bay Bahamas, house rentals in Double Bay Bahamas, and Double Bay rental properties
Vacation homes for rent by owner in Leisure Lee and homes for rent by owner in Leisure Lee Bahamas
Rent house in Hopetown, rent houses in Hopetown Bahamas, and vacation homes
Dunmore Town Bahamas rental home, homes for rent in Dunmore Town Bahamas, Dunmore Town condo rentals, and rental home in Dunmore Town
Staniel Cay Bahamas rental apartment and Staniel Cay Bahamas condo rentals
Vacation rentals in George Town, short term rentals in George Town Bahamas, and George Town Bahamas rental home
Houses for rent Lucaya Bahamas, rent houses Lucaya, homes for rent by owner Lucaya, and homes for rent Lucaya Bahamas
Man-O-War Cay holiday rentals and for rent by owner homes in Man-O-War Cay Bahamas
Rental home Columbus Landings Bahamas, Columbus Landings Bahamas vacation rental, and Columbus Landings Bahamas vacation homes
Condos for rent Ten Bay Beach Bahamas, Ten Bay Beach Bahamas for rent by owner homes, holiday rentals in Ten Bay Beach, and Ten Bay Beach home rentals
#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
|
|