|
<%@ 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" %>
|
Italy Rental Links
Val di Vara rental homes and homes for rent in Val di Vara Italy
Rental apartment in Padenghe sul Garda Italy, rent house Padenghe sul Garda, and Padenghe sul Garda Italy holiday rentals
Vacation rental in Anghiari Italy, rental properties in Anghiari, rent houses Anghiari Italy, and homes for rent in Anghiari Italy
Rental home in Castiglione Chiavarese Italy and vacation homes Castiglione Chiavarese Italy
Vacation homes for rent by owner in Sogna Italy, rent houses in Sogna, and Sogna Italy vacation homes
Vacation homes for rent by owner Umbertide Italy, Umbertide Italy apartments for rent, Umbertide Italy rental properties, and vacation homes in Umbertide Italy
Panicale Italy short term rentals and rental apartment Panicale
Condo rentals Porto Santo Stefano Italy, Porto Santo Stefano Italy apartments for rent, and houses for rent in Porto Santo Stefano
Real estate rentals in Navona Italy, condos for rent Navona Italy, Navona Italy for rent by owner homes, and Navona Italy holiday rentals
Rental houses in Monticchiello di Pienza Italy and Monticchiello di Pienza Italy rental homes
House rentals, bed and breakfast rentals, and San Quirico d Orcia rental homes
Orvieto Italy houses for rent, Orvieto Italy holiday rentals, rental houses in Orvieto Italy, and home rentals
Condos for rent in Capo Vaticano and rental properties in Capo Vaticano
Vacation homes for rent by owner in Val di Vara, homes for rent by owner Val di Vara Italy, and houses for rent Val di Vara Italy
Houses for rent in Cisternino Italy, rental houses Cisternino Italy, rental houses in Cisternino Italy, and homes for rent in Cisternino Italy
Cisternino Italy for rent by owner homes and condo rentals Cisternino
Monte Verde Italy rental apartment, rent house Monte Verde Italy, and Monte Verde Italy holiday rentals
Recently vacated beach farmhouse, romantic chalet, mountain townhouse, and oceanfront apartment are adjoining in the not to distant dominion of Spinetoli Italy.
Light upon and disclose rent house and for rent by owner homes Floridia Italy.
Locate, distinguish, and elicit rent houses in La Maddalena Italy, La Maddalena real estate rentals, and La Maddalena short term rentals.
Hear and find out Monopoli Italy vacation homes for rent by owner and holiday rentals Monopoli Italy.
Our site, FRBO.com does accommodate various area lake, penthouse, and secluded flat, cottage, hacienda, and castles.
Hear and explore holiday rentals Sala Bolognese and rent house Sala Bolognese.
Espy, learn, and glimpse the stretch and not faraway Spinetoli Italy precinct.
Periodically, help, open doors, and cooperate your itinerants, co-workers, and trippers to a fascinating and fetching state.
Relocate and light upon condos for rent in Pesaro and rental apartment Pesaro Italy.
Design ad hoc and novel brass tacks in Spinetoli Italy and tick off for rent by owner homes in Spinetoli Italy.
Discern and elicit holiday rentals in Foggia Italy and Foggia Italy rental properties.
You can hunt the lakeside ad directories, private listed properties, lakeside indexes, and rustic ad directories under Spinetoli Italy short term rentals, Spinetoli rent house, and home rentals Spinetoli Italy.
Uncover, relocate, and disclose Agrigento Italy vacation homes, real estate rentals in Agrigento, and real estate rentals Agrigento Italy.
|
|