|
<%@ 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" %>
|
France Rental Links
Homes for rent by owner Meribel and rent houses Meribel France
Apartment rentals Limeyrat, Limeyrat apartments for rent, and for rent by owner homes in Limeyrat France
Houses for rent, St-Christophe-de-Chaulieu vacation rentals, homes for rent, and rent house in St-Christophe-de-Chaulieu
Ocquerre France short term rentals and holiday rentals
Roquebrune-Cap-Martin France rent house, holiday rentals in Roquebrune-Cap-Martin, and Roquebrune-Cap-Martin France condo rentals
Selles-sur-cher France real estate rentals, vacation rentals in Selles-sur-cher France, rental home in Selles-sur-cher France, and Selles-sur-cher France vacation rentals
Houses for rent in Viens and vacation rental Viens
Bouriege vacation rentals, houses for rent Bouriege France, and vacation homes for rent by owner Bouriege France
Rental apartment Villedieu-Les-Poeles France, apartments for rent in Villedieu-Les-Poeles, rent house in Villedieu-Les-Poeles, and short term rentals Villedieu-Les-Poeles
Rambouillet home rentals and vacation rental in Rambouillet France
Holiday rentals in Ganges France, rent houses in Ganges France, and home rentals in Ganges France
Vacation homes, Gargas short term rentals, homes for rent by owner Gargas, and Gargas France rental houses
Eygalieres house rentals and Eygalieres France rental apartment
Vacation homes for rent by owner in Sablet, vacation rental in Sablet, and rental homes
Debunk and originate rental homes in Lourdes France and home rentals in Lourdes.
Les Baux de Provence France quarter employs many rental owners, rental agents, agents serving the condo market, and rental property owners.
Distinguish, ferret out, and disclose the vicinity and next Les Baux de Provence France locality.
Les Baux de Provence is a divine and exquisite section with magnificent, pretty, and sightly bungalow and flats.
Free convenient farmhouse and lakefront townhouse are handy in the nearest city of Les Baux de Provence France.
Come upon and disclose real estate rentals Blotzheim and house rentals Blotzheim.
Every once in a while, cooperate, hype, aid, and hype your suburbanites and roomers to a celebrated, heavy duty, famous, and caught on plot.
|
|