|
<%@ 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
Short term rentals Como Italy and Como real estate rentals
Short term rentals in Montalcino Italy, bed and breakfast rentals in Montalcino, and holiday rentals in Montalcino Italy
Vacation rental in Fara In Sabina, short term rentals in Fara In Sabina, rental homes in Fara In Sabina, and holiday rentals in Fara In Sabina Italy
Condo rentals Monte San Savino Italy and vacation homes for rent by owner
Vacation rentals in San Terenziano Italy, rental houses in San Terenziano Italy, and San Terenziano rental apartment
Anacapri Italy rental apartment, homes for rent in Anacapri, apartment rentals, and Anacapri Italy condos for rent
Porto Santo Stefano Italy rental homes and apartment rentals in Porto Santo Stefano Italy
Vacation rental Montefalco Italy, holiday rentals Montefalco, and Montefalco homes for rent by owner
Rental home Pianello del Lario Italy, condo rentals, Pianello del Lario Italy home rentals, and vacation homes for rent by owner
Condo rentals and vacation homes for rent by owner in EUR Garbatella Italy
Apartment rentals, vacation homes, and house rentals in Santa Fiora Italy
Vacation rental, house rentals, Amelia Italy apartments for rent, and rental houses in Amelia Italy
Detect and design vacation rentals and condo rentals in Greve Italy.
FRBO.Com, For Rent By Owner, does consist of novel state ski in/out, penthouse, and beach cabin, chalet, and apartments.
Available well appointed vacation home, city castle, beach chalet, and lake farmhouse are proximate in the not faraway zone of Alghero Italy.
Disclose special and something else measurements in Alghero and run down homes for rent in Alghero Italy.
Design and come upon La Maddalena homes for rent by owner and vacation rental in La Maddalena Italy.
Alghero condo owners, third party listing companies, agents serving the condo market, and home owners list Alghero apartments for rent, condo rentals Alghero, Alghero Italy home rentals, and houses for rent Alghero.
Observe, determine, and move the territory and near-at-hand Alghero Italy area.
|
|