|
<%@ 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" %>
|
Canada Rental Links
Vacation homes for rent by owner and homes for rent by owner in Boswell Canada
Rental houses Orillia Canada, rental homes in Orillia Canada, and rental houses Orillia Canada
Condo rentals in Wasaga Beach, Wasaga Beach Canada rental home, homes for rent in Wasaga Beach Canada, and house rentals in Wasaga Beach Canada
Vacation rental Gibsons Canada and Gibsons Canada condo rentals
Big White Canada real estate rentals, rental properties Big White, and Big White Canada apartment rentals
Condos for rent in Cortes Island Canada, for rent by owner homes Cortes Island, Cortes Island rental home, and Cortes Island Canada apartment rentals
Rental home in Summerside Canada and house rentals in Summerside
Bed and breakfast rentals Gibsons Canada, homes for rent Gibsons, and vacation homes in Gibsons Canada
Condos for rent in Stanhope, rent houses Stanhope, Stanhope vacation rental, and apartment rentals Stanhope Canada
Short term rentals in Whistler Village Canada and bed and breakfast rentals in Whistler Village Canada
Barrier Lake Canada homes for rent, Barrier Lake Canada vacation homes, and Barrier Lake Canada vacation rental
Homes for rent by owner, Mayne Island Canada rent house, home rentals in Mayne Island, and houses for rent Mayne Island
Distinguish and debunk Dalhousie Canada rental home and rental properties Dalhousie.
Beach Point Canada is a dazzling, splendid, enticing, and beauteous turf with splendid and alluring vacation home, lodge, cabin, and chalets.
Elicit, discover, and locate rent houses in Cranbrook Canada, Cranbrook Canada vacation homes for rent by owner, and rental apartment Cranbrook Canada.
Debunk, discover, and detect Langley holiday rentals, Langley Canada rental apartment, and Langley Canada rental apartment.
Roadmen and subordinates who are frisking Beach Point condo rentals and are trying to dig up Beach Point house rentals and Beach Point holiday rentals can look for this webpage and our rustic ad directories, beach online MLS, and lakefront indexes.
Originate and ferret out condo rentals in Drayton Valley and house rentals.
Transmigrants and speculators probe and study our for rent by owner website and determine beach cabin, penthouse houseboat, loft vacation home, and spacious condominium.
For Rent By Owner does embrace express penthouse, lake, mountain, and oceanfront house, villa, castle, and apartments.
Join our loft classifieds and suburban advertisements mailing list for vacation homes Beach Point and Beach Point vacation rental.
You can shake down the lakeside classified ads, mountain classifieds, and romantic ads under Beach Point house rentals and houses for rent.
|
|