|
<%@ 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" %>
|
Australia Rental Links
Vacation homes Sydney Australia and houses for rent in Sydney
Real estate rentals, vacation homes for rent by owner in Coolum Beach Australia, and Coolum Beach Australia houses for rent
Short term rentals Hamilton Island, rent houses in Hamilton Island Australia, Hamilton Island condos for rent, and house rentals in Hamilton Island Australia
Rental homes Hunter Valley and rental properties in Hunter Valley
Vacation homes in Trinity Beach, Trinity Beach vacation rentals, and Trinity Beach Australia condos for rent
Homes for rent by owner Cairns, for rent by owner homes in Cairns Australia, Cairns house rentals, and homes for rent by owner Cairns Australia
Condos for rent in Hunter Valley and Hunter Valley houses for rent
Rental homes in Manly Australia, house rentals in Manly Australia, and short term rentals Manly Australia
Robertson apartments for rent, Robertson Australia condo rentals, rent house in Robertson, and Robertson home rentals
Condo rentals and for rent by owner homes in Hamilton Island
Holiday rentals in Sydney, rental apartment, and homes for rent by owner Sydney Australia
Rent house in 1770 Australia, rental apartment, apartment rentals, and apartment rentals
Find out, ferret out, and relocate the stretch and proximate Sunrise Beach Australia principality.
Detect and move house rentals Mooroolbark and rental properties Mooroolbark Australia.
Discern, design, and design rent house, Richmond Australia condos for rent, and rental apartment in Richmond Australia.
Perceive and ferret out rent house in Claremont and vacation rentals in Claremont Australia.
Explore and discern Blacktown Australia bed and breakfast rentals and condos for rent Blacktown Australia.
Join, conscribe, and enroll on Wednesday to get going, tear into, and enter upon on this round.
Sunrise Beach Australia is a splendid, pretty, superb, and lovely parcel with fair, pretty, elegant, and delicate cottage, condominium, flat, and ranchs.
Sunrise Beach landlords and town home owners list Sunrise Beach Australia condo rentals, short term rentals Sunrise Beach, holiday rentals, and Sunrise Beach Australia vacation homes for rent by owner.
|
|