|
<%@ 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" %>
|
Ireland Rental Links
Condo rentals in Castlebar Ireland and Castlebar Ireland homes for rent
Vacation rental in Kilkerrin Ireland, Kilkerrin house rentals, and apartments for rent Kilkerrin Ireland
Holiday rentals, rental home Bell Harbour, homes for rent in Bell Harbour, and bed and breakfast rentals in Bell Harbour
Bruree house rentals and Bruree Ireland rent houses
Rental properties Killarney, bed and breakfast rentals, and condos for rent in Killarney
Doolin Ireland rent houses, Doolin rental houses, houses for rent in Doolin Ireland, and Doolin Ireland rental apartment
Rental houses Tipperary Ireland and Tipperary rent house
Vacation rentals in Liscannor Ireland, bed and breakfast rentals in Liscannor Ireland, and house rentals Liscannor
Dingle Ireland bed and breakfast rentals, condo rentals in Dingle Ireland, apartments for rent in Dingle, and Dingle condo rentals
Real estate rentals in Bettystown Ireland and vacation rentals in Bettystown
Home rentals, rental homes, and homes for rent by owner Kells
Apartment rentals in Galway City Ireland, vacation rental, vacation rental, and Galway City vacation rentals
Killarney holiday rentals and rental houses Killarney
Clonakilty Ireland rent houses, Clonakilty Ireland for rent by owner homes, and for rent by owner homes Clonakilty Ireland
Doolin Ireland home rentals, vacation homes for rent by owner Doolin, condo rentals, and bed and breakfast rentals in Doolin
Liscannor Ireland rental houses and vacation homes in Liscannor Ireland
Apartments for rent in Cooraclare, Cooraclare rental home, and Cooraclare Ireland condos for rent
Vacation rental in Doolin Ireland, holiday rentals in Doolin Ireland, Doolin condo rentals, and homes for rent by owner in Doolin Ireland
Homes for rent Ballyheigue Ireland and short term rentals Ballyheigue
Ballyheigue condo rentals, holiday rentals Ballyheigue Ireland, and holiday rentals in Ballyheigue Ireland
Homes for rent by owner in Ennis, rent house Ennis, apartments for rent in Ennis Ireland, and Ennis vacation rentals
Come across and contrive apartment rentals and rental houses Letterkenny Ireland.
You can originate and come across for rent by owner homes in Mount Nugent and rental houses in Mount Nugent Ireland.
Originate, detect, and notice rental home in New Ross, New Ross Ireland apartments for rent, and New Ross Ireland rental houses.
Catch, recognize, and determine real estate rentals in Waterford Ireland, home rentals Waterford Ireland, and Waterford Ireland vacation homes.
Send enticing and gorgeous abstracts regarding Mount Nugent Ireland rent house, Mount Nugent Ireland homes for rent, and apartments for rent in Mount Nugent Ireland found on FRBO.Com, For Rent By Owner,.
Find out, elicit, and hear rental apartment in Sligo Ireland, house rentals Sligo, and Sligo condos for rent.
Our website, FRBO.com does embrace specific county spacious, suburban, exotic, and lakeside home, ranch, vacation home, and timeshares.
Uncover, debunk, and come upon houses for rent, Sligo rent houses, and rental homes in Sligo.
Elicit and determine bed and breakfast rentals in Wicklow Ireland and bed and breakfast rentals Wicklow Ireland.
Engage and serve tomorrow to get cracking, tear into, open, and kick off on this safari.
|
|