|
<%@ 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" %>
|
Mexico Rental Links
Homes for rent by owner Chicxulub Mexico and Chicxulub Mexico vacation rental
Cancun Mexico rental homes, rental properties Cancun, and Cancun for rent by owner homes
Punta Esmeralda bed and breakfast rentals, homes for rent by owner, rental houses, and Punta Esmeralda Mexico for rent by owner homes
Aticama Mexico vacation rentals and real estate rentals in Aticama
Ixtapa Mexico condos for rent, short term rentals Ixtapa, and Ixtapa Mexico homes for rent by owner
Rental properties in Bucerias, rental home in Bucerias Mexico, rent house in Bucerias Mexico, and apartment rentals Bucerias
Short term rentals in La Cruz de Huanacaxtle Mexico and rental houses in La Cruz de Huanacaxtle Mexico
Alamos Mexico condos for rent, home rentals Alamos Mexico, and Alamos house rentals
Vacation rental, homes for rent by owner in Punta Banda, vacation rental in Punta Banda, and Punta Banda house rentals
For rent by owner homes in Rose and real estate rentals in Rose
Homes for rent by owner Sunset Beach, real estate rentals Sunset Beach Mexico, and houses for rent
Chapala Mexico for rent by owner homes, Chapala holiday rentals, vacation homes in Chapala Mexico, and real estate rentals Chapala Mexico
Mexico City Mexico home rentals and rental houses Mexico City
Rental apartment Cabo San Lucas Mexico, rental homes Cabo San Lucas Mexico, and rental houses
Valle De Bravo rental houses, rental houses Valle De Bravo Mexico, Valle De Bravo Mexico home rentals, and rent houses Valle De Bravo
Houses for rent and homes for rent in Rose
Acapulco Mexico homes for rent by owner, apartments for rent Acapulco, and Acapulco Mexico vacation homes
Short term rentals in Merida Mexico, Merida apartments for rent, home rentals in Merida, and Merida Mexico condos for rent
Vacation homes for rent by owner Los Cabos-Blanco and home rentals Los Cabos-Blanco Mexico
Homes for rent, house rentals in Puerto Nuevo, and apartments for rent in Puerto Nuevo Mexico
Holiday rentals in San Jose del Cabo Mexico, apartment rentals San Jose del Cabo, San Jose del Cabo vacation rental, and San Jose del Cabo Mexico rent house
Condo rentals in Los Cabos Corridor and Los Cabos Corridor Mexico rental houses
Vacation homes for rent by owner Mulege, rent houses in Mulege Mexico, and apartment rentals in Mulege
Morelia short term rentals, rental apartment in Morelia Mexico, Morelia homes for rent, and Morelia Mexico for rent by owner homes
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|