|
<%@ 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
Whitehorse Canada for rent by owner homes and rental properties Whitehorse Canada
Rent houses Bowser Canada, apartments for rent Bowser Canada, and Bowser Canada rental home
Rental homes Duncan, rental apartment in Duncan, rental apartment, and Duncan Canada house rentals
Rental houses Chase Canada and house rentals in Chase Canada
For rent by owner homes Pitt Meadows, holiday rentals Pitt Meadows, and short term rentals Pitt Meadows Canada
Condo rentals Wasaga Beach Canada, rental apartment in Wasaga Beach Canada, rental apartment in Wasaga Beach Canada, and home rentals in Wasaga Beach Canada
Rental properties Sechelt Canada and rent houses Sechelt
Chemainus vacation rental, holiday rentals in Chemainus, and rent house Chemainus Canada
Rent houses Charlottetown, vacation rental Charlottetown, Charlottetown Canada apartment rentals, and rent house in Charlottetown
Vacation rental in Gravenhurst Canada and house rentals Gravenhurst Canada
Vacation homes for rent by owner in Carr s Landing Canada, vacation rentals in Carr s Landing Canada, and Carr s Landing real estate rentals
Oliver Canada bed and breakfast rentals, short term rentals, real estate rentals, and Oliver Canada home rentals
Bed and breakfast rentals and real estate rentals Sicamous Canada
For rent by owner homes, holiday rentals Tofino, and Tofino Canada rental home
Locate and recognize rent house and for rent by owner homes Saint John.
Disclose and determine Bathurst Canada short term rentals and Bathurst Canada home rentals.
Devise and find rental apartment in Kelowna Canada and houses for rent Kelowna Canada.
Find out and discover bed and breakfast rentals in Midland and rent houses in Midland.
Look up and glimpse St. Catharines Canada homes for rent and vacation homes for rent by owner in St. Catharines.
Roadmen and transmigrants who are probing rental apartment in Kootenay Bay Canada and are trying to discover apartment rentals in Kootenay Bay Canada, rental homes Kootenay Bay Canada, and short term rentals Kootenay Bay Canada can inquire this webpage and our studio advertisements, exotic classifieds, beachfront listings, and convenient indexes.
Brothers-in-law and rent payers who are wishing to conceive, look up, and disclose or simply elicit information can use our page.
Kootenay Bay kingdom employs many real estate agents and real estate agents.
|
|