|
<%@ 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
Governor s Harbour vacation rental and house rentals
Leisure Lee Bahamas condo rentals, Leisure Lee house rentals, and Leisure Lee rental houses
Short term rentals in South Bimini Island Bahamas, South Bimini Island Bahamas rental houses, homes for rent in South Bimini Island Bahamas, and South Bimini Island condos for rent
Rental apartment in Lubbers Quarters Cay and homes for rent by owner
Vacation homes for rent by owner in Little Harbour, vacation rentals, and bed and breakfast rentals
Rent houses in Dunmore Town Bahamas, rental home in Dunmore Town Bahamas, Dunmore Town Bahamas homes for rent by owner, and homes for rent Dunmore Town
Turnbull bed and breakfast rentals and Turnbull Bahamas rental properties
Apartment rentals, Little Harbour vacation rental, and Little Harbour Bahamas homes for rent
Homes for rent by owner Green Turtle Cay Bahamas, Green Turtle Cay Bahamas homes for rent, house rentals in Green Turtle Cay Bahamas, and Green Turtle Cay Bahamas home rentals
Short term rentals in South Bimini Island Bahamas and real estate rentals
Houses for rent, short term rentals Columbus Landings Bahamas, and vacation rentals in Columbus Landings Bahamas
Sumner Point Bahamas condos for rent, condos for rent in Sumner Point, homes for rent, and vacation homes for rent by owner Sumner Point
Spanish Wells vacation homes and rent houses Spanish Wells
Holiday rentals Black Point, home rentals in Black Point Bahamas, and holiday rentals Black Point Bahamas
Vacation homes, homes for rent by owner in South Bimini Island Bahamas, South Bimini Island Bahamas rent houses, and houses for rent in South Bimini Island Bahamas
Wemsyss Bahamas rent houses and bed and breakfast rentals in Wemsyss Bahamas
Apartment rentals, Cherokee Sound house rentals, and Cherokee Sound Bahamas vacation homes for rent by owner
Hopetown Bahamas homes for rent by owner, rental homes in Hopetown, condo rentals in Hopetown, and home rentals in Hopetown Bahamas
Rental apartment in Nassau and Nassau homes for rent by owner
Marsh Harbour Bahamas home rentals, Marsh Harbour bed and breakfast rentals, and condo rentals in Marsh Harbour Bahamas
Short term rentals, vacation rental Rainbow Bay Bahamas, rental homes in Rainbow Bay Bahamas, and rental home
Atlantis Bahamas homes for rent by owner and Atlantis holiday 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
|
|